1*344a7f5eSAndroid Build Coastguard Worker// Signature format: 2.0 2*344a7f5eSAndroid Build Coastguard Workerpackage android.bluetooth { 3*344a7f5eSAndroid Build Coastguard Worker 4*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothA2dp implements android.bluetooth.BluetoothProfile { 5*344a7f5eSAndroid Build Coastguard Worker method public void finalize(); 6*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 7*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(android.bluetooth.BluetoothDevice); 8*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 9*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isA2dpPlaying(android.bluetooth.BluetoothDevice); 10*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.a2dp.profile.action.CONNECTION_STATE_CHANGED"; 11*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_PLAYING_STATE_CHANGED = "android.bluetooth.a2dp.profile.action.PLAYING_STATE_CHANGED"; 12*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_NOT_PLAYING = 11; // 0xb 13*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_PLAYING = 10; // 0xa 14*344a7f5eSAndroid Build Coastguard Worker } 15*344a7f5eSAndroid Build Coastguard Worker 16*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothAdapter { 17*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public boolean cancelDiscovery(); 18*344a7f5eSAndroid Build Coastguard Worker method public static boolean checkBluetoothAddress(String); 19*344a7f5eSAndroid Build Coastguard Worker method public void closeProfileProxy(int, android.bluetooth.BluetoothProfile); 20*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean disable(); 21*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean enable(); 22*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, "android.permission.LOCAL_MAC_ADDRESS"}) public String getAddress(); 23*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.BluetoothLeAdvertiser getBluetoothLeAdvertiser(); 24*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.BluetoothLeScanner getBluetoothLeScanner(); 25*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.Set<android.bluetooth.BluetoothDevice> getBondedDevices(); 26*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public static android.bluetooth.BluetoothAdapter getDefaultAdapter(); 27*344a7f5eSAndroid Build Coastguard Worker method public int getLeMaximumAdvertisingDataLength(); 28*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public String getName(); 29*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getProfileConnectionState(int); 30*344a7f5eSAndroid Build Coastguard Worker method public boolean getProfileProxy(android.content.Context, android.bluetooth.BluetoothProfile.ServiceListener, int); 31*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothDevice getRemoteDevice(String); 32*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothDevice getRemoteDevice(byte[]); 33*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public int getScanMode(); 34*344a7f5eSAndroid Build Coastguard Worker method public int getState(); 35*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public boolean isDiscovering(); 36*344a7f5eSAndroid Build Coastguard Worker method public boolean isEnabled(); 37*344a7f5eSAndroid Build Coastguard Worker method public boolean isLe2MPhySupported(); 38*344a7f5eSAndroid Build Coastguard Worker method public boolean isLeCodedPhySupported(); 39*344a7f5eSAndroid Build Coastguard Worker method public boolean isLeExtendedAdvertisingSupported(); 40*344a7f5eSAndroid Build Coastguard Worker method public boolean isLePeriodicAdvertisingSupported(); 41*344a7f5eSAndroid Build Coastguard Worker method public boolean isMultipleAdvertisementSupported(); 42*344a7f5eSAndroid Build Coastguard Worker method public boolean isOffloadedFilteringSupported(); 43*344a7f5eSAndroid Build Coastguard Worker method public boolean isOffloadedScanBatchingSupported(); 44*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothServerSocket listenUsingInsecureL2capChannel() throws java.io.IOException; 45*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothServerSocket listenUsingInsecureRfcommWithServiceRecord(String, java.util.UUID) throws java.io.IOException; 46*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothServerSocket listenUsingL2capChannel() throws java.io.IOException; 47*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothServerSocket listenUsingRfcommWithServiceRecord(String, java.util.UUID) throws java.io.IOException; 48*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean setName(String); 49*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public boolean startDiscovery(); 50*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public boolean startLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback); 51*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public boolean startLeScan(java.util.UUID[], android.bluetooth.BluetoothAdapter.LeScanCallback); 52*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void stopLeScan(android.bluetooth.BluetoothAdapter.LeScanCallback); 53*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.adapter.action.CONNECTION_STATE_CHANGED"; 54*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public static final String ACTION_DISCOVERY_FINISHED = "android.bluetooth.adapter.action.DISCOVERY_FINISHED"; 55*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public static final String ACTION_DISCOVERY_STARTED = "android.bluetooth.adapter.action.DISCOVERY_STARTED"; 56*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_LOCAL_NAME_CHANGED = "android.bluetooth.adapter.action.LOCAL_NAME_CHANGED"; 57*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public static final String ACTION_REQUEST_DISCOVERABLE = "android.bluetooth.adapter.action.REQUEST_DISCOVERABLE"; 58*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_REQUEST_ENABLE = "android.bluetooth.adapter.action.REQUEST_ENABLE"; 59*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public static final String ACTION_SCAN_MODE_CHANGED = "android.bluetooth.adapter.action.SCAN_MODE_CHANGED"; 60*344a7f5eSAndroid Build Coastguard Worker field public static final String ACTION_STATE_CHANGED = "android.bluetooth.adapter.action.STATE_CHANGED"; 61*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR = -2147483648; // 0x80000000 62*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_CONNECTION_STATE = "android.bluetooth.adapter.extra.CONNECTION_STATE"; 63*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_DISCOVERABLE_DURATION = "android.bluetooth.adapter.extra.DISCOVERABLE_DURATION"; 64*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_LOCAL_NAME = "android.bluetooth.adapter.extra.LOCAL_NAME"; 65*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PREVIOUS_CONNECTION_STATE = "android.bluetooth.adapter.extra.PREVIOUS_CONNECTION_STATE"; 66*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PREVIOUS_SCAN_MODE = "android.bluetooth.adapter.extra.PREVIOUS_SCAN_MODE"; 67*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PREVIOUS_STATE = "android.bluetooth.adapter.extra.PREVIOUS_STATE"; 68*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_SCAN_MODE = "android.bluetooth.adapter.extra.SCAN_MODE"; 69*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_STATE = "android.bluetooth.adapter.extra.STATE"; 70*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_CONNECTABLE = 21; // 0x15 71*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_CONNECTABLE_DISCOVERABLE = 23; // 0x17 72*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_NONE = 20; // 0x14 73*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_CONNECTED = 2; // 0x2 74*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_CONNECTING = 1; // 0x1 75*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_DISCONNECTED = 0; // 0x0 76*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_DISCONNECTING = 3; // 0x3 77*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_OFF = 10; // 0xa 78*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_ON = 12; // 0xc 79*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_TURNING_OFF = 13; // 0xd 80*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_TURNING_ON = 11; // 0xb 81*344a7f5eSAndroid Build Coastguard Worker } 82*344a7f5eSAndroid Build Coastguard Worker 83*344a7f5eSAndroid Build Coastguard Worker public static interface BluetoothAdapter.LeScanCallback { 84*344a7f5eSAndroid Build Coastguard Worker method public void onLeScan(android.bluetooth.BluetoothDevice, int, byte[]); 85*344a7f5eSAndroid Build Coastguard Worker } 86*344a7f5eSAndroid Build Coastguard Worker 87*344a7f5eSAndroid Build Coastguard Worker public class BluetoothAssignedNumbers { 88*344a7f5eSAndroid Build Coastguard Worker field public static final int AAMP_OF_AMERICA = 190; // 0xbe 89*344a7f5eSAndroid Build Coastguard Worker field public static final int ACCEL_SEMICONDUCTOR = 74; // 0x4a 90*344a7f5eSAndroid Build Coastguard Worker field public static final int ACE_SENSOR = 188; // 0xbc 91*344a7f5eSAndroid Build Coastguard Worker field public static final int ADIDAS = 195; // 0xc3 92*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVANCED_PANMOBIL_SYSTEMS = 145; // 0x91 93*344a7f5eSAndroid Build Coastguard Worker field public static final int AIROHA_TECHNOLOGY = 148; // 0x94 94*344a7f5eSAndroid Build Coastguard Worker field public static final int ALCATEL = 36; // 0x24 95*344a7f5eSAndroid Build Coastguard Worker field public static final int ALPWISE = 154; // 0x9a 96*344a7f5eSAndroid Build Coastguard Worker field public static final int AMICCOM_ELECTRONICS = 192; // 0xc0 97*344a7f5eSAndroid Build Coastguard Worker field public static final int APLIX = 189; // 0xbd 98*344a7f5eSAndroid Build Coastguard Worker field public static final int APPLE = 76; // 0x4c 99*344a7f5eSAndroid Build Coastguard Worker field public static final int APT_LICENSING = 79; // 0x4f 100*344a7f5eSAndroid Build Coastguard Worker field public static final int ARCHOS = 207; // 0xcf 101*344a7f5eSAndroid Build Coastguard Worker field public static final int ARP_DEVICES = 168; // 0xa8 102*344a7f5eSAndroid Build Coastguard Worker field public static final int ATHEROS_COMMUNICATIONS = 69; // 0x45 103*344a7f5eSAndroid Build Coastguard Worker field public static final int ATMEL = 19; // 0x13 104*344a7f5eSAndroid Build Coastguard Worker field public static final int AUSTCO_COMMUNICATION_SYSTEMS = 213; // 0xd5 105*344a7f5eSAndroid Build Coastguard Worker field public static final int AUTONET_MOBILE = 127; // 0x7f 106*344a7f5eSAndroid Build Coastguard Worker field public static final int AVAGO = 78; // 0x4e 107*344a7f5eSAndroid Build Coastguard Worker field public static final int AVM_BERLIN = 31; // 0x1f 108*344a7f5eSAndroid Build Coastguard Worker field public static final int A_AND_D_ENGINEERING = 105; // 0x69 109*344a7f5eSAndroid Build Coastguard Worker field public static final int A_AND_R_CAMBRIDGE = 124; // 0x7c 110*344a7f5eSAndroid Build Coastguard Worker field public static final int BANDSPEED = 32; // 0x20 111*344a7f5eSAndroid Build Coastguard Worker field public static final int BAND_XI_INTERNATIONAL = 100; // 0x64 112*344a7f5eSAndroid Build Coastguard Worker field public static final int BDE_TECHNOLOGY = 180; // 0xb4 113*344a7f5eSAndroid Build Coastguard Worker field public static final int BEATS_ELECTRONICS = 204; // 0xcc 114*344a7f5eSAndroid Build Coastguard Worker field public static final int BEAUTIFUL_ENTERPRISE = 108; // 0x6c 115*344a7f5eSAndroid Build Coastguard Worker field public static final int BEKEY = 178; // 0xb2 116*344a7f5eSAndroid Build Coastguard Worker field public static final int BELKIN_INTERNATIONAL = 92; // 0x5c 117*344a7f5eSAndroid Build Coastguard Worker field public static final int BINAURIC = 203; // 0xcb 118*344a7f5eSAndroid Build Coastguard Worker field public static final int BIOSENTRONICS = 219; // 0xdb 119*344a7f5eSAndroid Build Coastguard Worker field public static final int BLUEGIGA = 71; // 0x47 120*344a7f5eSAndroid Build Coastguard Worker field public static final int BLUERADIOS = 133; // 0x85 121*344a7f5eSAndroid Build Coastguard Worker field public static final int BLUETOOTH_SIG = 63; // 0x3f 122*344a7f5eSAndroid Build Coastguard Worker field public static final int BLUETREK_TECHNOLOGIES = 151; // 0x97 123*344a7f5eSAndroid Build Coastguard Worker field public static final int BOSE = 158; // 0x9e 124*344a7f5eSAndroid Build Coastguard Worker field public static final int BRIARTEK = 109; // 0x6d 125*344a7f5eSAndroid Build Coastguard Worker field public static final int BROADCOM = 15; // 0xf 126*344a7f5eSAndroid Build Coastguard Worker field public static final int CAEN_RFID = 170; // 0xaa 127*344a7f5eSAndroid Build Coastguard Worker field public static final int CAMBRIDGE_SILICON_RADIO = 10; // 0xa 128*344a7f5eSAndroid Build Coastguard Worker field public static final int CATC = 52; // 0x34 129*344a7f5eSAndroid Build Coastguard Worker field public static final int CINETIX = 175; // 0xaf 130*344a7f5eSAndroid Build Coastguard Worker field public static final int CLARINOX_TECHNOLOGIES = 179; // 0xb3 131*344a7f5eSAndroid Build Coastguard Worker field public static final int COLORFY = 156; // 0x9c 132*344a7f5eSAndroid Build Coastguard Worker field public static final int COMMIL = 51; // 0x33 133*344a7f5eSAndroid Build Coastguard Worker field public static final int CONEXANT_SYSTEMS = 28; // 0x1c 134*344a7f5eSAndroid Build Coastguard Worker field public static final int CONNECTBLUE = 113; // 0x71 135*344a7f5eSAndroid Build Coastguard Worker field public static final int CONTINENTAL_AUTOMOTIVE = 75; // 0x4b 136*344a7f5eSAndroid Build Coastguard Worker field public static final int CONWISE_TECHNOLOGY = 66; // 0x42 137*344a7f5eSAndroid Build Coastguard Worker field public static final int CREATIVE_TECHNOLOGY = 118; // 0x76 138*344a7f5eSAndroid Build Coastguard Worker field public static final int C_TECHNOLOGIES = 38; // 0x26 139*344a7f5eSAndroid Build Coastguard Worker field public static final int DANLERS = 225; // 0xe1 140*344a7f5eSAndroid Build Coastguard Worker field public static final int DELORME_PUBLISHING_COMPANY = 128; // 0x80 141*344a7f5eSAndroid Build Coastguard Worker field public static final int DEXCOM = 208; // 0xd0 142*344a7f5eSAndroid Build Coastguard Worker field public static final int DIALOG_SEMICONDUCTOR = 210; // 0xd2 143*344a7f5eSAndroid Build Coastguard Worker field public static final int DIGIANSWER = 12; // 0xc 144*344a7f5eSAndroid Build Coastguard Worker field public static final int ECLIPSE = 53; // 0x35 145*344a7f5eSAndroid Build Coastguard Worker field public static final int ECOTEST = 136; // 0x88 146*344a7f5eSAndroid Build Coastguard Worker field public static final int ELGATO_SYSTEMS = 206; // 0xce 147*344a7f5eSAndroid Build Coastguard Worker field public static final int EM_MICROELECTRONIC_MARIN = 90; // 0x5a 148*344a7f5eSAndroid Build Coastguard Worker field public static final int EQUINOX_AG = 134; // 0x86 149*344a7f5eSAndroid Build Coastguard Worker field public static final int ERICSSON_TECHNOLOGY = 0; // 0x0 150*344a7f5eSAndroid Build Coastguard Worker field public static final int EVLUMA = 201; // 0xc9 151*344a7f5eSAndroid Build Coastguard Worker field public static final int FREE2MOVE = 83; // 0x53 152*344a7f5eSAndroid Build Coastguard Worker field public static final int FUNAI_ELECTRIC = 144; // 0x90 153*344a7f5eSAndroid Build Coastguard Worker field public static final int GARMIN_INTERNATIONAL = 135; // 0x87 154*344a7f5eSAndroid Build Coastguard Worker field public static final int GCT_SEMICONDUCTOR = 45; // 0x2d 155*344a7f5eSAndroid Build Coastguard Worker field public static final int GELO = 200; // 0xc8 156*344a7f5eSAndroid Build Coastguard Worker field public static final int GENEQ = 194; // 0xc2 157*344a7f5eSAndroid Build Coastguard Worker field public static final int GENERAL_MOTORS = 104; // 0x68 158*344a7f5eSAndroid Build Coastguard Worker field public static final int GENNUM = 59; // 0x3b 159*344a7f5eSAndroid Build Coastguard Worker field public static final int GEOFORCE = 157; // 0x9d 160*344a7f5eSAndroid Build Coastguard Worker field public static final int GIBSON_GUITARS = 98; // 0x62 161*344a7f5eSAndroid Build Coastguard Worker field public static final int GN_NETCOM = 103; // 0x67 162*344a7f5eSAndroid Build Coastguard Worker field public static final int GN_RESOUND = 137; // 0x89 163*344a7f5eSAndroid Build Coastguard Worker field public static final int GOOGLE = 224; // 0xe0 164*344a7f5eSAndroid Build Coastguard Worker field public static final int GREEN_THROTTLE_GAMES = 172; // 0xac 165*344a7f5eSAndroid Build Coastguard Worker field public static final int GROUP_SENSE = 115; // 0x73 166*344a7f5eSAndroid Build Coastguard Worker field public static final int HANLYNN_TECHNOLOGIES = 123; // 0x7b 167*344a7f5eSAndroid Build Coastguard Worker field public static final int HARMAN_INTERNATIONAL = 87; // 0x57 168*344a7f5eSAndroid Build Coastguard Worker field public static final int HEWLETT_PACKARD = 101; // 0x65 169*344a7f5eSAndroid Build Coastguard Worker field public static final int HITACHI = 41; // 0x29 170*344a7f5eSAndroid Build Coastguard Worker field public static final int HOSIDEN = 221; // 0xdd 171*344a7f5eSAndroid Build Coastguard Worker field public static final int IBM = 3; // 0x3 172*344a7f5eSAndroid Build Coastguard Worker field public static final int INFINEON_TECHNOLOGIES = 9; // 0x9 173*344a7f5eSAndroid Build Coastguard Worker field public static final int INGENIEUR_SYSTEMGRUPPE_ZAHN = 171; // 0xab 174*344a7f5eSAndroid Build Coastguard Worker field public static final int INTEGRATED_SILICON_SOLUTION = 65; // 0x41 175*344a7f5eSAndroid Build Coastguard Worker field public static final int INTEGRATED_SYSTEM_SOLUTION = 57; // 0x39 176*344a7f5eSAndroid Build Coastguard Worker field public static final int INTEL = 2; // 0x2 177*344a7f5eSAndroid Build Coastguard Worker field public static final int INVENTEL = 30; // 0x1e 178*344a7f5eSAndroid Build Coastguard Worker field public static final int IPEXTREME = 61; // 0x3d 179*344a7f5eSAndroid Build Coastguard Worker field public static final int I_TECH_DYNAMIC_GLOBAL_DISTRIBUTION = 153; // 0x99 180*344a7f5eSAndroid Build Coastguard Worker field public static final int JAWBONE = 138; // 0x8a 181*344a7f5eSAndroid Build Coastguard Worker field public static final int JIANGSU_TOPPOWER_AUTOMOTIVE_ELECTRONICS = 155; // 0x9b 182*344a7f5eSAndroid Build Coastguard Worker field public static final int JOHNSON_CONTROLS = 185; // 0xb9 183*344a7f5eSAndroid Build Coastguard Worker field public static final int J_AND_M = 82; // 0x52 184*344a7f5eSAndroid Build Coastguard Worker field public static final int KAWANTECH = 212; // 0xd4 185*344a7f5eSAndroid Build Coastguard Worker field public static final int KC_TECHNOLOGY = 22; // 0x16 186*344a7f5eSAndroid Build Coastguard Worker field public static final int KENSINGTON_COMPUTER_PRODUCTS_GROUP = 160; // 0xa0 187*344a7f5eSAndroid Build Coastguard Worker field public static final int LAIRD_TECHNOLOGIES = 119; // 0x77 188*344a7f5eSAndroid Build Coastguard Worker field public static final int LESSWIRE = 121; // 0x79 189*344a7f5eSAndroid Build Coastguard Worker field public static final int LG_ELECTRONICS = 196; // 0xc4 190*344a7f5eSAndroid Build Coastguard Worker field public static final int LINAK = 164; // 0xa4 191*344a7f5eSAndroid Build Coastguard Worker field public static final int LUCENT = 7; // 0x7 192*344a7f5eSAndroid Build Coastguard Worker field public static final int LUDUS_HELSINKI = 132; // 0x84 193*344a7f5eSAndroid Build Coastguard Worker field public static final int MACRONIX = 44; // 0x2c 194*344a7f5eSAndroid Build Coastguard Worker field public static final int MAGNETI_MARELLI = 169; // 0xa9 195*344a7f5eSAndroid Build Coastguard Worker field public static final int MANSELLA = 33; // 0x21 196*344a7f5eSAndroid Build Coastguard Worker field public static final int MARVELL = 72; // 0x48 197*344a7f5eSAndroid Build Coastguard Worker field public static final int MATSUSHITA_ELECTRIC = 58; // 0x3a 198*344a7f5eSAndroid Build Coastguard Worker field public static final int MC10 = 202; // 0xca 199*344a7f5eSAndroid Build Coastguard Worker field public static final int MEDIATEK = 70; // 0x46 200*344a7f5eSAndroid Build Coastguard Worker field public static final int MESO_INTERNATIONAL = 182; // 0xb6 201*344a7f5eSAndroid Build Coastguard Worker field public static final int META_WATCH = 163; // 0xa3 202*344a7f5eSAndroid Build Coastguard Worker field public static final int MEWTEL_TECHNOLOGY = 47; // 0x2f 203*344a7f5eSAndroid Build Coastguard Worker field public static final int MICOMMAND = 99; // 0x63 204*344a7f5eSAndroid Build Coastguard Worker field public static final int MICROCHIP_TECHNOLOGY = 205; // 0xcd 205*344a7f5eSAndroid Build Coastguard Worker field public static final int MICROSOFT = 6; // 0x6 206*344a7f5eSAndroid Build Coastguard Worker field public static final int MINDTREE = 106; // 0x6a 207*344a7f5eSAndroid Build Coastguard Worker field public static final int MISFIT_WEARABLES = 223; // 0xdf 208*344a7f5eSAndroid Build Coastguard Worker field public static final int MITEL_SEMICONDUCTOR = 16; // 0x10 209*344a7f5eSAndroid Build Coastguard Worker field public static final int MITSUBISHI_ELECTRIC = 20; // 0x14 210*344a7f5eSAndroid Build Coastguard Worker field public static final int MOBILIAN_CORPORATION = 55; // 0x37 211*344a7f5eSAndroid Build Coastguard Worker field public static final int MONSTER = 112; // 0x70 212*344a7f5eSAndroid Build Coastguard Worker field public static final int MOTOROLA = 8; // 0x8 213*344a7f5eSAndroid Build Coastguard Worker field public static final int MSTAR_SEMICONDUCTOR = 122; // 0x7a 214*344a7f5eSAndroid Build Coastguard Worker field public static final int MUZIK = 222; // 0xde 215*344a7f5eSAndroid Build Coastguard Worker field public static final int NEC = 34; // 0x22 216*344a7f5eSAndroid Build Coastguard Worker field public static final int NEC_LIGHTING = 149; // 0x95 217*344a7f5eSAndroid Build Coastguard Worker field public static final int NEWLOGIC = 23; // 0x17 218*344a7f5eSAndroid Build Coastguard Worker field public static final int NIKE = 120; // 0x78 219*344a7f5eSAndroid Build Coastguard Worker field public static final int NINE_SOLUTIONS = 102; // 0x66 220*344a7f5eSAndroid Build Coastguard Worker field public static final int NOKIA_MOBILE_PHONES = 1; // 0x1 221*344a7f5eSAndroid Build Coastguard Worker field public static final int NORDIC_SEMICONDUCTOR = 89; // 0x59 222*344a7f5eSAndroid Build Coastguard Worker field public static final int NORWOOD_SYSTEMS = 46; // 0x2e 223*344a7f5eSAndroid Build Coastguard Worker field public static final int ODM_TECHNOLOGY = 150; // 0x96 224*344a7f5eSAndroid Build Coastguard Worker field public static final int OMEGAWAVE = 174; // 0xae 225*344a7f5eSAndroid Build Coastguard Worker field public static final int ONSET_COMPUTER = 197; // 0xc5 226*344a7f5eSAndroid Build Coastguard Worker field public static final int OPEN_INTERFACE = 39; // 0x27 227*344a7f5eSAndroid Build Coastguard Worker field public static final int OTL_DYNAMICS = 165; // 0xa5 228*344a7f5eSAndroid Build Coastguard Worker field public static final int PANDA_OCEAN = 166; // 0xa6 229*344a7f5eSAndroid Build Coastguard Worker field public static final int PARROT = 67; // 0x43 230*344a7f5eSAndroid Build Coastguard Worker field public static final int PARTHUS_TECHNOLOGIES = 14; // 0xe 231*344a7f5eSAndroid Build Coastguard Worker field public static final int PASSIF_SEMICONDUCTOR = 176; // 0xb0 232*344a7f5eSAndroid Build Coastguard Worker field public static final int PETER_SYSTEMTECHNIK = 173; // 0xad 233*344a7f5eSAndroid Build Coastguard Worker field public static final int PHILIPS_SEMICONDUCTORS = 37; // 0x25 234*344a7f5eSAndroid Build Coastguard Worker field public static final int PLANTRONICS = 85; // 0x55 235*344a7f5eSAndroid Build Coastguard Worker field public static final int POLAR_ELECTRO = 107; // 0x6b 236*344a7f5eSAndroid Build Coastguard Worker field public static final int POLAR_ELECTRO_EUROPE = 209; // 0xd1 237*344a7f5eSAndroid Build Coastguard Worker field public static final int PROCTER_AND_GAMBLE = 220; // 0xdc 238*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALCOMM = 29; // 0x1d 239*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALCOMM_CONNECTED_EXPERIENCES = 216; // 0xd8 240*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALCOMM_INNOVATION_CENTER = 184; // 0xb8 241*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALCOMM_LABS = 140; // 0x8c 242*344a7f5eSAndroid Build Coastguard Worker field public static final int QUALCOMM_TECHNOLOGIES = 215; // 0xd7 243*344a7f5eSAndroid Build Coastguard Worker field public static final int QUINTIC = 142; // 0x8e 244*344a7f5eSAndroid Build Coastguard Worker field public static final int QUUPPA = 199; // 0xc7 245*344a7f5eSAndroid Build Coastguard Worker field public static final int RALINK_TECHNOLOGY = 91; // 0x5b 246*344a7f5eSAndroid Build Coastguard Worker field public static final int RDA_MICROELECTRONICS = 97; // 0x61 247*344a7f5eSAndroid Build Coastguard Worker field public static final int REALTEK_SEMICONDUCTOR = 93; // 0x5d 248*344a7f5eSAndroid Build Coastguard Worker field public static final int RED_M = 50; // 0x32 249*344a7f5eSAndroid Build Coastguard Worker field public static final int RENESAS_TECHNOLOGY = 54; // 0x36 250*344a7f5eSAndroid Build Coastguard Worker field public static final int RESEARCH_IN_MOTION = 60; // 0x3c 251*344a7f5eSAndroid Build Coastguard Worker field public static final int RF_MICRO_DEVICES = 40; // 0x28 252*344a7f5eSAndroid Build Coastguard Worker field public static final int RIVIERAWAVES = 96; // 0x60 253*344a7f5eSAndroid Build Coastguard Worker field public static final int ROHDE_AND_SCHWARZ = 25; // 0x19 254*344a7f5eSAndroid Build Coastguard Worker field public static final int RTX_TELECOM = 21; // 0x15 255*344a7f5eSAndroid Build Coastguard Worker field public static final int SAMSUNG_ELECTRONICS = 117; // 0x75 256*344a7f5eSAndroid Build Coastguard Worker field public static final int SARIS_CYCLING_GROUP = 177; // 0xb1 257*344a7f5eSAndroid Build Coastguard Worker field public static final int SEERS_TECHNOLOGY = 125; // 0x7d 258*344a7f5eSAndroid Build Coastguard Worker field public static final int SEIKO_EPSON = 64; // 0x40 259*344a7f5eSAndroid Build Coastguard Worker field public static final int SELFLY = 198; // 0xc6 260*344a7f5eSAndroid Build Coastguard Worker field public static final int SEMILINK = 226; // 0xe2 261*344a7f5eSAndroid Build Coastguard Worker field public static final int SENNHEISER_COMMUNICATIONS = 130; // 0x82 262*344a7f5eSAndroid Build Coastguard Worker field public static final int SHANGHAI_SUPER_SMART_ELECTRONICS = 114; // 0x72 263*344a7f5eSAndroid Build Coastguard Worker field public static final int SHENZHEN_EXCELSECU_DATA_TECHNOLOGY = 193; // 0xc1 264*344a7f5eSAndroid Build Coastguard Worker field public static final int SIGNIA_TECHNOLOGIES = 27; // 0x1b 265*344a7f5eSAndroid Build Coastguard Worker field public static final int SILICON_WAVE = 11; // 0xb 266*344a7f5eSAndroid Build Coastguard Worker field public static final int SIRF_TECHNOLOGY = 80; // 0x50 267*344a7f5eSAndroid Build Coastguard Worker field public static final int SOCKET_MOBILE = 68; // 0x44 268*344a7f5eSAndroid Build Coastguard Worker field public static final int SONY_ERICSSON = 86; // 0x56 269*344a7f5eSAndroid Build Coastguard Worker field public static final int SOUND_ID = 111; // 0x6f 270*344a7f5eSAndroid Build Coastguard Worker field public static final int SPORTS_TRACKING_TECHNOLOGIES = 126; // 0x7e 271*344a7f5eSAndroid Build Coastguard Worker field public static final int SR_MEDIZINELEKTRONIK = 161; // 0xa1 272*344a7f5eSAndroid Build Coastguard Worker field public static final int STACCATO_COMMUNICATIONS = 77; // 0x4d 273*344a7f5eSAndroid Build Coastguard Worker field public static final int STALMART_TECHNOLOGY = 191; // 0xbf 274*344a7f5eSAndroid Build Coastguard Worker field public static final int STARKEY_LABORATORIES = 186; // 0xba 275*344a7f5eSAndroid Build Coastguard Worker field public static final int STOLLMAN_E_PLUS_V = 143; // 0x8f 276*344a7f5eSAndroid Build Coastguard Worker field public static final int STONESTREET_ONE = 94; // 0x5e 277*344a7f5eSAndroid Build Coastguard Worker field public static final int ST_MICROELECTRONICS = 48; // 0x30 278*344a7f5eSAndroid Build Coastguard Worker field public static final int SUMMIT_DATA_COMMUNICATIONS = 110; // 0x6e 279*344a7f5eSAndroid Build Coastguard Worker field public static final int SUUNTO = 159; // 0x9f 280*344a7f5eSAndroid Build Coastguard Worker field public static final int SWIRL_NETWORKS = 181; // 0xb5 281*344a7f5eSAndroid Build Coastguard Worker field public static final int SYMBOL_TECHNOLOGIES = 42; // 0x2a 282*344a7f5eSAndroid Build Coastguard Worker field public static final int SYNOPSYS = 49; // 0x31 283*344a7f5eSAndroid Build Coastguard Worker field public static final int SYSTEMS_AND_CHIPS = 62; // 0x3e 284*344a7f5eSAndroid Build Coastguard Worker field public static final int S_POWER_ELECTRONICS = 187; // 0xbb 285*344a7f5eSAndroid Build Coastguard Worker field public static final int TAIXINGBANG_TECHNOLOGY = 211; // 0xd3 286*344a7f5eSAndroid Build Coastguard Worker field public static final int TENOVIS = 43; // 0x2b 287*344a7f5eSAndroid Build Coastguard Worker field public static final int TERAX = 56; // 0x38 288*344a7f5eSAndroid Build Coastguard Worker field public static final int TEXAS_INSTRUMENTS = 13; // 0xd 289*344a7f5eSAndroid Build Coastguard Worker field public static final int THINKOPTICS = 146; // 0x92 290*344a7f5eSAndroid Build Coastguard Worker field public static final int THREECOM = 5; // 0x5 291*344a7f5eSAndroid Build Coastguard Worker field public static final int THREE_DIJOY = 84; // 0x54 292*344a7f5eSAndroid Build Coastguard Worker field public static final int THREE_DSP = 73; // 0x49 293*344a7f5eSAndroid Build Coastguard Worker field public static final int TIMEKEEPING_SYSTEMS = 131; // 0x83 294*344a7f5eSAndroid Build Coastguard Worker field public static final int TIMEX_GROUP_USA = 214; // 0xd6 295*344a7f5eSAndroid Build Coastguard Worker field public static final int TOPCORN_POSITIONING_SYSTEMS = 139; // 0x8b 296*344a7f5eSAndroid Build Coastguard Worker field public static final int TOSHIBA = 4; // 0x4 297*344a7f5eSAndroid Build Coastguard Worker field public static final int TRANSILICA = 24; // 0x18 298*344a7f5eSAndroid Build Coastguard Worker field public static final int TRELAB = 183; // 0xb7 299*344a7f5eSAndroid Build Coastguard Worker field public static final int TTPCOM = 26; // 0x1a 300*344a7f5eSAndroid Build Coastguard Worker field public static final int TXTR = 218; // 0xda 301*344a7f5eSAndroid Build Coastguard Worker field public static final int TZERO_TECHNOLOGIES = 81; // 0x51 302*344a7f5eSAndroid Build Coastguard Worker field public static final int UNIVERSAL_ELECTRONICS = 147; // 0x93 303*344a7f5eSAndroid Build Coastguard Worker field public static final int VERTU = 162; // 0xa2 304*344a7f5eSAndroid Build Coastguard Worker field public static final int VISTEON = 167; // 0xa7 305*344a7f5eSAndroid Build Coastguard Worker field public static final int VIZIO = 88; // 0x58 306*344a7f5eSAndroid Build Coastguard Worker field public static final int VOYETRA_TURTLE_BEACH = 217; // 0xd9 307*344a7f5eSAndroid Build Coastguard Worker field public static final int WAVEPLUS_TECHNOLOGY = 35; // 0x23 308*344a7f5eSAndroid Build Coastguard Worker field public static final int WICENTRIC = 95; // 0x5f 309*344a7f5eSAndroid Build Coastguard Worker field public static final int WIDCOMM = 17; // 0x11 310*344a7f5eSAndroid Build Coastguard Worker field public static final int WUXI_VIMICRO = 129; // 0x81 311*344a7f5eSAndroid Build Coastguard Worker field public static final int ZEEVO = 18; // 0x12 312*344a7f5eSAndroid Build Coastguard Worker field public static final int ZER01_TV = 152; // 0x98 313*344a7f5eSAndroid Build Coastguard Worker field public static final int ZOMM = 116; // 0x74 314*344a7f5eSAndroid Build Coastguard Worker field public static final int ZSCAN_SOFTWARE = 141; // 0x8d 315*344a7f5eSAndroid Build Coastguard Worker } 316*344a7f5eSAndroid Build Coastguard Worker 317*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothClass implements android.os.Parcelable { 318*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 319*344a7f5eSAndroid Build Coastguard Worker method public int getDeviceClass(); 320*344a7f5eSAndroid Build Coastguard Worker method public int getMajorDeviceClass(); 321*344a7f5eSAndroid Build Coastguard Worker method public boolean hasService(int); 322*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 323*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothClass> CREATOR; 324*344a7f5eSAndroid Build Coastguard Worker } 325*344a7f5eSAndroid Build Coastguard Worker 326*344a7f5eSAndroid Build Coastguard Worker public static class BluetoothClass.Device { 327*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothClass.Device(); 328*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_CAMCORDER = 1076; // 0x434 329*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_CAR_AUDIO = 1056; // 0x420 330*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_HANDSFREE = 1032; // 0x408 331*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_HEADPHONES = 1048; // 0x418 332*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_HIFI_AUDIO = 1064; // 0x428 333*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_LOUDSPEAKER = 1044; // 0x414 334*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_MICROPHONE = 1040; // 0x410 335*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_PORTABLE_AUDIO = 1052; // 0x41c 336*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_SET_TOP_BOX = 1060; // 0x424 337*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_UNCATEGORIZED = 1024; // 0x400 338*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VCR = 1068; // 0x42c 339*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VIDEO_CAMERA = 1072; // 0x430 340*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VIDEO_CONFERENCING = 1088; // 0x440 341*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VIDEO_DISPLAY_AND_LOUDSPEAKER = 1084; // 0x43c 342*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VIDEO_GAMING_TOY = 1096; // 0x448 343*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_VIDEO_MONITOR = 1080; // 0x438 344*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO_WEARABLE_HEADSET = 1028; // 0x404 345*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_DESKTOP = 260; // 0x104 346*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_HANDHELD_PC_PDA = 272; // 0x110 347*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_LAPTOP = 268; // 0x10c 348*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_PALM_SIZE_PC_PDA = 276; // 0x114 349*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_SERVER = 264; // 0x108 350*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_UNCATEGORIZED = 256; // 0x100 351*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER_WEARABLE = 280; // 0x118 352*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_BLOOD_PRESSURE = 2308; // 0x904 353*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_DATA_DISPLAY = 2332; // 0x91c 354*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_GLUCOSE = 2320; // 0x910 355*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_PULSE_OXIMETER = 2324; // 0x914 356*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_PULSE_RATE = 2328; // 0x918 357*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_THERMOMETER = 2312; // 0x908 358*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_UNCATEGORIZED = 2304; // 0x900 359*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH_WEIGHING = 2316; // 0x90c 360*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_CELLULAR = 516; // 0x204 361*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_CORDLESS = 520; // 0x208 362*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_ISDN = 532; // 0x214 363*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_MODEM_OR_GATEWAY = 528; // 0x210 364*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_SMART = 524; // 0x20c 365*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE_UNCATEGORIZED = 512; // 0x200 366*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_CONTROLLER = 2064; // 0x810 367*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_DOLL_ACTION_FIGURE = 2060; // 0x80c 368*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_GAME = 2068; // 0x814 369*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_ROBOT = 2052; // 0x804 370*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_UNCATEGORIZED = 2048; // 0x800 371*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY_VEHICLE = 2056; // 0x808 372*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_GLASSES = 1812; // 0x714 373*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_HELMET = 1808; // 0x710 374*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_JACKET = 1804; // 0x70c 375*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_PAGER = 1800; // 0x708 376*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_UNCATEGORIZED = 1792; // 0x700 377*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE_WRIST_WATCH = 1796; // 0x704 378*344a7f5eSAndroid Build Coastguard Worker } 379*344a7f5eSAndroid Build Coastguard Worker 380*344a7f5eSAndroid Build Coastguard Worker public static class BluetoothClass.Device.Major { 381*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothClass.Device.Major(); 382*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO_VIDEO = 1024; // 0x400 383*344a7f5eSAndroid Build Coastguard Worker field public static final int COMPUTER = 256; // 0x100 384*344a7f5eSAndroid Build Coastguard Worker field public static final int HEALTH = 2304; // 0x900 385*344a7f5eSAndroid Build Coastguard Worker field public static final int IMAGING = 1536; // 0x600 386*344a7f5eSAndroid Build Coastguard Worker field public static final int MISC = 0; // 0x0 387*344a7f5eSAndroid Build Coastguard Worker field public static final int NETWORKING = 768; // 0x300 388*344a7f5eSAndroid Build Coastguard Worker field public static final int PERIPHERAL = 1280; // 0x500 389*344a7f5eSAndroid Build Coastguard Worker field public static final int PHONE = 512; // 0x200 390*344a7f5eSAndroid Build Coastguard Worker field public static final int TOY = 2048; // 0x800 391*344a7f5eSAndroid Build Coastguard Worker field public static final int UNCATEGORIZED = 7936; // 0x1f00 392*344a7f5eSAndroid Build Coastguard Worker field public static final int WEARABLE = 1792; // 0x700 393*344a7f5eSAndroid Build Coastguard Worker } 394*344a7f5eSAndroid Build Coastguard Worker 395*344a7f5eSAndroid Build Coastguard Worker public static final class BluetoothClass.Service { 396*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothClass.Service(); 397*344a7f5eSAndroid Build Coastguard Worker field public static final int AUDIO = 2097152; // 0x200000 398*344a7f5eSAndroid Build Coastguard Worker field public static final int CAPTURE = 524288; // 0x80000 399*344a7f5eSAndroid Build Coastguard Worker field public static final int INFORMATION = 8388608; // 0x800000 400*344a7f5eSAndroid Build Coastguard Worker field public static final int LIMITED_DISCOVERABILITY = 8192; // 0x2000 401*344a7f5eSAndroid Build Coastguard Worker field public static final int NETWORKING = 131072; // 0x20000 402*344a7f5eSAndroid Build Coastguard Worker field public static final int OBJECT_TRANSFER = 1048576; // 0x100000 403*344a7f5eSAndroid Build Coastguard Worker field public static final int POSITIONING = 65536; // 0x10000 404*344a7f5eSAndroid Build Coastguard Worker field public static final int RENDER = 262144; // 0x40000 405*344a7f5eSAndroid Build Coastguard Worker field public static final int TELEPHONY = 4194304; // 0x400000 406*344a7f5eSAndroid Build Coastguard Worker } 407*344a7f5eSAndroid Build Coastguard Worker 408*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothDevice implements android.os.Parcelable { 409*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback); 410*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback, int); 411*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback, int, int); 412*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothGatt connectGatt(android.content.Context, boolean, android.bluetooth.BluetoothGattCallback, int, int, android.os.Handler); 413*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean createBond(); 414*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothSocket createInsecureL2capChannel(int) throws java.io.IOException; 415*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothSocket createInsecureRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException; 416*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothSocket createL2capChannel(int) throws java.io.IOException; 417*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothSocket createRfcommSocketToServiceRecord(java.util.UUID) throws java.io.IOException; 418*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 419*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean fetchUuidsWithSdp(); 420*344a7f5eSAndroid Build Coastguard Worker method public String getAddress(); 421*344a7f5eSAndroid Build Coastguard Worker method @Nullable @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public String getAlias(); 422*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothClass getBluetoothClass(); 423*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getBondState(); 424*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public String getName(); 425*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getType(); 426*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.os.ParcelUuid[] getUuids(); 427*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int setAlias(@Nullable String); 428*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.BLUETOOTH_PRIVILEGED}) public boolean setPairingConfirmation(boolean); 429*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean setPin(byte[]); 430*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 431*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_ACL_CONNECTED = "android.bluetooth.device.action.ACL_CONNECTED"; 432*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_ACL_DISCONNECTED = "android.bluetooth.device.action.ACL_DISCONNECTED"; 433*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_ACL_DISCONNECT_REQUESTED = "android.bluetooth.device.action.ACL_DISCONNECT_REQUESTED"; 434*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_ALIAS_CHANGED = "android.bluetooth.device.action.ALIAS_CHANGED"; 435*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_BOND_STATE_CHANGED = "android.bluetooth.device.action.BOND_STATE_CHANGED"; 436*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CLASS_CHANGED = "android.bluetooth.device.action.CLASS_CHANGED"; 437*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public static final String ACTION_FOUND = "android.bluetooth.device.action.FOUND"; 438*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_NAME_CHANGED = "android.bluetooth.device.action.NAME_CHANGED"; 439*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_PAIRING_REQUEST = "android.bluetooth.device.action.PAIRING_REQUEST"; 440*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_UUID = "android.bluetooth.device.action.UUID"; 441*344a7f5eSAndroid Build Coastguard Worker field public static final int ADDRESS_TYPE_PUBLIC = 0; // 0x0 442*344a7f5eSAndroid Build Coastguard Worker field public static final int ADDRESS_TYPE_RANDOM = 1; // 0x1 443*344a7f5eSAndroid Build Coastguard Worker field public static final int BOND_BONDED = 12; // 0xc 444*344a7f5eSAndroid Build Coastguard Worker field public static final int BOND_BONDING = 11; // 0xb 445*344a7f5eSAndroid Build Coastguard Worker field public static final int BOND_NONE = 10; // 0xa 446*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothDevice> CREATOR; 447*344a7f5eSAndroid Build Coastguard Worker field public static final int DEVICE_TYPE_CLASSIC = 1; // 0x1 448*344a7f5eSAndroid Build Coastguard Worker field public static final int DEVICE_TYPE_DUAL = 3; // 0x3 449*344a7f5eSAndroid Build Coastguard Worker field public static final int DEVICE_TYPE_LE = 2; // 0x2 450*344a7f5eSAndroid Build Coastguard Worker field public static final int DEVICE_TYPE_UNKNOWN = 0; // 0x0 451*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR = -2147483648; // 0x80000000 452*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_BOND_STATE = "android.bluetooth.device.extra.BOND_STATE"; 453*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_CLASS = "android.bluetooth.device.extra.CLASS"; 454*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_DEVICE = "android.bluetooth.device.extra.DEVICE"; 455*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_NAME = "android.bluetooth.device.extra.NAME"; 456*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PAIRING_KEY = "android.bluetooth.device.extra.PAIRING_KEY"; 457*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PAIRING_VARIANT = "android.bluetooth.device.extra.PAIRING_VARIANT"; 458*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PREVIOUS_BOND_STATE = "android.bluetooth.device.extra.PREVIOUS_BOND_STATE"; 459*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_RSSI = "android.bluetooth.device.extra.RSSI"; 460*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_UUID = "android.bluetooth.device.extra.UUID"; 461*344a7f5eSAndroid Build Coastguard Worker field public static final int PAIRING_VARIANT_PASSKEY_CONFIRMATION = 2; // 0x2 462*344a7f5eSAndroid Build Coastguard Worker field public static final int PAIRING_VARIANT_PIN = 0; // 0x0 463*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_1M = 1; // 0x1 464*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_1M_MASK = 1; // 0x1 465*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_2M = 2; // 0x2 466*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_2M_MASK = 2; // 0x2 467*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_CODED = 3; // 0x3 468*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_CODED_MASK = 4; // 0x4 469*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_OPTION_NO_PREFERRED = 0; // 0x0 470*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_OPTION_S2 = 1; // 0x1 471*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_OPTION_S8 = 2; // 0x2 472*344a7f5eSAndroid Build Coastguard Worker field public static final int TRANSPORT_AUTO = 0; // 0x0 473*344a7f5eSAndroid Build Coastguard Worker field public static final int TRANSPORT_BREDR = 1; // 0x1 474*344a7f5eSAndroid Build Coastguard Worker field public static final int TRANSPORT_LE = 2; // 0x2 475*344a7f5eSAndroid Build Coastguard Worker } 476*344a7f5eSAndroid Build Coastguard Worker 477*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothGatt implements android.bluetooth.BluetoothProfile { 478*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void abortReliableWrite(); 479*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void abortReliableWrite(android.bluetooth.BluetoothDevice); 480*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean beginReliableWrite(); 481*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void close(); 482*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean connect(); 483*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void disconnect(); 484*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean discoverServices(); 485*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean executeReliableWrite(); 486*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 487*344a7f5eSAndroid Build Coastguard Worker method public int getConnectionState(android.bluetooth.BluetoothDevice); 488*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothDevice getDevice(); 489*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 490*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattService getService(java.util.UUID); 491*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothGattService> getServices(); 492*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean readCharacteristic(android.bluetooth.BluetoothGattCharacteristic); 493*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean readDescriptor(android.bluetooth.BluetoothGattDescriptor); 494*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void readPhy(); 495*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean readRemoteRssi(); 496*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean requestConnectionPriority(int); 497*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean requestMtu(int); 498*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean setCharacteristicNotification(android.bluetooth.BluetoothGattCharacteristic, boolean); 499*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void setPreferredPhy(int, int, int); 500*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean writeCharacteristic(android.bluetooth.BluetoothGattCharacteristic); 501*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean writeDescriptor(android.bluetooth.BluetoothGattDescriptor); 502*344a7f5eSAndroid Build Coastguard Worker field public static final int CONNECTION_PRIORITY_BALANCED = 0; // 0x0 503*344a7f5eSAndroid Build Coastguard Worker field public static final int CONNECTION_PRIORITY_HIGH = 1; // 0x1 504*344a7f5eSAndroid Build Coastguard Worker field public static final int CONNECTION_PRIORITY_LOW_POWER = 2; // 0x2 505*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_CONNECTION_CONGESTED = 143; // 0x8f 506*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_FAILURE = 257; // 0x101 507*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_INSUFFICIENT_AUTHENTICATION = 5; // 0x5 508*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_INSUFFICIENT_ENCRYPTION = 15; // 0xf 509*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_INVALID_ATTRIBUTE_LENGTH = 13; // 0xd 510*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_INVALID_OFFSET = 7; // 0x7 511*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_READ_NOT_PERMITTED = 2; // 0x2 512*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_REQUEST_NOT_SUPPORTED = 6; // 0x6 513*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_SUCCESS = 0; // 0x0 514*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_WRITE_NOT_PERMITTED = 3; // 0x3 515*344a7f5eSAndroid Build Coastguard Worker } 516*344a7f5eSAndroid Build Coastguard Worker 517*344a7f5eSAndroid Build Coastguard Worker public abstract class BluetoothGattCallback { 518*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothGattCallback(); 519*344a7f5eSAndroid Build Coastguard Worker method public void onCharacteristicChanged(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic); 520*344a7f5eSAndroid Build Coastguard Worker method public void onCharacteristicRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic, int); 521*344a7f5eSAndroid Build Coastguard Worker method public void onCharacteristicWrite(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattCharacteristic, int); 522*344a7f5eSAndroid Build Coastguard Worker method public void onConnectionStateChange(android.bluetooth.BluetoothGatt, int, int); 523*344a7f5eSAndroid Build Coastguard Worker method public void onDescriptorRead(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int); 524*344a7f5eSAndroid Build Coastguard Worker method public void onDescriptorWrite(android.bluetooth.BluetoothGatt, android.bluetooth.BluetoothGattDescriptor, int); 525*344a7f5eSAndroid Build Coastguard Worker method public void onMtuChanged(android.bluetooth.BluetoothGatt, int, int); 526*344a7f5eSAndroid Build Coastguard Worker method public void onPhyRead(android.bluetooth.BluetoothGatt, int, int, int); 527*344a7f5eSAndroid Build Coastguard Worker method public void onPhyUpdate(android.bluetooth.BluetoothGatt, int, int, int); 528*344a7f5eSAndroid Build Coastguard Worker method public void onReadRemoteRssi(android.bluetooth.BluetoothGatt, int, int); 529*344a7f5eSAndroid Build Coastguard Worker method public void onReliableWriteCompleted(android.bluetooth.BluetoothGatt, int); 530*344a7f5eSAndroid Build Coastguard Worker method public void onServiceChanged(@NonNull android.bluetooth.BluetoothGatt); 531*344a7f5eSAndroid Build Coastguard Worker method public void onServicesDiscovered(android.bluetooth.BluetoothGatt, int); 532*344a7f5eSAndroid Build Coastguard Worker } 533*344a7f5eSAndroid Build Coastguard Worker 534*344a7f5eSAndroid Build Coastguard Worker public class BluetoothGattCharacteristic implements android.os.Parcelable { 535*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothGattCharacteristic(java.util.UUID, int, int); 536*344a7f5eSAndroid Build Coastguard Worker method public boolean addDescriptor(android.bluetooth.BluetoothGattDescriptor); 537*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 538*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattDescriptor getDescriptor(java.util.UUID); 539*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothGattDescriptor> getDescriptors(); 540*344a7f5eSAndroid Build Coastguard Worker method public Float getFloatValue(int, int); 541*344a7f5eSAndroid Build Coastguard Worker method public int getInstanceId(); 542*344a7f5eSAndroid Build Coastguard Worker method public Integer getIntValue(int, int); 543*344a7f5eSAndroid Build Coastguard Worker method public int getPermissions(); 544*344a7f5eSAndroid Build Coastguard Worker method public int getProperties(); 545*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattService getService(); 546*344a7f5eSAndroid Build Coastguard Worker method public String getStringValue(int); 547*344a7f5eSAndroid Build Coastguard Worker method public java.util.UUID getUuid(); 548*344a7f5eSAndroid Build Coastguard Worker method public byte[] getValue(); 549*344a7f5eSAndroid Build Coastguard Worker method public int getWriteType(); 550*344a7f5eSAndroid Build Coastguard Worker method public boolean setValue(byte[]); 551*344a7f5eSAndroid Build Coastguard Worker method public boolean setValue(int, int, int); 552*344a7f5eSAndroid Build Coastguard Worker method public boolean setValue(int, int, int, int); 553*344a7f5eSAndroid Build Coastguard Worker method public boolean setValue(String); 554*344a7f5eSAndroid Build Coastguard Worker method public void setWriteType(int); 555*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 556*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothGattCharacteristic> CREATOR; 557*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_FLOAT = 52; // 0x34 558*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_SFLOAT = 50; // 0x32 559*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_SINT16 = 34; // 0x22 560*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_SINT32 = 36; // 0x24 561*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_SINT8 = 33; // 0x21 562*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_UINT16 = 18; // 0x12 563*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_UINT32 = 20; // 0x14 564*344a7f5eSAndroid Build Coastguard Worker field public static final int FORMAT_UINT8 = 17; // 0x11 565*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ = 1; // 0x1 566*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ_ENCRYPTED = 2; // 0x2 567*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ_ENCRYPTED_MITM = 4; // 0x4 568*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE = 16; // 0x10 569*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_ENCRYPTED = 32; // 0x20 570*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_ENCRYPTED_MITM = 64; // 0x40 571*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_SIGNED = 128; // 0x80 572*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_SIGNED_MITM = 256; // 0x100 573*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_BROADCAST = 1; // 0x1 574*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_EXTENDED_PROPS = 128; // 0x80 575*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_INDICATE = 32; // 0x20 576*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_NOTIFY = 16; // 0x10 577*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_READ = 2; // 0x2 578*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_SIGNED_WRITE = 64; // 0x40 579*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_WRITE = 8; // 0x8 580*344a7f5eSAndroid Build Coastguard Worker field public static final int PROPERTY_WRITE_NO_RESPONSE = 4; // 0x4 581*344a7f5eSAndroid Build Coastguard Worker field public static final int WRITE_TYPE_DEFAULT = 2; // 0x2 582*344a7f5eSAndroid Build Coastguard Worker field public static final int WRITE_TYPE_NO_RESPONSE = 1; // 0x1 583*344a7f5eSAndroid Build Coastguard Worker field public static final int WRITE_TYPE_SIGNED = 4; // 0x4 584*344a7f5eSAndroid Build Coastguard Worker field protected java.util.List<android.bluetooth.BluetoothGattDescriptor> mDescriptors; 585*344a7f5eSAndroid Build Coastguard Worker } 586*344a7f5eSAndroid Build Coastguard Worker 587*344a7f5eSAndroid Build Coastguard Worker public class BluetoothGattDescriptor implements android.os.Parcelable { 588*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothGattDescriptor(java.util.UUID, int); 589*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 590*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattCharacteristic getCharacteristic(); 591*344a7f5eSAndroid Build Coastguard Worker method public int getPermissions(); 592*344a7f5eSAndroid Build Coastguard Worker method public java.util.UUID getUuid(); 593*344a7f5eSAndroid Build Coastguard Worker method public byte[] getValue(); 594*344a7f5eSAndroid Build Coastguard Worker method public boolean setValue(byte[]); 595*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 596*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothGattDescriptor> CREATOR; 597*344a7f5eSAndroid Build Coastguard Worker field public static final byte[] DISABLE_NOTIFICATION_VALUE; 598*344a7f5eSAndroid Build Coastguard Worker field public static final byte[] ENABLE_INDICATION_VALUE; 599*344a7f5eSAndroid Build Coastguard Worker field public static final byte[] ENABLE_NOTIFICATION_VALUE; 600*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ = 1; // 0x1 601*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ_ENCRYPTED = 2; // 0x2 602*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_READ_ENCRYPTED_MITM = 4; // 0x4 603*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE = 16; // 0x10 604*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_ENCRYPTED = 32; // 0x20 605*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_ENCRYPTED_MITM = 64; // 0x40 606*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_SIGNED = 128; // 0x80 607*344a7f5eSAndroid Build Coastguard Worker field public static final int PERMISSION_WRITE_SIGNED_MITM = 256; // 0x100 608*344a7f5eSAndroid Build Coastguard Worker } 609*344a7f5eSAndroid Build Coastguard Worker 610*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothGattServer implements android.bluetooth.BluetoothProfile { 611*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean addService(android.bluetooth.BluetoothGattService); 612*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void cancelConnection(android.bluetooth.BluetoothDevice); 613*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void clearServices(); 614*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void close(); 615*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean connect(android.bluetooth.BluetoothDevice, boolean); 616*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 617*344a7f5eSAndroid Build Coastguard Worker method public int getConnectionState(android.bluetooth.BluetoothDevice); 618*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 619*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattService getService(java.util.UUID); 620*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothGattService> getServices(); 621*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean notifyCharacteristicChanged(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothGattCharacteristic, boolean); 622*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void readPhy(android.bluetooth.BluetoothDevice); 623*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean removeService(android.bluetooth.BluetoothGattService); 624*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean sendResponse(android.bluetooth.BluetoothDevice, int, int, int, byte[]); 625*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void setPreferredPhy(android.bluetooth.BluetoothDevice, int, int, int); 626*344a7f5eSAndroid Build Coastguard Worker } 627*344a7f5eSAndroid Build Coastguard Worker 628*344a7f5eSAndroid Build Coastguard Worker public abstract class BluetoothGattServerCallback { 629*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothGattServerCallback(); 630*344a7f5eSAndroid Build Coastguard Worker method public void onCharacteristicReadRequest(android.bluetooth.BluetoothDevice, int, int, android.bluetooth.BluetoothGattCharacteristic); 631*344a7f5eSAndroid Build Coastguard Worker method public void onCharacteristicWriteRequest(android.bluetooth.BluetoothDevice, int, android.bluetooth.BluetoothGattCharacteristic, boolean, boolean, int, byte[]); 632*344a7f5eSAndroid Build Coastguard Worker method public void onConnectionStateChange(android.bluetooth.BluetoothDevice, int, int); 633*344a7f5eSAndroid Build Coastguard Worker method public void onDescriptorReadRequest(android.bluetooth.BluetoothDevice, int, int, android.bluetooth.BluetoothGattDescriptor); 634*344a7f5eSAndroid Build Coastguard Worker method public void onDescriptorWriteRequest(android.bluetooth.BluetoothDevice, int, android.bluetooth.BluetoothGattDescriptor, boolean, boolean, int, byte[]); 635*344a7f5eSAndroid Build Coastguard Worker method public void onExecuteWrite(android.bluetooth.BluetoothDevice, int, boolean); 636*344a7f5eSAndroid Build Coastguard Worker method public void onMtuChanged(android.bluetooth.BluetoothDevice, int); 637*344a7f5eSAndroid Build Coastguard Worker method public void onNotificationSent(android.bluetooth.BluetoothDevice, int); 638*344a7f5eSAndroid Build Coastguard Worker method public void onPhyRead(android.bluetooth.BluetoothDevice, int, int, int); 639*344a7f5eSAndroid Build Coastguard Worker method public void onPhyUpdate(android.bluetooth.BluetoothDevice, int, int, int); 640*344a7f5eSAndroid Build Coastguard Worker method public void onServiceAdded(int, android.bluetooth.BluetoothGattService); 641*344a7f5eSAndroid Build Coastguard Worker } 642*344a7f5eSAndroid Build Coastguard Worker 643*344a7f5eSAndroid Build Coastguard Worker public class BluetoothGattService implements android.os.Parcelable { 644*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothGattService(java.util.UUID, int); 645*344a7f5eSAndroid Build Coastguard Worker method public boolean addCharacteristic(android.bluetooth.BluetoothGattCharacteristic); 646*344a7f5eSAndroid Build Coastguard Worker method public boolean addService(android.bluetooth.BluetoothGattService); 647*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 648*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothGattCharacteristic getCharacteristic(java.util.UUID); 649*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothGattCharacteristic> getCharacteristics(); 650*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothGattService> getIncludedServices(); 651*344a7f5eSAndroid Build Coastguard Worker method public int getInstanceId(); 652*344a7f5eSAndroid Build Coastguard Worker method public int getType(); 653*344a7f5eSAndroid Build Coastguard Worker method public java.util.UUID getUuid(); 654*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 655*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothGattService> CREATOR; 656*344a7f5eSAndroid Build Coastguard Worker field public static final int SERVICE_TYPE_PRIMARY = 0; // 0x0 657*344a7f5eSAndroid Build Coastguard Worker field public static final int SERVICE_TYPE_SECONDARY = 1; // 0x1 658*344a7f5eSAndroid Build Coastguard Worker field protected java.util.List<android.bluetooth.BluetoothGattCharacteristic> mCharacteristics; 659*344a7f5eSAndroid Build Coastguard Worker field protected java.util.List<android.bluetooth.BluetoothGattService> mIncludedServices; 660*344a7f5eSAndroid Build Coastguard Worker } 661*344a7f5eSAndroid Build Coastguard Worker 662*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothHeadset implements android.bluetooth.BluetoothProfile { 663*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 664*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(android.bluetooth.BluetoothDevice); 665*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 666*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isAudioConnected(android.bluetooth.BluetoothDevice); 667*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isNoiseReductionSupported(@NonNull android.bluetooth.BluetoothDevice); 668*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean isVoiceRecognitionSupported(@NonNull android.bluetooth.BluetoothDevice); 669*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean sendVendorSpecificResultCode(android.bluetooth.BluetoothDevice, String, String); 670*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(allOf={android.Manifest.permission.BLUETOOTH_CONNECT, android.Manifest.permission.MODIFY_PHONE_STATE}) public boolean startVoiceRecognition(android.bluetooth.BluetoothDevice); 671*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean stopVoiceRecognition(android.bluetooth.BluetoothDevice); 672*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_AUDIO_STATE_CHANGED = "android.bluetooth.headset.profile.action.AUDIO_STATE_CHANGED"; 673*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.headset.profile.action.CONNECTION_STATE_CHANGED"; 674*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_VENDOR_SPECIFIC_HEADSET_EVENT = "android.bluetooth.headset.action.VENDOR_SPECIFIC_HEADSET_EVENT"; 675*344a7f5eSAndroid Build Coastguard Worker field public static final int AT_CMD_TYPE_ACTION = 4; // 0x4 676*344a7f5eSAndroid Build Coastguard Worker field public static final int AT_CMD_TYPE_BASIC = 3; // 0x3 677*344a7f5eSAndroid Build Coastguard Worker field public static final int AT_CMD_TYPE_READ = 0; // 0x0 678*344a7f5eSAndroid Build Coastguard Worker field public static final int AT_CMD_TYPE_SET = 2; // 0x2 679*344a7f5eSAndroid Build Coastguard Worker field public static final int AT_CMD_TYPE_TEST = 1; // 0x1 680*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_ARGS = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_ARGS"; 681*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD"; 682*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE = "android.bluetooth.headset.extra.VENDOR_SPECIFIC_HEADSET_EVENT_CMD_TYPE"; 683*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_AUDIO_CONNECTED = 12; // 0xc 684*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_AUDIO_CONNECTING = 11; // 0xb 685*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_AUDIO_DISCONNECTED = 10; // 0xa 686*344a7f5eSAndroid Build Coastguard Worker field public static final String VENDOR_RESULT_CODE_COMMAND_ANDROID = "+ANDROID"; 687*344a7f5eSAndroid Build Coastguard Worker field public static final String VENDOR_SPECIFIC_HEADSET_EVENT_COMPANY_ID_CATEGORY = "android.bluetooth.headset.intent.category.companyid"; 688*344a7f5eSAndroid Build Coastguard Worker } 689*344a7f5eSAndroid Build Coastguard Worker 690*344a7f5eSAndroid Build Coastguard Worker @Deprecated public final class BluetoothHealth implements android.bluetooth.BluetoothProfile { 691*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean connectChannelToSource(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration); 692*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean disconnectChannel(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration, int); 693*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 694*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(android.bluetooth.BluetoothDevice); 695*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 696*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.os.ParcelFileDescriptor getMainChannelFd(android.bluetooth.BluetoothDevice, android.bluetooth.BluetoothHealthAppConfiguration); 697*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean registerSinkAppConfiguration(String, int, android.bluetooth.BluetoothHealthCallback); 698*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean unregisterAppConfiguration(android.bluetooth.BluetoothHealthAppConfiguration); 699*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int APP_CONFIG_REGISTRATION_FAILURE = 1; // 0x1 700*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int APP_CONFIG_REGISTRATION_SUCCESS = 0; // 0x0 701*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int APP_CONFIG_UNREGISTRATION_FAILURE = 3; // 0x3 702*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int APP_CONFIG_UNREGISTRATION_SUCCESS = 2; // 0x2 703*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int CHANNEL_TYPE_RELIABLE = 10; // 0xa 704*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int CHANNEL_TYPE_STREAMING = 11; // 0xb 705*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int SINK_ROLE = 2; // 0x2 706*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int SOURCE_ROLE = 1; // 0x1 707*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATE_CHANNEL_CONNECTED = 2; // 0x2 708*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATE_CHANNEL_CONNECTING = 1; // 0x1 709*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATE_CHANNEL_DISCONNECTED = 0; // 0x0 710*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int STATE_CHANNEL_DISCONNECTING = 3; // 0x3 711*344a7f5eSAndroid Build Coastguard Worker } 712*344a7f5eSAndroid Build Coastguard Worker 713*344a7f5eSAndroid Build Coastguard Worker @Deprecated public final class BluetoothHealthAppConfiguration implements android.os.Parcelable { 714*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int describeContents(); 715*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getDataType(); 716*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public String getName(); 717*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public int getRole(); 718*344a7f5eSAndroid Build Coastguard Worker method @Deprecated public void writeToParcel(android.os.Parcel, int); 719*344a7f5eSAndroid Build Coastguard Worker field @Deprecated @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothHealthAppConfiguration> CREATOR; 720*344a7f5eSAndroid Build Coastguard Worker } 721*344a7f5eSAndroid Build Coastguard Worker 722*344a7f5eSAndroid Build Coastguard Worker @Deprecated public abstract class BluetoothHealthCallback { 723*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public BluetoothHealthCallback(); 724*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @BinderThread public void onHealthAppConfigurationStatusChange(android.bluetooth.BluetoothHealthAppConfiguration, int); 725*344a7f5eSAndroid Build Coastguard Worker method @Deprecated @BinderThread public void onHealthChannelStateChange(android.bluetooth.BluetoothHealthAppConfiguration, android.bluetooth.BluetoothDevice, int, int, android.os.ParcelFileDescriptor, int); 726*344a7f5eSAndroid Build Coastguard Worker } 727*344a7f5eSAndroid Build Coastguard Worker 728*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothHearingAid implements android.bluetooth.BluetoothProfile { 729*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 730*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(@NonNull android.bluetooth.BluetoothDevice); 731*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(@NonNull int[]); 732*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.hearingaid.profile.action.CONNECTION_STATE_CHANGED"; 733*344a7f5eSAndroid Build Coastguard Worker } 734*344a7f5eSAndroid Build Coastguard Worker 735*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothHidDevice implements android.bluetooth.BluetoothProfile { 736*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean connect(android.bluetooth.BluetoothDevice); 737*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean disconnect(android.bluetooth.BluetoothDevice); 738*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 739*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(android.bluetooth.BluetoothDevice); 740*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 741*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean registerApp(android.bluetooth.BluetoothHidDeviceAppSdpSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, android.bluetooth.BluetoothHidDeviceAppQosSettings, java.util.concurrent.Executor, android.bluetooth.BluetoothHidDevice.Callback); 742*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean replyReport(android.bluetooth.BluetoothDevice, byte, byte, byte[]); 743*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean reportError(android.bluetooth.BluetoothDevice, byte); 744*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean sendReport(android.bluetooth.BluetoothDevice, int, byte[]); 745*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public boolean unregisterApp(); 746*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_CONNECTION_STATE_CHANGED = "android.bluetooth.hiddevice.profile.action.CONNECTION_STATE_CHANGED"; 747*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_INVALID_PARAM = 4; // 0x4 748*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_INVALID_RPT_ID = 2; // 0x2 749*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_NOT_READY = 1; // 0x1 750*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_SUCCESS = 0; // 0x0 751*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_UNKNOWN = 14; // 0xe 752*344a7f5eSAndroid Build Coastguard Worker field public static final byte ERROR_RSP_UNSUPPORTED_REQ = 3; // 0x3 753*344a7f5eSAndroid Build Coastguard Worker field public static final byte PROTOCOL_BOOT_MODE = 0; // 0x0 754*344a7f5eSAndroid Build Coastguard Worker field public static final byte PROTOCOL_REPORT_MODE = 1; // 0x1 755*344a7f5eSAndroid Build Coastguard Worker field public static final byte REPORT_TYPE_FEATURE = 3; // 0x3 756*344a7f5eSAndroid Build Coastguard Worker field public static final byte REPORT_TYPE_INPUT = 1; // 0x1 757*344a7f5eSAndroid Build Coastguard Worker field public static final byte REPORT_TYPE_OUTPUT = 2; // 0x2 758*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS1_COMBO = -64; // 0xffffffc0 759*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS1_KEYBOARD = 64; // 0x40 760*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS1_MOUSE = -128; // 0xffffff80 761*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS1_NONE = 0; // 0x0 762*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_CARD_READER = 6; // 0x6 763*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_DIGITIZER_TABLET = 5; // 0x5 764*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_GAMEPAD = 2; // 0x2 765*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_JOYSTICK = 1; // 0x1 766*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_REMOTE_CONTROL = 3; // 0x3 767*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_SENSING_DEVICE = 4; // 0x4 768*344a7f5eSAndroid Build Coastguard Worker field public static final byte SUBCLASS2_UNCATEGORIZED = 0; // 0x0 769*344a7f5eSAndroid Build Coastguard Worker } 770*344a7f5eSAndroid Build Coastguard Worker 771*344a7f5eSAndroid Build Coastguard Worker public abstract static class BluetoothHidDevice.Callback { 772*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothHidDevice.Callback(); 773*344a7f5eSAndroid Build Coastguard Worker method public void onAppStatusChanged(android.bluetooth.BluetoothDevice, boolean); 774*344a7f5eSAndroid Build Coastguard Worker method public void onConnectionStateChanged(android.bluetooth.BluetoothDevice, int); 775*344a7f5eSAndroid Build Coastguard Worker method public void onGetReport(android.bluetooth.BluetoothDevice, byte, byte, int); 776*344a7f5eSAndroid Build Coastguard Worker method public void onInterruptData(android.bluetooth.BluetoothDevice, byte, byte[]); 777*344a7f5eSAndroid Build Coastguard Worker method public void onSetProtocol(android.bluetooth.BluetoothDevice, byte); 778*344a7f5eSAndroid Build Coastguard Worker method public void onSetReport(android.bluetooth.BluetoothDevice, byte, byte, byte[]); 779*344a7f5eSAndroid Build Coastguard Worker method public void onVirtualCableUnplug(android.bluetooth.BluetoothDevice); 780*344a7f5eSAndroid Build Coastguard Worker } 781*344a7f5eSAndroid Build Coastguard Worker 782*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothHidDeviceAppQosSettings implements android.os.Parcelable { 783*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothHidDeviceAppQosSettings(int, int, int, int, int, int); 784*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 785*344a7f5eSAndroid Build Coastguard Worker method public int getDelayVariation(); 786*344a7f5eSAndroid Build Coastguard Worker method public int getLatency(); 787*344a7f5eSAndroid Build Coastguard Worker method public int getPeakBandwidth(); 788*344a7f5eSAndroid Build Coastguard Worker method public int getServiceType(); 789*344a7f5eSAndroid Build Coastguard Worker method public int getTokenBucketSize(); 790*344a7f5eSAndroid Build Coastguard Worker method public int getTokenRate(); 791*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 792*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothHidDeviceAppQosSettings> CREATOR; 793*344a7f5eSAndroid Build Coastguard Worker field public static final int MAX = -1; // 0xffffffff 794*344a7f5eSAndroid Build Coastguard Worker field public static final int SERVICE_BEST_EFFORT = 1; // 0x1 795*344a7f5eSAndroid Build Coastguard Worker field public static final int SERVICE_GUARANTEED = 2; // 0x2 796*344a7f5eSAndroid Build Coastguard Worker field public static final int SERVICE_NO_TRAFFIC = 0; // 0x0 797*344a7f5eSAndroid Build Coastguard Worker } 798*344a7f5eSAndroid Build Coastguard Worker 799*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothHidDeviceAppSdpSettings implements android.os.Parcelable { 800*344a7f5eSAndroid Build Coastguard Worker ctor public BluetoothHidDeviceAppSdpSettings(String, String, String, byte, byte[]); 801*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 802*344a7f5eSAndroid Build Coastguard Worker method public String getDescription(); 803*344a7f5eSAndroid Build Coastguard Worker method public byte[] getDescriptors(); 804*344a7f5eSAndroid Build Coastguard Worker method public String getName(); 805*344a7f5eSAndroid Build Coastguard Worker method public String getProvider(); 806*344a7f5eSAndroid Build Coastguard Worker method public byte getSubclass(); 807*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 808*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.BluetoothHidDeviceAppSdpSettings> CREATOR; 809*344a7f5eSAndroid Build Coastguard Worker } 810*344a7f5eSAndroid Build Coastguard Worker 811*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothLeAudio implements java.lang.AutoCloseable android.bluetooth.BluetoothProfile { 812*344a7f5eSAndroid Build Coastguard Worker method public void close(); 813*344a7f5eSAndroid Build Coastguard Worker method protected void finalize(); 814*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 815*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(@NonNull android.bluetooth.BluetoothDevice); 816*344a7f5eSAndroid Build Coastguard Worker method @NonNull @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(@NonNull int[]); 817*344a7f5eSAndroid Build Coastguard Worker field @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public static final String ACTION_LE_AUDIO_CONNECTION_STATE_CHANGED = "android.bluetooth.action.LE_AUDIO_CONNECTION_STATE_CHANGED"; 818*344a7f5eSAndroid Build Coastguard Worker } 819*344a7f5eSAndroid Build Coastguard Worker 820*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothManager { 821*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothAdapter getAdapter(); 822*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(int); 823*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public int getConnectionState(android.bluetooth.BluetoothDevice, int); 824*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int, int[]); 825*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public android.bluetooth.BluetoothGattServer openGattServer(android.content.Context, android.bluetooth.BluetoothGattServerCallback); 826*344a7f5eSAndroid Build Coastguard Worker } 827*344a7f5eSAndroid Build Coastguard Worker 828*344a7f5eSAndroid Build Coastguard Worker public interface BluetoothProfile { 829*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getConnectedDevices(); 830*344a7f5eSAndroid Build Coastguard Worker method public int getConnectionState(android.bluetooth.BluetoothDevice); 831*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.bluetooth.BluetoothDevice> getDevicesMatchingConnectionStates(int[]); 832*344a7f5eSAndroid Build Coastguard Worker field public static final int A2DP = 2; // 0x2 833*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_PREVIOUS_STATE = "android.bluetooth.profile.extra.PREVIOUS_STATE"; 834*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_STATE = "android.bluetooth.profile.extra.STATE"; 835*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT = 7; // 0x7 836*344a7f5eSAndroid Build Coastguard Worker field public static final int GATT_SERVER = 8; // 0x8 837*344a7f5eSAndroid Build Coastguard Worker field public static final int HEADSET = 1; // 0x1 838*344a7f5eSAndroid Build Coastguard Worker field @Deprecated public static final int HEALTH = 3; // 0x3 839*344a7f5eSAndroid Build Coastguard Worker field public static final int HEARING_AID = 21; // 0x15 840*344a7f5eSAndroid Build Coastguard Worker field public static final int HID_DEVICE = 19; // 0x13 841*344a7f5eSAndroid Build Coastguard Worker field public static final int SAP = 10; // 0xa 842*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_CONNECTED = 2; // 0x2 843*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_CONNECTING = 1; // 0x1 844*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_DISCONNECTED = 0; // 0x0 845*344a7f5eSAndroid Build Coastguard Worker field public static final int STATE_DISCONNECTING = 3; // 0x3 846*344a7f5eSAndroid Build Coastguard Worker } 847*344a7f5eSAndroid Build Coastguard Worker 848*344a7f5eSAndroid Build Coastguard Worker public static interface BluetoothProfile.ServiceListener { 849*344a7f5eSAndroid Build Coastguard Worker method public void onServiceConnected(int, android.bluetooth.BluetoothProfile); 850*344a7f5eSAndroid Build Coastguard Worker method public void onServiceDisconnected(int); 851*344a7f5eSAndroid Build Coastguard Worker } 852*344a7f5eSAndroid Build Coastguard Worker 853*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothServerSocket implements java.io.Closeable { 854*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothSocket accept() throws java.io.IOException; 855*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothSocket accept(int) throws java.io.IOException; 856*344a7f5eSAndroid Build Coastguard Worker method public void close() throws java.io.IOException; 857*344a7f5eSAndroid Build Coastguard Worker method public int getPsm(); 858*344a7f5eSAndroid Build Coastguard Worker } 859*344a7f5eSAndroid Build Coastguard Worker 860*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothSocket implements java.io.Closeable { 861*344a7f5eSAndroid Build Coastguard Worker method public void close() throws java.io.IOException; 862*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_CONNECT) public void connect() throws java.io.IOException; 863*344a7f5eSAndroid Build Coastguard Worker method public int getConnectionType(); 864*344a7f5eSAndroid Build Coastguard Worker method public java.io.InputStream getInputStream() throws java.io.IOException; 865*344a7f5eSAndroid Build Coastguard Worker method public int getMaxReceivePacketSize(); 866*344a7f5eSAndroid Build Coastguard Worker method public int getMaxTransmitPacketSize(); 867*344a7f5eSAndroid Build Coastguard Worker method public java.io.OutputStream getOutputStream() throws java.io.IOException; 868*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothDevice getRemoteDevice(); 869*344a7f5eSAndroid Build Coastguard Worker method public boolean isConnected(); 870*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_L2CAP = 3; // 0x3 871*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_RFCOMM = 1; // 0x1 872*344a7f5eSAndroid Build Coastguard Worker field public static final int TYPE_SCO = 2; // 0x2 873*344a7f5eSAndroid Build Coastguard Worker } 874*344a7f5eSAndroid Build Coastguard Worker 875*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothStatusCodes { 876*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_BLUETOOTH_NOT_ALLOWED = 2; // 0x2 877*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_BLUETOOTH_NOT_ENABLED = 1; // 0x1 878*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_DEVICE_NOT_BONDED = 3; // 0x3 879*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_MISSING_BLUETOOTH_CONNECT_PERMISSION = 6; // 0x6 880*344a7f5eSAndroid Build Coastguard Worker field public static final int ERROR_UNKNOWN = 2147483647; // 0x7fffffff 881*344a7f5eSAndroid Build Coastguard Worker field public static final int SUCCESS = 0; // 0x0 882*344a7f5eSAndroid Build Coastguard Worker } 883*344a7f5eSAndroid Build Coastguard Worker 884*344a7f5eSAndroid Build Coastguard Worker} 885*344a7f5eSAndroid Build Coastguard Worker 886*344a7f5eSAndroid Build Coastguard Workerpackage android.bluetooth.le { 887*344a7f5eSAndroid Build Coastguard Worker 888*344a7f5eSAndroid Build Coastguard Worker public abstract class AdvertiseCallback { 889*344a7f5eSAndroid Build Coastguard Worker ctor public AdvertiseCallback(); 890*344a7f5eSAndroid Build Coastguard Worker method public void onStartFailure(int); 891*344a7f5eSAndroid Build Coastguard Worker method public void onStartSuccess(android.bluetooth.le.AdvertiseSettings); 892*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_ALREADY_STARTED = 3; // 0x3 893*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_DATA_TOO_LARGE = 1; // 0x1 894*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_FEATURE_UNSUPPORTED = 5; // 0x5 895*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_INTERNAL_ERROR = 4; // 0x4 896*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_TOO_MANY_ADVERTISERS = 2; // 0x2 897*344a7f5eSAndroid Build Coastguard Worker } 898*344a7f5eSAndroid Build Coastguard Worker 899*344a7f5eSAndroid Build Coastguard Worker public final class AdvertiseData implements android.os.Parcelable { 900*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 901*344a7f5eSAndroid Build Coastguard Worker method public boolean getIncludeDeviceName(); 902*344a7f5eSAndroid Build Coastguard Worker method public boolean getIncludeTxPowerLevel(); 903*344a7f5eSAndroid Build Coastguard Worker method public android.util.SparseArray<byte[]> getManufacturerSpecificData(); 904*344a7f5eSAndroid Build Coastguard Worker method public java.util.Map<android.os.ParcelUuid,byte[]> getServiceData(); 905*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<android.os.ParcelUuid> getServiceSolicitationUuids(); 906*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.os.ParcelUuid> getServiceUuids(); 907*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 908*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.AdvertiseData> CREATOR; 909*344a7f5eSAndroid Build Coastguard Worker } 910*344a7f5eSAndroid Build Coastguard Worker 911*344a7f5eSAndroid Build Coastguard Worker public static final class AdvertiseData.Builder { 912*344a7f5eSAndroid Build Coastguard Worker ctor public AdvertiseData.Builder(); 913*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData.Builder addManufacturerData(int, byte[]); 914*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData.Builder addServiceData(android.os.ParcelUuid, byte[]); 915*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.bluetooth.le.AdvertiseData.Builder addServiceSolicitationUuid(@NonNull android.os.ParcelUuid); 916*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData.Builder addServiceUuid(android.os.ParcelUuid); 917*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData build(); 918*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData.Builder setIncludeDeviceName(boolean); 919*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseData.Builder setIncludeTxPowerLevel(boolean); 920*344a7f5eSAndroid Build Coastguard Worker } 921*344a7f5eSAndroid Build Coastguard Worker 922*344a7f5eSAndroid Build Coastguard Worker public final class AdvertiseSettings implements android.os.Parcelable { 923*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 924*344a7f5eSAndroid Build Coastguard Worker method public int getMode(); 925*344a7f5eSAndroid Build Coastguard Worker method public int getTimeout(); 926*344a7f5eSAndroid Build Coastguard Worker method public int getTxPowerLevel(); 927*344a7f5eSAndroid Build Coastguard Worker method public boolean isConnectable(); 928*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 929*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_MODE_BALANCED = 1; // 0x1 930*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_MODE_LOW_LATENCY = 2; // 0x2 931*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_MODE_LOW_POWER = 0; // 0x0 932*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_TX_POWER_HIGH = 3; // 0x3 933*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_TX_POWER_LOW = 1; // 0x1 934*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_TX_POWER_MEDIUM = 2; // 0x2 935*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_TX_POWER_ULTRA_LOW = 0; // 0x0 936*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.AdvertiseSettings> CREATOR; 937*344a7f5eSAndroid Build Coastguard Worker } 938*344a7f5eSAndroid Build Coastguard Worker 939*344a7f5eSAndroid Build Coastguard Worker public static final class AdvertiseSettings.Builder { 940*344a7f5eSAndroid Build Coastguard Worker ctor public AdvertiseSettings.Builder(); 941*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseSettings build(); 942*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseSettings.Builder setAdvertiseMode(int); 943*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseSettings.Builder setConnectable(boolean); 944*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseSettings.Builder setTimeout(int); 945*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertiseSettings.Builder setTxPowerLevel(int); 946*344a7f5eSAndroid Build Coastguard Worker } 947*344a7f5eSAndroid Build Coastguard Worker 948*344a7f5eSAndroid Build Coastguard Worker public final class AdvertisingSet { 949*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void enableAdvertising(boolean, int, int); 950*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setAdvertisingData(android.bluetooth.le.AdvertiseData); 951*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setAdvertisingParameters(android.bluetooth.le.AdvertisingSetParameters); 952*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setPeriodicAdvertisingData(android.bluetooth.le.AdvertiseData); 953*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setPeriodicAdvertisingEnabled(boolean); 954*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setPeriodicAdvertisingParameters(android.bluetooth.le.PeriodicAdvertisingParameters); 955*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void setScanResponseData(android.bluetooth.le.AdvertiseData); 956*344a7f5eSAndroid Build Coastguard Worker } 957*344a7f5eSAndroid Build Coastguard Worker 958*344a7f5eSAndroid Build Coastguard Worker public abstract class AdvertisingSetCallback { 959*344a7f5eSAndroid Build Coastguard Worker ctor public AdvertisingSetCallback(); 960*344a7f5eSAndroid Build Coastguard Worker method public void onAdvertisingDataSet(android.bluetooth.le.AdvertisingSet, int); 961*344a7f5eSAndroid Build Coastguard Worker method public void onAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int); 962*344a7f5eSAndroid Build Coastguard Worker method public void onAdvertisingParametersUpdated(android.bluetooth.le.AdvertisingSet, int, int); 963*344a7f5eSAndroid Build Coastguard Worker method public void onAdvertisingSetStarted(android.bluetooth.le.AdvertisingSet, int, int); 964*344a7f5eSAndroid Build Coastguard Worker method public void onAdvertisingSetStopped(android.bluetooth.le.AdvertisingSet); 965*344a7f5eSAndroid Build Coastguard Worker method public void onPeriodicAdvertisingDataSet(android.bluetooth.le.AdvertisingSet, int); 966*344a7f5eSAndroid Build Coastguard Worker method public void onPeriodicAdvertisingEnabled(android.bluetooth.le.AdvertisingSet, boolean, int); 967*344a7f5eSAndroid Build Coastguard Worker method public void onPeriodicAdvertisingParametersUpdated(android.bluetooth.le.AdvertisingSet, int); 968*344a7f5eSAndroid Build Coastguard Worker method public void onScanResponseDataSet(android.bluetooth.le.AdvertisingSet, int); 969*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_ALREADY_STARTED = 3; // 0x3 970*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_DATA_TOO_LARGE = 1; // 0x1 971*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_FEATURE_UNSUPPORTED = 5; // 0x5 972*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_INTERNAL_ERROR = 4; // 0x4 973*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_FAILED_TOO_MANY_ADVERTISERS = 2; // 0x2 974*344a7f5eSAndroid Build Coastguard Worker field public static final int ADVERTISE_SUCCESS = 0; // 0x0 975*344a7f5eSAndroid Build Coastguard Worker } 976*344a7f5eSAndroid Build Coastguard Worker 977*344a7f5eSAndroid Build Coastguard Worker public final class AdvertisingSetParameters implements android.os.Parcelable { 978*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 979*344a7f5eSAndroid Build Coastguard Worker method public int getInterval(); 980*344a7f5eSAndroid Build Coastguard Worker method public int getPrimaryPhy(); 981*344a7f5eSAndroid Build Coastguard Worker method public int getSecondaryPhy(); 982*344a7f5eSAndroid Build Coastguard Worker method public int getTxPowerLevel(); 983*344a7f5eSAndroid Build Coastguard Worker method public boolean includeTxPower(); 984*344a7f5eSAndroid Build Coastguard Worker method public boolean isAnonymous(); 985*344a7f5eSAndroid Build Coastguard Worker method public boolean isConnectable(); 986*344a7f5eSAndroid Build Coastguard Worker method public boolean isLegacy(); 987*344a7f5eSAndroid Build Coastguard Worker method public boolean isScannable(); 988*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 989*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.AdvertisingSetParameters> CREATOR; 990*344a7f5eSAndroid Build Coastguard Worker field public static final int INTERVAL_HIGH = 1600; // 0x640 991*344a7f5eSAndroid Build Coastguard Worker field public static final int INTERVAL_LOW = 160; // 0xa0 992*344a7f5eSAndroid Build Coastguard Worker field public static final int INTERVAL_MAX = 16777215; // 0xffffff 993*344a7f5eSAndroid Build Coastguard Worker field public static final int INTERVAL_MEDIUM = 400; // 0x190 994*344a7f5eSAndroid Build Coastguard Worker field public static final int INTERVAL_MIN = 160; // 0xa0 995*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_HIGH = 1; // 0x1 996*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_LOW = -15; // 0xfffffff1 997*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_MAX = 1; // 0x1 998*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_MEDIUM = -7; // 0xfffffff9 999*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_MIN = -127; // 0xffffff81 1000*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_ULTRA_LOW = -21; // 0xffffffeb 1001*344a7f5eSAndroid Build Coastguard Worker } 1002*344a7f5eSAndroid Build Coastguard Worker 1003*344a7f5eSAndroid Build Coastguard Worker public static final class AdvertisingSetParameters.Builder { 1004*344a7f5eSAndroid Build Coastguard Worker ctor public AdvertisingSetParameters.Builder(); 1005*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters build(); 1006*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setAnonymous(boolean); 1007*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setConnectable(boolean); 1008*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setIncludeTxPower(boolean); 1009*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setInterval(int); 1010*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setLegacyMode(boolean); 1011*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setPrimaryPhy(int); 1012*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setScannable(boolean); 1013*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setSecondaryPhy(int); 1014*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.AdvertisingSetParameters.Builder setTxPowerLevel(int); 1015*344a7f5eSAndroid Build Coastguard Worker } 1016*344a7f5eSAndroid Build Coastguard Worker 1017*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothLeAdvertiser { 1018*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertising(android.bluetooth.le.AdvertiseSettings, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseCallback); 1019*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertising(android.bluetooth.le.AdvertiseSettings, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseCallback); 1020*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.PeriodicAdvertisingParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertisingSetCallback); 1021*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.PeriodicAdvertisingParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertisingSetCallback, android.os.Handler); 1022*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.PeriodicAdvertisingParameters, android.bluetooth.le.AdvertiseData, int, int, android.bluetooth.le.AdvertisingSetCallback); 1023*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void startAdvertisingSet(android.bluetooth.le.AdvertisingSetParameters, android.bluetooth.le.AdvertiseData, android.bluetooth.le.AdvertiseData, android.bluetooth.le.PeriodicAdvertisingParameters, android.bluetooth.le.AdvertiseData, int, int, android.bluetooth.le.AdvertisingSetCallback, android.os.Handler); 1024*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void stopAdvertising(android.bluetooth.le.AdvertiseCallback); 1025*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_ADVERTISE) public void stopAdvertisingSet(android.bluetooth.le.AdvertisingSetCallback); 1026*344a7f5eSAndroid Build Coastguard Worker } 1027*344a7f5eSAndroid Build Coastguard Worker 1028*344a7f5eSAndroid Build Coastguard Worker public final class BluetoothLeScanner { 1029*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void flushPendingScanResults(android.bluetooth.le.ScanCallback); 1030*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void startScan(android.bluetooth.le.ScanCallback); 1031*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void startScan(java.util.List<android.bluetooth.le.ScanFilter>, android.bluetooth.le.ScanSettings, android.bluetooth.le.ScanCallback); 1032*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public int startScan(@Nullable java.util.List<android.bluetooth.le.ScanFilter>, @Nullable android.bluetooth.le.ScanSettings, @NonNull android.app.PendingIntent); 1033*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void stopScan(android.bluetooth.le.ScanCallback); 1034*344a7f5eSAndroid Build Coastguard Worker method @RequiresPermission(android.Manifest.permission.BLUETOOTH_SCAN) public void stopScan(android.app.PendingIntent); 1035*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_CALLBACK_TYPE = "android.bluetooth.le.extra.CALLBACK_TYPE"; 1036*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_ERROR_CODE = "android.bluetooth.le.extra.ERROR_CODE"; 1037*344a7f5eSAndroid Build Coastguard Worker field public static final String EXTRA_LIST_SCAN_RESULT = "android.bluetooth.le.extra.LIST_SCAN_RESULT"; 1038*344a7f5eSAndroid Build Coastguard Worker } 1039*344a7f5eSAndroid Build Coastguard Worker 1040*344a7f5eSAndroid Build Coastguard Worker public final class PeriodicAdvertisingParameters implements android.os.Parcelable { 1041*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 1042*344a7f5eSAndroid Build Coastguard Worker method public boolean getIncludeTxPower(); 1043*344a7f5eSAndroid Build Coastguard Worker method public int getInterval(); 1044*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 1045*344a7f5eSAndroid Build Coastguard Worker field public static final android.os.Parcelable.Creator<android.bluetooth.le.PeriodicAdvertisingParameters> CREATOR; 1046*344a7f5eSAndroid Build Coastguard Worker } 1047*344a7f5eSAndroid Build Coastguard Worker 1048*344a7f5eSAndroid Build Coastguard Worker public static final class PeriodicAdvertisingParameters.Builder { 1049*344a7f5eSAndroid Build Coastguard Worker ctor public PeriodicAdvertisingParameters.Builder(); 1050*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.PeriodicAdvertisingParameters build(); 1051*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.PeriodicAdvertisingParameters.Builder setIncludeTxPower(boolean); 1052*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.PeriodicAdvertisingParameters.Builder setInterval(int); 1053*344a7f5eSAndroid Build Coastguard Worker } 1054*344a7f5eSAndroid Build Coastguard Worker 1055*344a7f5eSAndroid Build Coastguard Worker public abstract class ScanCallback { 1056*344a7f5eSAndroid Build Coastguard Worker ctor public ScanCallback(); 1057*344a7f5eSAndroid Build Coastguard Worker method public void onBatchScanResults(java.util.List<android.bluetooth.le.ScanResult>); 1058*344a7f5eSAndroid Build Coastguard Worker method public void onScanFailed(int); 1059*344a7f5eSAndroid Build Coastguard Worker method public void onScanResult(int, android.bluetooth.le.ScanResult); 1060*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_FAILED_ALREADY_STARTED = 1; // 0x1 1061*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_FAILED_APPLICATION_REGISTRATION_FAILED = 2; // 0x2 1062*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_FAILED_FEATURE_UNSUPPORTED = 4; // 0x4 1063*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_FAILED_INTERNAL_ERROR = 3; // 0x3 1064*344a7f5eSAndroid Build Coastguard Worker } 1065*344a7f5eSAndroid Build Coastguard Worker 1066*344a7f5eSAndroid Build Coastguard Worker public final class ScanFilter implements android.os.Parcelable { 1067*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 1068*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getDeviceAddress(); 1069*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getDeviceName(); 1070*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getManufacturerData(); 1071*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getManufacturerDataMask(); 1072*344a7f5eSAndroid Build Coastguard Worker method public int getManufacturerId(); 1073*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getServiceData(); 1074*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getServiceDataMask(); 1075*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.ParcelUuid getServiceDataUuid(); 1076*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.ParcelUuid getServiceSolicitationUuid(); 1077*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.ParcelUuid getServiceSolicitationUuidMask(); 1078*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.ParcelUuid getServiceUuid(); 1079*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.os.ParcelUuid getServiceUuidMask(); 1080*344a7f5eSAndroid Build Coastguard Worker method public boolean matches(android.bluetooth.le.ScanResult); 1081*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 1082*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ScanFilter> CREATOR; 1083*344a7f5eSAndroid Build Coastguard Worker } 1084*344a7f5eSAndroid Build Coastguard Worker 1085*344a7f5eSAndroid Build Coastguard Worker public static final class ScanFilter.Builder { 1086*344a7f5eSAndroid Build Coastguard Worker ctor public ScanFilter.Builder(); 1087*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter build(); 1088*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setDeviceAddress(String); 1089*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setDeviceName(String); 1090*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setManufacturerData(int, byte[]); 1091*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setManufacturerData(int, byte[], byte[]); 1092*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setServiceData(android.os.ParcelUuid, byte[]); 1093*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setServiceData(android.os.ParcelUuid, byte[], byte[]); 1094*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid(@Nullable android.os.ParcelUuid); 1095*344a7f5eSAndroid Build Coastguard Worker method @NonNull public android.bluetooth.le.ScanFilter.Builder setServiceSolicitationUuid(@Nullable android.os.ParcelUuid, @Nullable android.os.ParcelUuid); 1096*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setServiceUuid(android.os.ParcelUuid); 1097*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanFilter.Builder setServiceUuid(android.os.ParcelUuid, android.os.ParcelUuid); 1098*344a7f5eSAndroid Build Coastguard Worker } 1099*344a7f5eSAndroid Build Coastguard Worker 1100*344a7f5eSAndroid Build Coastguard Worker public final class ScanRecord { 1101*344a7f5eSAndroid Build Coastguard Worker method public int getAdvertiseFlags(); 1102*344a7f5eSAndroid Build Coastguard Worker method public byte[] getBytes(); 1103*344a7f5eSAndroid Build Coastguard Worker method @Nullable public String getDeviceName(); 1104*344a7f5eSAndroid Build Coastguard Worker method public android.util.SparseArray<byte[]> getManufacturerSpecificData(); 1105*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getManufacturerSpecificData(int); 1106*344a7f5eSAndroid Build Coastguard Worker method public java.util.Map<android.os.ParcelUuid,byte[]> getServiceData(); 1107*344a7f5eSAndroid Build Coastguard Worker method @Nullable public byte[] getServiceData(android.os.ParcelUuid); 1108*344a7f5eSAndroid Build Coastguard Worker method @NonNull public java.util.List<android.os.ParcelUuid> getServiceSolicitationUuids(); 1109*344a7f5eSAndroid Build Coastguard Worker method public java.util.List<android.os.ParcelUuid> getServiceUuids(); 1110*344a7f5eSAndroid Build Coastguard Worker method public int getTxPowerLevel(); 1111*344a7f5eSAndroid Build Coastguard Worker } 1112*344a7f5eSAndroid Build Coastguard Worker 1113*344a7f5eSAndroid Build Coastguard Worker public final class ScanResult implements android.os.Parcelable { 1114*344a7f5eSAndroid Build Coastguard Worker ctor @Deprecated public ScanResult(android.bluetooth.BluetoothDevice, android.bluetooth.le.ScanRecord, int, long); 1115*344a7f5eSAndroid Build Coastguard Worker ctor public ScanResult(android.bluetooth.BluetoothDevice, int, int, int, int, int, int, int, android.bluetooth.le.ScanRecord, long); 1116*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 1117*344a7f5eSAndroid Build Coastguard Worker method public int getAdvertisingSid(); 1118*344a7f5eSAndroid Build Coastguard Worker method public int getDataStatus(); 1119*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.BluetoothDevice getDevice(); 1120*344a7f5eSAndroid Build Coastguard Worker method public int getPeriodicAdvertisingInterval(); 1121*344a7f5eSAndroid Build Coastguard Worker method public int getPrimaryPhy(); 1122*344a7f5eSAndroid Build Coastguard Worker method public int getRssi(); 1123*344a7f5eSAndroid Build Coastguard Worker method @Nullable public android.bluetooth.le.ScanRecord getScanRecord(); 1124*344a7f5eSAndroid Build Coastguard Worker method public int getSecondaryPhy(); 1125*344a7f5eSAndroid Build Coastguard Worker method public long getTimestampNanos(); 1126*344a7f5eSAndroid Build Coastguard Worker method public int getTxPower(); 1127*344a7f5eSAndroid Build Coastguard Worker method public boolean isConnectable(); 1128*344a7f5eSAndroid Build Coastguard Worker method public boolean isLegacy(); 1129*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 1130*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ScanResult> CREATOR; 1131*344a7f5eSAndroid Build Coastguard Worker field public static final int DATA_COMPLETE = 0; // 0x0 1132*344a7f5eSAndroid Build Coastguard Worker field public static final int DATA_TRUNCATED = 2; // 0x2 1133*344a7f5eSAndroid Build Coastguard Worker field public static final int PERIODIC_INTERVAL_NOT_PRESENT = 0; // 0x0 1134*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_UNUSED = 0; // 0x0 1135*344a7f5eSAndroid Build Coastguard Worker field public static final int SID_NOT_PRESENT = 255; // 0xff 1136*344a7f5eSAndroid Build Coastguard Worker field public static final int TX_POWER_NOT_PRESENT = 127; // 0x7f 1137*344a7f5eSAndroid Build Coastguard Worker } 1138*344a7f5eSAndroid Build Coastguard Worker 1139*344a7f5eSAndroid Build Coastguard Worker public final class ScanSettings implements android.os.Parcelable { 1140*344a7f5eSAndroid Build Coastguard Worker method public int describeContents(); 1141*344a7f5eSAndroid Build Coastguard Worker method public int getCallbackType(); 1142*344a7f5eSAndroid Build Coastguard Worker method public boolean getLegacy(); 1143*344a7f5eSAndroid Build Coastguard Worker method public int getPhy(); 1144*344a7f5eSAndroid Build Coastguard Worker method public long getReportDelayMillis(); 1145*344a7f5eSAndroid Build Coastguard Worker method public int getScanMode(); 1146*344a7f5eSAndroid Build Coastguard Worker method public int getScanResultType(); 1147*344a7f5eSAndroid Build Coastguard Worker method public void writeToParcel(android.os.Parcel, int); 1148*344a7f5eSAndroid Build Coastguard Worker field public static final int CALLBACK_TYPE_ALL_MATCHES = 1; // 0x1 1149*344a7f5eSAndroid Build Coastguard Worker field public static final int CALLBACK_TYPE_FIRST_MATCH = 2; // 0x2 1150*344a7f5eSAndroid Build Coastguard Worker field public static final int CALLBACK_TYPE_MATCH_LOST = 4; // 0x4 1151*344a7f5eSAndroid Build Coastguard Worker field @NonNull public static final android.os.Parcelable.Creator<android.bluetooth.le.ScanSettings> CREATOR; 1152*344a7f5eSAndroid Build Coastguard Worker field public static final int MATCH_MODE_AGGRESSIVE = 1; // 0x1 1153*344a7f5eSAndroid Build Coastguard Worker field public static final int MATCH_MODE_STICKY = 2; // 0x2 1154*344a7f5eSAndroid Build Coastguard Worker field public static final int MATCH_NUM_FEW_ADVERTISEMENT = 2; // 0x2 1155*344a7f5eSAndroid Build Coastguard Worker field public static final int MATCH_NUM_MAX_ADVERTISEMENT = 3; // 0x3 1156*344a7f5eSAndroid Build Coastguard Worker field public static final int MATCH_NUM_ONE_ADVERTISEMENT = 1; // 0x1 1157*344a7f5eSAndroid Build Coastguard Worker field public static final int PHY_LE_ALL_SUPPORTED = 255; // 0xff 1158*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_BALANCED = 1; // 0x1 1159*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_LOW_LATENCY = 2; // 0x2 1160*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_LOW_POWER = 0; // 0x0 1161*344a7f5eSAndroid Build Coastguard Worker field public static final int SCAN_MODE_OPPORTUNISTIC = -1; // 0xffffffff 1162*344a7f5eSAndroid Build Coastguard Worker } 1163*344a7f5eSAndroid Build Coastguard Worker 1164*344a7f5eSAndroid Build Coastguard Worker public static final class ScanSettings.Builder { 1165*344a7f5eSAndroid Build Coastguard Worker ctor public ScanSettings.Builder(); 1166*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings build(); 1167*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setCallbackType(int); 1168*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setLegacy(boolean); 1169*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setMatchMode(int); 1170*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setNumOfMatches(int); 1171*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setPhy(int); 1172*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setReportDelay(long); 1173*344a7f5eSAndroid Build Coastguard Worker method public android.bluetooth.le.ScanSettings.Builder setScanMode(int); 1174*344a7f5eSAndroid Build Coastguard Worker } 1175*344a7f5eSAndroid Build Coastguard Worker 1176*344a7f5eSAndroid Build Coastguard Worker} 1177*344a7f5eSAndroid Build Coastguard Worker 1178