• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2023 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17syntax = "proto2";
18
19package com.google.android.wearable.connectivity;
20
21option java_multiple_files = true;
22
23enum MediatorType {
24    WEAR_BLUETOOTH_MEDIATOR = 0;
25    WEAR_CELLULAR_DATA_MEDIATOR = 1;
26    WEAR_CELLULAR_MEDIATOR = 2;
27    WEAR_WIFI_MEDIATOR = 3;
28    WEAR_WIFI_SCAN_MEDIATOR = 4;
29}
30
31enum MediatorAction {
32    ACTION_UNKNOWN = 0;
33    DISABLE_PNO_SCAN = 1;
34    ENABLE_PNO_SCAN = 2;
35    MOBILE_DATA_OFF = 3;
36    MOBILE_DATA_ON = 4;
37    PROXY_CONNECTED = 5;
38    PROXY_DISCONNECTED = 6;
39    RADIO_OFF = 7;
40    RADIO_ON = 8;
41    BT_DISCONNECT_UX_FINISHED = 9;
42}
43
44/**
45 * Keep sorted order in each block. Last enum num is 60
46 */
47enum TriggerEvent {
48    TRIGGER_EVENT_UNKNOWN = 0;
49    BEDTIME_MODE_UPDATE = 1;
50    CELL_ONLY_MODE_UPDATE = 2;
51    DISABLE_MEDIATOR_SETTING_UPDATE = 3;
52    MODE_MANAGER_UPDATE = 4;
53    ON_BOOT_COMPLETED = 5;
54
55    // WearWifiMediator & WearCellularMediator
56    ACTIVITY_MODE_UPDATE = 6;
57    CALL_STATE_CHANGED_EMERGENCY_ENDED = 7;
58    COMPANION_CONNECTION_CHANGED = 8;
59    DEVICE_ENABLE_CHANGED = 9;
60    DEVICE_IDLE_MODE_CHANGED = 10;
61    ON_USER_UNLOCKED = 11;
62    POWER_SAVE_MODE_CHANGED = 12;
63    PROXY_CONNECTED_UPDATE = 13;
64    THERMAL_EMERGENCY_MODE_UPDATE = 14;
65
66    // WearWifiMediator Only
67    CHARGING_STATE_CHANGE = 15;
68    ENABLE_WIFI_WHILE_CHARGING_SETTING = 16;
69    HARDWARE_LOW_POWER_MODE_CHANGE = 17;
70    IN_WIFI_SETTING_MENU = 18;
71    NEW_EMERGENCY_OUTGOING_CALL = 19;
72    NUM_CONFIGURED_NETWORK_UPDATE = 20;
73    NUM_UNMETERED_REQ_UPDATE = 21;
74    NUM_WIFI_REQ_UPDATE = 22;
75    WIFI_BACKOFF_CHANGE = 23;
76    WIFI_ON_WHEN_PROXY_DISCONNECTED_SETTING = 24;
77    WIFI_SETTING_CHANGE = 25;
78    WIFI_STATE_DISABLED = 26;
79    WIFI_STATE_ENABLED = 27;
80    WIFI_STATE_ENABLED_UNEXPECTED = 28;
81
82    // WearCellularMediator Only
83    CELL_AUTO_SETTING = 29;
84    CELL_ON_SETTING = 30;
85    CONNECTION_STATE_CHANGED_PDN_DISCONNECTED = 31;
86    EMERGENCY_CALLBACK_MODE_CHANGED = 32;
87    EMERGENCY_RADIO_ON_TIMEOUT = 33;
88    ESIM_PROFILE_ACTIVATION_SETTING = 34;
89    ESIM_TEST_MODE = 35;
90    HFP_CONNECTION_CHANGED = 36;
91    MOBILE_SIGNAL_DETECTOR_SETTING = 37;
92    NUM_CELLULAR_REQ_UPDATE = 38;
93    SIGNAL_STATE_CHANGED = 39;
94    SIM_STATE_CHANGED = 40;
95    SUBSCRIPTIONS_CHANGED = 41;
96    SUBSCRIPTION_PHONE_STATE_CHANGED = 42;
97    VOWIFI_STATE_UPDATE = 43;
98    WIFI_CONNECTED_UPDATE = 44;
99    WIFI_DISCONNECTED_UPDATE = 45;
100    WIFI_SIGNAL_STRENGTH_CHANGE = 46;
101
102    // WearCellularDataMediator Only
103    FORCE_CELLULAR_DATA_UPDATE = 47;
104    ON_CELLULAR_SIGNAL_CHANGED = 48;
105    SUBSCRIPTION_UPDATE = 49;
106    WIFI_CONNECTION_UPDATE = 50;
107
108    BATTERY_SAVER_MODE_UPDATE = 51;
109    NO_DATA_UPDATE = 52;
110    INTERACTIVE_MODE_UPDATE = 53;
111    AIRPLANE_MODE_UPDATE = 54;
112    POOR_SIGNAL_DETECTION_UPDATE = 55;
113    CONNECTIVITY_KEEP_DATA_ON_UPDATE = 56;
114    UI_TIMEOUT_NO_INTERACTION = 57;
115    UI_BT_DISCONNECT_INTENDED = 58;
116    UI_WAIT_FOR_BT_RECONNECT = 59;
117    UI_CANCELLED = 60;
118}
119
120/**
121 * Keep sorted order in each block. Last enum num is 52
122 */
123enum Reason {
124    REASON_UNKNOWN = 0;
125    OFF_ACTIVITY_MODE = 1;
126    OFF_BEDTIME_MODE_ENABLED = 2;
127    OFF_CELL_ONLY_MODE = 3;
128    OFF_MODE_MANAGER = 4;
129    OFF_THERMAL_EMERGENCY = 5;
130    OFF_USER_ABSENT = 6;
131    OFF_WIFI_CONNECTED = 7;
132    ON_CELL_ONLY_MODE = 8;
133    ON_TEST_DEFAULT_STATE = 9;
134
135    // WearWifiMediator & WearCellularMediator
136    OFF_DEVICE_DISABLED = 10;
137    OFF_DIRECTBOOT = 11;
138    OFF_POWER_SAVE = 12;
139    ON_EMERGENCY = 13;
140    ON_NETWORK_REQUEST = 14;
141    ON_PROXY_DISCONNECTED = 15;
142
143    // WearBluetoothMediator Only
144    OFF_TIME_ONLY_MODE = 16;
145    OFF_SETTINGS_PREFERENCE = 17;
146    ON_AUTO = 18;
147    ON_BOOT_AUTO = 19;
148    OFF_HFP_ENABLE = 20;
149    ON_HFP_ENABLE = 21;
150    ON_CONNECTED = 22;
151    ON_CONNECTED_NO_INTERNET = 23;
152    OFF_DISCONNECTED = 24;
153
154    // WearWifiMediator Only
155    OFF_HARDWARE_LOW_POWER = 25;
156    OFF_NO_CONFIGURED_NETWORKS = 26;
157    OFF_NO_REQUESTS = 27;
158    OFF_WAIT_FOR_BT_ON_BOOT = 28;
159    OFF_WIFI_BACKOFF = 29;
160    OFF_WIFI_SETTING_OFF = 30;
161    ON_CHARGING = 31;
162    ON_IN_WIFI_SETTINGS = 32;
163
164    // WearWifiScanMediator Only
165    NO_DISABLE_REASONS = 33;
166    MODE_MANAGER_REQUEST = 34;
167
168    // WearCellularMediator Only
169    OFF_BEDTIME_HFP = 35;
170    OFF_CELL_SETTING = 36;
171    OFF_ESIM_DEACTIVATED = 37;
172    OFF_INITIAL_BOOT = 38;
173    OFF_NO_SIGNAL = 39;
174    OFF_PROXY_CONNECTED = 40;
175    OFF_SIM_ABSENT = 41;
176    OFF_UNSTABLE_SIGNAL = 42;
177    OFF_VOWIFI_AVAILABLE = 43;
178    ON_ESIM_TEST_MODE = 44;
179    ON_NO_CELL_AUTO = 45;
180    ON_PHONE_CALL = 46;
181
182    // WearCellularDataMediator Only
183    OFF_FORCE_CELLULAR_DATA_OFF = 47;
184    ON_NO_DISABLE_REASONS = 48;
185    OFF_CELL_POOR_SIGNAL = 49;
186
187    OFF_NO_DATA_ENABLED = 50;
188    OFF_POOR_SIGNAL = 51;
189    ON_PEEK_SIGNAL = 52;
190}
191
192/**
193 * Keep sorted order in each block. Last enum num is 2
194 */
195enum SysproxyConnectionAction {
196    SYSPROXY_CONNECTION_ACTION_UNKNOWN = 0;
197    SYSPROXY_CONNECTED = 1;
198    SYSPROXY_DISCONNECTED = 2;
199}
200
201/**
202 * Keep sorted order in each block. Last enum num is 13
203 */
204enum SysproxyConnectionChangeReason {
205    SYSPROXY_CONNECTION_CHANGE_REASON_UNKNOWN = 0;
206
207    //startProxyShard
208    PROXY_ON_USER_UNLOCK = 1;
209    PROXY_ON_ACL_CONNECT = 2;
210    PROXY_ON_COMPANION_FOUND = 3;
211    PROXY_ON_DATA_SETTING_ENABLED = 4;
212    PROXY_ON_PSM_UPDATE = 5;
213    PROXY_ON_V2_PARAMS_CHANGED = 6;
214    PROXY_ON_UUID_LIST_CHANGED = 7;
215
216    //stopProxyShard
217    PROXY_OFF_ACL_DISCONNECT = 8;
218    PROXY_OFF_BLUETOOTH_ADAPTER_OFF = 9;
219    PROXY_OFF_NEW_COMPANION = 10;
220    PROXY_OFF_DATA_SETTING_ENABLED = 11 [deprecated=true]; // replaced with 13
221    PROXY_OFF_DEVICE_SETTING_DISABLED = 12;
222    PROXY_OFF_DATA_SETTING_DISABLED = 13;
223}
224
225/**
226 * Keep sorted order in each block. Last enum num is 2
227 */
228enum BluetoothConnectionChange {
229    BLUETOOTH_CONNECTION_CHANGE_UNKNOWN = 0;
230    ACL_CONNECT = 1;
231    ACL_DISCONNECT = 2;
232}
233