summaryrefslogtreecommitdiffstats
path: root/lib/generated/applauncher.pbgrpc.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2022-11-21 02:30:35 -0500
committerScott Murray <scott.murray@konsulko.com>2022-11-21 02:44:25 -0500
commite21709c9601209e26d09dea0a45e37f0636bb605 (patch)
tree6f7e9d1bda9126cc0dfe6ba401b40739715867e2 /lib/generated/applauncher.pbgrpc.dart
parent1f5b482843291c17e3cbb265f59101f8d1874182 (diff)
Rework for use in Flutter demo platform image
Changes: - Converted to portrait orientation. - Application enumeration and launching+activation enabled via use of applaunchd gRPC API and agl-shell protocol platform channel plugin in the embedder. - Previous dashboard, hvac, media, etc. pages disabled. Some of the code has been kept for potential reuse. - Clock widget tweaked to fit in portrait mode navigation bar, and take text color argument. - Bluetooth, wifi, and phone signal icons mocked up in navigation bar. Known issues: - The bottom panel area is static at present, support for popping up a volume control slider like the Qt demo is planned as an addition. - The path to implementing connection and signal strength indications is currently a bit hazy, it is possible that flutter-dbus might be the simplest stopgap. - State management has been kept basic, as there are a couple of places where using provider or riverpod seems like perhaps an overcomplication. This will be reviewed when KUKSA.val support is integrated for the volume slider. - Some of the layout sizing is a bit ad hoc, and it is not clear if the previous layout helper class is actually worth keeping or not. This should be reviewed when time permits. Bug-AGL: SPEC-4611 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: Ib486b1fd92047f6c1ff1cd9569f49e3ccaf3269d
Diffstat (limited to 'lib/generated/applauncher.pbgrpc.dart')
-rw-r--r--lib/generated/applauncher.pbgrpc.dart106
1 files changed, 106 insertions, 0 deletions
diff --git a/lib/generated/applauncher.pbgrpc.dart b/lib/generated/applauncher.pbgrpc.dart
new file mode 100644
index 0000000..d054e8f
--- /dev/null
+++ b/lib/generated/applauncher.pbgrpc.dart
@@ -0,0 +1,106 @@
+///
+// Generated code. Do not modify.
+// source: applauncher.proto
+//
+// @dart = 2.12
+// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,directives_ordering,library_prefixes,non_constant_identifier_names,prefer_final_fields,return_of_invalid_type,unnecessary_const,unnecessary_import,unnecessary_this,unused_import,unused_shown_name
+
+import 'dart:async' as $async;
+
+import 'dart:core' as $core;
+
+import 'package:grpc/service_api.dart' as $grpc;
+import 'applauncher.pb.dart' as $0;
+export 'applauncher.pb.dart';
+
+class AppLauncherClient extends $grpc.Client {
+ static final _$startApplication =
+ $grpc.ClientMethod<$0.StartRequest, $0.StartResponse>(
+ '/automotivegradelinux.AppLauncher/StartApplication',
+ ($0.StartRequest value) => value.writeToBuffer(),
+ ($core.List<$core.int> value) => $0.StartResponse.fromBuffer(value));
+ static final _$listApplications =
+ $grpc.ClientMethod<$0.ListRequest, $0.ListResponse>(
+ '/automotivegradelinux.AppLauncher/ListApplications',
+ ($0.ListRequest value) => value.writeToBuffer(),
+ ($core.List<$core.int> value) => $0.ListResponse.fromBuffer(value));
+ static final _$getStatusEvents =
+ $grpc.ClientMethod<$0.StatusRequest, $0.StatusResponse>(
+ '/automotivegradelinux.AppLauncher/GetStatusEvents',
+ ($0.StatusRequest value) => value.writeToBuffer(),
+ ($core.List<$core.int> value) => $0.StatusResponse.fromBuffer(value));
+
+ AppLauncherClient($grpc.ClientChannel channel,
+ {$grpc.CallOptions? options,
+ $core.Iterable<$grpc.ClientInterceptor>? interceptors})
+ : super(channel, options: options, interceptors: interceptors);
+
+ $grpc.ResponseFuture<$0.StartResponse> startApplication(
+ $0.StartRequest request,
+ {$grpc.CallOptions? options}) {
+ return $createUnaryCall(_$startApplication, request, options: options);
+ }
+
+ $grpc.ResponseFuture<$0.ListResponse> listApplications($0.ListRequest request,
+ {$grpc.CallOptions? options}) {
+ return $createUnaryCall(_$listApplications, request, options: options);
+ }
+
+ $grpc.ResponseStream<$0.StatusResponse> getStatusEvents(
+ $0.StatusRequest request,
+ {$grpc.CallOptions? options}) {
+ return $createStreamingCall(
+ _$getStatusEvents, $async.Stream.fromIterable([request]),
+ options: options);
+ }
+}
+
+abstract class AppLauncherServiceBase extends $grpc.Service {
+ $core.String get $name => 'automotivegradelinux.AppLauncher';
+
+ AppLauncherServiceBase() {
+ $addMethod($grpc.ServiceMethod<$0.StartRequest, $0.StartResponse>(
+ 'StartApplication',
+ startApplication_Pre,
+ false,
+ false,
+ ($core.List<$core.int> value) => $0.StartRequest.fromBuffer(value),
+ ($0.StartResponse value) => value.writeToBuffer()));
+ $addMethod($grpc.ServiceMethod<$0.ListRequest, $0.ListResponse>(
+ 'ListApplications',
+ listApplications_Pre,
+ false,
+ false,
+ ($core.List<$core.int> value) => $0.ListRequest.fromBuffer(value),
+ ($0.ListResponse value) => value.writeToBuffer()));
+ $addMethod($grpc.ServiceMethod<$0.StatusRequest, $0.StatusResponse>(
+ 'GetStatusEvents',
+ getStatusEvents_Pre,
+ false,
+ true,
+ ($core.List<$core.int> value) => $0.StatusRequest.fromBuffer(value),
+ ($0.StatusResponse value) => value.writeToBuffer()));
+ }
+
+ $async.Future<$0.StartResponse> startApplication_Pre(
+ $grpc.ServiceCall call, $async.Future<$0.StartRequest> request) async {
+ return startApplication(call, await request);
+ }
+
+ $async.Future<$0.ListResponse> listApplications_Pre(
+ $grpc.ServiceCall call, $async.Future<$0.ListRequest> request) async {
+ return listApplications(call, await request);
+ }
+
+ $async.Stream<$0.StatusResponse> getStatusEvents_Pre(
+ $grpc.ServiceCall call, $async.Future<$0.StatusRequest> request) async* {
+ yield* getStatusEvents(call, await request);
+ }
+
+ $async.Future<$0.StartResponse> startApplication(
+ $grpc.ServiceCall call, $0.StartRequest request);
+ $async.Future<$0.ListResponse> listApplications(
+ $grpc.ServiceCall call, $0.ListRequest request);
+ $async.Stream<$0.StatusResponse> getStatusEvents(
+ $grpc.ServiceCall call, $0.StatusRequest request);
+}