Searched refs:getHiSyncId (Results 1 – 12 of 12) sorted by relevance
172 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 …]
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()242 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in findDevice_sameHiSyncId_foundBothDevice()[all …]
212 when(mCachedBluetoothDevice.getHiSyncId()).thenReturn(HISYNCID); in stateChangedHandler_receiveHearingAidConnectionStateChanged_dispatchDeviceManager()
95 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()
267 public long getHiSyncId(BluetoothDevice device) { in getHiSyncId() method in HearingAidProfile271 return mService.getHiSyncId(device); in getHiSyncId()
83 public long getHiSyncId() { in getHiSyncId() method in HearingAidInfo
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()
421 + cachedDevice.getHiSyncId()); in onReceive()424 || cachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in onReceive()
442 public long getHiSyncId() { in getHiSyncId() method in CachedBluetoothDevice444 ? mHearingAidInfo.getHiSyncId() : BluetoothHearingAid.HI_SYNC_ID_INVALID; in getHiSyncId()
98 if (mCachedDevice.getHiSyncId() != BluetoothHearingAid.HI_SYNC_ID_INVALID) { in getId()99 return Long.toString(mCachedDevice.getHiSyncId()); in getId()
99 ? GROUP_ID_NO_GROUP : mHearingAidProfile.getHiSyncId(device); in getGroupId()
303 routeId = HEARING_AID_ROUTE_ID_PREFIX + mHearingAidProfile.getHiSyncId(device); in createBluetoothRoute()