/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 44 import com.android.settings.bluetooth.BluetoothDevicePreference; 225 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addDevicePreference_displayIt() 226 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addDevicePreference_displayIt() 245 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 246 mContext, mCachedDevice1, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 247 final BluetoothDevicePreference preference2 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 248 mContext, mCachedDevice2, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 249 final BluetoothDevicePreference preference3 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 250 mContext, mCachedDevice3, true, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 251 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 | 67 private static final Comparator<BluetoothDevicePreference> COMPARATOR = 95 private BluetoothDevicePreference mPreference; 96 private List<BluetoothDevicePreference> mPreferenceList = new ArrayList<>(); 121 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 122 SHOW_DEVICES_WITHOUT_NAMES, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 220 BluetoothDevicePreference preference = in isVisible_showDeviceWithoutNames_visible() 221 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_showDeviceWithoutNames_visible() 223 BluetoothDevicePreference.SortType.TYPE_DEFAULT); in isVisible_showDeviceWithoutNames_visible() 231 BluetoothDevicePreference preference = in isVisible_hideDeviceWithoutNames_invisible() 232 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_hideDeviceWithoutNames_invisible() [all …]
|
D | SavedBluetoothDeviceUpdaterTest.java | 94 private BluetoothDevicePreference mPreference; 115 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 116 false, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 133 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update_filterMatch_addPreference() 165 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 178 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onProfileConnectionStateChanged_leDeviceDisconnected_inDeviceList_invokesAddPreference() 224 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 258 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_notFindCachedBluetoothDevice_doNothing() 298 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_deviceNotContain_removePreference() 316 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_deviceIsSubDevice_doesNothing() [all …]
|
D | BluetoothDevicePairingDetailBaseTest.java | 204 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 205 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 206 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 222 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 223 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 224 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
/packages/apps/Car/Settings/tests/unit/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/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicesGroupPreferenceControllerTest.java | 128 BluetoothDevicePreference devicePreference = in refreshUi_filterMatch_addsToGroup() 129 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToGroup() 141 BluetoothDevicePreference devicePreference = in refreshUi_filterMatch_addsToPreferenceMap() 142 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMatch_addsToPreferenceMap() 154 BluetoothDevicePreference devicePreference = in refreshUi_filterMismatch_removesFromGroup() 155 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromGroup() 171 BluetoothDevicePreference devicePreference = in refreshUi_filterMismatch_removesFromPreferenceMap() 172 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in refreshUi_filterMismatch_removesFromPreferenceMap() 222 BluetoothDevicePreference devicePreference = in onDeviceAdded_refreshesUi() 223 (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/tests/robotests/src/com/android/settings/connecteddevice/audiosharing/ |
D | AudioSharingBluetoothDeviceUpdaterTest.java | 44 import com.android.settings.bluetooth.BluetoothDevicePreference; 167 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() 168 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_flagOff_removesPref() 186 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref() 187 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaDeviceConnected_noSource_removesPref() 206 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_deviceIsNotInList_removesPref() 207 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_deviceIsNotInList_removesPref() 225 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaDeviceDisconnected_removesPref() 226 assertThat(((BluetoothDevicePreference) captor.getValue()).getBluetoothDevice()) in onProfileConnectionStateChanged_leaDeviceDisconnected_removesPref() 243 assertThat(captor.getValue() instanceof BluetoothDevicePreference).isTrue(); in onProfileConnectionStateChanged_leaDeviceDisconnecting_removesPref() [all …]
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
D | HearingDevicePairingFragment.java | 49 import com.android.settings.bluetooth.BluetoothDevicePreference; 93 final Map<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap = 160 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick() 162 BluetoothDevicePreference devicePreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick() 267 BluetoothDevicePreference preference = (BluetoothDevicePreference) getCachedPreference(key); in addDevice() 269 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in addDevice() 270 mShowDevicesWithoutNames, BluetoothDevicePreference.SortType.TYPE_FIFO); in addDevice() 287 BluetoothDevicePreference preference = mDevicePreferenceMap.remove(cachedDevice); in removeDevice()
|
/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() 153 if (preference instanceof BluetoothDevicePreference) { in addPreference() 200 if (preference instanceof BluetoothDevicePreference) { in onDeviceRemoved() 202 ((BluetoothDevicePreference) preference).getBluetoothDevice().getDevice(), in onDeviceRemoved()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceListPreferenceFragment.kt | 90 ConcurrentHashMap<CachedBluetoothDevice, BluetoothDevicePreference>() 180 if (preference is BluetoothDevicePreference) { in onPreferenceTreeClick() 190 protected open fun onDevicePreferenceClick(btPreference: BluetoothDevicePreference) { in onDevicePreferenceClick() 233 BluetoothDevicePreference( in createDevicePreference() 237 BluetoothDevicePreference.SortType.TYPE_FIFO, in createDevicePreference() 250 protected open fun initDevicePreference(preference: BluetoothDevicePreference?) { in initDevicePreference()
|
D | BluetoothDeviceUpdater.java | 236 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in addPreference() 244 @BluetoothDevicePreference.SortType int type) { in addPreference() 247 BluetoothDevicePreference btPreference = in addPreference() 248 new BluetoothDevicePreference(mPrefContext, cachedDevice, in addPreference() 293 ((BluetoothDevicePreference) preference).getBluetoothDevice(); in launchDeviceDetails() 333 ((BluetoothDevicePreference) preference).onPreferenceAttributesChanged(); in refreshPreference()
|
D | BluetoothDevicePreference.java | 63 public final class BluetoothDevicePreference extends GearPreference { class 119 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, in BluetoothDevicePreference() method in BluetoothDevicePreference 335 if ((o == null) || !(o instanceof BluetoothDevicePreference)) { in equals() 339 ((BluetoothDevicePreference) o).mCachedDevice); in equals() 349 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 357 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo() 359 return mId > ((BluetoothDevicePreference) another).mId ? 1 : -1; in compareTo()
|
D | ConnectedBluetoothDeviceUpdater.java | 117 final BluetoothDevicePreference btPreference = in addPreference() 118 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
|
D | SavedBluetoothDeviceUpdater.java | 94 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update() 125 final CachedBluetoothDevice device = ((BluetoothDevicePreference) preference) in onPreferenceClick()
|
/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()
|