Searched refs:getHiSyncId (Results 1 – 12 of 12) sorted by relevance
166 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 …]
166 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 …]
199 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHAPConnectionStateChanged_shouldDispatchDeviceManager()
67 long hiSyncId = getHiSyncId(newDevice.getDevice()); in initHearingAidDeviceIfNeeded()93 private long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidDeviceManager100 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()
267 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile271 return mService.getHiSyncId(device); in getHiSyncId()
354 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()
83 public long getHiSyncId() { in getHiSyncId() method in HearingAidInfo
391 + cachedDevice.getHiSyncId()); in onReceive()394 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
381 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice383 ? mHearingAidInfo.getHiSyncId() : BluetoothHearingAid.HI_SYNC_ID_INVALID; in getHiSyncId()
36 if (cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in getId()37 return Long.toString(cachedDevice.getHiSyncId()); in getId()
110 ? GROUP_ID_NO_GROUP : mHearingAidProfile.getHiSyncId(device); in getGroupId()
305 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()