Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java172 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
176 assertThat(mCachedDevice1.getHiSyncId()).isNotEqualTo(HISYNCID1); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
179 assertThat(mCachedDevice1.getHiSyncId()).isEqualTo(HISYNCID1); in initHearingAidDeviceIfNeeded_asha_validHiSyncId_setHearingAidInfo()
197 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HI_SYNC_ID_INVALID); in initHearingAidDeviceIfNeeded_asha_invalidHiSyncId_notToSetHearingAidInfo()
217 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HI_SYNC_ID_INVALID); in initHearingAidDeviceIfNeeded_asha_scanFilterNotNull_setEmptyHearingAidInfo()
239 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HI_SYNC_ID_INVALID); in initHearingAidDeviceIfNeeded_asha_randomScanFilter_notToSetHearingAidInfo()
334 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()
335 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()
364 when(mHearingAidProfile.getHiSyncId(mDevice1)).thenReturn(HISYNCID1); in updateHearingAidsDevices_asha_secondPairedDeviceConnected_verifySubDevice()
365 when(mHearingAidProfile.getHiSyncId(mDevice2)).thenReturn(HISYNCID1); in updateHearingAidsDevices_asha_secondPairedDeviceConnected_verifySubDevice()
[all …]
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()
242 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in findDevice_sameHiSyncId_foundBothDevice()
[all …]
DLocalBluetoothProfileManagerTest.java212 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManager.java95 final long hiSyncId = newDevice.getHiSyncId(); in setSubDeviceIfNeeded()
121 if (cachedDevice.getHiSyncId() == hiSyncId) { in getCachedDevice()
133 if (isValidHiSyncId(cachedDevice.getHiSyncId())) { in updateHearingAidsDevices()
139 if (isValidHiSyncId(info.getHiSyncId())) { in updateHearingAidsDevices()
140 newSyncIdSet.add(info.getHiSyncId()); in updateHearingAidsDevices()
156 if (cachedDevice.getHiSyncId() != hiSyncId) { in onHiSyncIdChanged()
208 onHiSyncIdChanged(cachedDevice.getHiSyncId()); in onProfileConnectionStateChangedIfProcessed()
383 if (isValidHiSyncId(cachedDevice.getHiSyncId())) { in findMainDevice()
400 long hiSyncId = asha.getHiSyncId(cachedDevice.getDevice()); in generateHearingAidInfo()
DHearingAidProfile.java267 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile
271 return mService.getHiSyncId(device); in getHiSyncId()
DHearingAidInfo.java83 public long getHiSyncId() { in getHiSyncId() method in HearingAidInfo
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()
DBluetoothEventManager.java421 + cachedDevice.getHiSyncId()); in onReceive()
424 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
DCachedBluetoothDevice.java442 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice
444 ? mHearingAidInfo.getHiSyncId() : BluetoothHearingAid.HI_SYNC_ID_INVALID; in getHiSyncId()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DBluetoothMediaDevice.java98 if (mCachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in getId()
99 return Long.toString(mCachedDevice.getHiSyncId()); in getId()
/frameworks/base/services/core/java/com/android/server/media/
DBluetoothProfileMonitor.java99 ? GROUP_ID_NO_GROUP : mHearingAidProfile.getHiSyncId(device); in getGroupId()
DLegacyBluetoothRouteController.java303 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()