/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 72 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 …]
|
D | RemoteRenameDialogFragmentTest.java | 62 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/ |
D | SavedHearingDeviceUpdaterTest.java | 61 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()
|
D | AvailableHearingDeviceUpdaterTest.java | 60 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()
|
D | HearingDevicePairingFragmentTest.java | 79 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()
|
D | HearingAidHelperTest.java | 68 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidHelperTest 88 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 89 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setUp()
|
D | HearingAidPairingDialogFragmentTest.java | 90 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidPairingDialogFragmentTest 189 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupEnvironment() 190 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment()
|
D | HearingAidUtilsTest.java | 83 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingAidUtilsTest 204 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setupEnvironment() 205 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedBluetoothDevice); in setupEnvironment()
|
D | AccessibilityHearingAidPreferenceControllerTest.java | 99 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()
|
D | HearingDeviceAudioRoutingBasePreferenceControllerTest.java | 82 private CachedBluetoothDeviceManager mCachedDeviceManager; field in HearingDeviceAudioRoutingBasePreferenceControllerTest 105 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingAidHelper.java | 42 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()
|
D | HearingDevicePairingFragment.java | 83 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/ |
D | DeviceListPreferenceFragment.kt | 82 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/ |
D | BluetoothDetailsHeaderControllerTest.java | 61 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDetailsHeaderControllerTest 70 when(mBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 71 when(mCachedDeviceManager.getSubDeviceSummary(mCachedDevice)).thenReturn("abc"); in setUp()
|
D | BluetoothPairingControllerTest.java | 64 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothPairingControllerTest 107 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 109 when(mCachedDeviceManager.findDevice(mBluetoothDevice)).thenReturn(mCachedDevice); in setUp()
|
D | BluetoothDeviceUpdaterTest.java | 79 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDeviceUpdaterTest 99 when(mLocalManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 100 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn(mCachedDevices); in setUp()
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 84 @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/ |
D | BluetoothDeviceNamePreferenceControllerTest.java | 76 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothDeviceNamePreferenceControllerTest 147 when(mCachedDeviceManager.getSubDeviceSummary(mCachedDevice)).thenReturn("other summary"); in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary() 185 return mCachedDeviceManager; in getCachedDeviceManager()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 97 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()
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 94 private CachedBluetoothDeviceManager mCachedDeviceManager; field in BluetoothUnbondedDevicesPreferenceControllerTest 136 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp() 142 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp()
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 105 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/ |
D | AudioSharingDeviceVolumeControlUpdaterTest.java | 96 @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()
|
D | AudioSharingBluetoothDeviceUpdaterTest.java | 99 @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/ |
D | ConnectedDeviceGroupControllerTest.java | 101 private CachedBluetoothDeviceManager mCachedDeviceManager; field in ConnectedDeviceGroupControllerTest 136 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 145 when(mCachedDeviceManager.getCachedDevicesCopy()).thenReturn( in setUp()
|
D | AvailableMediaDeviceGroupControllerTest.java | 122 @Mock private CachedBluetoothDeviceManager mCachedDeviceManager; field in AvailableMediaDeviceGroupControllerTest 167 when(mLocalBluetoothManager.getCachedDeviceManager()).thenReturn(mCachedDeviceManager); in setUp() 168 when(mCachedDeviceManager.findDevice(any(BluetoothDevice.class))) in setUp()
|