AbstractionLayer.java revision b7e70fcf8923b9452074b2b4ee685da424cc7d93
1/*
2 * Copyright (C) 2012 Google Inc.
3 */
4
5package com.android.bluetooth.btservice;
6
7/*
8 * @hide
9 */
10
11final public class AbstractionLayer {
12    // Do not modify without upating the HAL files.
13
14    // TODO: Some of the constants are repeated from BluetoothAdapter.java.
15    // Get rid of them and maintain just one.
16    static final int BT_STATE_OFF = 0x00;
17    static final int BT_STATE_ON = 0x01;
18
19    static final int BT_SCAN_MODE_NONE = 0x00;
20    static final int BT_SCAN_MODE_CONNECTABLE = 0x01;
21    static final int BT_SCAN_MODE_CONNECTABLE_DISCOVERABLE = 0x02;
22
23    static final int BT_PROPERTY_BDNAME = 0x01;
24    static final int BT_PROPERTY_BDADDR = 0x02;
25    static final int BT_PROPERTY_UUIDS = 0x03;
26    static final int BT_PROPERTY_CLASS_OF_DEVICE = 0x04;
27    static final int BT_PROPERTY_TYPE_OF_DEVICE = 0x05;
28    static final int BT_PROPERTY_SERVICE_RECORD = 0x06;
29    static final int BT_PROPERTY_ADAPTER_SCAN_MODE = 0x07;
30    static final int BT_PROPERTY_ADAPTER_BONDED_DEVICES = 0x08;
31    static final int BT_PROPERTY_ADAPTER_DISCOVERABLE_TIMEOUT = 0x09;
32
33    static final int BT_PROPERTY_REMOTE_FRIENDLY_NAME = 0x10;
34    static final int BT_PROPERTY_REMOTE_RSSI = 0x11;
35
36    static final int BT_DEVICE_TYPE_BREDR = 0x01;
37    static final int BT_DEVICE_TYPE_BLE = 0x02;
38    static final int BT_DEVICE_TYPE_DUAL = 0x03;
39
40    static final int BT_BOND_STATE_NONE = 0x00;
41    static final int BT_BOND_STATE_BONDED = 0x01;
42
43    static final int BT_SSP_VARIANT_PASSKEY_CONFIRMATION = 0x00;
44    static final int BT_SSP_VARIANT_PASSKEY_ENTRY = 0x01;
45    static final int BT_SSP_VARIANT_CONSENT = 0x02;
46    static final int BT_SSP_VARIANT_PASSKEY_NOTIFICATION = 0x03;
47
48    static final int BT_DISCOVERY_STOPPED = 0x00;
49    static final int BT_DISCOVERY_STARTED = 0x01;
50
51    static final int BT_UUID_SIZE = 16; // bytes
52}
53