Home
last modified time | relevance | path

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

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java88 mCachedDeviceManager.mCachedDevices)); in setUp()
125 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in setSubDeviceIfNeeded_sameHiSyncId_setSubDevice()
138 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in setSubDeviceIfNeeded_differentHiSyncId_notSetSubDevice()
156 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
157 mCachedDeviceManager.mCachedDevices.add(mCachedDevice2); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
159 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice2)).isTrue(); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
163 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice2)).isFalse(); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
179 mCachedDeviceManager.mCachedDevices.add(mCachedDevice1); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
180 mCachedDeviceManager.mCachedDevices.add(mCachedDevice2); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
182 assertThat(mCachedDeviceManager.mCachedDevices.contains(mCachedDevice1)).isTrue(); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
[all …]
DCachedBluetoothDeviceManagerTest.java380 mCachedDeviceManager.mCachedDevices)); in updateHearingAidDevices_directToHearingAidDeviceManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java41 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CachedBluetoothDeviceManager
48 mHearingAidDeviceManager = new HearingAidDeviceManager(localBtManager, mCachedDevices); in CachedBluetoothDeviceManager()
52 return new ArrayList<>(mCachedDevices); in getCachedDevicesCopy()
78 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
107 mCachedDevices.add(newDevice); in addDevice()
138 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in isSubDevice()
181 mCachedDevices.removeIf(cachedDevice in clearNonBondedDevices()
186 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in clearNonBondedSubDevices()
187 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in clearNonBondedSubDevices()
201 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in onScanningStateChanged()
[all …]
DHearingAidDeviceManager.java37 private final List<CachedBluetoothDevice> mCachedDevices; field in HearingAidDeviceManager
41 mCachedDevices = CachedDevices; in HearingAidDeviceManager()
81 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in getCachedDevice()
82 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in getCachedDevice()
93 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in updateHearingAidsDevices()
114 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in onHiSyncIdChanged()
115 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in onHiSyncIdChanged()
137 subDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()
139 mainDevice = mCachedDevices.get(firstMatchedIndex); in onHiSyncIdChanged()
145 mCachedDevices.remove(indexToRemoveFromUi); in onHiSyncIdChanged()
[all …]