Home
last modified time | relevance | path

Searched refs:mCachedDeviceManager (Results 1 – 25 of 32) sorted by relevance

12

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java72 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDevicesGroupPreferenceControllerTest
88 mCachedDeviceManager); in setUp()
121 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in refreshUi_filterMatch_addsToGroup()
135 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in refreshUi_filterMatch_addsToPreferenceMap()
149 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in refreshUi_filterMismatch_removesFromGroup()
166 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in refreshUi_filterMismatch_removesFromPreferenceMap()
190 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in refreshUi_devices_showsGroup()
201 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in onBluetoothStateChanged_turningOff_clearsPreferences()
215 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in onDeviceAdded_refreshesUi()
229 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in onDeviceDeleted_refreshesUi()
[all …]
DRemoteRenameDialogFragmentTest.java62 private CachedBluetoothDeviceManager mCachedDeviceManager; field in RemoteRenameDialogFragmentTest
75 mCachedDeviceManager); in setUp()
79 when(mCachedDeviceManager.findDevice(device)).thenReturn(mCachedDevice); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DSavedHearingDeviceUpdaterTest.java61 private CachedBluetoothDeviceManager mCachedDeviceManager; field in SavedHearingDeviceUpdaterTest
74 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
86 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_savedHearingDevice_returnTrue()
98 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_savedNonHearingDevice_returnFalse()
110 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_savedBondingHearingDevice_returnFalse()
122 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_connectedHearingDevice_returnFalse()
134 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(new ArrayList<>()); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
DAvailableHearingDeviceUpdaterTest.java60 private CachedBluetoothDeviceManager mCachedDeviceManager; field in AvailableHearingDeviceUpdaterTest
73 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
85 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_connectedHearingDevice_returnTrue()
97 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_nonConnectedHearingDevice_returnFalse()
109 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in isFilterMatch_connectedBondingHearingDevice_returnFalse()
121 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(new ArrayList<>()); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
DHearingDevicePairingFragmentTest.java79 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingDevicePairingFragmentTest
93 mFragment.mCachedDeviceManager = mCachedDeviceManager; in setUp()
161 doReturn(mCachedDevice).when(mCachedDeviceManager).findDevice(mDevice); in handleLeScanResult_markDeviceAsHearingAid()
172 doReturn(mCachedDevice).when(mCachedDeviceManager).findDevice(mDevice); in handleLeScanResult_isAndroidCompatible_addDevice()
184 doReturn(mCachedDevice).when(mCachedDeviceManager).findDevice(mDevice); in handleLeScanResult_isNotAndroidCompatible_discoverServices()
196 doReturn(mCachedDevice).when(mCachedDeviceManager).findDevice(mDevice); in handleLeScanResult_alreadyBonded_doNothing()
DHearingAidHelperTest.java68 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidHelperTest
88 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
89 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
DHearingAidPairingDialogFragmentTest.java90 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidPairingDialogFragmentTest
189 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupEnvironment()
190 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment()
DHearingAidUtilsTest.java83 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidUtilsTest
204 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupEnvironment()
205 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment()
DAccessibilityHearingAidPreferenceControllerTest.java99 private CachedBluetoothDeviceManager mCachedDeviceManager; field in AccessibilityHearingAidPreferenceControllerTest
299 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupEnvironment()
305 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment()
309 when(mCachedDeviceManager.findDevice(mSubBluetoothDevice)).thenReturn( in setupEnvironment()
DHearingDeviceAudioRoutingBasePreferenceControllerTest.java82 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingDeviceAudioRoutingBasePreferenceControllerTest
105 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
/packages/apps/Settings/src/com/android/settings/accessibility/
DHearingAidHelper.java42 private final CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidHelper
48 mCachedDeviceManager = localBluetoothManager.getCachedDeviceManager(); in HearingAidHelper()
74 .filter(d -> !mCachedDeviceManager.isSubDevice(d)).collect(Collectors.toList()); in getConnectedHearingAidDeviceList()
84 return deviceList.isEmpty() ? null : mCachedDeviceManager.findDevice(deviceList.get(0)); in getConnectedHearingAidDevice()
DHearingDevicePairingFragment.java83 CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingDevicePairingFragment
112 mCachedDeviceManager = mLocalManager.getCachedDeviceManager(); in onCreate()
294 if (mCachedDeviceManager != null) { in startScanning()
295 mCachedDeviceManager.clearNonBondedDevices(); in startScanning()
325 if (mCachedDeviceManager == null) { in handleLeScanResult()
329 CachedBluetoothDevice cachedDevice = mCachedDeviceManager.findDevice(device); in handleLeScanResult()
331 cachedDevice = mCachedDeviceManager.addDevice(device); in handleLeScanResult()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceListPreferenceFragment.kt82 var mCachedDeviceManager: CachedBluetoothDeviceManager? = null variable
124 mCachedDeviceManager = mLocalManager!!.cachedDeviceManager in onCreate()
166 mCachedDeviceManager!!.cachedDevicesCopy in addCachedDevices()
360 val cachedDevice = mCachedDeviceManager!!.findDevice(device) in handleLeScanResult()
361 ?: mCachedDeviceManager!!.addDevice(device, leScanFilters) in handleLeScanResult()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDetailsHeaderControllerTest.java61 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDetailsHeaderControllerTest
70 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
71 when(mCachedDeviceManager.getSubDeviceSummary(mCachedDevice)).thenReturn("abc"); in setUp()
DBluetoothPairingControllerTest.java64 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothPairingControllerTest
107 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
109 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice); in setUp()
DBluetoothDeviceUpdaterTest.java79 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDeviceUpdaterTest
99 when(mLocalManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
100 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
DAvailableMediaBluetoothDeviceUpdaterTest.java84 @Mock private CachedBluetoothDeviceManager mCachedDeviceManager; field in AvailableMediaBluetoothDeviceUpdaterTest
106 when(mLocalBtManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
115 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceNamePreferenceControllerTest.java76 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDeviceNamePreferenceControllerTest
147 when(mCachedDeviceManager.getSubDeviceSummary(mCachedDevice)).thenReturn("other summary"); in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary()
185 return mCachedDeviceManager; in getCachedDeviceManager()
DBluetoothScanningDevicesGroupPreferenceControllerTest.java97 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothScanningDevicesGroupPreferenceControllerTest
133 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp()
135 when(mMockManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
328 verify(mCachedDeviceManager).clearNonBondedDevices(); in onStop_clearsNonBondedDevices()
DBluetoothUnbondedDevicesPreferenceControllerTest.java94 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothUnbondedDevicesPreferenceControllerTest
136 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp()
142 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
DBluetoothDevicePickerPreferenceControllerTest.java105 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDevicePickerPreferenceControllerTest
122 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
130 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdaterTest.java96 @Mock private CachedBluetoothDeviceManager mCachedDeviceManager; field in AudioSharingDeviceVolumeControlUpdaterTest
115 when(mLocalBtManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
129 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
188 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in onProfileConnectionStateChanged_deviceIsNotInList_removesPref()
354 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(ImmutableList.of()); in refreshPreference_doNothing()
DAudioSharingBluetoothDeviceUpdaterTest.java99 @Mock private CachedBluetoothDeviceManager mCachedDeviceManager; field in AudioSharingBluetoothDeviceUpdaterTest
122 when(mLocalBtManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
137 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
196 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in onProfileConnectionStateChanged_deviceIsNotInList_removesPref()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/
DConnectedDeviceGroupControllerTest.java101 private CachedBluetoothDeviceManager mCachedDeviceManager; field in ConnectedDeviceGroupControllerTest
136 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
145 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp()
DAvailableMediaDeviceGroupControllerTest.java122 @Mock private CachedBluetoothDeviceManager mCachedDeviceManager; field in AvailableMediaDeviceGroupControllerTest
167 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
168 when(mCachedDeviceManager.findDevice(any(BluetoothDevice.class))) in setUp()

12