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.java364 mCachedDeviceManager.mCachedDevices)); in updateHearingAidDevices_directToHearingAidDeviceManager()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManager.java42 final List<CachedBluetoothDevice> mCachedDevices = new ArrayList<CachedBluetoothDevice>(); field in CachedBluetoothDeviceManager
49 mHearingAidDeviceManager = new HearingAidDeviceManager(localBtManager, mCachedDevices); in CachedBluetoothDeviceManager()
53 return new ArrayList<>(mCachedDevices); in getCachedDevicesCopy()
79 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in findDevice()
106 mCachedDevices.add(newDevice); in addDevice()
136 for (CachedBluetoothDevice cachedDevice : mCachedDevices) { in isSubDevice()
179 mCachedDevices.removeIf(cachedDevice in clearNonBondedDevices()
184 for (int i = mCachedDevices.size() - 1; i >= 0; i--) { in clearNonBondedSubDevices()
185 CachedBluetoothDevice cachedDevice = mCachedDevices.get(i); in clearNonBondedSubDevices()
199 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 …]