Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
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()
DBluetoothDeviceProfilesPreferenceController.java50 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked);
75 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState()
79 getCachedDevice()); in updateState()
89 for (LocalBluetoothProfile removedProfile : getCachedDevice().getRemovedProfiles()) { in updateState()
DBluetoothDeviceNamePreferenceController.java55 CachedBluetoothDevice cachedDevice = getCachedDevice(); in updateState()
83 RemoteRenameDialogFragment.newInstance(getCachedDevice()), in handlePreferenceClicked()
DBluetoothDeviceAddressPreferenceController.java46 getCachedDevice().getAddress()); in updateState()
DBluetoothDeviceProfilePreference.java58 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDeviceProfilePreference
DBluetoothDevicePreferenceController.java74 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDevicePreferenceController
DBluetoothDevicesGroupPreferenceController.java59 onDeviceClicked(((BluetoothDevicePreference) preference).getCachedDevice());
DBluetoothDevicePreference.java80 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in BluetoothDevicePreference
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java349 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
350 .isEqualTo(preference3.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
351 assertThat(mPreferenceList.get(1).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
352 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
353 assertThat(mPreferenceList.get(2).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
354 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO()
374 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeDefault()
375 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
376 assertThat(mPreferenceList.get(1).getCachedDevice().getAddress()) in compareTo_sortTypeDefault()
377 .isEqualTo(preference2.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
[all …]
DBluetoothFindBroadcastsFragmentTest.java90 doReturn(mCachedDevice).when(mFragment).getCachedDevice(any()); in setUp()
/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/bluetooth/
DBluetoothDevicesGroupPreferenceControllerTest.java127 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMatch_addsToGroup()
140 assertThat(mController.getPreferenceMap()).containsEntry(devicePreference.getCachedDevice(), in refreshUi_filterMatch_addsToPreferenceMap()
153 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromGroup()
170 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in refreshUi_filterMismatch_removesFromPreferenceMap()
221 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice1); in onDeviceAdded_refreshesUi()
239 assertThat(devicePreference.getCachedDevice()).isEqualTo(mCachedDevice2); in onDeviceDeleted_refreshesUi()
266 assertThat(mController.getClickedDevice()).isEqualTo(devicePreference.getCachedDevice()); in preferenceClicked_callsOnDeviceClicked()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeGroupController.java95 if (preference.getCachedDevice() != null
96 && BluetoothUtils.getGroupId(preference.getCachedDevice())
199 int order = getPreferenceOrderForDevice(preference.getCachedDevice()); in onChange()
259 CachedBluetoothDevice cachedDevice = volumePref.getCachedDevice(); in onDeviceAdded()
282 String address = volumePref.getCachedDevice().getDevice() == null ? "null" in onDeviceRemoved()
283 : volumePref.getCachedDevice().getDevice().getAnonymizedAddress(); in onDeviceRemoved()
DAudioSharingDeviceVolumeControlUpdater.java113 BluetoothDevice prefDevice = pref.getCachedDevice().getDevice(); in removePreference()
DAudioSharingDeviceVolumePreference.java65 public CachedBluetoothDevice getCachedDevice() { in getCachedDevice() method in AudioSharingDeviceVolumePreference
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/
DAudioSharingDeviceVolumeControlUpdaterTest.java148 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_noSharing_removesPref()
172 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref()
197 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_deviceIsNotInList_removesPref()
221 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_leaDeviceDisconnected_removesPref()
245 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_leaDeviceDisconnecting_removesPref()
261 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_hasSource_addsPreference()
279 assertThat(((AudioSharingDeviceVolumePreference) captor.getValue()).getCachedDevice()) in onProfileConnectionStateChanged_hasLeaMemberConnected_hasSource_addsPreference()
DAudioSharingDeviceVolumeGroupControllerTest.java179 when(mPreference1.getCachedDevice()).thenReturn(mCachedDevice1); in setUp()
184 when(mPreference2.getCachedDevice()).thenReturn(mCachedDevice2); in setUp()
/packages/apps/Settings/src/com/android/settings/bluetooth/ui/view/
DDeviceDetailsMoreSettingsFragment.kt115 private fun getCachedDevice(): CachedBluetoothDevice? { in <lambda>() method in com.android.settings.bluetooth.ui.view.DeviceDetailsMoreSettingsFragment
125 getCachedDevice() in <lambda>()
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/bluetooth/
DBluetoothDevicePickerPreferenceControllerTest.java184 0)).getCachedDevice()).isEqualTo(mBondedCachedDevice); in onStart_appliesFilterType()
329 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_sendsPickedIntent()
354 devicePreference.getCachedDevice(), BluetoothDevice.BOND_BONDED); in onDeviceBondStateChanged_selectedDeviceBonded_goesBack()
DBluetoothUnbondedDevicesPreferenceControllerTest.java170 assertThat(devicePreference.getCachedDevice()).isEqualTo(mUnbondedCachedDevice); in showsUnbondedDevices()
181 assertThat(devicePreference.getCachedDevice()).isEqualTo(mUnbondedCachedDevice); in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones()
/packages/apps/Settings/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DMediaControlHelper.java124 && hasOverlap(deviceForMedia.getCachedDevice(), currentLeDevice); in shouldStopMedia()
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/audiostreams/
DMediaControlHelperTest.java133 when(mBluetoothMediaDevice.getCachedDevice()).thenReturn(mCachedBluetoothDevice); in testStart_isPlaying_onDeviceListUpdate_deviceMatch_shouldStopMedia()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDeviceDetailsFragment.java161 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() method in BluetoothDeviceDetailsFragment
201 mCachedDevice = getCachedDevice(mDeviceAddress); in onAttach()
DBluetoothFindBroadcastsFragment.java189 CachedBluetoothDevice getCachedDevice(String deviceAddress) { in getCachedDevice() method in BluetoothFindBroadcastsFragment
199 mCachedDevice = getCachedDevice(mDeviceAddress); in onAttach()
DDevicePickerFragment.java164 if ((btPreference.getCachedDevice().getBondState() == in onDevicePreferenceClick()
/packages/apps/Settings/src/com/android/settings/notification/
DMediaVolumePreferenceController.java154 ((BluetoothMediaDevice) mMediaDevice).getCachedDevice(); in getSliceEndItem()

12