Home
last modified time | relevance | path

Searched refs:uuids (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DPhonePolicy.java154 Parcelable[] uuids = intent.getParcelableArrayExtra(BluetoothDevice.EXTRA_UUID); in handleMessage() local
156 if (uuids != null) { in handleMessage()
157 ParcelUuid[] uuidsToSend = new ParcelUuid[uuids.length]; in handleMessage()
159 uuidsToSend[i] = (ParcelUuid) uuids[i]; in handleMessage()
227 private void processInitProfilePriorities(BluetoothDevice device, ParcelUuid[] uuids) { in processInitProfilePriorities() argument
237 if ((hidService != null) && (BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hid) in processInitProfilePriorities()
238 || BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Hogp)) && ( in processInitProfilePriorities()
244 if ((headsetService != null) && ((BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.HSP) in processInitProfilePriorities()
245 || BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.Handsfree)) && ( in processInitProfilePriorities()
250 if ((a2dpService != null) && (BluetoothUuid.isUuidPresent(uuids, BluetoothUuid.AudioSink) in processInitProfilePriorities()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DScanClient.java36 public UUID[] uuids; field in ScanClient
59 ScanClient(int scannerId, UUID[] uuids) { in ScanClient() argument
60 this(scannerId, uuids, DEFAULT_SCAN_SETTINGS, null, null); in ScanClient()
72 private ScanClient(int scannerId, UUID[] uuids, ScanSettings settings, List<ScanFilter> filters, in ScanClient() argument
75 this.uuids = uuids; in ScanClient()
DGattService.java968 if (client.uuids.length > 0) { in onScanResult()
970 for (UUID search : client.uuids) { in onScanResult()
979 if (matches < client.uuids.length) { in onScanResult()
3134 List<UUID> uuids = new ArrayList<UUID>(); in parseUuids() local
3151 uuids.add(UUID.fromString( in parseUuids()
3162 return uuids; in parseUuids()
/packages/services/Car/service/src/com/android/car/
DBluetoothProfileDeviceManager.java78 private BluetoothProfileInfo(String action, String settingsKey, ParcelUuid[] uuids, in BluetoothProfileInfo() argument
82 mUuids = uuids; in BluetoothProfileInfo()
156 Parcelable[] uuids = intent.getParcelableArrayExtra(BluetoothDevice.EXTRA_UUID); in onReceive() local
157 handleDeviceUuidEvent(device, uuids); in onReceive()
230 private void handleDeviceUuidEvent(BluetoothDevice device, Parcelable[] uuids) { in handleDeviceUuidEvent() argument
232 if (uuids != null) { in handleDeviceUuidEvent()
233 ParcelUuid[] uuidsToSend = new ParcelUuid[uuids.length]; in handleDeviceUuidEvent()
235 uuidsToSend[i] = (ParcelUuid) uuids[i]; in handleDeviceUuidEvent()
734 private void provisionDeviceIfSupported(BluetoothDevice device, ParcelUuid[] uuids) { in provisionDeviceIfSupported() argument
736 if (BluetoothUuid.containsAnyUuid(uuids, mProfileUuids)) { in provisionDeviceIfSupported()
/packages/apps/Nfc/src/com/android/nfc/handover/
DBluetoothPeripheralHandover.java124 int transport, OobData oobData, ParcelUuid[] uuids, BluetoothClass btClass, in BluetoothPeripheralHandover() argument
139 mIsHeadsetAvailable = hasHeadsetCapability(uuids, btClass); in BluetoothPeripheralHandover()
140 mIsA2dpAvailable = hasA2dpCapability(uuids, btClass); in BluetoothPeripheralHandover()
586 boolean hasA2dpCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasA2dpCapability() argument
587 if (uuids != null) { in hasA2dpCapability()
588 for (ParcelUuid uuid : uuids) { in hasA2dpCapability()
600 boolean hasHeadsetCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasHeadsetCapability() argument
601 if (uuids != null) { in hasHeadsetCapability()
602 for (ParcelUuid uuid : uuids) { in hasHeadsetCapability()
DPeripheralHandoverService.java168 ParcelUuid[] uuids = null; in doPeripheralHandover() local
170 uuids = new ParcelUuid[parcelables.length]; in doPeripheralHandover()
172 uuids[i] = (ParcelUuid)parcelables[i]; in doPeripheralHandover()
180 this, mDevice, name, transport, oobData, uuids, btClass, this); in doPeripheralHandover()
DHandoverDataParser.java100 public ParcelUuid[] uuids = null; field in HandoverDataParser.BluetoothHandoverData
428 result.uuids = parseUuidFromBluetoothRecord(payload, type, len - 1); in parseBtOob()
429 if (result.uuids != null) { in parseBtOob()
615 ParcelUuid[] uuids = new ParcelUuid[num]; in parseUuidFromBluetoothRecord() local
619 uuids[i] = BluetoothUuid.parseUuidFrom(data); in parseUuidFromBluetoothRecord()
621 return uuids; in parseUuidFromBluetoothRecord()
/packages/apps/Bluetooth/src/com/android/bluetooth/
DUtils.java153 public static byte[] uuidsToByteArray(ParcelUuid[] uuids) { in uuidsToByteArray() argument
154 int length = uuids.length * BD_UUID_LEN; in uuidsToByteArray()
159 for (int i = 0; i < uuids.length; i++) { in uuidsToByteArray()
160 uuid = uuids[i].getUuid(); in uuidsToByteArray()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java115 ParcelUuid[] uuids = new ParcelUuid[2]; in testProcessInitProfilePriorities() local
116 uuids[0] = BluetoothUuid.Handsfree; in testProcessInitProfilePriorities()
117 uuids[1] = BluetoothUuid.AudioSink; in testProcessInitProfilePriorities()
118 intent.putExtra(BluetoothDevice.EXTRA_UUID, uuids); in testProcessInitProfilePriorities()
/packages/apps/Nfc/src/com/android/nfc/
DNfcDispatcher.java674 if (handover.uuids != null) { in tryPeripheralHandover()
675 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_UUIDS, handover.uuids); in tryPeripheralHandover()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothProfileDeviceManagerTest.java314 private void sendDeviceUuids(BluetoothDevice device, ParcelUuid[] uuids) { in sendDeviceUuids() argument
318 intent.putExtra(BluetoothDevice.EXTRA_UUID, uuids); in sendDeviceUuids()