/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDevicePreferenceTest.java | 63 private static final Comparator<BluetoothDevicePreference> COMPARATOR = 78 private BluetoothDevicePreference mPreference; 79 private List<BluetoothDevicePreference> mPreferenceList = new ArrayList<>(); 92 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 93 SHOW_DEVICES_WITHOUT_NAMES, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 190 BluetoothDevicePreference preference = in isVisible_showDeviceWithoutNames_visible() 191 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_showDeviceWithoutNames_visible() 193 BluetoothDevicePreference.SortType.TYPE_DEFAULT); in isVisible_showDeviceWithoutNames_visible() 201 BluetoothDevicePreference preference = in isVisible_hideDeviceWithoutNames_invisible() 202 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in isVisible_hideDeviceWithoutNames_invisible() [all …]
|
D | SavedBluetoothDeviceUpdaterTest.java | 75 private BluetoothDevicePreference mPreference; 92 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 93 false, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp() 106 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update_filterMatch_addPreference() 137 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 162 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 196 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_notFindCachedBluetoothDevice_doNothing() 236 BluetoothDevicePreference.SortType.TYPE_NO_SORT); in forceUpdate_deviceNotContain_removePreference()
|
D | BluetoothPairingDetailTest.java | 271 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 272 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 273 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 289 final BluetoothDevicePreference preference = in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 290 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 291 true, BluetoothDevicePreference.SortType.TYPE_FIFO); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
D | BluetoothDeviceUpdaterTest.java | 83 private BluetoothDevicePreference mPreference; 102 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in setUp() 103 false, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp()
|
D | AvailableMediaBluetoothDeviceUpdaterTest.java | 70 private BluetoothDevicePreference mPreference; 94 mPreference = new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, false, in setUp() 95 BluetoothDevicePreference.SortType.TYPE_DEFAULT); in setUp()
|
D | ConnectedBluetoothDeviceUpdaterTest.java | 241 BluetoothDevicePreference btPreference = in addPreference_addPreference_shouldHideSecondTarget() 242 new BluetoothDevicePreference(mContext, mCachedBluetoothDevice, in addPreference_addPreference_shouldHideSecondTarget() 243 true, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in addPreference_addPreference_shouldHideSecondTarget()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 129 BluetoothDevicePreference devicePreference = in showsOnlyBondedDevices() 130 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsOnlyBondedDevices() 151 BluetoothDevicePreference devicePreference = in onDeviceClicked_notConnected_connectsToDevice() 152 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_notConnected_connectsToDevice() 163 BluetoothDevicePreference devicePreference = in onDeviceClicked_connected_showsDisconnectConfirmDialog() 164 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_connected_showsDisconnectConfirmDialog() 176 BluetoothDevicePreference devicePreference = in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment() 177 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in devicePreferenceButtonClicked_noUserRestrictions_launchesDetailsFragment() 190 BluetoothDevicePreference devicePreference = in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden() 191 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in devicePreferenceButton_disallowConfigBluetooth_actionStaysHidden() [all …]
|
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 …]
|
D | BluetoothDevicePickerPreferenceControllerTest.java | 143 assertThat(((BluetoothDevicePreference) mPreferenceGroup.getPreference( in onStart_appliesFilterType() 156 BluetoothDevicePreference devicePreference = in onDeviceClicked_bondedDevice_sendsPickedIntent() 157 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_sendsPickedIntent() 177 BluetoothDevicePreference devicePreference = in onDeviceClicked_bondedDevice_goesBack() 178 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_bondedDevice_goesBack() 192 BluetoothDevicePreference devicePreference = in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent() 193 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_doesNotNeedAuth_sendsPickedIntent() 209 BluetoothDevicePreference devicePreference = in onDeviceClicked_unbondedDevice_needsAuth_startsPairing() 210 (BluetoothDevicePreference) mPreferenceGroup.getPreference(1); in onDeviceClicked_unbondedDevice_needsAuth_startsPairing() 224 BluetoothDevicePreference devicePreference = in onDeviceClicked_unbondedDevice_needsAuth_pairingStartFails_resumesScanning() [all …]
|
D | BluetoothUnbondedDevicesPreferenceControllerTest.java | 138 BluetoothDevicePreference devicePreference = in showsUnbondedDevices() 139 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in showsUnbondedDevices() 148 BluetoothDevicePreference devicePreference = in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones() 149 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in configUnbondedDeviceFilterIncludesPhones_showsUnbondedPhones() 156 BluetoothDevicePreference devicePreference = in onDeviceClicked_startsPairing() 157 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_startsPairing() 167 BluetoothDevicePreference devicePreference = in onDeviceClicked_pairingStartFails_resumesScanning() 168 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_pairingStartFails_resumesScanning() 181 BluetoothDevicePreference devicePreference = in onDeviceClicked_requestsPhonebookAccess() 182 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_requestsPhonebookAccess() [all …]
|
D | BluetoothDevicePreferenceTest.java | 51 private BluetoothDevicePreference mPreference; 57 mPreference = new BluetoothDevicePreference(mContext, mCachedDevice); in setUp() 133 mPreference = new BluetoothDevicePreference(mContext, mCachedDevice); in onAttached_deviceNameNotHumanReadable_showWithoutNamesTrue_setsShown() 183 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in equals_devicesEqual_returnsTrue() 191 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in equals_devicesNotEqual_returnsFalse() 200 BluetoothDevicePreference otherPreference = new BluetoothDevicePreference(mContext, in compareTo_sameType_usesDeviceCompareTo()
|
D | BluetoothScanningDevicesGroupPreferenceControllerTest.java | 171 BluetoothDevicePreference devicePreference = in onDeviceClicked_callsInternal() 172 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_callsInternal() 183 BluetoothDevicePreference devicePreference = in onDeviceClicked_cancelsScanning() 184 (BluetoothDevicePreference) mPreferenceGroup.getPreference(0); in onDeviceClicked_cancelsScanning()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceListPreferenceFragment.java | 74 final HashMap<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap = 155 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick() 156 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick() 167 void onDevicePreferenceClick(BluetoothDevicePreference btPreference) { in onDevicePreferenceClick() 193 BluetoothDevicePreference preference = (BluetoothDevicePreference) getCachedPreference(key); in createDevicePreference() 196 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in createDevicePreference() 197 mShowDevicesWithoutNames, BluetoothDevicePreference.SortType.TYPE_FIFO); in createDevicePreference() 208 protected void initDevicePreference(BluetoothDevicePreference preference) { in initDevicePreference() 223 BluetoothDevicePreference preference = mDevicePreferenceMap.remove(cachedDevice); in onDeviceDeleted()
|
D | BluetoothDevicePreference.java | 55 public final class BluetoothDevicePreference extends GearPreference implements class 85 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, in BluetoothDevicePreference() method in BluetoothDevicePreference 202 if ((o == null) || !(o instanceof BluetoothDevicePreference)) { in equals() 206 ((BluetoothDevicePreference) o).mCachedDevice); in equals() 216 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 224 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo() 226 return mCurrentTime > ((BluetoothDevicePreference) another).mCurrentTime ? 1 : -1; in compareTo()
|
D | BluetoothDeviceUpdater.java | 234 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_DEFAULT); in addPreference() 242 @BluetoothDevicePreference.SortType int type) { in addPreference() 245 BluetoothDevicePreference btPreference = in addPreference() 246 new BluetoothDevicePreference(mPrefContext, cachedDevice, in addPreference() 288 ((BluetoothDevicePreference) preference).getBluetoothDevice(); in launchDeviceDetails()
|
D | ConnectedBluetoothDeviceUpdater.java | 106 final BluetoothDevicePreference btPreference = in addPreference() 107 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
|
D | SavedBluetoothDeviceUpdater.java | 90 addPreference(cachedDevice, BluetoothDevicePreference.SortType.TYPE_NO_SORT); in update() 110 final CachedBluetoothDevice device = ((BluetoothDevicePreference) preference) in onPreferenceClick()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/ |
D | DeviceListPreferenceFragment.java | 73 final HashMap<CachedBluetoothDevice, BluetoothDevicePreference> mDevicePreferenceMap = 153 if (preference instanceof BluetoothDevicePreference) { in onPreferenceTreeClick() 154 BluetoothDevicePreference btPreference = (BluetoothDevicePreference) preference; in onPreferenceTreeClick() 164 void onDevicePreferenceClick(BluetoothDevicePreference btPreference) { in onDevicePreferenceClick() 190 BluetoothDevicePreference preference = (BluetoothDevicePreference) getCachedPreference(key); in createDevicePreference() 193 preference = new BluetoothDevicePreference(getPrefContext(), cachedDevice, in createDevicePreference() 205 protected void initDevicePreference(BluetoothDevicePreference preference) { in initDevicePreference() 220 BluetoothDevicePreference preference = mDevicePreferenceMap.remove(cachedDevice); in onDeviceDeleted()
|
D | BluetoothDevicePreference.java | 50 public final class BluetoothDevicePreference extends GearPreference implements class 68 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice, in BluetoothDevicePreference() method in BluetoothDevicePreference 181 if ((o == null) || !(o instanceof BluetoothDevicePreference)) { in equals() 185 ((BluetoothDevicePreference) o).mCachedDevice); in equals() 195 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 201 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
|
D | BluetoothDeviceUpdater.java | 217 BluetoothDevicePreference btPreference = in addPreference() 218 new BluetoothDevicePreference(mPrefContext, cachedDevice, in addPreference() 257 ((BluetoothDevicePreference) preference).getBluetoothDevice(); in launchDeviceDetails()
|
D | ConnectedBluetoothDeviceUpdater.java | 104 final BluetoothDevicePreference btPreference = in addPreference() 105 (BluetoothDevicePreference) mPreferenceMap.get(device); in addPreference()
|
D | DevicePickerFragment.java | 120 void onDevicePreferenceClick(BluetoothDevicePreference btPreference) { in onDevicePreferenceClick() 155 protected void initDevicePreference(BluetoothDevicePreference preference) { in initDevicePreference()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDevicePreference.java | 40 public class BluetoothDevicePreference extends ButtonPreference { class 48 public BluetoothDevicePreference(Context context, CachedBluetoothDevice cachedDevice) { in BluetoothDevicePreference() method in BluetoothDevicePreference 97 if (!(o instanceof BluetoothDevicePreference)) { in equals() 100 return mCachedDevice.equals(((BluetoothDevicePreference) o).mCachedDevice); in equals() 110 if (!(another instanceof BluetoothDevicePreference)) { in compareTo() 116 .compareTo(((BluetoothDevicePreference) another).mCachedDevice); in compareTo()
|
D | BluetoothDevicesGroupPreferenceController.java | 52 private final Map<CachedBluetoothDevice, BluetoothDevicePreference> mPreferenceMap = 56 onDeviceClicked(((BluetoothDevicePreference) preference).getCachedDevice()); 82 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() 83 return new BluetoothDevicePreference(getContext(), cachedDevice); in createDevicePreference() 97 protected Map<CachedBluetoothDevice, BluetoothDevicePreference> getPreferenceMap() { in getPreferenceMap() 147 BluetoothDevicePreference devicePreference = createDevicePreference(cachedDevice); in addPreference()
|
D | BluetoothBondedDevicesPreferenceController.java | 51 protected BluetoothDevicePreference createDevicePreference(CachedBluetoothDevice cachedDevice) { in createDevicePreference() 52 BluetoothDevicePreference pref = super.createDevicePreference(cachedDevice); in createDevicePreference() 94 ((BluetoothDevicePreference) group.getPreference(i)).showAction(isActionVisible); in updateActionVisibility()
|