diff options
author | Scott Murray <scott.murray@konsulko.com> | 2023-09-26 11:02:55 -0400 |
---|---|---|
committer | Scott Murray <scott.murray@konsulko.com> | 2023-09-26 11:04:31 -0400 |
commit | 6532dfae339faa2f7fa2d06519bf2ca5c6c77b4c (patch) | |
tree | eccbaa00565d5b0ba944d868061d961712bcb4e6 | |
parent | cbbb9f40e283d12f6c52ad28609516f390316f7a (diff) |
Switch to compositor's gRPC API
Rework application surface activation to use the new compositor gRPC
API instead of our custom platform channel.
Bug-AGL: SPEC-4914
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
Change-Id: I589af7236c0489125a5ee226cd00ea1f8f1ec9d3
-rw-r--r-- | lib/generated/agl_shell.pb.dart | 1028 | ||||
-rw-r--r-- | lib/generated/agl_shell.pbenum.dart | 7 | ||||
-rw-r--r-- | lib/generated/agl_shell.pbgrpc.dart | 319 | ||||
-rw-r--r-- | lib/generated/agl_shell.pbjson.dart | 217 | ||||
-rw-r--r-- | lib/homescreen.dart | 35 | ||||
-rw-r--r-- | protos/agl_shell.proto | 110 |
6 files changed, 1702 insertions, 14 deletions
diff --git a/lib/generated/agl_shell.pb.dart b/lib/generated/agl_shell.pb.dart new file mode 100644 index 0000000..27b1df0 --- /dev/null +++ b/lib/generated/agl_shell.pb.dart @@ -0,0 +1,1028 @@ +/// +// Generated code. Do not modify. +// source: agl_shell.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:core' as $core; + +import 'package:protobuf/protobuf.dart' as $pb; + +class ActivateRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ActivateRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputName') + ..hasRequiredFields = false + ; + + ActivateRequest._() : super(); + factory ActivateRequest({ + $core.String? appId, + $core.String? outputName, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (outputName != null) { + _result.outputName = outputName; + } + return _result; + } + factory ActivateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ActivateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ActivateRequest clone() => ActivateRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ActivateRequest copyWith(void Function(ActivateRequest) updates) => super.copyWith((message) => updates(message as ActivateRequest)) as ActivateRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ActivateRequest create() => ActivateRequest._(); + ActivateRequest createEmptyInstance() => create(); + static $pb.PbList<ActivateRequest> createRepeated() => $pb.PbList<ActivateRequest>(); + @$core.pragma('dart2js:noInline') + static ActivateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ActivateRequest>(create); + static ActivateRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get outputName => $_getSZ(1); + @$pb.TagNumber(2) + set outputName($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasOutputName() => $_has(1); + @$pb.TagNumber(2) + void clearOutputName() => clearField(2); +} + +class ActivateResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ActivateResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + ActivateResponse._() : super(); + factory ActivateResponse() => create(); + factory ActivateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ActivateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ActivateResponse clone() => ActivateResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ActivateResponse copyWith(void Function(ActivateResponse) updates) => super.copyWith((message) => updates(message as ActivateResponse)) as ActivateResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ActivateResponse create() => ActivateResponse._(); + ActivateResponse createEmptyInstance() => create(); + static $pb.PbList<ActivateResponse> createRepeated() => $pb.PbList<ActivateResponse>(); + @$core.pragma('dart2js:noInline') + static ActivateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ActivateResponse>(create); + static ActivateResponse? _defaultInstance; +} + +class DeactivateRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DeactivateRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..hasRequiredFields = false + ; + + DeactivateRequest._() : super(); + factory DeactivateRequest({ + $core.String? appId, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + return _result; + } + factory DeactivateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DeactivateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeactivateRequest clone() => DeactivateRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeactivateRequest copyWith(void Function(DeactivateRequest) updates) => super.copyWith((message) => updates(message as DeactivateRequest)) as DeactivateRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static DeactivateRequest create() => DeactivateRequest._(); + DeactivateRequest createEmptyInstance() => create(); + static $pb.PbList<DeactivateRequest> createRepeated() => $pb.PbList<DeactivateRequest>(); + @$core.pragma('dart2js:noInline') + static DeactivateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeactivateRequest>(create); + static DeactivateRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); +} + +class DeactivateResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'DeactivateResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + DeactivateResponse._() : super(); + factory DeactivateResponse() => create(); + factory DeactivateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory DeactivateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + DeactivateResponse clone() => DeactivateResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + DeactivateResponse copyWith(void Function(DeactivateResponse) updates) => super.copyWith((message) => updates(message as DeactivateResponse)) as DeactivateResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static DeactivateResponse create() => DeactivateResponse._(); + DeactivateResponse createEmptyInstance() => create(); + static $pb.PbList<DeactivateResponse> createRepeated() => $pb.PbList<DeactivateResponse>(); + @$core.pragma('dart2js:noInline') + static DeactivateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeactivateResponse>(create); + static DeactivateResponse? _defaultInstance; +} + +class SplitRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SplitRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'tileOrientation', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + SplitRequest._() : super(); + factory SplitRequest({ + $core.String? appId, + $core.int? tileOrientation, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (tileOrientation != null) { + _result.tileOrientation = tileOrientation; + } + return _result; + } + factory SplitRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SplitRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SplitRequest clone() => SplitRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SplitRequest copyWith(void Function(SplitRequest) updates) => super.copyWith((message) => updates(message as SplitRequest)) as SplitRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static SplitRequest create() => SplitRequest._(); + SplitRequest createEmptyInstance() => create(); + static $pb.PbList<SplitRequest> createRepeated() => $pb.PbList<SplitRequest>(); + @$core.pragma('dart2js:noInline') + static SplitRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SplitRequest>(create); + static SplitRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get tileOrientation => $_getIZ(1); + @$pb.TagNumber(2) + set tileOrientation($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasTileOrientation() => $_has(1); + @$pb.TagNumber(2) + void clearTileOrientation() => clearField(2); +} + +class SplitResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'SplitResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + SplitResponse._() : super(); + factory SplitResponse() => create(); + factory SplitResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory SplitResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + SplitResponse clone() => SplitResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + SplitResponse copyWith(void Function(SplitResponse) updates) => super.copyWith((message) => updates(message as SplitResponse)) as SplitResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static SplitResponse create() => SplitResponse._(); + SplitResponse createEmptyInstance() => create(); + static $pb.PbList<SplitResponse> createRepeated() => $pb.PbList<SplitResponse>(); + @$core.pragma('dart2js:noInline') + static SplitResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<SplitResponse>(create); + static SplitResponse? _defaultInstance; +} + +class FloatRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FloatRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'xPos', $pb.PbFieldType.O3) + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'yPos', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + FloatRequest._() : super(); + factory FloatRequest({ + $core.String? appId, + $core.int? xPos, + $core.int? yPos, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (xPos != null) { + _result.xPos = xPos; + } + if (yPos != null) { + _result.yPos = yPos; + } + return _result; + } + factory FloatRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory FloatRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FloatRequest clone() => FloatRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FloatRequest copyWith(void Function(FloatRequest) updates) => super.copyWith((message) => updates(message as FloatRequest)) as FloatRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FloatRequest create() => FloatRequest._(); + FloatRequest createEmptyInstance() => create(); + static $pb.PbList<FloatRequest> createRepeated() => $pb.PbList<FloatRequest>(); + @$core.pragma('dart2js:noInline') + static FloatRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FloatRequest>(create); + static FloatRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get xPos => $_getIZ(1); + @$pb.TagNumber(2) + set xPos($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasXPos() => $_has(1); + @$pb.TagNumber(2) + void clearXPos() => clearField(2); + + @$pb.TagNumber(3) + $core.int get yPos => $_getIZ(2); + @$pb.TagNumber(3) + set yPos($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasYPos() => $_has(2); + @$pb.TagNumber(3) + void clearYPos() => clearField(3); +} + +class FloatResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FloatResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + FloatResponse._() : super(); + factory FloatResponse() => create(); + factory FloatResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory FloatResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FloatResponse clone() => FloatResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FloatResponse copyWith(void Function(FloatResponse) updates) => super.copyWith((message) => updates(message as FloatResponse)) as FloatResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FloatResponse create() => FloatResponse._(); + FloatResponse createEmptyInstance() => create(); + static $pb.PbList<FloatResponse> createRepeated() => $pb.PbList<FloatResponse>(); + @$core.pragma('dart2js:noInline') + static FloatResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FloatResponse>(create); + static FloatResponse? _defaultInstance; +} + +class AppStateRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppStateRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + AppStateRequest._() : super(); + factory AppStateRequest() => create(); + factory AppStateRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppStateRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppStateRequest clone() => AppStateRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppStateRequest copyWith(void Function(AppStateRequest) updates) => super.copyWith((message) => updates(message as AppStateRequest)) as AppStateRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppStateRequest create() => AppStateRequest._(); + AppStateRequest createEmptyInstance() => create(); + static $pb.PbList<AppStateRequest> createRepeated() => $pb.PbList<AppStateRequest>(); + @$core.pragma('dart2js:noInline') + static AppStateRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppStateRequest>(create); + static AppStateRequest? _defaultInstance; +} + +class AppStateResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppStateResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..a<$core.int>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'state', $pb.PbFieldType.O3) + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..hasRequiredFields = false + ; + + AppStateResponse._() : super(); + factory AppStateResponse({ + $core.int? state, + $core.String? appId, + }) { + final _result = create(); + if (state != null) { + _result.state = state; + } + if (appId != null) { + _result.appId = appId; + } + return _result; + } + factory AppStateResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppStateResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppStateResponse clone() => AppStateResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppStateResponse copyWith(void Function(AppStateResponse) updates) => super.copyWith((message) => updates(message as AppStateResponse)) as AppStateResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppStateResponse create() => AppStateResponse._(); + AppStateResponse createEmptyInstance() => create(); + static $pb.PbList<AppStateResponse> createRepeated() => $pb.PbList<AppStateResponse>(); + @$core.pragma('dart2js:noInline') + static AppStateResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppStateResponse>(create); + static AppStateResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.int get state => $_getIZ(0); + @$pb.TagNumber(1) + set state($core.int v) { $_setSignedInt32(0, v); } + @$pb.TagNumber(1) + $core.bool hasState() => $_has(0); + @$pb.TagNumber(1) + void clearState() => clearField(1); + + @$pb.TagNumber(2) + $core.String get appId => $_getSZ(1); + @$pb.TagNumber(2) + set appId($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasAppId() => $_has(1); + @$pb.TagNumber(2) + void clearAppId() => clearField(2); +} + +class OutputRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OutputRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + OutputRequest._() : super(); + factory OutputRequest() => create(); + factory OutputRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory OutputRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + OutputRequest clone() => OutputRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OutputRequest copyWith(void Function(OutputRequest) updates) => super.copyWith((message) => updates(message as OutputRequest)) as OutputRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static OutputRequest create() => OutputRequest._(); + OutputRequest createEmptyInstance() => create(); + static $pb.PbList<OutputRequest> createRepeated() => $pb.PbList<OutputRequest>(); + @$core.pragma('dart2js:noInline') + static OutputRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OutputRequest>(create); + static OutputRequest? _defaultInstance; +} + +class OutputResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'OutputResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'name') + ..hasRequiredFields = false + ; + + OutputResponse._() : super(); + factory OutputResponse({ + $core.String? name, + }) { + final _result = create(); + if (name != null) { + _result.name = name; + } + return _result; + } + factory OutputResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory OutputResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + OutputResponse clone() => OutputResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + OutputResponse copyWith(void Function(OutputResponse) updates) => super.copyWith((message) => updates(message as OutputResponse)) as OutputResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static OutputResponse create() => OutputResponse._(); + OutputResponse createEmptyInstance() => create(); + static $pb.PbList<OutputResponse> createRepeated() => $pb.PbList<OutputResponse>(); + @$core.pragma('dart2js:noInline') + static OutputResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OutputResponse>(create); + static OutputResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get name => $_getSZ(0); + @$pb.TagNumber(1) + set name($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasName() => $_has(0); + @$pb.TagNumber(1) + void clearName() => clearField(1); +} + +class ListOutputResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'ListOutputResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..pc<OutputResponse>(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'outputs', $pb.PbFieldType.PM, subBuilder: OutputResponse.create) + ..hasRequiredFields = false + ; + + ListOutputResponse._() : super(); + factory ListOutputResponse({ + $core.Iterable<OutputResponse>? outputs, + }) { + final _result = create(); + if (outputs != null) { + _result.outputs.addAll(outputs); + } + return _result; + } + factory ListOutputResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory ListOutputResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + ListOutputResponse clone() => ListOutputResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + ListOutputResponse copyWith(void Function(ListOutputResponse) updates) => super.copyWith((message) => updates(message as ListOutputResponse)) as ListOutputResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static ListOutputResponse create() => ListOutputResponse._(); + ListOutputResponse createEmptyInstance() => create(); + static $pb.PbList<ListOutputResponse> createRepeated() => $pb.PbList<ListOutputResponse>(); + @$core.pragma('dart2js:noInline') + static ListOutputResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListOutputResponse>(create); + static ListOutputResponse? _defaultInstance; + + @$pb.TagNumber(1) + $core.List<OutputResponse> get outputs => $_getList(0); +} + +class NormalRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'NormalRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..hasRequiredFields = false + ; + + NormalRequest._() : super(); + factory NormalRequest({ + $core.String? appId, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + return _result; + } + factory NormalRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory NormalRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + NormalRequest clone() => NormalRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NormalRequest copyWith(void Function(NormalRequest) updates) => super.copyWith((message) => updates(message as NormalRequest)) as NormalRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static NormalRequest create() => NormalRequest._(); + NormalRequest createEmptyInstance() => create(); + static $pb.PbList<NormalRequest> createRepeated() => $pb.PbList<NormalRequest>(); + @$core.pragma('dart2js:noInline') + static NormalRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<NormalRequest>(create); + static NormalRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); +} + +class NormalResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'NormalResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + NormalResponse._() : super(); + factory NormalResponse() => create(); + factory NormalResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory NormalResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + NormalResponse clone() => NormalResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + NormalResponse copyWith(void Function(NormalResponse) updates) => super.copyWith((message) => updates(message as NormalResponse)) as NormalResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static NormalResponse create() => NormalResponse._(); + NormalResponse createEmptyInstance() => create(); + static $pb.PbList<NormalResponse> createRepeated() => $pb.PbList<NormalResponse>(); + @$core.pragma('dart2js:noInline') + static NormalResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<NormalResponse>(create); + static NormalResponse? _defaultInstance; +} + +class FullscreenRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FullscreenRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..hasRequiredFields = false + ; + + FullscreenRequest._() : super(); + factory FullscreenRequest({ + $core.String? appId, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + return _result; + } + factory FullscreenRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory FullscreenRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FullscreenRequest clone() => FullscreenRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FullscreenRequest copyWith(void Function(FullscreenRequest) updates) => super.copyWith((message) => updates(message as FullscreenRequest)) as FullscreenRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FullscreenRequest create() => FullscreenRequest._(); + FullscreenRequest createEmptyInstance() => create(); + static $pb.PbList<FullscreenRequest> createRepeated() => $pb.PbList<FullscreenRequest>(); + @$core.pragma('dart2js:noInline') + static FullscreenRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FullscreenRequest>(create); + static FullscreenRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); +} + +class FullscreenResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'FullscreenResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + FullscreenResponse._() : super(); + factory FullscreenResponse() => create(); + factory FullscreenResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory FullscreenResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + FullscreenResponse clone() => FullscreenResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + FullscreenResponse copyWith(void Function(FullscreenResponse) updates) => super.copyWith((message) => updates(message as FullscreenResponse)) as FullscreenResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static FullscreenResponse create() => FullscreenResponse._(); + FullscreenResponse createEmptyInstance() => create(); + static $pb.PbList<FullscreenResponse> createRepeated() => $pb.PbList<FullscreenResponse>(); + @$core.pragma('dart2js:noInline') + static FullscreenResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FullscreenResponse>(create); + static FullscreenResponse? _defaultInstance; +} + +class AppOnOutputRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppOnOutputRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..aOS(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'output') + ..hasRequiredFields = false + ; + + AppOnOutputRequest._() : super(); + factory AppOnOutputRequest({ + $core.String? appId, + $core.String? output, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (output != null) { + _result.output = output; + } + return _result; + } + factory AppOnOutputRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppOnOutputRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppOnOutputRequest clone() => AppOnOutputRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppOnOutputRequest copyWith(void Function(AppOnOutputRequest) updates) => super.copyWith((message) => updates(message as AppOnOutputRequest)) as AppOnOutputRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppOnOutputRequest create() => AppOnOutputRequest._(); + AppOnOutputRequest createEmptyInstance() => create(); + static $pb.PbList<AppOnOutputRequest> createRepeated() => $pb.PbList<AppOnOutputRequest>(); + @$core.pragma('dart2js:noInline') + static AppOnOutputRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppOnOutputRequest>(create); + static AppOnOutputRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.String get output => $_getSZ(1); + @$pb.TagNumber(2) + set output($core.String v) { $_setString(1, v); } + @$pb.TagNumber(2) + $core.bool hasOutput() => $_has(1); + @$pb.TagNumber(2) + void clearOutput() => clearField(2); +} + +class AppOnOutputResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppOnOutputResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + AppOnOutputResponse._() : super(); + factory AppOnOutputResponse() => create(); + factory AppOnOutputResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppOnOutputResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppOnOutputResponse clone() => AppOnOutputResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppOnOutputResponse copyWith(void Function(AppOnOutputResponse) updates) => super.copyWith((message) => updates(message as AppOnOutputResponse)) as AppOnOutputResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppOnOutputResponse create() => AppOnOutputResponse._(); + AppOnOutputResponse createEmptyInstance() => create(); + static $pb.PbList<AppOnOutputResponse> createRepeated() => $pb.PbList<AppOnOutputResponse>(); + @$core.pragma('dart2js:noInline') + static AppOnOutputResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppOnOutputResponse>(create); + static AppOnOutputResponse? _defaultInstance; +} + +class AppPositionRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppPositionRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'x', $pb.PbFieldType.O3) + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'y', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + AppPositionRequest._() : super(); + factory AppPositionRequest({ + $core.String? appId, + $core.int? x, + $core.int? y, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (x != null) { + _result.x = x; + } + if (y != null) { + _result.y = y; + } + return _result; + } + factory AppPositionRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppPositionRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppPositionRequest clone() => AppPositionRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppPositionRequest copyWith(void Function(AppPositionRequest) updates) => super.copyWith((message) => updates(message as AppPositionRequest)) as AppPositionRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppPositionRequest create() => AppPositionRequest._(); + AppPositionRequest createEmptyInstance() => create(); + static $pb.PbList<AppPositionRequest> createRepeated() => $pb.PbList<AppPositionRequest>(); + @$core.pragma('dart2js:noInline') + static AppPositionRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppPositionRequest>(create); + static AppPositionRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get x => $_getIZ(1); + @$pb.TagNumber(2) + set x($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasX() => $_has(1); + @$pb.TagNumber(2) + void clearX() => clearField(2); + + @$pb.TagNumber(3) + $core.int get y => $_getIZ(2); + @$pb.TagNumber(3) + set y($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasY() => $_has(2); + @$pb.TagNumber(3) + void clearY() => clearField(3); +} + +class AppPositionResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppPositionResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + AppPositionResponse._() : super(); + factory AppPositionResponse() => create(); + factory AppPositionResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppPositionResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppPositionResponse clone() => AppPositionResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppPositionResponse copyWith(void Function(AppPositionResponse) updates) => super.copyWith((message) => updates(message as AppPositionResponse)) as AppPositionResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppPositionResponse create() => AppPositionResponse._(); + AppPositionResponse createEmptyInstance() => create(); + static $pb.PbList<AppPositionResponse> createRepeated() => $pb.PbList<AppPositionResponse>(); + @$core.pragma('dart2js:noInline') + static AppPositionResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppPositionResponse>(create); + static AppPositionResponse? _defaultInstance; +} + +class AppScaleRequest extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppScaleRequest', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..aOS(1, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'appId') + ..a<$core.int>(2, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'width', $pb.PbFieldType.O3) + ..a<$core.int>(3, const $core.bool.fromEnvironment('protobuf.omit_field_names') ? '' : 'height', $pb.PbFieldType.O3) + ..hasRequiredFields = false + ; + + AppScaleRequest._() : super(); + factory AppScaleRequest({ + $core.String? appId, + $core.int? width, + $core.int? height, + }) { + final _result = create(); + if (appId != null) { + _result.appId = appId; + } + if (width != null) { + _result.width = width; + } + if (height != null) { + _result.height = height; + } + return _result; + } + factory AppScaleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppScaleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppScaleRequest clone() => AppScaleRequest()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppScaleRequest copyWith(void Function(AppScaleRequest) updates) => super.copyWith((message) => updates(message as AppScaleRequest)) as AppScaleRequest; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppScaleRequest create() => AppScaleRequest._(); + AppScaleRequest createEmptyInstance() => create(); + static $pb.PbList<AppScaleRequest> createRepeated() => $pb.PbList<AppScaleRequest>(); + @$core.pragma('dart2js:noInline') + static AppScaleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppScaleRequest>(create); + static AppScaleRequest? _defaultInstance; + + @$pb.TagNumber(1) + $core.String get appId => $_getSZ(0); + @$pb.TagNumber(1) + set appId($core.String v) { $_setString(0, v); } + @$pb.TagNumber(1) + $core.bool hasAppId() => $_has(0); + @$pb.TagNumber(1) + void clearAppId() => clearField(1); + + @$pb.TagNumber(2) + $core.int get width => $_getIZ(1); + @$pb.TagNumber(2) + set width($core.int v) { $_setSignedInt32(1, v); } + @$pb.TagNumber(2) + $core.bool hasWidth() => $_has(1); + @$pb.TagNumber(2) + void clearWidth() => clearField(2); + + @$pb.TagNumber(3) + $core.int get height => $_getIZ(2); + @$pb.TagNumber(3) + set height($core.int v) { $_setSignedInt32(2, v); } + @$pb.TagNumber(3) + $core.bool hasHeight() => $_has(2); + @$pb.TagNumber(3) + void clearHeight() => clearField(3); +} + +class AppScaleResponse extends $pb.GeneratedMessage { + static final $pb.BuilderInfo _i = $pb.BuilderInfo(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'AppScaleResponse', package: const $pb.PackageName(const $core.bool.fromEnvironment('protobuf.omit_message_names') ? '' : 'agl_shell_ipc'), createEmptyInstance: create) + ..hasRequiredFields = false + ; + + AppScaleResponse._() : super(); + factory AppScaleResponse() => create(); + factory AppScaleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r); + factory AppScaleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.deepCopy] instead. ' + 'Will be removed in next major version') + AppScaleResponse clone() => AppScaleResponse()..mergeFromMessage(this); + @$core.Deprecated( + 'Using this can add significant overhead to your binary. ' + 'Use [GeneratedMessageGenericExtensions.rebuild] instead. ' + 'Will be removed in next major version') + AppScaleResponse copyWith(void Function(AppScaleResponse) updates) => super.copyWith((message) => updates(message as AppScaleResponse)) as AppScaleResponse; // ignore: deprecated_member_use + $pb.BuilderInfo get info_ => _i; + @$core.pragma('dart2js:noInline') + static AppScaleResponse create() => AppScaleResponse._(); + AppScaleResponse createEmptyInstance() => create(); + static $pb.PbList<AppScaleResponse> createRepeated() => $pb.PbList<AppScaleResponse>(); + @$core.pragma('dart2js:noInline') + static AppScaleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<AppScaleResponse>(create); + static AppScaleResponse? _defaultInstance; +} + diff --git a/lib/generated/agl_shell.pbenum.dart b/lib/generated/agl_shell.pbenum.dart new file mode 100644 index 0000000..ad859ee --- /dev/null +++ b/lib/generated/agl_shell.pbenum.dart @@ -0,0 +1,7 @@ +/// +// Generated code. Do not modify. +// source: agl_shell.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 + diff --git a/lib/generated/agl_shell.pbgrpc.dart b/lib/generated/agl_shell.pbgrpc.dart new file mode 100644 index 0000000..17287dd --- /dev/null +++ b/lib/generated/agl_shell.pbgrpc.dart @@ -0,0 +1,319 @@ +/// +// Generated code. Do not modify. +// source: agl_shell.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 'agl_shell.pb.dart' as $0; +export 'agl_shell.pb.dart'; + +class AglShellManagerServiceClient extends $grpc.Client { + static final _$activateApp = + $grpc.ClientMethod<$0.ActivateRequest, $0.ActivateResponse>( + '/agl_shell_ipc.AglShellManagerService/ActivateApp', + ($0.ActivateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.ActivateResponse.fromBuffer(value)); + static final _$deactivateApp = + $grpc.ClientMethod<$0.DeactivateRequest, $0.DeactivateResponse>( + '/agl_shell_ipc.AglShellManagerService/DeactivateApp', + ($0.DeactivateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.DeactivateResponse.fromBuffer(value)); + static final _$setAppSplit = + $grpc.ClientMethod<$0.SplitRequest, $0.SplitResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppSplit', + ($0.SplitRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.SplitResponse.fromBuffer(value)); + static final _$setAppFloat = + $grpc.ClientMethod<$0.FloatRequest, $0.FloatResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppFloat', + ($0.FloatRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.FloatResponse.fromBuffer(value)); + static final _$setAppFullscreen = + $grpc.ClientMethod<$0.FullscreenRequest, $0.FullscreenResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppFullscreen', + ($0.FullscreenRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.FullscreenResponse.fromBuffer(value)); + static final _$appStatusState = + $grpc.ClientMethod<$0.AppStateRequest, $0.AppStateResponse>( + '/agl_shell_ipc.AglShellManagerService/AppStatusState', + ($0.AppStateRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.AppStateResponse.fromBuffer(value)); + static final _$getOutputs = + $grpc.ClientMethod<$0.OutputRequest, $0.ListOutputResponse>( + '/agl_shell_ipc.AglShellManagerService/GetOutputs', + ($0.OutputRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.ListOutputResponse.fromBuffer(value)); + static final _$setAppNormal = + $grpc.ClientMethod<$0.NormalRequest, $0.NormalResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppNormal', + ($0.NormalRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => $0.NormalResponse.fromBuffer(value)); + static final _$setAppOnOutput = + $grpc.ClientMethod<$0.AppOnOutputRequest, $0.AppOnOutputResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppOnOutput', + ($0.AppOnOutputRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.AppOnOutputResponse.fromBuffer(value)); + static final _$setAppPosition = + $grpc.ClientMethod<$0.AppPositionRequest, $0.AppPositionResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppPosition', + ($0.AppPositionRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.AppPositionResponse.fromBuffer(value)); + static final _$setAppScale = + $grpc.ClientMethod<$0.AppScaleRequest, $0.AppScaleResponse>( + '/agl_shell_ipc.AglShellManagerService/SetAppScale', + ($0.AppScaleRequest value) => value.writeToBuffer(), + ($core.List<$core.int> value) => + $0.AppScaleResponse.fromBuffer(value)); + + AglShellManagerServiceClient($grpc.ClientChannel channel, + {$grpc.CallOptions? options, + $core.Iterable<$grpc.ClientInterceptor>? interceptors}) + : super(channel, options: options, interceptors: interceptors); + + $grpc.ResponseFuture<$0.ActivateResponse> activateApp( + $0.ActivateRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$activateApp, request, options: options); + } + + $grpc.ResponseFuture<$0.DeactivateResponse> deactivateApp( + $0.DeactivateRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$deactivateApp, request, options: options); + } + + $grpc.ResponseFuture<$0.SplitResponse> setAppSplit($0.SplitRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppSplit, request, options: options); + } + + $grpc.ResponseFuture<$0.FloatResponse> setAppFloat($0.FloatRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppFloat, request, options: options); + } + + $grpc.ResponseFuture<$0.FullscreenResponse> setAppFullscreen( + $0.FullscreenRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppFullscreen, request, options: options); + } + + $grpc.ResponseStream<$0.AppStateResponse> appStatusState( + $0.AppStateRequest request, + {$grpc.CallOptions? options}) { + return $createStreamingCall( + _$appStatusState, $async.Stream.fromIterable([request]), + options: options); + } + + $grpc.ResponseFuture<$0.ListOutputResponse> getOutputs( + $0.OutputRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$getOutputs, request, options: options); + } + + $grpc.ResponseFuture<$0.NormalResponse> setAppNormal($0.NormalRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppNormal, request, options: options); + } + + $grpc.ResponseFuture<$0.AppOnOutputResponse> setAppOnOutput( + $0.AppOnOutputRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppOnOutput, request, options: options); + } + + $grpc.ResponseFuture<$0.AppPositionResponse> setAppPosition( + $0.AppPositionRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppPosition, request, options: options); + } + + $grpc.ResponseFuture<$0.AppScaleResponse> setAppScale( + $0.AppScaleRequest request, + {$grpc.CallOptions? options}) { + return $createUnaryCall(_$setAppScale, request, options: options); + } +} + +abstract class AglShellManagerServiceBase extends $grpc.Service { + $core.String get $name => 'agl_shell_ipc.AglShellManagerService'; + + AglShellManagerServiceBase() { + $addMethod($grpc.ServiceMethod<$0.ActivateRequest, $0.ActivateResponse>( + 'ActivateApp', + activateApp_Pre, + false, + false, + ($core.List<$core.int> value) => $0.ActivateRequest.fromBuffer(value), + ($0.ActivateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.DeactivateRequest, $0.DeactivateResponse>( + 'DeactivateApp', + deactivateApp_Pre, + false, + false, + ($core.List<$core.int> value) => $0.DeactivateRequest.fromBuffer(value), + ($0.DeactivateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.SplitRequest, $0.SplitResponse>( + 'SetAppSplit', + setAppSplit_Pre, + false, + false, + ($core.List<$core.int> value) => $0.SplitRequest.fromBuffer(value), + ($0.SplitResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.FloatRequest, $0.FloatResponse>( + 'SetAppFloat', + setAppFloat_Pre, + false, + false, + ($core.List<$core.int> value) => $0.FloatRequest.fromBuffer(value), + ($0.FloatResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.FullscreenRequest, $0.FullscreenResponse>( + 'SetAppFullscreen', + setAppFullscreen_Pre, + false, + false, + ($core.List<$core.int> value) => $0.FullscreenRequest.fromBuffer(value), + ($0.FullscreenResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.AppStateRequest, $0.AppStateResponse>( + 'AppStatusState', + appStatusState_Pre, + false, + true, + ($core.List<$core.int> value) => $0.AppStateRequest.fromBuffer(value), + ($0.AppStateResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.OutputRequest, $0.ListOutputResponse>( + 'GetOutputs', + getOutputs_Pre, + false, + false, + ($core.List<$core.int> value) => $0.OutputRequest.fromBuffer(value), + ($0.ListOutputResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.NormalRequest, $0.NormalResponse>( + 'SetAppNormal', + setAppNormal_Pre, + false, + false, + ($core.List<$core.int> value) => $0.NormalRequest.fromBuffer(value), + ($0.NormalResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$0.AppOnOutputRequest, $0.AppOnOutputResponse>( + 'SetAppOnOutput', + setAppOnOutput_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.AppOnOutputRequest.fromBuffer(value), + ($0.AppOnOutputResponse value) => value.writeToBuffer())); + $addMethod( + $grpc.ServiceMethod<$0.AppPositionRequest, $0.AppPositionResponse>( + 'SetAppPosition', + setAppPosition_Pre, + false, + false, + ($core.List<$core.int> value) => + $0.AppPositionRequest.fromBuffer(value), + ($0.AppPositionResponse value) => value.writeToBuffer())); + $addMethod($grpc.ServiceMethod<$0.AppScaleRequest, $0.AppScaleResponse>( + 'SetAppScale', + setAppScale_Pre, + false, + false, + ($core.List<$core.int> value) => $0.AppScaleRequest.fromBuffer(value), + ($0.AppScaleResponse value) => value.writeToBuffer())); + } + + $async.Future<$0.ActivateResponse> activateApp_Pre( + $grpc.ServiceCall call, $async.Future<$0.ActivateRequest> request) async { + return activateApp(call, await request); + } + + $async.Future<$0.DeactivateResponse> deactivateApp_Pre($grpc.ServiceCall call, + $async.Future<$0.DeactivateRequest> request) async { + return deactivateApp(call, await request); + } + + $async.Future<$0.SplitResponse> setAppSplit_Pre( + $grpc.ServiceCall call, $async.Future<$0.SplitRequest> request) async { + return setAppSplit(call, await request); + } + + $async.Future<$0.FloatResponse> setAppFloat_Pre( + $grpc.ServiceCall call, $async.Future<$0.FloatRequest> request) async { + return setAppFloat(call, await request); + } + + $async.Future<$0.FullscreenResponse> setAppFullscreen_Pre( + $grpc.ServiceCall call, + $async.Future<$0.FullscreenRequest> request) async { + return setAppFullscreen(call, await request); + } + + $async.Stream<$0.AppStateResponse> appStatusState_Pre($grpc.ServiceCall call, + $async.Future<$0.AppStateRequest> request) async* { + yield* appStatusState(call, await request); + } + + $async.Future<$0.ListOutputResponse> getOutputs_Pre( + $grpc.ServiceCall call, $async.Future<$0.OutputRequest> request) async { + return getOutputs(call, await request); + } + + $async.Future<$0.NormalResponse> setAppNormal_Pre( + $grpc.ServiceCall call, $async.Future<$0.NormalRequest> request) async { + return setAppNormal(call, await request); + } + + $async.Future<$0.AppOnOutputResponse> setAppOnOutput_Pre( + $grpc.ServiceCall call, + $async.Future<$0.AppOnOutputRequest> request) async { + return setAppOnOutput(call, await request); + } + + $async.Future<$0.AppPositionResponse> setAppPosition_Pre( + $grpc.ServiceCall call, + $async.Future<$0.AppPositionRequest> request) async { + return setAppPosition(call, await request); + } + + $async.Future<$0.AppScaleResponse> setAppScale_Pre( + $grpc.ServiceCall call, $async.Future<$0.AppScaleRequest> request) async { + return setAppScale(call, await request); + } + + $async.Future<$0.ActivateResponse> activateApp( + $grpc.ServiceCall call, $0.ActivateRequest request); + $async.Future<$0.DeactivateResponse> deactivateApp( + $grpc.ServiceCall call, $0.DeactivateRequest request); + $async.Future<$0.SplitResponse> setAppSplit( + $grpc.ServiceCall call, $0.SplitRequest request); + $async.Future<$0.FloatResponse> setAppFloat( + $grpc.ServiceCall call, $0.FloatRequest request); + $async.Future<$0.FullscreenResponse> setAppFullscreen( + $grpc.ServiceCall call, $0.FullscreenRequest request); + $async.Stream<$0.AppStateResponse> appStatusState( + $grpc.ServiceCall call, $0.AppStateRequest request); + $async.Future<$0.ListOutputResponse> getOutputs( + $grpc.ServiceCall call, $0.OutputRequest request); + $async.Future<$0.NormalResponse> setAppNormal( + $grpc.ServiceCall call, $0.NormalRequest request); + $async.Future<$0.AppOnOutputResponse> setAppOnOutput( + $grpc.ServiceCall call, $0.AppOnOutputRequest request); + $async.Future<$0.AppPositionResponse> setAppPosition( + $grpc.ServiceCall call, $0.AppPositionRequest request); + $async.Future<$0.AppScaleResponse> setAppScale( + $grpc.ServiceCall call, $0.AppScaleRequest request); +} diff --git a/lib/generated/agl_shell.pbjson.dart b/lib/generated/agl_shell.pbjson.dart new file mode 100644 index 0000000..63f2e27 --- /dev/null +++ b/lib/generated/agl_shell.pbjson.dart @@ -0,0 +1,217 @@ +/// +// Generated code. Do not modify. +// source: agl_shell.proto +// +// @dart = 2.12 +// ignore_for_file: annotate_overrides,camel_case_types,constant_identifier_names,deprecated_member_use_from_same_package,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:core' as $core; +import 'dart:convert' as $convert; +import 'dart:typed_data' as $typed_data; +@$core.Deprecated('Use activateRequestDescriptor instead') +const ActivateRequest$json = const { + '1': 'ActivateRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'output_name', '3': 2, '4': 1, '5': 9, '10': 'outputName'}, + ], +}; + +/// Descriptor for `ActivateRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List activateRequestDescriptor = $convert.base64Decode('Cg9BY3RpdmF0ZVJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBIfCgtvdXRwdXRfbmFtZRgCIAEoCVIKb3V0cHV0TmFtZQ=='); +@$core.Deprecated('Use activateResponseDescriptor instead') +const ActivateResponse$json = const { + '1': 'ActivateResponse', +}; + +/// Descriptor for `ActivateResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List activateResponseDescriptor = $convert.base64Decode('ChBBY3RpdmF0ZVJlc3BvbnNl'); +@$core.Deprecated('Use deactivateRequestDescriptor instead') +const DeactivateRequest$json = const { + '1': 'DeactivateRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + ], +}; + +/// Descriptor for `DeactivateRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deactivateRequestDescriptor = $convert.base64Decode('ChFEZWFjdGl2YXRlUmVxdWVzdBIVCgZhcHBfaWQYASABKAlSBWFwcElk'); +@$core.Deprecated('Use deactivateResponseDescriptor instead') +const DeactivateResponse$json = const { + '1': 'DeactivateResponse', +}; + +/// Descriptor for `DeactivateResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List deactivateResponseDescriptor = $convert.base64Decode('ChJEZWFjdGl2YXRlUmVzcG9uc2U='); +@$core.Deprecated('Use splitRequestDescriptor instead') +const SplitRequest$json = const { + '1': 'SplitRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'tile_orientation', '3': 2, '4': 1, '5': 5, '10': 'tileOrientation'}, + ], +}; + +/// Descriptor for `SplitRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List splitRequestDescriptor = $convert.base64Decode('CgxTcGxpdFJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBIpChB0aWxlX29yaWVudGF0aW9uGAIgASgFUg90aWxlT3JpZW50YXRpb24='); +@$core.Deprecated('Use splitResponseDescriptor instead') +const SplitResponse$json = const { + '1': 'SplitResponse', +}; + +/// Descriptor for `SplitResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List splitResponseDescriptor = $convert.base64Decode('Cg1TcGxpdFJlc3BvbnNl'); +@$core.Deprecated('Use floatRequestDescriptor instead') +const FloatRequest$json = const { + '1': 'FloatRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'x_pos', '3': 2, '4': 1, '5': 5, '10': 'xPos'}, + const {'1': 'y_pos', '3': 3, '4': 1, '5': 5, '10': 'yPos'}, + ], +}; + +/// Descriptor for `FloatRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List floatRequestDescriptor = $convert.base64Decode('CgxGbG9hdFJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBITCgV4X3BvcxgCIAEoBVIEeFBvcxITCgV5X3BvcxgDIAEoBVIEeVBvcw=='); +@$core.Deprecated('Use floatResponseDescriptor instead') +const FloatResponse$json = const { + '1': 'FloatResponse', +}; + +/// Descriptor for `FloatResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List floatResponseDescriptor = $convert.base64Decode('Cg1GbG9hdFJlc3BvbnNl'); +@$core.Deprecated('Use appStateRequestDescriptor instead') +const AppStateRequest$json = const { + '1': 'AppStateRequest', +}; + +/// Descriptor for `AppStateRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appStateRequestDescriptor = $convert.base64Decode('Cg9BcHBTdGF0ZVJlcXVlc3Q='); +@$core.Deprecated('Use appStateResponseDescriptor instead') +const AppStateResponse$json = const { + '1': 'AppStateResponse', + '2': const [ + const {'1': 'state', '3': 1, '4': 1, '5': 5, '10': 'state'}, + const {'1': 'app_id', '3': 2, '4': 1, '5': 9, '10': 'appId'}, + ], +}; + +/// Descriptor for `AppStateResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appStateResponseDescriptor = $convert.base64Decode('ChBBcHBTdGF0ZVJlc3BvbnNlEhQKBXN0YXRlGAEgASgFUgVzdGF0ZRIVCgZhcHBfaWQYAiABKAlSBWFwcElk'); +@$core.Deprecated('Use outputRequestDescriptor instead') +const OutputRequest$json = const { + '1': 'OutputRequest', +}; + +/// Descriptor for `OutputRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List outputRequestDescriptor = $convert.base64Decode('Cg1PdXRwdXRSZXF1ZXN0'); +@$core.Deprecated('Use outputResponseDescriptor instead') +const OutputResponse$json = const { + '1': 'OutputResponse', + '2': const [ + const {'1': 'name', '3': 1, '4': 1, '5': 9, '10': 'name'}, + ], +}; + +/// Descriptor for `OutputResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List outputResponseDescriptor = $convert.base64Decode('Cg5PdXRwdXRSZXNwb25zZRISCgRuYW1lGAEgASgJUgRuYW1l'); +@$core.Deprecated('Use listOutputResponseDescriptor instead') +const ListOutputResponse$json = const { + '1': 'ListOutputResponse', + '2': const [ + const {'1': 'outputs', '3': 1, '4': 3, '5': 11, '6': '.agl_shell_ipc.OutputResponse', '10': 'outputs'}, + ], +}; + +/// Descriptor for `ListOutputResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List listOutputResponseDescriptor = $convert.base64Decode('ChJMaXN0T3V0cHV0UmVzcG9uc2USNwoHb3V0cHV0cxgBIAMoCzIdLmFnbF9zaGVsbF9pcGMuT3V0cHV0UmVzcG9uc2VSB291dHB1dHM='); +@$core.Deprecated('Use normalRequestDescriptor instead') +const NormalRequest$json = const { + '1': 'NormalRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + ], +}; + +/// Descriptor for `NormalRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List normalRequestDescriptor = $convert.base64Decode('Cg1Ob3JtYWxSZXF1ZXN0EhUKBmFwcF9pZBgBIAEoCVIFYXBwSWQ='); +@$core.Deprecated('Use normalResponseDescriptor instead') +const NormalResponse$json = const { + '1': 'NormalResponse', +}; + +/// Descriptor for `NormalResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List normalResponseDescriptor = $convert.base64Decode('Cg5Ob3JtYWxSZXNwb25zZQ=='); +@$core.Deprecated('Use fullscreenRequestDescriptor instead') +const FullscreenRequest$json = const { + '1': 'FullscreenRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + ], +}; + +/// Descriptor for `FullscreenRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fullscreenRequestDescriptor = $convert.base64Decode('ChFGdWxsc2NyZWVuUmVxdWVzdBIVCgZhcHBfaWQYASABKAlSBWFwcElk'); +@$core.Deprecated('Use fullscreenResponseDescriptor instead') +const FullscreenResponse$json = const { + '1': 'FullscreenResponse', +}; + +/// Descriptor for `FullscreenResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List fullscreenResponseDescriptor = $convert.base64Decode('ChJGdWxsc2NyZWVuUmVzcG9uc2U='); +@$core.Deprecated('Use appOnOutputRequestDescriptor instead') +const AppOnOutputRequest$json = const { + '1': 'AppOnOutputRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'output', '3': 2, '4': 1, '5': 9, '10': 'output'}, + ], +}; + +/// Descriptor for `AppOnOutputRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appOnOutputRequestDescriptor = $convert.base64Decode('ChJBcHBPbk91dHB1dFJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBIWCgZvdXRwdXQYAiABKAlSBm91dHB1dA=='); +@$core.Deprecated('Use appOnOutputResponseDescriptor instead') +const AppOnOutputResponse$json = const { + '1': 'AppOnOutputResponse', +}; + +/// Descriptor for `AppOnOutputResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appOnOutputResponseDescriptor = $convert.base64Decode('ChNBcHBPbk91dHB1dFJlc3BvbnNl'); +@$core.Deprecated('Use appPositionRequestDescriptor instead') +const AppPositionRequest$json = const { + '1': 'AppPositionRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'x', '3': 2, '4': 1, '5': 5, '10': 'x'}, + const {'1': 'y', '3': 3, '4': 1, '5': 5, '10': 'y'}, + ], +}; + +/// Descriptor for `AppPositionRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appPositionRequestDescriptor = $convert.base64Decode('ChJBcHBQb3NpdGlvblJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBIMCgF4GAIgASgFUgF4EgwKAXkYAyABKAVSAXk='); +@$core.Deprecated('Use appPositionResponseDescriptor instead') +const AppPositionResponse$json = const { + '1': 'AppPositionResponse', +}; + +/// Descriptor for `AppPositionResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appPositionResponseDescriptor = $convert.base64Decode('ChNBcHBQb3NpdGlvblJlc3BvbnNl'); +@$core.Deprecated('Use appScaleRequestDescriptor instead') +const AppScaleRequest$json = const { + '1': 'AppScaleRequest', + '2': const [ + const {'1': 'app_id', '3': 1, '4': 1, '5': 9, '10': 'appId'}, + const {'1': 'width', '3': 2, '4': 1, '5': 5, '10': 'width'}, + const {'1': 'height', '3': 3, '4': 1, '5': 5, '10': 'height'}, + ], +}; + +/// Descriptor for `AppScaleRequest`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appScaleRequestDescriptor = $convert.base64Decode('Cg9BcHBTY2FsZVJlcXVlc3QSFQoGYXBwX2lkGAEgASgJUgVhcHBJZBIUCgV3aWR0aBgCIAEoBVIFd2lkdGgSFgoGaGVpZ2h0GAMgASgFUgZoZWlnaHQ='); +@$core.Deprecated('Use appScaleResponseDescriptor instead') +const AppScaleResponse$json = const { + '1': 'AppScaleResponse', +}; + +/// Descriptor for `AppScaleResponse`. Decode as a `google.protobuf.DescriptorProto`. +final $typed_data.Uint8List appScaleResponseDescriptor = $convert.base64Decode('ChBBcHBTY2FsZVJlc3BvbnNl'); diff --git a/lib/homescreen.dart b/lib/homescreen.dart index be9c7ca..6d7ce5f 100644 --- a/lib/homescreen.dart +++ b/lib/homescreen.dart @@ -4,6 +4,7 @@ import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:flutter_homescreen/config.dart'; import 'package:grpc/grpc.dart'; +import 'package:flutter_homescreen/generated/agl_shell.pbgrpc.dart'; import 'package:flutter_homescreen/generated/applauncher.pbgrpc.dart'; import 'package:flutter_homescreen/page_apps.dart'; import 'package:flutter_homescreen/widget_clock.dart'; @@ -24,14 +25,17 @@ class _HomescreenState extends ConsumerState<Homescreen> with TickerProviderStat int _selectedIndex = 0; int _previousIndex = 0; - late ClientChannel channel; - late AppLauncherClient stub; + late ClientChannel appLauncherChannel; + late AppLauncherClient appLauncher; List<String> apps_stack = []; - static const agl_shell_channel = MethodChannel('flutter/agl_shell'); + + late ClientChannel aglShellChannel; + late AglShellManagerServiceClient aglShell; + late VssClient vss; Future<List<AppInfo>> getAppList() async { - var response = await stub.listApplications(ListRequest()); + var response = await appLauncher.listApplications(ListRequest()); for (AppInfo info in response.apps) { debugPrint("Got app:"); debugPrint("$info"); @@ -53,12 +57,8 @@ class _HomescreenState extends ConsumerState<Homescreen> with TickerProviderStat } activateApp(String id) async { - try { - agl_shell_channel - .invokeMethod('activate_app', {'app_id': id, 'index': 0}); - } catch (e) { - print('Could not invoke flutter/agl_shell/activate_app: $e'); - } + var req = ActivateRequest(appId: id); + var response = aglShell.activateApp(req); addAppToStack(id); } @@ -73,7 +73,7 @@ class _HomescreenState extends ConsumerState<Homescreen> with TickerProviderStat handleAppStatusEvents() async { try { - var response = stub.getStatusEvents(StatusRequest()); + var response = appLauncher.getStatusEvents(StatusRequest()); await for (var event in response) { if (event.hasApp()) { AppStatus app_status = event.app; @@ -95,11 +95,18 @@ class _HomescreenState extends ConsumerState<Homescreen> with TickerProviderStat initState() { //debugPrint("_HomescreenState.initState!"); - channel = ClientChannel('localhost', + + aglShellChannel = ClientChannel('localhost', + port: 14005, + options: ChannelOptions(credentials: ChannelCredentials.insecure())); + + aglShell = AglShellManagerServiceClient(aglShellChannel); + + appLauncherChannel = ClientChannel('localhost', port: 50052, options: ChannelOptions(credentials: ChannelCredentials.insecure())); - stub = AppLauncherClient(channel); + appLauncher = AppLauncherClient(appLauncherChannel); handleAppStatusEvents(); @@ -110,7 +117,7 @@ class _HomescreenState extends ConsumerState<Homescreen> with TickerProviderStat } void startApp(String id) async { - await stub.startApplication(StartRequest(id: id)); + await appLauncher.startApplication(StartRequest(id: id)); } setNavigationIndex(int index) { diff --git a/protos/agl_shell.proto b/protos/agl_shell.proto new file mode 100644 index 0000000..c4f3dfe --- /dev/null +++ b/protos/agl_shell.proto @@ -0,0 +1,110 @@ +syntax = "proto3"; +// using empty Response suitable better for forward compat +//import "google/protobuf/empty.proto"; +package agl_shell_ipc; + +service AglShellManagerService { + rpc ActivateApp(ActivateRequest) returns (ActivateResponse) {} + rpc DeactivateApp(DeactivateRequest) returns (DeactivateResponse) {} + rpc SetAppSplit(SplitRequest) returns (SplitResponse) {} + rpc SetAppFloat(FloatRequest) returns (FloatResponse) {} + rpc SetAppFullscreen(FullscreenRequest) returns (FullscreenResponse) {} + rpc AppStatusState(AppStateRequest) returns (stream AppStateResponse) {} + rpc GetOutputs(OutputRequest) returns (ListOutputResponse) {} + rpc SetAppNormal(NormalRequest) returns (NormalResponse) {} + rpc SetAppOnOutput(AppOnOutputRequest) returns (AppOnOutputResponse) {} + rpc SetAppPosition(AppPositionRequest) returns (AppPositionResponse) {} + rpc SetAppScale(AppScaleRequest) returns (AppScaleResponse) {} +} + +message ActivateRequest { + string app_id = 1; + string output_name = 2; +} + +message ActivateResponse { +}; + + +message DeactivateRequest { + string app_id = 1; +} + +message DeactivateResponse { +} + +message SplitRequest { + string app_id = 1; + int32 tile_orientation = 2; +} + +message SplitResponse { +} + +message FloatRequest { + string app_id = 1; + int32 x_pos = 2; + int32 y_pos = 3; +} + +message FloatResponse { +} + +message AppStateRequest { +} + +message AppStateResponse { + int32 state = 1; + string app_id = 2; +} + +message OutputRequest { +}; + +message OutputResponse { + string name = 1; +}; + +message ListOutputResponse { + repeated OutputResponse outputs = 1; +}; + +message NormalRequest { + string app_id = 1; +}; + +message NormalResponse { +}; + +message FullscreenRequest { + string app_id = 1; +}; + +message FullscreenResponse { +}; + +message AppOnOutputRequest { + string app_id = 1; + string output = 2; +}; + +message AppOnOutputResponse { +}; + +message AppPositionRequest { + string app_id = 1; + int32 x = 2; + int32 y = 3; +}; + +message AppPositionResponse { +}; + +message AppScaleRequest { + string app_id = 1; + int32 width = 2; + int32 height = 3; +}; + +message AppScaleResponse { +}; |