Searched refs:mCachedDevices (Results 1 – 7 of 7) sorted by relevance
85 private List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CsipDeviceManagerTest130 mCachedDevices = mCachedDeviceManager.mCachedDevices; in setUp()141 mCachedDevices.add(mCachedDevice1); in setUp()142 mCachedDevices.add(mCachedDevice3); in setUp()269 for (CachedBluetoothDevice item : mCachedDevices) { in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList()276 assertThat(mCachedDevices.contains(expectedItem)).isTrue(); in addMemberDevicesIntoMainDevice_noPreferredDevice_returnFalseAndNoChangeList()287 for (CachedBluetoothDevice item : mCachedDevices) { in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndNoOtherInList_noChangeList()294 assertThat(mCachedDevices.contains(expectedItem)).isTrue(); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndNoOtherInList_noChangeList()304 mCachedDevices.clear(); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()305 mCachedDevices.add(preferredDevice); in addMemberDevicesIntoMainDevice_preferredDeviceIsMainAndTwoMain_returnTrue()[all …]
155 mCachedDeviceManager.mCachedDevices, mHelper)); in setUp()297 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in setSubDeviceIfNeeded_sameHiSyncId_setSubDevice()312 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in setSubDeviceIfNeeded_differentHiSyncId_notSetSubDevice()338 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()339 mCachedDeviceManager.mCachedDevices.add(mCachedDevice2); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()341 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice2)).isTrue(); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()345 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice2)).isFalse(); in updateHearingAidsDevices_asha_firstPairedDevicesConnected_verifySubDevice()368 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in updateHearingAidsDevices_asha_secondPairedDeviceConnected_verifySubDevice()369 mCachedDeviceManager.mCachedDevices.add(mCachedDevice2); in updateHearingAidsDevices_asha_secondPairedDeviceConnected_verifySubDevice()371 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice1)).isTrue(); in updateHearingAidsDevices_asha_secondPairedDeviceConnected_verifySubDevice()[all …]
409 mCachedDeviceManager.mCachedDevices)); in updateHearingAidDevices_directToHearingAidDeviceManager()613 mCachedDeviceManager.mCachedDevices)); in onActiveDeviceChanged_validHiSyncId_callExpectedFunction()
49 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CachedBluetoothDeviceManager62 mCachedDevices); in CachedBluetoothDeviceManager()63 mCsipDeviceManager = new CsipDeviceManager(localBtManager, mCachedDevices); in CachedBluetoothDeviceManager()67 return new ArrayList<>(mCachedDevices); in getCachedDevicesCopy()93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()144 mCachedDevices.add(newDevice); in addDevice()201 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in isSubDevice()270 mCachedDevices.stream() in clearNonBondedDevices()276 mCachedDevices.removeAll(removedCachedDevice); in clearNonBondedDevices()280 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in clearNonBondedSubDevices()[all …]
46 private final List<CachedBluetoothDevice> mCachedDevices; field in CsipDeviceManager51 mCachedDevices = cachedDevices; in CsipDeviceManager()114 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in getCachedDevice()115 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice()128 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateCsipDevices()179 log("updateRelationshipOfGroupDevices: mCachedDevices list =" + mCachedDevices.toString()); in updateRelationshipOfGroupDevices()192 if (device == null || mCachedDevices == null) { in findMainDevice()196 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findMainDevice()230 for (CachedBluetoothDevice item : mCachedDevices) { in getGroupDevicesFromAllOfDevicesList()351 List<CachedBluetoothDevice> topLevelOfGroupDevicesList = mCachedDevices.stream() in addMemberDevicesIntoMainDevice()[all …]
50 private final List<CachedBluetoothDevice> mCachedDevices; field in HearingAidDeviceManager57 mCachedDevices = CachedDevices; in HearingAidDeviceManager()67 mCachedDevices = cachedDevices; in HearingAidDeviceManager()119 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in getCachedDevice()120 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice()131 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices()154 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in onHiSyncIdChanged()155 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in onHiSyncIdChanged()185 subDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()187 mainDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()[all …]
54 private final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<>(); field in HearingDevicesCheckerTest72 when(mCachedBluetoothDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()99 mCachedDevices.add(mCachedDevice); in isAnyPairedHearingDevice_hearingAidBonded_returnTrue()112 mCachedDevices.add(mCachedDevice); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()