diff options
| author | 2023-01-18 00:26:52 +0000 | |
|---|---|---|
| committer | 2023-01-18 00:26:52 +0000 | |
| commit | 8f63bd1422e69e3aca199a69aaa6af7f3f825000 (patch) | |
| tree | f266c8b4b0e88bb774d9d21979ea66e5f44cadc0 | |
| parent | fc92ae312fd7fb6ed7a1bec6bbc545579dae877f (diff) | |
| parent | 64e9d047307544f83a5f38e0a873fc064b5b7997 (diff) | |
Merge "Add telecom protos for companion cross-device sync"
| -rw-r--r-- | core/proto/android/companion/context_sync_message.proto | 32 | ||||
| -rw-r--r-- | core/proto/android/companion/telecom.proto | 67 |
2 files changed, 99 insertions, 0 deletions
diff --git a/core/proto/android/companion/context_sync_message.proto b/core/proto/android/companion/context_sync_message.proto new file mode 100644 index 000000000000..18d25fa5a2e5 --- /dev/null +++ b/core/proto/android/companion/context_sync_message.proto @@ -0,0 +1,32 @@ +/* + * Copyright (C) 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +syntax = "proto3"; + +package android.companion; + +import "frameworks/base/core/proto/android/companion/telecom.proto"; + +option java_multiple_files = true; + +// Next index: 5 +message ContextSyncMessage { + int32 version = 1; + // Media data and invitations data omitted. + reserved 2, 3; + // The current telecom snapshot. + Telecom telecom = 4; +} diff --git a/core/proto/android/companion/telecom.proto b/core/proto/android/companion/telecom.proto new file mode 100644 index 000000000000..9ccadbf6eb2d --- /dev/null +++ b/core/proto/android/companion/telecom.proto @@ -0,0 +1,67 @@ +/* + * Copyright (C) 2022 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +syntax = "proto3"; + +package android.companion; + +option java_multiple_files = true; + +// Next index: 2 +message Telecom { + // Next index: 5 + message Call { + // UUID representing this call + int64 id = 1; + + message Origin { + // Caller's name and/or phone number; what a user would see displayed when receiving an + // incoming call on the local device + string caller_id = 1; + // Human-readable name of the app processing this call + string app_name = 2; + bytes app_icon = 3; + } + Origin origin = 2; + + enum Status { + UNKNOWN_STATUS = 0; + RINGING = 1; + ONGOING = 2; + ON_HOLD = 3; + RINGING_SILENCED = 4; + } + Status status = 3; + + enum Control { + UNKNOWN_CONTROL = 0; + ACCEPT = 1; + REJECT = 2; + SILENCE = 3; + MUTE = 4; + UNMUTE = 5; + END = 6; + PUT_ON_HOLD = 7; + TAKE_OFF_HOLD = 8; + REJECT_AND_BLOCK = 9; + IGNORE = 10; + } + repeated Control controls_available = 4; + } + + // The list of active calls. + repeated Call calls = 1; +} |