/packages/modules/Nfc/NfcNci/src/com/android/nfc/handover/ |
D | BluetoothPeripheralHandover.java | 148 int transport, OobData oobData, ParcelUuid[] uuids, BluetoothClass btClass, in BluetoothPeripheralHandover() argument 151 btClass, callback, BluetoothAdapter.getDefaultAdapter()); in BluetoothPeripheralHandover() 156 int transport, OobData oobData, ParcelUuid[] uuids, BluetoothClass btClass, in BluetoothPeripheralHandover() argument 171 mIsHeadsetAvailable = hasHeadsetCapability(uuids, btClass); in BluetoothPeripheralHandover() 172 mIsA2dpAvailable = hasA2dpCapability(uuids, btClass); in BluetoothPeripheralHandover() 635 boolean hasA2dpCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasA2dpCapability() argument 643 if (btClass != null && btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in hasA2dpCapability() 649 boolean hasHeadsetCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasHeadsetCapability() argument 657 if (btClass != null && btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in hasHeadsetCapability()
|
D | HandoverDataParser.java | 101 public BluetoothClass btClass = null; field in HandoverDataParser.BluetoothHandoverData 447 result.btClass = parseBluetoothClassFromBluetoothRecord(payload); in parseBtOob() 644 byte[] btClass = new byte[CLASS_OF_DEVICE_SIZE]; in parseBluetoothClassFromBluetoothRecord() 645 payload.get(btClass); in parseBluetoothClassFromBluetoothRecord() 648 buffer.put(btClass); in parseBluetoothClassFromBluetoothRecord()
|
D | PeripheralHandoverService.java | 189 BluetoothClass btClass = msgData.getParcelable(EXTRA_PERIPHERAL_CLASS); in doPeripheralHandover() local 203 this, mDevice, mName, transport, oobData, uuids, btClass, this); in doPeripheralHandover()
|
/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
D | PairedBluetoothDevices.java | 222 BluetoothClass btClass = device.getBtClass(); in getIconRes() local 223 if (btClass != null) { in getIconRes() 224 switch (btClass.getMajorDeviceClass()) { in getIconRes() 230 return HidProfile.getHidClassDrawable(btClass); in getIconRes() 240 int resId = profile.getDrawableResource(btClass); in getIconRes() 245 if (btClass != null) { in getIconRes() 246 if (btClass.doesClassMatch(BluetoothClass.PROFILE_HEADSET)) { in getIconRes() 249 if (btClass.doesClassMatch(BluetoothClass.PROFILE_A2DP)) { in getIconRes()
|
/packages/modules/Nfc/NfcNci/src/com/android/nfc/ |
D | NfcDispatcher.java | 1161 if (handover.btClass != null) { in tryPeripheralHandover() 1162 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_CLASS, handover.btClass); in tryPeripheralHandover() 1170 int btClass = BluetoothProtoEnums.MAJOR_CLASS_UNCATEGORIZED; in tryPeripheralHandover() local 1172 if (handover.btClass != null) { in tryPeripheralHandover() 1175 + handover.btClass.getMajorDeviceClass()); in tryPeripheralHandover() 1177 btClass = handover.btClass.getMajorDeviceClass(); in tryPeripheralHandover() 1190 if (!knownBtClasses.contains(btClass)) { in tryPeripheralHandover() 1192 btClass = BluetoothProtoEnums.MAJOR_CLASS_UNCATEGORIZED; in tryPeripheralHandover() 1194 } else if (btClass != BluetoothProtoEnums.MAJOR_CLASS_UNCATEGORIZED && in tryPeripheralHandover() 1195 btClass != BluetoothProtoEnums.MAJOR_CLASS_HEALTH) { in tryPeripheralHandover() [all …]
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/qc/ |
D | PairedBluetoothDevicesTest.java | 437 BluetoothClass btClass = mock(BluetoothClass.class); in addBluetoothDevice() local 438 when(cachedDevice.getBtClass()).thenReturn(btClass); in addBluetoothDevice() 439 when(btClass.getMajorDeviceClass()).thenReturn(BluetoothClass.Device.Major.PHONE); in addBluetoothDevice()
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/testutils/ |
D | BluetoothTestUtils.java | 165 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource() argument
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/ |
D | BluetoothMap.java | 274 public static boolean doesClassMatchSink(BluetoothClass btClass) { in doesClassMatchSink() argument 276 switch (btClass.getDeviceClass()) { in doesClassMatchSink()
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/handover/ |
D | HandoverDataParserTest.java | 271 assertNotNull(result.btClass); in testParseBtOobWithClassOfDevice() 293 assertNull(result.btClass); in testParseBtOobWithUnknownType()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 213 public int getDrawableResource(BluetoothClass btClass) { in getDrawableResource() argument
|