Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java110 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in initHearingAidDeviceIfNeeded_validHiSyncId_setHearingAidInfos()
116 assertThat(mCachedDevice1.getHiSyncId()).isNotEqualTo(HISYNCID1); in initHearingAidDeviceIfNeeded_validHiSyncId_setHearingAidInfos()
119 assertThat(mCachedDevice1.getHiSyncId()).isEqualTo(HISYNCID1); in initHearingAidDeviceIfNeeded_validHiSyncId_setHearingAidInfos()
131 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn( in initHearingAidDeviceIfNeeded_invalidHiSyncId_notToSetHiSyncId()
172 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
173 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
195 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
196 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
217 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_BothConnected_verifySubDevice()
218 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_BothConnected_verifySubDevice()
[all …]
DCachedBluetoothDeviceManagerTest.java164 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
165 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
177 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
178 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
190 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
191 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
205 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
206 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
239 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in findDevice_sameHiSyncId_foundBothDevice()
240 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in findDevice_sameHiSyncId_foundBothDevice()
[all …]
DLocalBluetoothProfileManagerTest.java199 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManager.java45 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded()
56 private long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidDeviceManager
63 return profileProxy.getHiSyncId(device); in getHiSyncId()
89 final long hiSyncId = newDevice.getHiSyncId(); in setSubDeviceIfNeeded()
110 if (cachedDevice.getHiSyncId() == hiSyncId) { in getCachedDevice()
122 if (!isValidHiSyncId(cachedDevice.getHiSyncId())) { in updateHearingAidsDevices()
123 final long newHiSyncId = getHiSyncId(cachedDevice.getDevice()); in updateHearingAidsDevices()
147 if (cachedDevice.getHiSyncId() != hiSyncId) { in onHiSyncIdChanged()
191 onHiSyncIdChanged(cachedDevice.getHiSyncId()); in onProfileConnectionStateChangedIfProcessed()
242 if (isValidHiSyncId(cachedDevice.getHiSyncId())) { in findMainDevice()
DHearingAidProfile.java268 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile
272 return mService.getHiSyncId(device); in getHiSyncId()
DLocalBluetoothProfileManager.java349 if (cachedDevice.getHiSyncId() == BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceiveInternal()
350 long newHiSyncId = getHearingAidProfile().getHiSyncId(cachedDevice.getDevice()); in onReceiveInternal()
380 if (cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID in onReceiveInternal()
DBluetoothEventManager.java390 + cachedDevice.getHiSyncId()); in onReceive()
393 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
DCachedBluetoothDevice.java358 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DMediaDeviceUtils.java35 return Long.toString(cachedDevice.getHiSyncId()); in getId()
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothRouteProvider.java304 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()