summaryrefslogtreecommitdiffstats
path: root/protos/lib/src/generated/applauncher.pbgrpc.dart
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2023-12-21 17:22:52 -0500
committerScott Murray <scott.murray@konsulko.com>2023-12-21 22:48:36 +0000
commita445ffb0d847b8d1e44213b95bfbe60ecdf19952 (patch)
tree8854ab9d843a983f6b43c3cd6eb7df34765a167c /protos/lib/src/generated/applauncher.pbgrpc.dart
parent4ae68f5be11d110f2df10d54377d970921e30a21 (diff)
Add application launcher support
Changes: - Add required agl-shell and applauncher gRPC API source and generated files. - Remove unused deprecated databroker gRPC API files as cleanup. - Add app launcher helper object and associated RiverPod provider. The implementation is based on code from the old Flutter homescreen. There will likely be follow up work to use the recent changes to the agl-shell gRPC API to handle display setting for applications needing remote displays. - Wire up application enumeration and starting in the app page. A placeholder generic application icon has been added that will be used for the external applications for now, as the SVG icons being used with the old homescreens are not really suitable. - Wire up activating the homescreen again if the bottom panel is touched after an external application has been started. Bug-AGL: SPEC-5026 Change-Id: I01de4760cfd098d3b5f2e6843ad9103a8ea87935 Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Diffstat (limited to 'protos/lib/src/generated/applauncher.pbgrpc.dart')
-rw-r--r--protos/lib/src/generated/applauncher.pbgrpc.dart106
1 files changed, 106 insertions, 0 deletions
diff --git a/protos/lib/src/generated/applauncher.pbgrpc.dart b/protos/lib/src/generated/applauncher.pbgrpc.dart
new file mode 100644
index 0000000..d054e8f
--- /dev/null
+++ b/protos/lib/src/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);
+}