Home
last modified time | relevance | path

Searched refs:PREFERENCE_KEY (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/specialaccess/
DMoreSpecialAccessPreferenceControllerTest.java48 private static final String PREFERENCE_KEY = "more"; field in MoreSpecialAccessPreferenceControllerTest
70 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in constructor_shouldResolveActivityWithPermissionControllerPackageName()
82 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in getAvailabilityStatus_noPermissionController_shouldReturnUnsupportedOnDevice()
93 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in getAvailabilityStatus_canNotResolveActivity_shouldReturnUnsupportedOnDevice()
106 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in getAvailabilityStatus_canResolveActivity_shouldReturnAvailableUnsearchable()
117 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in handlePreferenceTreeClick_differentKey_shouldReturnFalse()
129 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in handlePreferenceTreeClick_sameKey_shouldReturnTrue()
131 when(preference.getKey()).thenReturn(PREFERENCE_KEY); in handlePreferenceTreeClick_sameKey_shouldReturnTrue()
140 new MoreSpecialAccessPreferenceController(mContext, PREFERENCE_KEY); in handlePreferenceTreeClick_noPermissionController_shouldNotStartActivity()
142 when(preference.getKey()).thenReturn(PREFERENCE_KEY); in handlePreferenceTreeClick_noPermissionController_shouldNotStartActivity()
[all …]
DMediaRoutingControlPreferenceControllerTest.java56 private static final String PREFERENCE_KEY = "test_preference_key"; field in MediaRoutingControlPreferenceControllerTest
74 mContext, PREFERENCE_KEY); in setup()
102 when(preference.getKey()).thenReturn(PREFERENCE_KEY); in handlePreferenceTreeClick_withMediaRoutingPreference_shouldReturnTrue()
120 when(preference.getKey()).thenReturn(PREFERENCE_KEY); in handlePreferenceTreeClick_withMediaRoutingPreference_shouldStartSpaActivity()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceControllerTest.java55 private static final String PREFERENCE_KEY = "key"; field in ModuleLicensesPreferenceControllerTest
78 new ModuleLicensesPreferenceController(context, PREFERENCE_KEY); in displayPreference_alphabeticalOrder()
83 when(screen.findPreference(PREFERENCE_KEY)).thenReturn(group); in displayPreference_alphabeticalOrder()
112 new ModuleLicensesPreferenceController(context, PREFERENCE_KEY); in displayPreference_includeOnlyModulesWithLicenseFile()
117 when(screen.findPreference(PREFERENCE_KEY)).thenReturn(group); in displayPreference_includeOnlyModulesWithLicenseFile()
DModuleLicensesListPreferenceControllerTest.java45 private static final String PREFERENCE_KEY = "key"; field in ModuleLicensesListPreferenceControllerTest
70 new ModuleLicensesListPreferenceController(context, PREFERENCE_KEY); in getAvailabilityStatus_validLicenses_returnsAvailable()
84 new ModuleLicensesListPreferenceController(context, PREFERENCE_KEY); in getAvailabilityStatus_noModules_returnsConditionallyUnavailable()
111 new ModuleLicensesListPreferenceController(context, PREFERENCE_KEY); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkChangeContentProvider.java60 if (!path.endsWith("/" + NetworkChangeDetectionConfigs.PREFERENCE_KEY)) { in query()
63 int totalCount = mSharedPreferences.getInt(NetworkChangeDetectionConfigs.PREFERENCE_KEY, in query()
66 new String[]{NetworkChangeDetectionConfigs.PREFERENCE_KEY}); in query()
DNetworkChangeDetectionConfigs.java26 public static final String PREFERENCE_KEY = "total_network_count"; field in NetworkChangeDetectionConfigs
32 "content://" + AUTHORITY + "/" + PREFERENCE_KEY);
DEthernetDetectionReceiver.java42 NetworkChangeDetectionConfigs.PREFERENCE_KEY, 0); in onReceive()
43 networkChangePrefEditor.putInt(NetworkChangeDetectionConfigs.PREFERENCE_KEY, in onReceive()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DVibrationPreferenceControllerTest.java51 private static final String PREFERENCE_KEY = "preference_key"; field in VibrationPreferenceControllerTest
75 assertThat(controller.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in verifyConstants()
152 new VibrationPreferenceController(mContext, PREFERENCE_KEY); in createPreferenceController()
155 mPreference.setKey(PREFERENCE_KEY); in createPreferenceController()
DFlashNotificationsPreviewPreferenceControllerTest.java64 private static final String PREFERENCE_KEY = "preference_key"; field in FlashNotificationsPreviewPreferenceControllerTest
82 when(mPreferenceScreen.findPreference(PREFERENCE_KEY)).thenReturn(mPreference); in setUp()
83 when(mPreference.getKey()).thenReturn(PREFERENCE_KEY); in setUp()
86 mController = new FlashNotificationsPreviewPreferenceController(mContext, PREFERENCE_KEY); in setUp()
DScreenFlashNotificationPreferenceControllerTest.java70 private static final String PREFERENCE_KEY = "preference_key"; field in ScreenFlashNotificationPreferenceControllerTest
99 mController = new ScreenFlashNotificationPreferenceController(context, PREFERENCE_KEY); in setUp()
100 when(mPreferenceScreen.findPreference(PREFERENCE_KEY)).thenReturn(mPreference); in setUp()
101 when(mPreference.getKey()).thenReturn(PREFERENCE_KEY); in setUp()
DVibrationMainSwitchPreferenceControllerTest.java47 private static final String PREFERENCE_KEY = "preference_key"; field in VibrationMainSwitchPreferenceControllerTest
61 mController = new VibrationMainSwitchPreferenceController(mContext, PREFERENCE_KEY); in setUp()
71 assertThat(mController.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in verifyConstants()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/common/
DPreferenceControllerTestHelper.java52 private static final String PREFERENCE_KEY = "preference_key"; field in PreferenceControllerTestHelper
77 ClassParameter.from(String.class, PREFERENCE_KEY), in PreferenceControllerTestHelper()
103 preference.setKey(PREFERENCE_KEY); in setPreference()
155 return PREFERENCE_KEY; in getKey()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DProfilesEntryPreferenceControllerTest.java47 private static final String PREFERENCE_KEY = "key"; field in ProfilesEntryPreferenceControllerTest
65 PREFERENCE_KEY, mFragmentController, mCarUxRestrictions); in setUp()
91 PREFERENCE_KEY); in handlePreferenceClicked_fragmentHasKeyArgument()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DContrastSelectorPreferenceControllerTest.java51 private static final String PREFERENCE_KEY = "color_contrast_selector"; field in ContrastSelectorPreferenceControllerTest
73 mController = new ContrastSelectorPreferenceController(mContext, PREFERENCE_KEY); in setUp()
74 when(mScreen.findPreference(PREFERENCE_KEY)).thenReturn(mLayoutPreference); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DKeyboardSettingsPreferenceControllerTest.java65 private static final String PREFERENCE_KEY = "keyboard_settings"; field in KeyboardSettingsPreferenceControllerTest
79 mController = spy(new KeyboardSettingsPreferenceController(mContext, PREFERENCE_KEY)); in setUp()
86 mKeyboardPreference.setKey(PREFERENCE_KEY); in handlePreferenceTreeClick_expected()
/packages/apps/Settings/tests/unit/src/com/android/settings/safetycenter/
DTopLevelSafetyCenterEntryPreferenceControllerTest.java49 private static final String PREFERENCE_KEY = "top_level_safety_center"; field in TopLevelSafetyCenterEntryPreferenceControllerTest
71 mPreference.setKey(PREFERENCE_KEY); in setUp()
75 new TopLevelSafetyCenterEntryPreferenceController(mContext, PREFERENCE_KEY); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/deviceinfo/storage/
DStorageSelectionPreferenceControllerTest.java45 private static final String PREFERENCE_KEY = "preference_key"; field in StorageSelectionPreferenceControllerTest
58 mController = new StorageSelectionPreferenceController(mContext, PREFERENCE_KEY); in setUp()
64 spinnerPreference.setKey(PREFERENCE_KEY); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/security/
DTopLevelSecurityEntryPreferenceControllerTest.java47 private static final String PREFERENCE_KEY = "top_level_security"; field in TopLevelSecurityEntryPreferenceControllerTest
68 mPreference.setKey(PREFERENCE_KEY); in setUp()
72 new TopLevelSecurityEntryPreferenceController(mContext, PREFERENCE_KEY); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/syncacrossdevices/
DSyncAcrossDevicesPreferenceControllerTest.java58 private static final String PREFERENCE_KEY = "preference_key"; field in SyncAcrossDevicesPreferenceControllerTest
74 new SyncAcrossDevicesPreferenceController(mContext, PREFERENCE_KEY); in setUp()
91 new SyncAcrossDevicesPreferenceController(mContext, PREFERENCE_KEY); in testGetAvailabilityStatus_noFeatureUpdater_returnUnSupported()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DFixedOffsetPreferenceController.java25 private static final String PREFERENCE_KEY = "fixed_offset"; field in FixedOffsetPreferenceController
30 super(context, PREFERENCE_KEY); in FixedOffsetPreferenceController()
DRegionPreferenceController.java26 private static final String PREFERENCE_KEY = "region"; field in RegionPreferenceController
33 super(context, PREFERENCE_KEY); in RegionPreferenceController()
DRegionZonePreferenceController.java26 private static final String PREFERENCE_KEY = "region_zone"; field in RegionZonePreferenceController
32 super(context, PREFERENCE_KEY); in RegionZonePreferenceController()
/packages/apps/Settings/src/com/android/settings/development/
DDefaultUsbConfigurationPreferenceController.java34 private static final String PREFERENCE_KEY = "default_usb_configuration"; field in DefaultUsbConfigurationPreferenceController
44 return PREFERENCE_KEY; in getPreferenceKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DDefaultPhoneShortcutPreferenceControllerTest.java37 private static final String PREFERENCE_KEY = "default_phone_app"; field in DefaultPhoneShortcutPreferenceControllerTest
54 assertThat(mController.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in getPreferenceKey_shouldReturnDefaultPhone()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DFastScrollingIndexCache.java56 static final String PREFERENCE_KEY = "LetterCountCache"; field in FastScrollingIndexCache
255 mPrefs.edit().remove(PREFERENCE_KEY).commit(); in invalidate()
280 mPrefs.edit().putString(PREFERENCE_KEY, sb.toString()).apply(); in save()
295 final String savedValue = mPrefs.getString(PREFERENCE_KEY, null); in ensureLoaded()

1234