Searched refs:getHiSyncId (Results 1 – 10 of 10) sorted by relevance
110 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 …]
164 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 …]
199 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
45 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded()56 private long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidDeviceManager63 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()
268 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile272 return mService.getHiSyncId(device); in getHiSyncId()
349 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()
390 + cachedDevice.getHiSyncId()); in onReceive()393 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
358 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice
35 return Long.toString(cachedDevice.getHiSyncId()); in getId()
304 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()