• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.le;
19
20option java_outer_classname = "BluetoothLEProtoEnums";
21option java_multiple_files = true;
22
23
24// LE ACL Connection State. This as per - go/bluetooth-le-connection-metrics
25enum LeAclConnectionState {
26  LE_ACL_UNSPECIFIED = 0;
27  LE_ACL_SUCCESS = 1;
28  LE_ACL_FAILED = 2;
29  LE_ACL_ALREADY_PRESENT = 3;
30}
31
32// Connection Origin type.
33enum LeConnectionOriginType {
34  ORIGIN_UNSPECIFIED = 0;
35  ORIGIN_NATIVE = 1;
36  ORIGIN_JAVA = 2;
37}
38
39// LE Connection Type
40enum LeConnectionType {
41  CONNECTION_TYPE_UNSPECIFIED = 0;
42  CONNECTION_TYPE_LE_ACL = 1;
43  CONNECTION_TYPE_GATT = 2;
44  CONNECTION_TYPE_L2CAP_FIXED_CHNL_SMP = 3;
45  CONNECTION_TYPE_L2CAP_FIXED_CHNL_ATT = 4;
46  CONNECTION_TYPE_L2CAP_FIXED_CHNL_LE_SIGNALLING = 5;
47  CONNECTION_TYPE_L2CAP_FIXED_CHNL_AMP = 6;
48  CONNECTION_TYPE_L2CAP_FIXED_CHNL_SMP_BR_EDR = 7;
49}
50
51// LE Connection State
52enum LeConnectionState {
53  STATE_UNSPECIFIED = 0;
54  STATE_LE_ACL_START = 1;
55  STATE_LE_ACL_END = 2;
56  STATE_LE_ACL_CANCEL = 3;
57  STATE_LE_ACL_TIMEOUT = 4;
58  STATE_GATT_APP_USE_LINK_FLAG = 5;
59  STATE_GATT_CREATE_DIRECT_CONN = 6;
60  STATE_GATT_HOLD_LINK_EMPTY = 7;
61  STATE_GATT_CONNECT_NATIVE = 8;
62  STATE_GATT_APP_CREATE_LE_ACL = 9;
63  STATE_GATT_CONN_STATE_CHANGE_CLIENT = 10;
64  STATE_GATT_CONN_STATE_CHANGE_SERVER = 11;
65  STATE_L2CAP_FIXED_CHNL_START_CREATE_CONN = 12;
66  STATE_L2CAP_FIXED_CHNL_START_LE_ACL = 13;
67  STATE_L2CAP_FIXED_CHNL_LE_ACL_FINISH = 14;
68}
69
70