/packages/services/Car/service/src/com/android/car/bluetooth/ |
D | BluetoothUtils.java | 28 import android.bluetooth.BluetoothUuid; 57 new ParcelUuid[]{BluetoothUuid.A2DP_SOURCE}; 59 new ParcelUuid[]{BluetoothUuid.A2DP_SINK}; 61 new ParcelUuid[]{BluetoothUuid.HFP}; 63 new ParcelUuid[]{BluetoothUuid.HFP_AG, BluetoothUuid.HSP_AG}; 65 new ParcelUuid[]{BluetoothUuid.MAP, BluetoothUuid.MNS}; 67 new ParcelUuid[]{BluetoothUuid.MAS}; 69 new ParcelUuid[]{BluetoothUuid.PANU, BluetoothUuid.NAP}; 71 new ParcelUuid[]{BluetoothUuid.PBAP_PCE}; 73 new ParcelUuid[]{BluetoothUuid.PBAP_PSE}; [all …]
|
/packages/modules/Bluetooth/framework/tests/unit/src/android/bluetooth/ |
D | BluetoothUuidTest.java | 39 assertThat(BluetoothUuid.parseUuidFrom(uuid16)) in testUuid16Parser() 46 assertThat(BluetoothUuid.parseUuidFrom(uuid32)) in testUuid32Parser() 71 assertThat(BluetoothUuid.parseUuidFrom(uuid128)) in testUuid128Parser() 78 BluetoothUuid.is16BitUuid( in testUuidType() 82 BluetoothUuid.is32BitUuid( in testUuidType() 86 BluetoothUuid.is16BitUuid( in testUuidType() 90 BluetoothUuid.is32BitUuid( in testUuidType() 94 BluetoothUuid.is32BitUuid( in testUuidType()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/ |
D | BluetoothUtilsTest.java | 25 import android.bluetooth.BluetoothUuid; 42 new ParcelUuid[]{BluetoothUuid.A2DP_SOURCE}; 44 new ParcelUuid[]{BluetoothUuid.A2DP_SINK}; 46 new ParcelUuid[]{BluetoothUuid.HFP}; 48 new ParcelUuid[]{BluetoothUuid.HFP_AG, BluetoothUuid.HSP_AG}; 50 new ParcelUuid[]{BluetoothUuid.MAP, BluetoothUuid.MNS}; 52 new ParcelUuid[]{BluetoothUuid.MAS}; 54 new ParcelUuid[]{BluetoothUuid.PANU, BluetoothUuid.NAP}; 56 new ParcelUuid[]{BluetoothUuid.PBAP_PCE}; 58 new ParcelUuid[]{BluetoothUuid.PBAP_PSE}; [all …]
|
D | BluetoothConnectionRetryManagerTest.java | 33 import android.bluetooth.BluetoothUuid; 91 Arrays.asList(new ParcelUuid[]{BluetoothUuid.HFP})); in setUp() 96 Arrays.asList(new ParcelUuid[]{BluetoothUuid.HFP})); in setUp() 173 new ParcelUuid[]{BluetoothUuid.HFP_AG, BluetoothUuid.HSP_AG}); in createMockDevice()
|
D | CarBluetoothUserServiceTest.java | 39 import android.bluetooth.BluetoothUuid; 337 new ParcelUuid[]{BluetoothUuid.HFP_AG, BluetoothUuid.HSP_AG}); in createMockDevice()
|
/packages/modules/Bluetooth/framework/java/android/bluetooth/le/ |
D | ScanRecord.java | 24 import android.bluetooth.BluetoothUuid; 565 BluetoothUuid.UUID_BYTES_16_BIT, in parseFromBytes() 574 BluetoothUuid.UUID_BYTES_32_BIT, in parseFromBytes() 583 BluetoothUuid.UUID_BYTES_128_BIT, in parseFromBytes() 591 BluetoothUuid.UUID_BYTES_16_BIT, in parseFromBytes() 599 BluetoothUuid.UUID_BYTES_32_BIT, in parseFromBytes() 607 BluetoothUuid.UUID_BYTES_128_BIT, in parseFromBytes() 620 int serviceUuidLength = BluetoothUuid.UUID_BYTES_16_BIT; in parseFromBytes() 622 serviceUuidLength = BluetoothUuid.UUID_BYTES_32_BIT; in parseFromBytes() 624 serviceUuidLength = BluetoothUuid.UUID_BYTES_128_BIT; in parseFromBytes() [all …]
|
D | BluetoothLeAdvertiser.java | 28 import android.bluetooth.BluetoothUuid; 657 if (BluetoothUuid.is16BitUuid(uuid)) { 659 } else if (BluetoothUuid.is32BitUuid(uuid)) { 667 size += OVERHEAD_BYTES_PER_FIELD + num16BitUuids * BluetoothUuid.UUID_BYTES_16_BIT; 671 size += OVERHEAD_BYTES_PER_FIELD + num32BitUuids * BluetoothUuid.UUID_BYTES_32_BIT; 677 + num128BitUuids * BluetoothUuid.UUID_BYTES_128_BIT; 685 if (BluetoothUuid.is16BitUuid(uuid)) { 687 } else if (BluetoothUuid.is32BitUuid(uuid)) { 695 size += OVERHEAD_BYTES_PER_FIELD + num16BitUuids * BluetoothUuid.UUID_BYTES_16_BIT; 699 size += OVERHEAD_BYTES_PER_FIELD + num32BitUuids * BluetoothUuid.UUID_BYTES_32_BIT; [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/ |
D | AdvertiseHelper.java | 19 import android.bluetooth.BluetoothUuid; 113 byte[] uuid = BluetoothUuid.uuidToBytes(parcelUuid); in advertiseDataToBytes() 115 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes() 117 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes() 150 byte[] uuid = BluetoothUuid.uuidToBytes(parcelUuid); in advertiseDataToBytes() 162 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes() 167 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes() 187 byte[] uuid = BluetoothUuid.uuidToBytes(parcelUuid); in advertiseDataToBytes() 189 if (uuid.length == BluetoothUuid.UUID_BYTES_16_BIT) { in advertiseDataToBytes() 191 } else if (uuid.length == BluetoothUuid.UUID_BYTES_32_BIT) { in advertiseDataToBytes()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/btservice/ |
D | PhonePolicy.java | 27 import android.bluetooth.BluetoothUuid; 201 int groupId = csipSetCoordinatorService.getGroupId(device, BluetoothUuid.CAP); in isLeAudioOnlyGroup() 259 if (!Utils.arrayContains(uuids, BluetoothUuid.LE_AUDIO)) { in isLeAudioOnlyDevice() 270 if (Utils.arrayContains(uuids, BluetoothUuid.HEARING_AID)) { in isLeAudioOnlyDevice() 276 if (!Utils.arrayContains(uuids, BluetoothUuid.COORDINATED_SET)) { in isLeAudioOnlyDevice() 298 return Utils.arrayContains(uuids, BluetoothUuid.HAS) in shouldEnableHapByDefault() 326 && Utils.arrayContains(uuids, BluetoothUuid.LE_AUDIO) in processInitProfilePriorities() 353 && (Utils.arrayContains(uuids, BluetoothUuid.HID) in processInitProfilePriorities() 354 || Utils.arrayContains(uuids, BluetoothUuid.HOGP) in processInitProfilePriorities() 372 (Utils.arrayContains(uuids, BluetoothUuid.HID) in processInitProfilePriorities() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragment.java | 30 import android.bluetooth.BluetoothUuid; 409 new ScanFilter.Builder().setServiceUuid(BluetoothUuid.HEARING_AID).build()); in initHearingDeviceLeScanFilters() 411 .setServiceData(BluetoothUuid.HEARING_AID, new byte[0]).build()); in initHearingDeviceLeScanFilters() 413 mLeScanFilters.add(new ScanFilter.Builder().setServiceUuid(BluetoothUuid.HAS).build()); in initHearingDeviceLeScanFilters() 415 .setServiceData(BluetoothUuid.HAS, new byte[0]).build()); in initHearingDeviceLeScanFilters() 417 mLeScanFilters.add(new ScanFilter.Builder().setServiceUuid(BluetoothUuid.MFI_HAS).build()); in initHearingDeviceLeScanFilters() 419 .setServiceData(BluetoothUuid.MFI_HAS, new byte[0]).build()); in initHearingDeviceLeScanFilters() 433 if (uuids.contains(BluetoothUuid.HEARING_AID) || uuids.contains(BluetoothUuid.HAS)) { in isAndroidCompatibleHearingAid() 441 if (scanRecord.getServiceData(BluetoothUuid.HEARING_AID) != null in isAndroidCompatibleHearingAid() 442 || scanRecord.getServiceData(BluetoothUuid.HAS) != null) { in isAndroidCompatibleHearingAid() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/discovery/ble/ |
D | UuidConstants.java | 18 import android.bluetooth.BluetoothUuid; 30 public static final ParcelUuid FIRA_CP_PARCEL_UUID = BluetoothUuid.parseUuidFrom(FIRA_CP_UUID); 31 public static final ParcelUuid FIRA_CS_PARCEL_UUID = BluetoothUuid.parseUuidFrom(FIRA_CS_UUID); 45 public static final ParcelUuid CCCD_UUID = BluetoothUuid.parseUuidFrom(new byte[] {0x29, 0x02});
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hap/ |
D | HapClientTest.java | 51 import android.bluetooth.BluetoothUuid; 165 doReturn(Arrays.asList(0x02, 0x03)).when(mCsipService).getAllGroupIds(BluetoothUuid.CAP); in setUp() 189 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in setUp() 367 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testOutgoingConnectExistingHasUuid() 437 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testConnectTwo() 469 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testGetHapGroupCoordinatedOps() 498 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testSelectPresetNative() 522 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testGroupSelectActivePresetNative() 548 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testSwitchToNextPreset() 562 doReturn(new ParcelUuid[] {BluetoothUuid.HAS}) in testSwitchToNextPresetForGroup() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/csip/ |
D | CsipSetCoordinatorServiceTest.java | 23 import android.bluetooth.BluetoothUuid; 131 doReturn(new ParcelUuid[] {BluetoothUuid.COORDINATED_SET}) in setUp() 410 doReturn(new ParcelUuid[] {BluetoothUuid.COORDINATED_SET}) in testOutgoingConnectExistingUuid() 523 long uuidLsb = BluetoothUuid.CAP.getUuid().getLeastSignificantBits(); in testStackEventSetMemberAvailableAfterGroupConnected() 524 long uuidMsb = BluetoothUuid.CAP.getUuid().getMostSignificantBits(); in testStackEventSetMemberAvailableAfterGroupConnected() 565 long uuidLsb = BluetoothUuid.CAP.getUuid().getLeastSignificantBits(); in testStackEventSetMemberAvailableBeforeGroupConnected() 566 long uuidMsb = BluetoothUuid.CAP.getUuid().getMostSignificantBits(); in testStackEventSetMemberAvailableBeforeGroupConnected() 614 long uuidLsb = BluetoothUuid.CAP.getUuid().getLeastSignificantBits(); in testDisableCsipAfterConnectingIfLeAudioDisabled() 615 long uuidMsb = BluetoothUuid.CAP.getUuid().getMostSignificantBits(); in testDisableCsipAfterConnectingIfLeAudioDisabled() 673 doReturn(new ParcelUuid[] {BluetoothUuid.COORDINATED_SET}) in testDump_doesNotCrash()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/btservice/ |
D | PhonePolicyTest.java | 28 import android.bluetooth.BluetoothUuid; 171 uuids[0] = BluetoothUuid.HFP; in testProcessInitProfilePriorities() 172 uuids[1] = BluetoothUuid.A2DP_SINK; in testProcessInitProfilePriorities() 219 uuids[iter++] = BluetoothUuid.LE_AUDIO; in processInitProfilePriorities_LeAudioOnlyHelper() 221 uuids[iter++] = BluetoothUuid.COORDINATED_SET; in processInitProfilePriorities_LeAudioOnlyHelper() 224 uuids[iter++] = BluetoothUuid.HEARING_AID; in processInitProfilePriorities_LeAudioOnlyHelper() 336 uuids[0] = BluetoothUuid.HFP; in testProcessInitProfilePriorities_WithAutoConnect() 337 uuids[1] = BluetoothUuid.A2DP_SINK; in testProcessInitProfilePriorities_WithAutoConnect() 495 uuids[0] = BluetoothUuid.HFP; in processInitProfilePriorities_LeAudioHelper() 496 uuids[1] = BluetoothUuid.A2DP_SINK; in processInitProfilePriorities_LeAudioHelper() [all …]
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/mapclient/ |
D | MapClientServiceTest.java | 30 import android.bluetooth.BluetoothUuid; 333 mRemoteDevice, MceStateMachine.SDP_SUCCESS, mockSdpRecord, BluetoothUuid.MAS); in receiveSdpRecord_receivedMasRecord_sdpSuccess() 345 mRemoteDevice, MceStateMachine.SDP_SUCCESS, null, BluetoothUuid.MAS); in receiveSdpRecord_withoutMasRecord_sdpFailed() 358 mRemoteDevice, MceStateMachine.SDP_BUSY, null, BluetoothUuid.MAS); in receiveSdpRecord_withSdpBusy_sdpFailed() 371 mRemoteDevice, MceStateMachine.SDP_FAILED, null, BluetoothUuid.MAS); in receiveSdpRecord_withSdpFailed_sdpFailed()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragmentTest.java | 30 import android.bluetooth.BluetoothUuid; 301 doReturn(fakeAshaServiceData).when(scanRecord).getServiceData(BluetoothUuid.HEARING_AID); in createAshaScanResult() 309 doReturn(List.of(BluetoothUuid.HAS)).when(scanRecord).getServiceUuids(); in createHasScanResult() 318 doReturn(fakeMfiServiceData).when(scanRecord).getServiceData(BluetoothUuid.MFI_HAS); in createMfiHasScanResult()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/le_audio/ |
D | LeAudioTmapGattServerTest.java | 33 import android.bluetooth.BluetoothUuid; 83 assertThat(service.getUuid()).isEqualTo(BluetoothUuid.TMAP.getUuid()); in testStartStopService()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/vc/ |
D | VolumeControlServiceTest.java | 25 import android.bluetooth.BluetoothUuid; 162 doReturn(new ParcelUuid[] {BluetoothUuid.VOLUME_CONTROL}) in setUp() 364 doReturn(new ParcelUuid[] {BluetoothUuid.VOLUME_CONTROL}) in testOutgoingConnectDisconnectExistingVolumeControlUuid() 805 when(mCsipService.getGroupId(mDevice, BluetoothUuid.CAP)).thenReturn(groupId); in testLateConnectingDevice() 806 when(mCsipService.getGroupId(mDeviceTwo, BluetoothUuid.CAP)).thenReturn(groupId); in testLateConnectingDevice() 844 when(mCsipService.getGroupId(mDevice, BluetoothUuid.CAP)).thenReturn(groupId); in testLateDiscoveredGroupMember() 845 when(mCsipService.getGroupId(mDeviceTwo, BluetoothUuid.CAP)).thenReturn(-1); in testLateDiscoveredGroupMember() 872 when(mCsipService.getGroupId(mDeviceTwo, BluetoothUuid.CAP)).thenReturn(groupId); in testLateDiscoveredGroupMember() 888 when(mCsipService.getGroupId(mDevice, BluetoothUuid.CAP)).thenReturn(groupId); in testMuteLateConnectingDevice() 889 when(mCsipService.getGroupId(mDeviceTwo, BluetoothUuid.CAP)).thenReturn(groupId); in testMuteLateConnectingDevice() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/le_audio/ |
D | LeAudioTmapGattServer.java | 27 import android.bluetooth.BluetoothUuid; 81 BluetoothUuid.TMAP.getUuid(), BluetoothGattService.SERVICE_TYPE_PRIMARY); in start()
|
/packages/apps/Nfc/src/com/android/nfc/handover/ |
D | HandoverDataParser.java | 22 import android.bluetooth.BluetoothUuid; 590 uuidSize = BluetoothUuid.UUID_BYTES_16_BIT; in parseUuidFromBluetoothRecord() 594 uuidSize = BluetoothUuid.UUID_BYTES_32_BIT; in parseUuidFromBluetoothRecord() 598 uuidSize = BluetoothUuid.UUID_BYTES_128_BIT; in parseUuidFromBluetoothRecord() 615 uuids[i] = BluetoothUuid.parseUuidFrom(data); in parseUuidFromBluetoothRecord()
|
D | BluetoothPeripheralHandover.java | 26 import android.bluetooth.BluetoothUuid; 591 … if (uuid.equals(BluetoothUuid.A2DP_SINK) || uuid.equals(BluetoothUuid.ADV_AUDIO_DIST)) { in hasA2dpCapability() 605 if (uuid.equals(BluetoothUuid.HFP) || uuid.equals(BluetoothUuid.HSP)) { in hasHeadsetCapability()
|
/packages/modules/Bluetooth/android/pandora/server/src/ |
D | Host.kt | 28 import android.bluetooth.BluetoothUuid 662 if (BluetoothUuid.is16BitUuid(parcelUuid)) { in scan() 669 } else if (BluetoothUuid.is32BitUuid(parcelUuid)) { in scan() 688 if (BluetoothUuid.is16BitUuid(serviceUuid)) { in scan() 692 } else if (BluetoothUuid.is32BitUuid(serviceUuid)) { in scan() 704 if (BluetoothUuid.is16BitUuid(serviceUuid)) { in scan() 708 } else if (BluetoothUuid.is32BitUuid(serviceUuid)) { in scan()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/sdp/ |
D | DipTest.java | 26 import android.bluetooth.BluetoothUuid; 136 mSdpManager.sdpSearch(mTestDevice, BluetoothUuid.DIP); in testDipCallbackSuccess()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/pbapclient/ |
D | PbapClientConnectionHandler.java | 22 import android.bluetooth.BluetoothUuid; 287 Log.v(TAG, "connectSocket: UUID: " + BluetoothUuid.PBAP_PSE.getUuid()); in connectSocket() 289 mDevice.createRfcommSocketToServiceRecord(BluetoothUuid.PBAP_PSE.getUuid()); in connectSocket()
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransfer.java | 44 import android.bluetooth.BluetoothUuid; 175 Log.d(TAG, "expected UUID: " + BluetoothUuid.OBEX_OBJECT_PUSH.toString()); in onReceive() 176 if (uuid.equals(BluetoothUuid.OBEX_OBJECT_PUSH)) { in onReceive() 711 if (!mBatch.mDestination.sdpSearch(BluetoothUuid.OBEX_OBJECT_PUSH)) { in startConnectSession() 784 BluetoothUuid.OBEX_OBJECT_PUSH.getUuid()); in connectRfcommSocket()
|