AbstractionLayer.java revision 01a8cf98f070a6996b2e8974edc229ac402f3f0c
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 = 0x0A; 34 static final int BT_PROPERTY_REMOTE_RSSI = 0x0B; 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_ACL_STATE_CONNECTED = 0x00; 52 static final int BT_ACL_STATE_DISCONNECTED = 0x01; 53 54 static final int BT_UUID_SIZE = 16; // bytes 55 56 public static final int BT_STATUS_SUCCESS = 0; 57} 58