/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/fastpair/ |
D | FastPairDevicePreferenceControllerTest.java | 200 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in onDeviceAdded_addThreeFastPairDevicePreference_displayThreeNoSeeAll() local 204 mFastPairDevicePrefController.onDeviceAdded(preference1); in onDeviceAdded_addThreeFastPairDevicePreference_displayThreeNoSeeAll() 216 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in onDeviceAdded_addFourDevicePreference_onlyDisplayThreeWithSeeAll() local 217 preference1.setOrder(4); in onDeviceAdded_addFourDevicePreference_onlyDisplayThreeWithSeeAll() 227 mFastPairDevicePrefController.onDeviceAdded(preference1); in onDeviceAdded_addFourDevicePreference_onlyDisplayThreeWithSeeAll() 244 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in onDeviceRemoved_removeFourthDevice_hideSeeAll() local 245 preference1.setOrder(1); in onDeviceRemoved_removeFourthDevice_hideSeeAll() 255 mFastPairDevicePrefController.onDeviceAdded(preference1); in onDeviceRemoved_removeFourthDevice_hideSeeAll() 265 assertThat(mPreferenceGroup.getPreference(0)).isEqualTo(preference1); in onDeviceRemoved_removeFourthDevice_hideSeeAll() 275 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in updatePreferenceVisibility_bluetoothIsDisable_shouldHidePreference() local [all …]
|
D | FastPairDeviceGroupControllerTest.java | 199 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in updatePreferenceVisibility_bluetoothIsDisable_shouldHidePreference() local 200 mFastPairDeviceGroupController.onDeviceAdded(preference1); in updatePreferenceVisibility_bluetoothIsDisable_shouldHidePreference() 219 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in onDeviceAdd_bluetoothIsDisable_shouldHidePreference() local 220 mFastPairDeviceGroupController.onDeviceAdded(preference1); in onDeviceAdd_bluetoothIsDisable_shouldHidePreference() 227 final GearPreference preference1 = new GearPreference(mContext, null /* AttributeSet */); in onDeviceRemoved_bluetoothIsDisable_shouldHidePreference() local 228 mPreferenceGroup.addPreference(preference1); in onDeviceRemoved_bluetoothIsDisable_shouldHidePreference() 229 mFastPairDeviceGroupController.onDeviceRemoved(preference1); in onDeviceRemoved_bluetoothIsDisable_shouldHidePreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/ |
D | PaymentSettingsTest.java | 126 final Preference preference1 = new Preference(mContext); in isShowEmptyImage_hasVisiblePreference_returnFalse() local 127 screen.addPreference(preference1); in isShowEmptyImage_hasVisiblePreference_returnFalse() 139 final Preference preference1 = new Preference(mContext); in isShowEmptyImage_hasNoVisiblePreference_returnTrue() local 140 preference1.setVisible(false); in isShowEmptyImage_hasNoVisiblePreference_returnTrue() 141 screen.addPreference(preference1); in isShowEmptyImage_hasNoVisiblePreference_returnTrue()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/ |
D | PreviouslyConnectedDevicePreferenceControllerTest.java | 225 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addDevicePreference_displayIt() local 228 mPreConnectedDeviceController.onDeviceAdded(preference1); in onDeviceAdded_addDevicePreference_displayIt() 245 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() local 256 mPreConnectedDeviceController.onDeviceAdded(preference1); in onDeviceAdded_addFourDevicePreference_onlyDisplayThree() 290 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference( in onDeviceRemoved_removeLastDevice_showSeeAllPreference() local 294 mPreferenceGroup.addPreference(preference1); in onDeviceRemoved_removeLastDevice_showSeeAllPreference() 297 mPreConnectedDeviceController.onDeviceRemoved(preference1); in onDeviceRemoved_removeLastDevice_showSeeAllPreference()
|
D | SavedDeviceGroupControllerTest.java | 192 final BluetoothDevicePreference preference1 = in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() local 200 mSavedDeviceGroupController.onDeviceAdded(preference1); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 207 assertThat(preference1.getOrder()).isEqualTo(0); in updatePreferenceGroup_bluetoothIsEnable_shouldOrderByMostRecentlyConnected() 227 final BluetoothDevicePreference preference1 = in updatePreferenceGroup_bluetoothIsDisable_shouldShowNoPreference() local 235 mSavedDeviceGroupController.onDeviceAdded(preference1); in updatePreferenceGroup_bluetoothIsDisable_shouldShowNoPreference()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsExtraOptionsControllerTest.java | 75 Preference preference1 = new SwitchPreferenceCompat(mContext); in displayPreference_removeAndAddPreferences() local 78 .thenReturn(ImmutableList.of(preference1, preference2)); in displayPreference_removeAndAddPreferences() 86 verify(mOptionsContainer).addPreference(preference1); in displayPreference_removeAndAddPreferences()
|
D | BluetoothDevicePreferenceTest.java | 253 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference(mContext, in compareTo_sortTypeFIFO() local 257 mPreferenceList.add(preference1); in compareTo_sortTypeFIFO() 267 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeFIFO() 278 final BluetoothDevicePreference preference1 = new BluetoothDevicePreference(mContext, in compareTo_sortTypeDefault() local 282 mPreferenceList.add(preference1); in compareTo_sortTypeDefault() 288 .isEqualTo(preference1.getCachedDevice().getAddress()); in compareTo_sortTypeDefault()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/ |
D | PreferenceControllerTest.java | 124 CarUiPreference preference1 = mock(CarUiPreference.class); in onUxRestrictionsChanged_restricted_preferenceGroup_preferencesRestricted() local 126 preferenceScreen.addPreference(preference1); in onUxRestrictionsChanged_restricted_preferenceGroup_preferencesRestricted() 132 Mockito.reset(preference1); in onUxRestrictionsChanged_restricted_preferenceGroup_preferencesRestricted() 136 verify((UxRestrictablePreference) preference1).setUxRestricted(true); in onUxRestrictionsChanged_restricted_preferenceGroup_preferencesRestricted()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | AppDataUsagePreferenceControllerTest.java | 164 ProgressBarPreference preference1 = in onDataLoaded_statsLoaded_hasOnePreference() local 169 assertThat(preference1.getProgress()).isEqualTo(100); in onDataLoaded_statsLoaded_hasOnePreference()
|
/packages/apps/Settings/src/com/android/settings/display/ |
D | CustomizableLockScreenQuickAffordancesPreferenceController.java | 53 preference.setOnPreferenceClickListener(preference1 -> { in displayPreference()
|
/packages/apps/Settings/src/com/android/settings/notification/app/ |
D | ChannelListPreferenceController.java | 331 preference.setOnPreferenceClickListener(preference1 -> { in addOrUpdateGroupToggle() 332 final boolean allowGroup = ((TwoStatePreference) preference1).isChecked(); in addOrUpdateGroupToggle()
|
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/ |
D | SliceFragment.java | 152 public boolean arePreferenceContentsTheSame(Preference preference1, in onCreate() 157 return preference1.getClass() == SlicePreference.class in onCreate() 158 && super.arePreferenceContentsTheSame(preference1, preference2); in onCreate()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AccountsFragment.java | 230 preference1 -> { in setUpAddAccountPrefIntent()
|