Home
last modified time | relevance | path

Searched defs:pref (Results 1 – 25 of 417) sorted by relevance

12345678910>>...17

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceControllerTest.java217 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_providerLabelShouldBeSet() local
232 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncDisabled_shouldNotBeChecked() local
247 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOn_syncDisabled_shouldBeChecked() local
262 SyncPreference pref = (SyncPreference) mPreferenceGroup.getPreference(0); in refreshUi_masterSyncOff_syncEnabled_shouldBeChecked() local
276 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncDisabled_summaryShouldBeSet() local
296 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_activelySyncing_summaryShouldBeSet() local
314 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncEnabled_syncHasHappened_summaryShouldBeSet() local
339 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_activelySyncing_notInitialSync_shouldHaveActiveSyncIcon() local
359 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncPending_notInitialSync_shouldHaveActiveSyncIcon() local
381 Preference pref = mPreferenceGroup.getPreference(0); in refreshUi_syncFailed_shouldHaveProblemSyncIcon() local
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/specialaccess/notificationaccess/
DTypeFilterPreferenceControllerTest.java133 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_noMetaData() local
145 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_notTheDisableFilter() local
158 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_notThisField() local
172 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_enabled_metaData_disableFilter_thisField_stateIsChecked() local
182 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_disabled() local
196 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_disabled_metaData_disableFilter_thisField_stateIsNotChecked() local
210 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_checked() local
223 CheckBoxPreference pref = new CheckBoxPreference(mContext); in updateState_unchecked() local
236 CheckBoxPreference pref = new CheckBoxPreference(mContext); in onPreferenceChange_true() local
254 CheckBoxPreference pref = new CheckBoxPreference(mContext); in onPreferenceChange_false() local
DApprovalPreferenceControllerTest.java106 RestrictedSwitchPreference pref = new RestrictedSwitchPreference( in updateState_enabled() local
122 RestrictedSwitchPreference pref = new RestrictedSwitchPreference( in updateState_invalidCn_disabled() local
137 RestrictedSwitchPreference pref = new RestrictedSwitchPreference( in updateState_checked() local
154 RestrictedSwitchPreference pref = new RestrictedSwitchPreference( in restrictedSettings_appOpsDisabled() local
171 RestrictedSwitchPreference pref = new RestrictedSwitchPreference( in restrictedSettings_serviceAlreadyEnabled() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryUsageBreakdownControllerTest.java164 final PowerGaugePreference pref = in addAllPreferences_addAllPreferences() local
274 final PowerGaugePreference pref = spy(new PowerGaugePreference(mContext)); in setPreferencePercent_lessThanThreshold_expectedFormat() local
296 final PowerGaugePreference pref = spy(new PowerGaugePreference(mContext)); in setPreferencePercent_greaterThanThreshold_expectedFormat() local
318 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_systemEntryTotalUsageTimeIsZero_emptySummary() local
334 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_systemEntryTotalUsageTimeLessThanAMinute_expectedSummary() local
350 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_systemEntryTotalUsageTimeGreaterThanAMinute_expectedSummary() local
366 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_appEntryAllTimesAreZero_emptySummary() local
382 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_appEntryBackgroundUsageTimeOnly_expectedSummary() local
398 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_appEntryWithFGSTime_expectedSummary() local
414 final PowerGaugePreference pref = new PowerGaugePreference(mContext); in setPreferenceSummary_appEntryScreenOnTimeOnly_expectedSummary() local
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java113 SwitchPreference pref = getPreference(); in displayRefresh_sink_shouldUncheck() local
126 SwitchPreference pref = getPreference(); in displayRefresh_source_shouldCheck() local
161 SwitchPreference pref = getPreference(); in onClick_sink_shouldSetSource() local
175 SwitchPreference pref = getPreference(); in onClickTwice_sink_shouldSetSourceOnce() local
190 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_success_shouldClearSubtext() local
209 SwitchPreference pref = getPreference(); in onClickDeviceAndRefresh_failed_shouldShowFailureText() local
229 SwitchPreference pref = getPreference(); in onClickDevice_timedOut_shouldShowFailureText() local
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/
DBluetoothDeviceProfilesPreferenceControllerMockTest.java189 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_restrictedByDpm_disabledForUser() local
204 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneWrite() local
219 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneRead() local
234 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_restrictedByDpm_disabledForUser_zoneHidden() local
247 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_notRestricted_available() local
262 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_notRestricted_available_zoneWrite() local
277 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_notRestricted_available_zoneRead() local
292 BluetoothDeviceProfilePreference pref = in testGetAvailabilityStatus_notRestricted_available_zoneHidden() local
304 BluetoothDeviceProfilePreference pref = in testDisabledClick_restrictedByDpm_dialog() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/
DConversationPriorityPreferenceControllerTest.java141 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_disabledByAdmin() local
155 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_notConfigurable() local
169 Preference pref = new ConversationPriorityPreference(mContext, null); in testUpdateState_Configurable() local
183 ConversationPriorityPreference pref = mock(ConversationPriorityPreference.class); in testUpdateState() local
199 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToImportant() local
218 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToDefault() local
238 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceDefaultToLow() local
258 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportanceLowToDefault_bubblesMaintained() local
279 ConversationPriorityPreference pref = new ConversationPriorityPreference(mContext, null); in testImportancePriorityToDefault() local
DDndPreferenceControllerTest.java132 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
145 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_notBlockable() local
158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
171 RestrictedSwitchPreference pref = in testUpdateState_bypassDnd() local
184 RestrictedSwitchPreference pref = in testUpdateState_noBypassDnd() local
197 RestrictedSwitchPreference pref = in testOnPreferenceChange_on() local
216 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
DSoundPreferenceControllerTest.java163 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testDisplayPreference_savesPreference() local
179 Preference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_disabledByAdmin() local
195 NotificationSoundPreference pref = new NotificationSoundPreference(mContext, attributeSet); in testUpdateState_configurable() local
211 NotificationSoundPreference pref = in testOnPreferenceChange() local
223 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testOnPreferenceTreeClick_incorrectPref() local
233 NotificationSoundPreference pref = in testOnPreferenceTreeClick_correctPref() local
251 NotificationSoundPreference pref = in testOnPreferenceTreeClick_alarmSound() local
272 NotificationSoundPreference pref = in testOnPreferenceTreeClick_ringtoneSound() local
293 NotificationSoundPreference pref = in testOnPreferenceTreeClick_otherSound() local
307 NotificationSoundPreference pref = mock(NotificationSoundPreference.class); in testOnActivityResult() local
DVisibilityPreferenceControllerTest.java184 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableSecure() local
206 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_disabledByAdmin_disableUnredacted() local
221 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGlobally() local
246 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noLockScreenNotificationsGloballyInProfile() local
269 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noPrivateLockScreenNotificationsGlobally() local
286 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noGlobalRestriction() local
317 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_noChannelOverride() local
336 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testUpdateState_channelOverride() local
355 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testOnPreferenceChange_noOverride() local
374 RestrictedListPreference pref = mock(RestrictedListPreference.class); in testOnPreferenceChange_override() local
DVibrationPreferenceControllerTest.java158 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_disabledByAdmin() local
170 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_blockable() local
183 Preference pref = new RestrictedSwitchPreference(RuntimeEnvironment.application); in testUpdateState_configurable() local
196 RestrictedSwitchPreference pref = in testUpdateState_vibrateOn() local
209 RestrictedSwitchPreference pref = in testUpdateState_vibrateOff() local
222 RestrictedSwitchPreference pref = in testOnPreferenceChange_on() local
239 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
DAllowSoundPreferenceControllerTest.java162 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
175 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_configurable() local
188 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForHighImportanceChannel() local
200 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checkedForUnspecifiedImportanceChannel() local
212 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notCheckedForLowImportanceChannel() local
224 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on() local
242 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off() local
DInvalidConversationPreferenceControllerTest.java158 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
172 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_notChecked() local
185 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_checked() local
198 RestrictedSwitchPreference pref = in testOnPreferenceChange_toggleEnabled() local
217 RestrictedSwitchPreference pref = in testOnPreferenceChange_toggleDisabled() local
DMinImportancePreferenceControllerTest.java161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
190 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_Configurable() local
202 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_min() local
214 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_low() local
227 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext, null); in onPreferenceChange() local
DHighImportancePreferenceControllerTest.java161 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_disabledByAdmin() local
175 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_notConfigurable() local
189 Preference pref = new RestrictedSwitchPreference(mContext, null); in testUpdateState_Configurable() local
201 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_high() local
213 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_default() local
226 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext, null); in onPreferenceChange() local
DBubblePreferenceControllerTest.java286 Preference pref = new RestrictedSwitchPreference(mContext); in updateState_disabledByAdmin() local
301 BubblePreference pref = new BubblePreference(mContext); in updateState_app_disabledByAdmin() local
316 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in updateState_channel() local
337 BubblePreference pref = new BubblePreference(mContext); in updateState_app() local
364 BubblePreference pref = new BubblePreference(mContext); in updateState_app_offGlobally() local
379 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in onPreferenceChange_on_channel() local
399 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in onPreferenceChange_off_channel() local
418 BubblePreference pref = new BubblePreference(mContext); in onPreferenceChange_app_all() local
438 BubblePreference pref = new BubblePreference(mContext); in testOnPreferenceChange_app_all_offGlobally() local
458 BubblePreference pref = new BubblePreference(mContext); in onPreferenceChange_app_selected() local
[all …]
DImportancePreferenceControllerTest.java178 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_disabledByAdmin() local
192 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_notConfigurable() local
206 Preference pref = new ImportancePreference(mContext, null); in testUpdateState_Configurable() local
218 ImportancePreference pref = mock(ImportancePreference.class); in testUpdateState() local
234 ImportancePreference pref = new ImportancePreference(mContext, null); in testImportanceLowToHigh() local
253 ImportancePreference pref = new ImportancePreference(mContext, null); in testImportanceHighToLow() local
DBadgePreferenceControllerTest.java235 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
249 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_channel() local
268 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_app() local
289 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on_channel() local
309 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off_channel() local
326 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on_app() local
344 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_off_app() local
DLightsPreferenceControllerTest.java178 Preference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_disabledByAdmin() local
191 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOn() local
203 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testUpdateState_lightsOff() local
215 RestrictedSwitchPreference pref = new RestrictedSwitchPreference(mContext); in testOnPreferenceChange_on() local
233 RestrictedSwitchPreference pref = in testOnPreferenceChange_off() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DAccountTypePreferenceLoaderTest.java154 Preference pref = new Preference(mContext); in generateFragmentAllowlist_simpleGroupNoFragment_emptyList() local
166 Preference pref = new Preference(mContext); in generateFragmentAllowlist_simpleGroupOneFragment_populatedList() local
179 Preference pref = new Preference(mContext); in generateFragmentAllowlist_nestedGroupWithFragments_populatedList() local
201 Preference pref = spy(new Preference(mContext)); in filterBlockedFragments_simplePrefGroupNoFragment_noop() local
214 Preference pref = spy(new Preference(mContext)); in filterBlockedFragments_simplePrefGroupWithAllowedFragment_noop() local
228 Preference pref = spy(new Preference(mContext)); in filterBlockedFragments_simplePrefGroupNoMatchFragment_overrideClick() local
241 Preference pref = spy(new Preference(mContext)); in filterBlockedFragments_nestedPrefGroupWithNoMatchFragment_overrideClick() local
/packages/apps/Settings/tests/unit/src/com/android/settings/vpn2/
DVpnSettingsTest.java135 AppPreference pref = in setShownAdvancedPreferences_hasGeneralVpn_returnsVpnCountAs1() local
149 AppPreference pref = in setShownAdvancedPreferences_hasAdvancedVpn_returnsAdvancedVpnCountAs1() local
204 AppPreference pref = spy(new AppPreference(mContext, USER_ID_1, VPN_PACKAGE_NAME)); in clickVpn_VpnConnected_doesNotStartVpnLaunchIntent() local
223 AppPreference pref = spy(new AppPreference(mContext, USER_ID_1, VPN_PACKAGE_NAME)); in clickVpn_VpnDisconnected_startsVpnLaunchIntent() local
244 AppPreference pref = in clickAdvancedVpn_VpnConnectedDisconnectDialogDisabled_startsAppLaunchIntent() local
268 AppPreference pref = in clickAdvancedVpn_VpnConnectedDisconnectDialogEnabled_doesNotStartAppLaunchIntent() local
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/modes/
DZenModeButtonPreferenceControllerTest.java117 LayoutPreference pref = mock(LayoutPreference.class); in updateState_ruleActive() local
135 LayoutPreference pref = mock(LayoutPreference.class); in updateState_ruleNotActive() local
153 LayoutPreference pref = mock(LayoutPreference.class); in updateStateThenClick_ruleActive() local
172 LayoutPreference pref = mock(LayoutPreference.class); in updateStateThenClick_ruleNotActive() local
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/
DCtsSdkSandboxStorageTestApp.java95 final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mContext); in testSharedPreferences_IsSyncedFromAppToSandbox() local
116 final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mContext); in testSharedPreferences_SyncPropagatesUpdates() local
134 final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mContext); in testSharedPreferences_SyncStartedBeforeLoadingSdk() local
155 final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(mContext); in testSharedPreferences_SyncRemoveKeys() local
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DDebugSettingsFragment.java63 final Preference pref = new DictDumpPreference(getActivity(), dictName); in onCreate() local
104 public boolean onPreferenceClick(final Preference pref) { in onPreferenceClick()
156 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationScale() local
208 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyPreviewAnimationDuration() local
245 final SeekBarDialogPreference pref = (SeekBarDialogPreference)findPreference(prefKey); in setupKeyboardHeight() local
DThemeSettingsFragment.java46 static void updateKeyboardThemeSummary(final Preference pref) { in updateKeyboardThemeSummary()
70 final KeyboardThemePreference pref = new KeyboardThemePreference( in onCreate() local
82 final KeyboardThemePreference pref = (KeyboardThemePreference)preference; in onRadioButtonClicked() local
106 final KeyboardThemePreference pref = (KeyboardThemePreference)preference; in updateSelected() local

12345678910>>...17