Home
last modified time | relevance | path

Searched refs:getCachedDevice (Results 1 – 24 of 24) sorted by relevance

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
H A DBluetoothDevicePreferenceTest.java246 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
247 .isEqualTo(preference3.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
248 assertThat(mPreferenceList.get(1).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
249 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
250 assertThat(mPreferenceList.get(2).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
251 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
271 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeDefault()
272 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
273 assertThat(mPreferenceList.get(1).getCachedDevice().getAddress()) in compareTo_sortTypeDefault()
274 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
[all …]
H A DBluetoothDeviceDetailsFragmentTest.java83 doReturn(mCachedDevice).when(mFragment).getCachedDevice(any()); in setUp()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothDeviceActionButtonsPreferenceController.java59 button.setEnabled(!getCachedDevice().isBusy()); in updateConnectionButton()
60 if (getCachedDevice().isConnected()) { in updateConnectionButton()
62 v -> getCachedDevice().disconnect()); in updateConnectionButton()
65 v -> getCachedDevice().connect()); in updateConnectionButton()
71 getCachedDevice().unpair(); in updateForgetButton()
H A DBluetoothDeviceProfilesPreferenceController.java42 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);
58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
62 getCachedDevice()); in updateState()
67 for (LocalBluetoothProfile removedProfile : getCachedDevice().getRemovedProfiles()) { in updateState()
H A DBluetoothDeviceNamePreferenceController.java57 CachedBluetoothDevice cachedDevice = getCachedDevice(); in updateState()
92 RemoteRenameDialogFragment.newInstance(getCachedDevice()), in handlePreferenceClicked()
H A DBluetoothDeviceAddressPreferenceController.java46 getCachedDevice().getAddress()); in updateState()
H A DBluetoothDevicePreferenceController.java62 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDevicePreferenceController
H A DBluetoothDeviceProfilePreference.java56 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDeviceProfilePreference
H A DBluetoothDevicePreference.java77 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDevicePreference
H A DBluetoothDevicesGroupPreferenceController.java59 onDeviceClicked(((BluetoothDevicePreference) preference).getCachedDevice());
H A DBluetoothBondedDevicesPreferenceController.java161 CachedBluetoothDevice cachedDevice = preference.getCachedDevice(); in setButtonsCheckedAndListeners()
/aosp12/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicesGroupPreferenceControllerTest.java130 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMatch_addsToGroup()
143 assertThat(mController.getPreferenceMap()).containsEntry(devicePreference.getCachedDevice(), in refreshUi_filterMatch_addsToPreferenceMap()
156 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromGroup()
173 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromPreferenceMap()
224 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in onDeviceAdded_refreshesUi()
242 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice2); in onDeviceDeleted_refreshesUi()
269 assertThat(mController.getClickedDevice()).isEqualTo(devicePreference.getCachedDevice()); in preferenceClicked_callsOnDeviceClicked()
H A DBluetoothUnbondedDevicesPreferenceControllerTest.java140 assertThat(devicePreference.getCachedDevice()).isEqualTo(mUnbondedCachedDevice); in showsUnbondedDevices()
150 assertThat(devicePreference.getCachedDevice()).isEqualTo(mUnbondedCachedDevice); in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones()
H A DBluetoothScanningDevicesGroupPreferenceControllerTest.java177 devicePreference.getCachedDevice()); in onDeviceClicked_callsInternal()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
H A DLocalMediaManager.java165 ((BluetoothMediaDevice) device).getCachedDevice(); in connectDevice()
427 if (isActiveDevice(((BluetoothMediaDevice) device).getCachedDevice()) in updateCurrentConnectedDevice()
622 ((BluetoothMediaDevice) device).getCachedDevice() in unRegisterDeviceAttributeChangeCallback()
678 && !((BluetoothMediaDevice) mOnTransferBluetoothDevice).getCachedDevice() in onDeviceAttributesChanged()
H A DBluetoothMediaDevice.java81 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothMediaDevice
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
H A DHearingAidDeviceManager.java64 final CachedBluetoothDevice hearingAidDevice = getCachedDevice(hiSyncId); in setSubDeviceIfNeeded()
80 private CachedBluetoothDevice getCachedDevice(long hiSyncId) { in getCachedDevice() method in HearingAidDeviceManager
/aosp12/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DBluetoothDeviceDetailsFragment.java90 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() method in BluetoothDeviceDetailsFragment
111 mCachedDevice = getCachedDevice(mDeviceAddress); in onAttach()
H A DDevicePickerFragment.java141 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
H A DDeviceListPreferenceFragment.java157 CachedBluetoothDevice device = btPreference.getCachedDevice(); in onPreferenceTreeClick()
H A DBluetoothDevicePreference.java134 CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDevicePreference
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
H A DLocalMediaManagerTest.java184 when(((BluetoothMediaDevice) device).getCachedDevice()).thenReturn(cachedDevice); in connectDevice_bluetoothDeviceNotConnected_connectBluetoothDevice()
501 when(((BluetoothMediaDevice) device).getCachedDevice()).thenReturn(cachedDevice); in onDeviceAttributesChanged_failingTransferring_shouldResetState()
610 when(((BluetoothMediaDevice) device).getCachedDevice()).thenReturn(cachedDevice); in onDeviceListAdded_transferToDisconnectedBluetooth_verifyConnectDevice()
747 when(device1.getCachedDevice()).thenReturn(cachedDevice1); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
748 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_bluetoothDeviceIsActive_returnBluetoothDevice()
775 when(device1.getCachedDevice()).thenReturn(cachedDevice1); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
776 when(device2.getCachedDevice()).thenReturn(cachedDevice2); in updateCurrentConnectedDevice_phoneDeviceIsActive_returnPhoneDevice()
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
H A DBluetoothDevicePickerPreferenceControllerTest.java170 0)).getCachedDevice()).isEqualTo(mBondedCachedDevice); in onStart_appliesFilterType()
313 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
338 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
H A DBluetoothBondedDevicesPreferenceControllerTest.java145 assertThat(devicePreference.getCachedDevice()).isEqualTo(mBondedCachedDevice); in showsOnlyBondedDevices()