Loading core/proto/android/companion/context_sync_message.proto 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * 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; } core/proto/android/companion/telecom.proto 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * 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; } Loading
core/proto/android/companion/context_sync_message.proto 0 → 100644 +32 −0 Original line number Diff line number Diff line /* * 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; }
core/proto/android/companion/telecom.proto 0 → 100644 +67 −0 Original line number Diff line number Diff line /* * 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; }