Home
last modified time | relevance | path

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

/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManager.java45 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded() local
46 if (isValidHiSyncId(hiSyncId)) { in initHearingAidDeviceIfNeeded()
48 newDevice.setHiSyncId(hiSyncId); in initHearingAidDeviceIfNeeded()
62 final long hiSyncId = newDevice.getHiSyncId(); in setSubDeviceIfNeeded() local
63 if (isValidHiSyncId(hiSyncId)) { in setSubDeviceIfNeeded()
76 private boolean isValidHiSyncId(long hiSyncId) { in isValidHiSyncId() argument
77 return hiSyncId != BluetoothHearingAid.HI_SYNC_ID_INVALID; in isValidHiSyncId()
83 if (cachedDevice.getHiSyncId() == hiSyncId) { in getCachedDevice()
111 void onHiSyncIdChanged(long hiSyncId) { in onHiSyncIdChanged() argument
116 if (cachedDevice.getHiSyncId() != hiSyncId) { in onHiSyncIdChanged()
[all …]
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/hearingaid/
H A DHearingAidService.java257 long hiSyncId = mDeviceHiSyncIdMap.getOrDefault(device, in connect() local
260 if (hiSyncId != mActiveDeviceHiSyncId in connect()
261 && hiSyncId != BluetoothHearingAid.HI_SYNC_ID_INVALID in connect()
290 if (hiSyncId == BluetoothHearingAid.HI_SYNC_ID_INVALID in connect()
315 long hiSyncId = mDeviceHiSyncIdMap.getOrDefault(device, in disconnect() local
360 long hiSyncId = getHiSyncId(device); in isConnectedPeerDevices() local
361 if (getConnectedPeerDevices(hiSyncId).isEmpty()) { in isConnectedPeerDevices()
621 long hiSyncId = stackEvent.valueLong2; in messageFromNative() local
624 + capabilities + " hiSyncId=" + hiSyncId); in messageFromNative()
627 mDeviceHiSyncIdMap.put(device, hiSyncId); in messageFromNative()
[all …]
H A DHearingAidNativeInterface.java163 private void onDeviceAvailable(byte capabilities, long hiSyncId, byte[] address) { in onDeviceAvailable() argument
168 event.valueLong2 = hiSyncId; in onDeviceAvailable()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/bluetooth/
H A 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()
/aosp12/system/bt/btif/src/
H A Dbtif_hearing_aid.cc75 void OnDeviceAvailable(uint8_t capabilities, uint64_t hiSyncId, in OnDeviceAvailable() argument
78 << ", hiSyncId: " << loghex(hiSyncId) in OnDeviceAvailable()
82 hiSyncId, address)); in OnDeviceAvailable()
/aosp12/packages/apps/Settings/src/com/android/settings/sound/
H A 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()
/aosp12/system/bt/bta/include/
H A Dbta_hearing_aid_api.h157 uint16_t read_psm_handle, uint64_t hiSyncId, in HearingDevice()
174 hi_sync_id(hiSyncId), in HearingDevice()
/aosp12/system/bt/include/hardware/
H A Dbt_hearing_aid.h45 virtual void OnDeviceAvailable(uint8_t capabilities, uint64_t hiSyncId,