Home
last modified time | relevance | path

Searched refs:cachedDevices (Results 1 – 11 of 11) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/
H A DNotificationBackendTest.java172 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_noAssociations() local
176 cachedDevices.add(cbd1); in getDeviceList_noAssociations()
177 when(mCbm.getCachedDevicesCopy()).thenReturn(cachedDevices); in getDeviceList_noAssociations()
201 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_singleDevice() local
205 cachedDevices.add(cbd1); in getDeviceList_singleDevice()
206 when(mCbm.getCachedDevicesCopy()).thenReturn(cachedDevices); in getDeviceList_singleDevice()
217 Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in getDeviceList_multipleDevices() local
221 cachedDevices.add(cbd1); in getDeviceList_multipleDevices()
226 cachedDevices.add(cbd2); in getDeviceList_multipleDevices()
227 when(mCbm.getCachedDevicesCopy()).thenReturn(cachedDevices); in getDeviceList_multipleDevices()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowCachedBluetoothDeviceManager.java36 public void setCachedDevicesCopy(Collection<CachedBluetoothDevice> cachedDevices) { in setCachedDevicesCopy() argument
37 mCachedDevices = cachedDevices; in setCachedDevicesCopy()
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
H A DBluetoothEventManagerTest.java235 final List<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged() local
236 cachedDevices.add(mCachedDevice1); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
237 cachedDevices.add(mCachedDevice2); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
241 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(cachedDevices); in dispatchActiveDeviceChanged_connectedDevices_activeDeviceChanged()
301 final List<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in dispatchActiveDeviceChanged_withA2dpAndHearingAid() local
302 cachedDevices.add(mCachedDevice1); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
303 cachedDevices.add(mCachedDevice2); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
307 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(cachedDevices); in dispatchActiveDeviceChanged_withA2dpAndHearingAid()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicesGroupPreferenceController.java115 Collection<CachedBluetoothDevice> cachedDevices = in updateState() local
119 devicesToRemove.removeAll(cachedDevices); in updateState()
124 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in updateState()
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDeviceUpdater.java121 final Collection<CachedBluetoothDevice> cachedDevices = in forceUpdate() local
123 for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) { in forceUpdate()
136 final Collection<CachedBluetoothDevice> cachedDevices = in removeAllDevicesFromPreference() local
138 for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) { in removeAllDevicesFromPreference()
H A DDeviceListPreferenceFragment.java141 Collection<CachedBluetoothDevice> cachedDevices = in addCachedDevices() local
143 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in addCachedDevices()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/qc/
H A DPairedBluetoothDevices.java105 Collection<CachedBluetoothDevice> cachedDevices = in getQCItem() local
113 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in getQCItem()
161 Collection<CachedBluetoothDevice> cachedDevices = in onNotifyChange() local
163 for (CachedBluetoothDevice cachedDevice : cachedDevices) { in onNotifyChange()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DPbapClientProfile.java84 Collection<CachedBluetoothDevice> cachedDevices = mDeviceManager.getCachedDevicesCopy(); in refreshProfiles() local
85 for (CachedBluetoothDevice device : cachedDevices) { in refreshProfiles()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DSavedBluetoothDeviceUpdaterTest.java216 final Collection<CachedBluetoothDevice> cachedDevices = new ArrayList<>(); in forceUpdate_bluetoothAdapterNotEnable_removeAllDevicesFromPreference() local
217 cachedDevices.add(mCachedBluetoothDevice); in forceUpdate_bluetoothAdapterNotEnable_removeAllDevicesFromPreference()
220 when(mDeviceManager.getCachedDevicesCopy()).thenReturn(cachedDevices); in forceUpdate_bluetoothAdapterNotEnable_removeAllDevicesFromPreference()
/aosp12/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
H A DBluetoothDevicesSlice.java191 final Collection<CachedBluetoothDevice> cachedDevices = in getPairedBluetoothDevices() local
195 return cachedDevices.stream() in getPairedBluetoothDevices()
/aosp12/packages/apps/Settings/src/com/android/settings/notification/
H A DNotificationBackend.java153 final Collection<CachedBluetoothDevice> cachedDevices = in getDeviceList() local
155 for (CachedBluetoothDevice cachedBluetoothDevice : cachedDevices) { in getDeviceList()