1/* 2 * Copyright 2018 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"; 18package android.bluetooth; 19 20option java_outer_classname = "BluetoothProtoEnums"; 21option java_multiple_files = true; 22 23// Bluetooth connection states. 24enum ConnectionStateEnum { 25 CONNECTION_STATE_DISCONNECTED = 0; 26 CONNECTION_STATE_CONNECTING = 1; 27 CONNECTION_STATE_CONNECTED = 2; 28 CONNECTION_STATE_DISCONNECTING = 3; 29} 30 31// Bluetooth Adapter Enable and Disable Reasons 32enum EnableDisableReasonEnum { 33 ENABLE_DISABLE_REASON_UNSPECIFIED = 0; 34 ENABLE_DISABLE_REASON_APPLICATION_REQUEST = 1; 35 ENABLE_DISABLE_REASON_AIRPLANE_MODE = 2; 36 ENABLE_DISABLE_REASON_DISALLOWED = 3; 37 ENABLE_DISABLE_REASON_RESTARTED = 4; 38 ENABLE_DISABLE_REASON_START_ERROR = 5; 39 ENABLE_DISABLE_REASON_SYSTEM_BOOT = 6; 40 ENABLE_DISABLE_REASON_CRASH = 7; 41 ENABLE_DISABLE_REASON_USER_SWITCH = 8; 42 ENABLE_DISABLE_REASON_RESTORE_USER_SETTING = 9; 43} 44