Home
last modified time | relevance | path

Searched refs:mCachedDevices (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCsipDeviceManagerTest.java85 private List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CsipDeviceManagerTest
130 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 …]
DHearingAidDeviceManagerTest.java155 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 …]
DCachedBluetoothDeviceManagerTest.java409 mCachedDeviceManager.mCachedDevices)); in updateHearingAidDevices_directToHearingAidDeviceManager()
613 mCachedDeviceManager.mCachedDevices)); in onActiveDeviceChanged_validHiSyncId_callExpectedFunction()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java49 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CachedBluetoothDeviceManager
62 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 …]
DCsipDeviceManager.java46 private final List<CachedBluetoothDevice> mCachedDevices; field in CsipDeviceManager
51 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 …]
DHearingAidDeviceManager.java50 private final List<CachedBluetoothDevice> mCachedDevices; field in HearingAidDeviceManager
57 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 …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesCheckerTest.java54 private final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<>(); field in HearingDevicesCheckerTest
72 when(mCachedBluetoothDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
99 mCachedDevices.add(mCachedDevice); in isAnyPairedHearingDevice_hearingAidBonded_returnTrue()
112 mCachedDevices.add(mCachedDevice); in isAnyActiveHearingDevice_hearingAidActiveAndConnected_returnTrue()