Home
last modified time | relevance | path

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

12

/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 …]
/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/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/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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DAdaptiveSleepPreferenceControllerTest.java49 private static final String PREFERENCE_KEY = "adaptive_sleep"; field in AdaptiveSleepPreferenceControllerTest
74 mController = new AdaptiveSleepPreferenceController(mContext, PREFERENCE_KEY); in setUp()
147 mContext, PREFERENCE_KEY); in isChecked_returnsFalseWhenNotSufficientPermissions()
DDisplayWhiteBalancePreferenceControllerTest.java49 private final String PREFERENCE_KEY = "display_white_balance"; field in DisplayWhiteBalancePreferenceControllerTest
63 when(mScreen.findPreference(PREFERENCE_KEY)).thenReturn(mPreference); in setUp()
65 mController = spy(new DisplayWhiteBalancePreferenceController(mContext, PREFERENCE_KEY)); in setUp()
DAutoBrightnessPreferenceControllerTest.java47 private static final String PREFERENCE_KEY = "auto_brightness"; field in AutoBrightnessPreferenceControllerTest
59 mController = new AutoBrightnessPreferenceController(mContext, PREFERENCE_KEY); in setUp()
/packages/apps/Settings/src/com/android/settings/datetime/timezone/
DRegionPreferenceController.java24 private static final String PREFERENCE_KEY = "region"; field in RegionPreferenceController
30 super(context, PREFERENCE_KEY); in RegionPreferenceController()
DFixedOffsetPreferenceController.java25 private static final String PREFERENCE_KEY = "fixed_offset"; field in FixedOffsetPreferenceController
30 super(context, PREFERENCE_KEY); in FixedOffsetPreferenceController()
DRegionZonePreferenceController.java26 private static final String PREFERENCE_KEY = "region_zone"; field in RegionZonePreferenceController
32 super(context, PREFERENCE_KEY); in RegionZonePreferenceController()
DTimeZoneInfoPreferenceController.java38 private static final String PREFERENCE_KEY = FooterPreference.KEY_FOOTER; field in TimeZoneInfoPreferenceController
45 super(context, PREFERENCE_KEY); in TimeZoneInfoPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datetime/timezone/
DRegionPreferenceController.java24 private static final String PREFERENCE_KEY = "region"; field in RegionPreferenceController
30 super(context, PREFERENCE_KEY); in RegionPreferenceController()
DFixedOffsetPreferenceController.java25 private static final String PREFERENCE_KEY = "fixed_offset"; field in FixedOffsetPreferenceController
30 super(context, PREFERENCE_KEY); in FixedOffsetPreferenceController()
DRegionZonePreferenceController.java26 private static final String PREFERENCE_KEY = "region_zone"; field in RegionZonePreferenceController
32 super(context, PREFERENCE_KEY); in RegionZonePreferenceController()
DTimeZoneInfoPreferenceController.java38 private static final String PREFERENCE_KEY = FooterPreference.KEY_FOOTER; field in TimeZoneInfoPreferenceController
45 super(context, PREFERENCE_KEY); in TimeZoneInfoPreferenceController()
/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
55 assertThat(mController.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in getPreferenceKey_shouldReturnDefaultPhone()
DDefaultSmsShortcutPreferenceControllerTest.java37 private static final String PREFERENCE_KEY = "default_sms_app"; field in DefaultSmsShortcutPreferenceControllerTest
55 assertThat(mController.getPreferenceKey()).isEqualTo(PREFERENCE_KEY); in getPreferenceKey_shouldReturnDefaultSms()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/development/
DBluetoothA2dpHwOffloadPreferenceController.java31 private static final String PREFERENCE_KEY = "bluetooth_disable_a2dp_hw_offload"; field in BluetoothA2dpHwOffloadPreferenceController
45 return PREFERENCE_KEY; in getPreferenceKey()
DBluetoothSnoopLogPreferenceController.java39 private static final String PREFERENCE_KEY = "bt_hci_snoop_log"; field in BluetoothSnoopLogPreferenceController
78 return PREFERENCE_KEY; in getPreferenceKey()
DStayAwakePreferenceController.java47 private static final String PREFERENCE_KEY = "keep_screen_on"; field in StayAwakePreferenceController
69 return PREFERENCE_KEY; in getPreferenceKey()
/packages/apps/Settings/src/com/android/settings/development/
DBluetoothA2dpHwOffloadPreferenceController.java31 private static final String PREFERENCE_KEY = "bluetooth_disable_a2dp_hw_offload"; field in BluetoothA2dpHwOffloadPreferenceController
45 return PREFERENCE_KEY; in getPreferenceKey()
DBluetoothSnoopLogPreferenceController.java39 private static final String PREFERENCE_KEY = "bt_hci_snoop_log"; field in BluetoothSnoopLogPreferenceController
78 return PREFERENCE_KEY; in getPreferenceKey()
DStayAwakePreferenceController.java47 private static final String PREFERENCE_KEY = "keep_screen_on"; field in StayAwakePreferenceController
69 return PREFERENCE_KEY; in getPreferenceKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DTopLevelLocationPreferenceControllerTest.java34 private static final String PREFERENCE_KEY = "top_level_location"; field in TopLevelLocationPreferenceControllerTest
42 mController = new TopLevelLocationPreferenceController(mContext, PREFERENCE_KEY); in setUp()

12