1/* 2 * Copyright (C) 2024 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.clockwork.setup; 20 21/** 22 * Indicates the thermal status of the watch 23 */ 24enum ThermalStatus { 25 THERMAL_STATUS_NONE = 0; 26 THERMAL_STATUS_LIGHT = 1; 27 THERMAL_STATUS_MODERATE = 2; 28 THERMAL_STATUS_SEVERE = 3; 29 THERMAL_STATUS_CRITICAL = 4; 30 THERMAL_STATUS_EMERGENCY = 5; 31 THERMAL_STATUS_SHUTDOWN = 6; 32} 33 34/** 35 * Indicates the tether configuration of the watch 36 */ 37enum TetherConfiguration { 38 TETHER_CONFIGURATION_UNKNOWN = 0; 39 TETHER_CONFIGURATION_STANDALONE = 1; 40 TETHER_CONFIGURATION_TETHERED = 2; 41 TETHER_CONFIGURATION_RESTRICTED = 3; 42} 43 44/** 45 * Indicates the wrist orientation set of the watch 46 */ 47enum WristOrientation { 48 WRIST_ORIENTATION_UNKNOWN = 0; 49 WRIST_ORIENTATION_LEFT_WRIST_ROTATION_0 = 1; 50 WRIST_ORIENTATION_LEFT_WRIST_ROTATION_180 = 2; 51 WRIST_ORIENTATION_RIGHT_WRIST_ROTATION_0 = 3; 52 WRIST_ORIENTATION_RIGHT_WRIST_ROTATION_180 = 4; 53} 54 55/** 56 * Indicates setupwizard application status 57 */ 58enum SetupWizardStatus { 59 SETUP_WIZARD_STATUS_NOT_COMPLETED = 0; 60 SETUP_WIZARD_STATUS_COMPLETED = 1; 61} 62 63 64/** 65 * Indicates how pairing started between watch and companion 66 */ 67enum PairingType { 68 PAIRING_TYPE_UNKNOWN = 0; 69 PAIRING_TYPE_FASTPAIR = 1; 70 PAIRING_TYPE_LOCALE = 2; 71 PAIRING_TYPE_REGULARPAIR = 3; 72} 73 74/** 75 * Indicates pairing status 76 */ 77enum PairingStatus { 78 PAIRING_STATUS_NOT_COMPLETED = 0; 79 PAIRING_STATUS_COMPLETED = 1; 80} 81 82/** 83 * Indicates companion OS type 84 */ 85enum CompanionOsType { 86 COMPANION_OS_TYPE_UNKNOWN = 0; 87 COMPANION_OS_TYPE_ANDROID = 1; 88 COMPANION_OS_TYPE_IOS = 2; 89} 90 91/** 92 * Indicates connection status between watch and companion 93 */ 94enum ConnectionStatus { 95 CONNECTION_STATUS_NOT_ESTABLISHED = 0; 96 CONNECTION_STATUS_ESTABLISHED = 1; 97} 98 99/** 100 * Indicates watch Checkin status 101 */ 102enum CheckinStatus { 103 CHECKIN_STATUS_NOT_COMPLETED = 0; 104 CHECKIN_STATUS_COMPLETED = 1; 105} 106 107/** 108 * Indicates the watch's role when exchanging messages with companion 109 */ 110enum MessageRole { 111 MESSAGE_ROLE_UNKNOWN = 0; 112 MESSAGE_ROLE_SENDER = 1; 113 MESSAGE_ROLE_RECEIVER = 2; 114} 115 116/** 117 * Indicates the status of the phone or the watch during the status 118 * exchange in setup 119 */ 120enum MessageStatus { 121 MESSAGE_STATUS_STATE_UNKNOWN = 0; 122 MESSAGE_STATUS_READY = 1; 123 MESSAGE_STATUS_COMPLETE_PENDING = 2; 124 MESSAGE_STATUS_COMPLETE = 3; 125 MESSAGE_STATUS_UPDATING = 4; 126 MESSAGE_STATUS_OOBE_DONE = 5; 127 MESSAGE_STATUS_READY_RESUMABLE_OOBE = 6; 128 MESSAGE_STATUS_START_RESUMABLE_OOBE = 7; 129 MESSAGE_STATUS_CRITICAL_PHASE_COMPLETE = 8; 130 MESSAGE_STATUS_EXITING_TO_WATCHFACE = 9; 131 MESSAGE_STATUS_WATCH_FAILURE = 10; 132 MESSAGE_STATUS_PHONE_FAILURE = 11; 133} 134 135/** 136 * Indicates heartbeat message type when resumable OOBE is enabled 137 */ 138enum HeartbeatMessageType { 139 HEARTBEAT_MESSAGE_TYPE_UNKNOWN = 0; 140 HEARTBEAT_MESSAGE_TYPE_REQUEST = 1; 141 HEARTBEAT_MESSAGE_TYPE_RESPONSE = 2; 142 HEARTBEAT_MESSAGE_TYPE_UNSUPPORTED_COMMAND= 3; 143} 144 145/** 146 * Indicates end statuses of FRP 147 */ 148enum FrpStatus { 149 FRP_STATUS_UNKNOWN = 0; 150 FRP_STATUS_PIN_PATTERN_SUCCESS = 1; 151 FRP_STATUS_PIN_PATTERN_MISMATCH_FAILURE = 2; 152 FRP_STATUS_PIN_PATTERN_UNKNOWN_ERROR = 3; 153 FRP_STATUS_ACCOUNT_SUCCESS = 4; 154 FRP_STATUS_ACCOUNT_MISMATCH_FAILURE = 5; 155 FRP_STATUS_MEDIATOR_SERVICE_NULL_ERROR = 6; 156 FRP_STATUS_UNLOCK_FRP_FOR_WEAR_ERROR = 7; 157} 158 159/** 160 * Indicates system update progress status 161 */ 162enum SystemUpdateProgressStatus { 163 SYSTEM_UPDATE_PROGRESS_STATUS_NOT_COMPLETED = 0; 164 SYSTEM_UPDATE_PROGRESS_STATUS_COMPLETED = 1; 165} 166 167/** 168 * Indicates how phone switching was initiated 169 */ 170enum PhoneSwitchingRequestSource { 171 PHONE_SWITCHING_REQUEST_SOURCE_NONE = 0; 172 PHONE_SWITCHING_REQUEST_SOURCE_WATCH = 1; 173 PHONE_SWITCHING_REQUEST_SOURCE_COMPANION_USER_CONFIRMATION = 2; 174 PHONE_SWITCHING_REQUEST_SOURCE_COMPANION = 3; 175} 176 177/** 178 * Indicates phone switching status throughout the flow 179 */ 180enum PhoneSwitchingStatus { 181 PHONE_SWITCHING_STATUS_NOT_STARTED = 0; 182 PHONE_SWITCHING_STATUS_STARTED = 1; 183 PHONE_SWITCHING_STATUS_SUCCESS = 2; 184 PHONE_SWITCHING_STATUS_CANCELLED = 3; 185 PHONE_SWITCHING_STATUS_FAILED = 4; 186 PHONE_SWITCHING_STATUS_IN_PROGRESS_ADVERTISING = 5; 187 PHONE_SWITCHING_STATUS_IN_PROGRESS_BONDED = 6; 188 PHONE_SWITCHING_STATUS_IN_PROGRESS_PHONE_COMPLETE = 7; 189 PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION = 8; 190 PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_FAILED = 9; 191 PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_CANCELLED = 10; 192 PHONE_SWITCHING_STATUS_IN_PROGRESS_MIGRATION_SUCCESS = 11; 193 PHONE_SWITCHING_STATUS_ACCOUNTS_MATCHED = 12; 194} 195 196/** 197 * Indicates companion OS type change at the end of phone switching 198 */ 199enum PhoneSwitchingCompanionOsTypeChange { 200 PHONE_SWITCHING_COMPANION_OS_TYPE_CHANGE_UNKNOWN = 0; 201 PHONE_SWITCHING_COMPANION_OS_TYPE_CHANGE_ANDROID_TO_ANDROID = 1; 202 PHONE_SWITCHING_COMPANION_OS_TYPE_CHANGE_IOS_TO_ANDROID = 2; 203 PHONE_SWITCHING_COMPANION_OS_TYPE_CHANGE_IOS_TO_IOS = 3; 204}