Home
last modified time | relevance | path

Searched refs:getHiSyncId (Results 1 – 12 of 12) sorted by relevance

/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManagerTest.java166 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn( in initHearingAidDeviceIfNeeded_invalidHiSyncId_notToSetHearingAidInfo()
180 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn( in initHearingAidDeviceIfNeeded_hearingAidScanFilter_setHearingAidInfo()
196 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn( in initHearingAidDeviceIfNeeded_randomScanFilter_notToSetHearingAidInfo()
320 when(mHearingAidProfile.getHiSyncId(mDevice1)). in updateHearingAidsDevices_invalidHiSyncId_doNothing()
322 when(mHearingAidProfile.getHiSyncId(mDevice2)). in updateHearingAidsDevices_invalidHiSyncId_doNothing()
374 when(mCachedDevice1.getHiSyncId()).thenReturn(HISYNCID1); in onProfileConnectionStateChanged_connected_newDevice_verifySubDevice()
375 when(mCachedDevice2.getHiSyncId()).thenReturn(HISYNCID1); in onProfileConnectionStateChanged_connected_newDevice_verifySubDevice()
398 when(mCachedDevice1.getHiSyncId()).thenReturn(HISYNCID1); in onProfileConnectionStateChanged_connected_mainDevice_subDeviceDisconnected_returnFalse()
399 when(mCachedDevice2.getHiSyncId()).thenReturn(HISYNCID1); in onProfileConnectionStateChanged_connected_mainDevice_subDeviceDisconnected_returnFalse()
416 when(mCachedDevice1.getHiSyncId()).thenReturn(HISYNCID1); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceConnected_verifyRefresh()
[all …]
H A DCachedBluetoothDeviceManagerTest.java166 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
167 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
179 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
180 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
192 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
193 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
207 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
208 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
241 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in findDevice_sameHiSyncId_foundBothDevice()
387 doReturn(HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in isSubDevice_validSubDevice()
[all …]
H A DLocalBluetoothProfileManagerTest.java199 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManager.java67 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded()
93 private long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidDeviceManager
100 return profileProxy.getHiSyncId(device); in getHiSyncId()
126 final long hiSyncId = newDevice.getHiSyncId(); in setSubDeviceIfNeeded()
147 if (cachedDevice.getHiSyncId() == hiSyncId) { in getCachedDevice()
159 if (!isValidHiSyncId(cachedDevice.getHiSyncId())) { in updateHearingAidsDevices()
160 final long newHiSyncId = getHiSyncId(cachedDevice.getDevice()); in updateHearingAidsDevices()
186 if (cachedDevice.getHiSyncId() != hiSyncId) { in onHiSyncIdChanged()
238 onHiSyncIdChanged(cachedDevice.getHiSyncId()); in onProfileConnectionStateChangedIfProcessed()
365 if (isValidHiSyncId(cachedDevice.getHiSyncId())) { in findMainDevice()
H A DHearingAidProfile.java267 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile
271 return mService.getHiSyncId(device); in getHiSyncId()
H A DLocalBluetoothProfileManager.java354 if (cachedDevice.getHiSyncId() == BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceiveInternal()
355 long newHiSyncId = getHearingAidProfile().getHiSyncId(cachedDevice.getDevice()); in onReceiveInternal()
409 if (cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID in onReceiveInternal()
H A DHearingAidInfo.java83 public long getHiSyncId() { in getHiSyncId() method in HearingAidInfo
H A DBluetoothEventManager.java391 + cachedDevice.getHiSyncId()); in onReceive()
394 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
H A DCachedBluetoothDevice.java381 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice
383 ? mHearingAidInfo.getHiSyncId() : BluetoothHearingAid.HI_SYNC_ID_INVALID; in getHiSyncId()
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DMediaDeviceUtils.java36 if (cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in getId()
37 return Long.toString(cachedDevice.getHiSyncId()); in getId()
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DBluetoothProfileMonitor.java110 ? GROUP_ID_NO_GROUP : mHearingAidProfile.getHiSyncId(device); in getGroupId()
H A DLegacyBluetoothRouteController.java305 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()