/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 46 import com.android.settings.bluetooth.BluetoothDevicePreference; 227 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addDevicePreference_displayIt() 228 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addDevicePreference_displayIt() 249 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 250 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 251 final BluetoothDevicePreference preference2 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 252 mContext, mCachedDevice2, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 253 final BluetoothDevicePreference preference3 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 254 mContext, mCachedDevice3, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 255 final BluetoothDevicePreference preference4 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() [all …]
|
D | SavedDeviceGroupControllerTest.java | 43 import com.android.settings.bluetooth.BluetoothDevicePreference; 180 final BluetoothDevicePreference preference3 = in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 181 new BluetoothDevicePreference( in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 185 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 186 final BluetoothDevicePreference preference2 = in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 187 new BluetoothDevicePreference( in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 191 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 192 final BluetoothDevicePreference preference1 = in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 193 new BluetoothDevicePreference( in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 197 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() [all …]
|
D | AvailableMediaDeviceGroupControllerTest.java | 59 import com.android.settings.bluetooth.BluetoothDevicePreference; 395 BluetoothDevicePreference preference = in onDeviceClick_audioSharingOff_setActive() 396 new BluetoothDevicePreference( in onDeviceClick_audioSharingOff_setActive() 400 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceClick_audioSharingOff_setActive() 412 BluetoothDevicePreference preference = in onDeviceClick_audioSharingOn_dialogHandler() 413 new BluetoothDevicePreference( in onDeviceClick_audioSharingOn_dialogHandler() 417 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceClick_audioSharingOn_dialogHandler()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 91 private static final Comparator<BluetoothDevicePreference> COMPARATOR = 130 private BluetoothDevicePreference mPreference; 131 private List<BluetoothDevicePreference> mPreferenceList = new ArrayList<>(); 152 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 153 SHOW_DEVICES_WITHOUT_NAMES, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 307 BluetoothDevicePreference preference = in isVisible_showDeviceWithoutNames_visible() 308 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_showDeviceWithoutNames_visible() 310 BluetoothDevicePreference.SortType.TYPE_DEFAULT); in isVisible_showDeviceWithoutNames_visible() 318 BluetoothDevicePreference preference = in isVisible_hideDeviceWithoutNames_invisible() 319 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_hideDeviceWithoutNames_invisible() [all …]
|
D | SavedBluetoothDeviceUpdaterTest.java | 85 private BluetoothDevicePreference mPreference; 106 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 107 false, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 134 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 147 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onProfileConnectionStateChanged_leDeviceDisconnected_inDeviceList_invokesAddPreference() 193 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 227 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_notFindCachedBluetoothDevice_doNothing() 267 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_deviceNotContain_removePreference() 285 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_deviceIsSubDevice_doesNothing() 304 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update_notExclusivelyManagedDevice_addDevice() [all …]
|
D | BluetoothDevicePairingDetailBaseTest.java | 378 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 379 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 380 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 397 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 398 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 399 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingBluetoothDeviceUpdaterTest.java | 45 import com.android.settings.bluetooth.BluetoothDevicePreference; 172 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() 173 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() 196 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaConnected_flagOff_hysteresisMode_removesPref() 197 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaConnected_flagOff_hysteresisMode_removesPref() 220 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaConnected_noSource_removesPref() 221 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaConnected_noSource_removesPref() 244 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaConnected_noSource_hysteresisMode_removesPref() 245 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaConnected_noSource_hysteresisMode_removesPref() 269 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_deviceIsNotInList_removesPref() [all …]
|
/packages/apps/Car/Settings/tests/multivalent/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 173 BluetoothDevicePreference devicePreference = in showsOnlyBondedDevices() 174 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsOnlyBondedDevices() 200 BluetoothDevicePreference devicePreference = in onDeviceClicked_connected_launchesDeviceDetailsFragment() 201 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_connected_launchesDeviceDetailsFragment() 214 BluetoothDevicePreference devicePreference = in bluetoothButtonClicked_connected_disconnectsFromDevice() 215 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in bluetoothButtonClicked_connected_disconnectsFromDevice() 231 BluetoothDevicePreference devicePreference = in bluetoothButtonClicked_notConnected_connectsToDevice() 232 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in bluetoothButtonClicked_notConnected_connectsToDevice() 248 BluetoothDevicePreference devicePreference = in phoneButtonClicked_phoneProfile_enabled() 249 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in phoneButtonClicked_phoneProfile_enabled() [all …]
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 183 assertThat(((BluetoothDevicePreference) mPreferenceGroup.getPreference( in onStart_appliesFilterType() 197 BluetoothDevicePreference devicePreference = in onDeviceClicked_callingPackageEqualToLaunchPackage_setsClassName() 198 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_callingPackageEqualToLaunchPackage_setsClassName() 222 BluetoothDevicePreference devicePreference = in onDeviceClicked_callingPackageNotEqualToLaunchPackage_doesNotSetClassName() 223 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_callingPackageNotEqualToLaunchPackage_doesNotSetClassName() 246 BluetoothDevicePreference devicePreference = in onDeviceClicked_bondedDevice_goesBack() 247 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_goesBack() 263 BluetoothDevicePreference devicePreference = in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent() 264 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent() 284 BluetoothDevicePreference devicePreference = in onDeviceClicked_unbondedDevice_needsAuth_startsPairing() [all …]
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 168 BluetoothDevicePreference devicePreference = in showsUnbondedDevices() 169 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsUnbondedDevices() 179 BluetoothDevicePreference devicePreference = in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones() 180 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones() 188 BluetoothDevicePreference devicePreference = in onDeviceClicked_startsPairing() 189 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_startsPairing() 200 BluetoothDevicePreference devicePreference = in onDeviceClicked_pairingStartFails_resumesScanning() 201 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_pairingStartFails_resumesScanning() 216 BluetoothDevicePreference devicePreference = in onDeviceClicked_requestsPhonebookAccess() 217 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_requestsPhonebookAccess() [all …]
|
D | BluetoothDevicePreferenceTest.java | 56 private BluetoothDevicePreference mPreference; 78 mPreference = new BluetoothDevicePreference(mContext, mCachedDevice); in setUp() 177 mPreference = new BluetoothDevicePreference(mContext, mCachedDevice); in onAttached_deviceNameNotHumanReadable_setsHidden() 188 mPreference = new BluetoothDevicePreference(mContext, mCachedDevice); in onAttached_deviceNameNotHumanReadable_showWithoutNamesTrue_setsShown() 239 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in equals_devicesEqual_returnsTrue() 247 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in equals_devicesNotEqual_returnsFalse() 256 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in compareTo_sameType_usesDeviceCompareTo()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 214 BluetoothDevicePreference devicePreference = in onDeviceClicked_callsInternal() 215 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_callsInternal() 227 BluetoothDevicePreference devicePreference = in onDeviceClicked_cancelsScanning() 228 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_cancelsScanning()
|
/packages/apps/Car/Settings/tests/deviceless/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 125 BluetoothDevicePreference devicePreference = in refreshUi_filterMatch_addsToGroup() 126 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToGroup() 138 BluetoothDevicePreference devicePreference = in refreshUi_filterMatch_addsToPreferenceMap() 139 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToPreferenceMap() 151 BluetoothDevicePreference devicePreference = in refreshUi_filterMismatch_removesFromGroup() 152 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromGroup() 168 BluetoothDevicePreference devicePreference = in refreshUi_filterMismatch_removesFromPreferenceMap() 169 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromPreferenceMap() 219 BluetoothDevicePreference devicePreference = in onDeviceAdded_refreshesUi() 220 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceAdded_refreshesUi() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 42 public class BluetoothDevicePreference extends MultiActionPreference { class 51 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference() method in BluetoothDevicePreference 55 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, in BluetoothDevicePreference() method in BluetoothDevicePreference 146 if (!(o instanceof BluetoothDevicePreference)) { in equals() 149 return mCachedDevice.equals(((BluetoothDevicePreference) o).mCachedDevice); in equals() 159 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 165 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo() 191 void updateToggleButtonState(BluetoothDevicePreference preference); in updateToggleButtonState()
|
D | BluetoothBondedDevicesPreferenceController.java | 77 BluetoothDevicePreference.UpdateToggleButtonListener { 110 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() 111 BluetoothDevicePreference pref = super.createDevicePreference(cachedDevice); in createDevicePreference() 153 public void updateToggleButtonState(BluetoothDevicePreference preference) { in updateToggleButtonState() 159 BluetoothDevicePreference preference = in updateActionAvailability() 160 (BluetoothDevicePreference) group.getPreference(i); in updateActionAvailability() 165 private void updateActionAvailability(BluetoothDevicePreference preference) { in updateActionAvailability() 184 private void setButtonsCheckedAndListeners(BluetoothDevicePreference preference) { in setButtonsCheckedAndListeners() 273 private void updateBluetoothActionItemAvailability(BluetoothDevicePreference preference) { in updateBluetoothActionItemAvailability() 282 private void updatePhoneActionItemAvailability(BluetoothDevicePreference preference, in updatePhoneActionItemAvailability() [all …]
|
D | BluetoothDevicesGroupPreferenceController.java | 55 private final Map<CachedBluetoothDevice, BluetoothDevicePreference> mPreferenceMap = 59 onDeviceClicked(((BluetoothDevicePreference) preference).getCachedDevice()); 93 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() 94 return new BluetoothDevicePreference(getContext(), cachedDevice, in createDevicePreference() 117 protected Map<CachedBluetoothDevice, BluetoothDevicePreference> getPreferenceMap() { in getPreferenceMap() 167 BluetoothDevicePreference devicePreference = createDevicePreference(cachedDevice); in addPreference()
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragment.java | 49 import com.android.settings.bluetooth.BluetoothDevicePreference; 95 final Map<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap = 162 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick() 164 BluetoothDevicePreference devicePreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick() 269 BluetoothDevicePreference preference = (BluetoothDevicePreference) getCachedPreference(key); in addDevice() 271 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in addDevice() 272 mShowDevicesWithoutNames, BluetoothDevicePreference.SortType.TYPE_FIFO); in addDevice() 289 BluetoothDevicePreference preference = mDevicePreferenceMap.remove(cachedDevice); in removeDevice()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDeviceUpdater.java | 237 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in addPreference() 245 @BluetoothDevicePreference.SortType int type) { in addPreference() 248 BluetoothDevicePreference btPreference = in addPreference() 249 new BluetoothDevicePreference(mPrefContext, cachedDevice, in addPreference() 285 if (mPreferenceMap.get(device) instanceof BluetoothDevicePreference preference) { in removePreference() 310 ((BluetoothDevicePreference) preference).getBluetoothDevice(); in launchDeviceDetails() 350 ((BluetoothDevicePreference) preference).onPreferenceAttributesChanged(); in refreshPreference()
|
D | DeviceListPreferenceFragment.kt | 89 ConcurrentHashMap<CachedBluetoothDevice, BluetoothDevicePreference>() 179 if (preference is BluetoothDevicePreference) { in onPreferenceTreeClick() 189 protected open fun onDevicePreferenceClick(btPreference: BluetoothDevicePreference) { in onDevicePreferenceClick() 230 BluetoothDevicePreference( in createDevicePreference() 234 BluetoothDevicePreference.SortType.TYPE_FIFO, in createDevicePreference() 247 protected open fun initDevicePreference(preference: BluetoothDevicePreference?) { in initDevicePreference()
|
D | BluetoothDevicePreference.java | 66 public final class BluetoothDevicePreference extends GearPreference { class 141 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, in BluetoothDevicePreference() method in BluetoothDevicePreference 369 if ((o == null) || !(o instanceof BluetoothDevicePreference)) { in equals() 373 ((BluetoothDevicePreference) o).mCachedDevice); in equals() 383 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 391 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo() 393 return mId > ((BluetoothDevicePreference) another).mId ? 1 : -1; in compareTo()
|
D | ConnectedBluetoothDeviceUpdater.java | 122 final BluetoothDevicePreference btPreference = in addPreference() 123 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
|
D | SavedBluetoothDeviceUpdater.java | 93 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update() 118 final CachedBluetoothDevice device = ((BluetoothDevicePreference) preference) in onPreferenceClick()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/ |
D | SavedDeviceGroupController.java | 29 import com.android.settings.bluetooth.BluetoothDevicePreference; 120 if (preference instanceof BluetoothDevicePreference) { in onDeviceAdded() 122 ((BluetoothDevicePreference) preference).getBluetoothDevice().getDevice(), in onDeviceAdded() 133 if (preference instanceof BluetoothDevicePreference) { in onDeviceRemoved() 135 ((BluetoothDevicePreference) preference).getBluetoothDevice().getDevice(), in onDeviceRemoved()
|
D | PreviouslyConnectedDevicePreferenceController.java | 34 import com.android.settings.bluetooth.BluetoothDevicePreference; 139 if (preference instanceof BluetoothDevicePreference) { in onDeviceAdded() 141 ((BluetoothDevicePreference) preference).getBluetoothDevice().getDevice(), in onDeviceAdded() 156 if (preference instanceof BluetoothDevicePreference) { in onDeviceRemoved() 158 ((BluetoothDevicePreference) preference).getBluetoothDevice().getDevice(), in onDeviceRemoved()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragmentTest.java | 40 import com.android.settings.bluetooth.BluetoothDevicePreference; 87 private BluetoothDevicePreference mDevicePreference; 106 mDevicePreference = new BluetoothDevicePreference(mContext, mCachedDevice, true, in setUp() 107 BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp()
|