Home
last modified time | relevance | path

Searched refs:hiSyncId (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
DHearingAidService.java251 long hiSyncId = mDeviceHiSyncIdMap.getOrDefault(device, in connect() local
254 if (hiSyncId != mActiveDeviceHiSyncId in connect()
255 && hiSyncId != BluetoothHearingAid.HI_SYNC_ID_INVALID in connect()
275 BluetoothHearingAid.HI_SYNC_ID_INVALID) == hiSyncId) { in connect()
284 if (hiSyncId == BluetoothHearingAid.HI_SYNC_ID_INVALID in connect()
308 long hiSyncId = mDeviceHiSyncIdMap.getOrDefault(device, in disconnect() local
313 BluetoothHearingAid.HI_SYNC_ID_INVALID) == hiSyncId) { in disconnect()
323 if (hiSyncId == BluetoothHearingAid.HI_SYNC_ID_INVALID in disconnect()
353 long hiSyncId = getHiSyncId(device); in isConnectedPeerDevices() local
354 if (getConnectedPeerDevices(hiSyncId).isEmpty()) { in isConnectedPeerDevices()
[all …]
DHearingAidNativeInterface.java163 private void onDeviceAvailable(byte capabilities, long hiSyncId, byte[] address) { in onDeviceAvailable() argument
168 event.valueLong2 = hiSyncId; in onDeviceAvailable()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/sound/
DAudioSwitchPreferenceController.java233 final long hiSyncId = hapProfile.getHiSyncId(device); in getConnectedHearingAidDevices() local
236 if (!devicesHiSyncIds.contains(hiSyncId) && device.isConnected()) { in getConnectedHearingAidDevices()
237 devicesHiSyncIds.add(hiSyncId); in getConnectedHearingAidDevices()
258 final long hiSyncId = hapProfile.getHiSyncId(device); in getConnectableHearingAidDevices() local
261 if (!devicesHiSyncIds.contains(hiSyncId)) { in getConnectableHearingAidDevices()
262 devicesHiSyncIds.add(hiSyncId); in getConnectableHearingAidDevices()
/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
DBluetoothDeviceManager.java174 long hiSyncId = mHearingAidDeviceSyncIds.getOrDefault(d, -1L); in getUniqueConnectedDevices() local
175 if (seenHiSyncIds.contains(hiSyncId)) { in getUniqueConnectedDevices()
179 seenHiSyncIds.add(hiSyncId); in getUniqueConnectedDevices()
211 long hiSyncId = mBluetoothHearingAidService.getHiSyncId(device); in onDeviceConnected() local
212 mHearingAidDeviceSyncIds.put(device, hiSyncId); in onDeviceConnected()
/packages/apps/Settings/src/com/android/settings/sound/
DAudioSwitchPreferenceController.java229 final long hiSyncId = hapProfile.getHiSyncId(device); in getConnectedHearingAidDevices() local
232 if (!devicesHiSyncIds.contains(hiSyncId) && device.isConnected()) { in getConnectedHearingAidDevices()
233 devicesHiSyncIds.add(hiSyncId); in getConnectedHearingAidDevices()