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.java172 Parcelable[] uuids = intent.getParcelableArrayExtra(BluetoothDevice.EXTRA_UUID); in handleMessage() local
174 if (uuids != null) { in handleMessage()
175 ParcelUuid[] uuidsToSend = new ParcelUuid[uuids.length]; in handleMessage()
177 uuidsToSend[i] = (ParcelUuid) uuids[i]; in handleMessage()
255 private void processInitProfilePriorities(BluetoothDevice device, ParcelUuid[] uuids) { in processInitProfilePriorities() argument
265 if ((hidService != null) && (ArrayUtils.contains(uuids, BluetoothUuid.HID) in processInitProfilePriorities()
266 || ArrayUtils.contains(uuids, BluetoothUuid.HOGP)) && ( in processInitProfilePriorities()
274 if ((headsetService != null) && ((ArrayUtils.contains(uuids, BluetoothUuid.HSP) in processInitProfilePriorities()
275 || ArrayUtils.contains(uuids, BluetoothUuid.HFP)) && ( in processInitProfilePriorities()
282 if ((a2dpService != null) && (ArrayUtils.contains(uuids, BluetoothUuid.A2DP_SINK) 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.java972 if (client.uuids.length > 0) { in onScanResult()
974 for (UUID search : client.uuids) { in onScanResult()
983 if (matches < client.uuids.length) { in onScanResult()
3150 List<UUID> uuids = new ArrayList<UUID>(); in parseUuids() local
3167 uuids.add(UUID.fromString( in parseUuids()
3178 return uuids; in parseUuids()
/packages/services/Car/service/src/com/android/car/
DBluetoothProfileDeviceManager.java80 private BluetoothProfileInfo(String action, String settingsKey, ParcelUuid[] uuids, in BluetoothProfileInfo() argument
84 mUuids = uuids; in BluetoothProfileInfo()
165 Parcelable[] uuids = intent.getParcelableArrayExtra(BluetoothDevice.EXTRA_UUID); in onReceive() local
166 handleDeviceUuidEvent(device, uuids); in onReceive()
239 private void handleDeviceUuidEvent(BluetoothDevice device, Parcelable[] uuids) { in handleDeviceUuidEvent() argument
241 if (uuids != null) { in handleDeviceUuidEvent()
242 ParcelUuid[] uuidsToSend = new ParcelUuid[uuids.length]; in handleDeviceUuidEvent()
244 uuidsToSend[i] = (ParcelUuid) uuids[i]; in handleDeviceUuidEvent()
751 private void provisionDeviceIfSupported(BluetoothDevice device, ParcelUuid[] uuids) { in provisionDeviceIfSupported() argument
753 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()
588 boolean hasA2dpCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasA2dpCapability() argument
589 if (uuids != null) { in hasA2dpCapability()
590 for (ParcelUuid uuid : uuids) { in hasA2dpCapability()
602 boolean hasHeadsetCapability(ParcelUuid[] uuids, BluetoothClass btClass) { in hasHeadsetCapability() argument
603 if (uuids != null) { in hasHeadsetCapability()
604 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.java185 public static byte[] uuidsToByteArray(ParcelUuid[] uuids) { in uuidsToByteArray() argument
186 int length = uuids.length * BD_UUID_LEN; in uuidsToByteArray()
191 for (int i = 0; i < uuids.length; i++) { in uuidsToByteArray()
192 uuid = uuids[i].getUuid(); in uuidsToByteArray()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DPhonePolicyTest.java123 ParcelUuid[] uuids = new ParcelUuid[2]; in testProcessInitProfilePriorities() local
124 uuids[0] = BluetoothUuid.HFP; in testProcessInitProfilePriorities()
125 uuids[1] = BluetoothUuid.A2DP_SINK; in testProcessInitProfilePriorities()
126 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()