Home
last modified time | relevance | path

Searched refs:PREF_KEY (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryChartPreferenceControllerTest.java72 private static final String PREF_KEY = "pref_key"; field in BatteryChartPreferenceControllerTest
183 PREF_KEY, mPowerGaugePreference); in testOnDestroy_clearPreferenceCache()
293 doReturn(PREF_KEY).when(mPowerGaugePreference).getKey(); in testRemoveAndCacheAllPrefs_buildCacheAndRemoveAllPreference()
300 assertThat(mBatteryChartPreferenceController.mPreferenceCache.get(PREF_KEY)) in testRemoveAndCacheAllPrefs_buildCacheAndRemoveAllPreference()
318 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testAddPreferenceToScreen_addPreferenceIntoScreen()
319 doReturn(null).when(mAppListGroup).findPreference(PREF_KEY); in testAddPreferenceToScreen_addPreferenceIntoScreen()
328 .get(PREF_KEY); in testAddPreferenceToScreen_addPreferenceIntoScreen()
332 assertThat(pref.getKey()).isEqualTo(PREF_KEY); in testAddPreferenceToScreen_addPreferenceIntoScreen()
347 doReturn(PREF_KEY).when(mBatteryHistEntry).getKey(); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()
348 doReturn(mPowerGaugePreference).when(mAppListGroup).findPreference(PREF_KEY); in testAddPreferenceToScreen_alreadyInScreen_notAddPreferenceAgain()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/emergency/
DMoreSettingsPreferenceControllerTest.java56 private static final String PREF_KEY = "more_settings_button"; field in MoreSettingsPreferenceControllerTest
78 mContext, PREF_KEY); in constructor_hasPackageConfig_shouldSetIntent()
92 mContext, PREF_KEY); in getAvailabilityStatus_whenIntentSet_shouldReturnAvailable()
101 mContext, PREF_KEY); in getAvailabilityStatus_whenPackageConfigIsUnavailable_shouldReturnUnsupported()
114 mContext, PREF_KEY); in getAvailabilityStatus_noSuitableIntent_shouldReturnUnsupportedDevice()
129 mContext, PREF_KEY); in getAvailabilityStatus_intentForANonSystemApp_shouldReturnUnsupportedDevice()
DEmergencyGestureEntrypointPreferenceControllerTest.java55 private static final String PREF_KEY = "gesture_emergency_button"; field in EmergencyGestureEntrypointPreferenceControllerTest
80 new EmergencyGestureEntrypointPreferenceController(mContext, PREF_KEY); in constructor_hasCustomPackageConfig_shouldSetIntent()
91 new EmergencyGestureEntrypointPreferenceController(mContext, PREF_KEY); in getAvailabilityStatus_configIsTrue_shouldReturnAvailable()
102 new EmergencyGestureEntrypointPreferenceController(mContext, PREF_KEY); in getAvailabilityStatus_configIsFalse_shouldReturnUnsupported()
118 new EmergencyGestureEntrypointPreferenceController(mContext, PREF_KEY); in getAvailabilityStatus_noSuitableIntent_shouldReturnAvailable()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/managedomainurls/
DInstantAppAccountPreferenceControllerTest.java46 private static final String PREF_KEY = "instant_app_account_pref"; field in InstantAppAccountPreferenceControllerTest
77 mController = new InstantAppAccountPreferenceController(mContext, PREF_KEY); in testGetAvailabilityStatus_nullAppSettingsComponent()
85 mController = new InstantAppAccountPreferenceController(mContext, PREF_KEY); in testGetAvailabilityStatus_enableWebActions()
94 mController = new InstantAppAccountPreferenceController(mContext, PREF_KEY); in testGetAvailabilityStatus_disableWebActions()
/packages/apps/Settings/src/com/android/settings/wifi/tether/
DWifiTetherSecurityPreferenceController.java45 private static final String PREF_KEY = "wifi_tether_security"; field in WifiTetherSecurityPreferenceController
68 ? PREF_KEY + DEDUP_POSTFIX : PREF_KEY; in getPreferenceKey()
112 Log.i(PREF_KEY, "WPA3 SAE is not supported on this device"); in onCapabilityChanged()
DWifiTetherApBandPreferenceController.java37 private static final String PREF_KEY = "wifi_tether_network_ap_band"; field in WifiTetherApBandPreferenceController
93 ? PREF_KEY + DEDUP_POSTFIX : PREF_KEY; in getPreferenceKey()
DWifiTetherSSIDPreferenceController.java43 private static final String PREF_KEY = "wifi_tether_network_name"; field in WifiTetherSSIDPreferenceController
72 ? PREF_KEY + DEDUP_POSTFIX : PREF_KEY; in getPreferenceKey()
DWifiTetherPasswordPreferenceController.java46 private static final String PREF_KEY = "wifi_tether_network_password"; field in WifiTetherPasswordPreferenceController
69 ? PREF_KEY + DEDUP_POSTFIX : PREF_KEY; in getPreferenceKey()
DWifiTetherFooterPreferenceController.java30 private static final String PREF_KEY = "tether_prefs_footer_2"; field in WifiTetherFooterPreferenceController
38 return PREF_KEY; in getPreferenceKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/zen/
DZenModeVisEffectPreferenceControllerTest.java71 private static final String PREF_KEY = "main_pref"; field in ZenModeVisEffectPreferenceControllerTest
86 PREF_KEY, SUPPRESSED_EFFECT_PEEK, PREF_METRICS, null); in setup()
101 PREF_KEY, SUPPRESSED_EFFECT_LIGHTS, PREF_METRICS, null); in isAvailable()
135 PREF_KEY, SUPPRESSED_EFFECT_PEEK, PREF_METRICS, in updateState_checkedFalse_parentChecked()
151 PREF_KEY, SUPPRESSED_EFFECT_PEEK, PREF_METRICS, in updateState_checkedFalse_parentNotChecked()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DCaCertsPreferenceControllerBaseTest.java27 private static final String PREF_KEY = "pref"; field in CaCertsPreferenceControllerBaseTest
36 return PREF_KEY; in getPreferenceKey()
52 return PREF_KEY; in getPreferenceKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DDataDuringCallsPreferenceControllerTest.java54 private static final String PREF_KEY = "pref_key"; field in DataDuringCallsPreferenceControllerTest
76 when(mPreferenceScreen.findPreference(PREF_KEY)).thenReturn(mSwitchPreference); in setUp()
77 mController = new DataDuringCallsPreferenceController(mContext, PREF_KEY); in setUp()
85 new DataDuringCallsPreferenceController(mContext, PREF_KEY); in getAvailabilityStatus_noInit_notAvailable()
DAllInOneTetherPreferenceControllerTest.java122 private static final String PREF_KEY = "tether"; field in AllInOneTetherPreferenceControllerTest
139 ReflectionHelpers.setField(mController, "mPreferenceKey", PREF_KEY); in setUp()
141 when(screen.findPreference(PREF_KEY)).thenReturn(mPreference); in setUp()
/packages/apps/Settings/src/com/android/settings/development/
DAdbIpAddressPreferenceController.java53 private static final String PREF_KEY = "adb_ip_addr_pref"; field in AdbIpAddressPreferenceController
73 return PREF_KEY; in getPreferenceKey()
79 mAdbIpAddrPref = screen.findPreference(PREF_KEY); in displayPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityTimeoutControllerTest.java48 private static final String PREF_KEY = "accessibility_control_timeout_30secs"; field in AccessibilityTimeoutControllerTest
64 mController = new AccessibilityTimeoutController(mContext, mock(Lifecycle.class), PREF_KEY); in setup()
70 when(mMockPref.getKey()).thenReturn(PREF_KEY); in setup()
DDaltonizerRadioButtonPreferenceControllerTest.java47 private static final String PREF_KEY = "daltonizer_mode_protanomaly"; field in DaltonizerRadioButtonPreferenceControllerTest
65 PREF_KEY); in setUp()
69 when(mMockPref.getKey()).thenReturn(PREF_KEY); in setUp()
DMagnificationModePreferenceControllerTest.java56 private static final String PREF_KEY = "screen_magnification_mode"; field in MagnificationModePreferenceControllerTest
75 mModePreference.setKey(PREF_KEY); in setUp()
78 mController = new MagnificationModePreferenceController(mContext, PREF_KEY); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDeviceRenamePreferenceControllerTest.java54 private static final String PREF_KEY = "bt_rename_devices"; field in BluetoothDeviceRenamePreferenceControllerTest
74 mPreference.setKey(PREF_KEY); in setUp()
78 mController = spy(new BluetoothDeviceRenamePreferenceController(mContext, PREF_KEY)); in setUp()
/packages/apps/Settings/tests/unit/src/com/android/settings/network/telephony/
DDeleteSimProfilePreferenceControllerTest.java57 private static final String PREF_KEY = "delete_profile_key"; field in DeleteSimProfilePreferenceControllerTest
87 mPreference.setKey(PREF_KEY); in setUp()
90 mController = new DeleteSimProfilePreferenceController(mContext, PREF_KEY); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/nfc/
DNfcPaymentPreferenceControllerTest.java49 private static final String PREF_KEY = PaymentSettingsTest.PAYMENT_KEY; field in NfcPaymentPreferenceControllerTest
67 mController = new NfcPaymentPreferenceController(mContext, PREF_KEY); in setUp()
69 when(mScreen.findPreference(PREF_KEY)).thenReturn(mPreference); in setUp()
DNfcForegroundPreferenceControllerTest.java49 private static final String PREF_KEY = PaymentSettingsTest.FOREGROUND_KEY; field in NfcForegroundPreferenceControllerTest
69 mController = new NfcForegroundPreferenceController(mContext, PREF_KEY); in setUp()
71 when(mScreen.findPreference(PREF_KEY)).thenReturn(mPreference); in setUp()
/packages/apps/Settings/src/com/android/settings/accessibility/
DNotificationVibrationIntensityPreferenceController.java28 static final String PREF_KEY = "notification_vibration_preference_screen"; field in NotificationVibrationIntensityPreferenceController
31 super(context, PREF_KEY, Settings.System.NOTIFICATION_VIBRATION_INTENSITY, ""); in NotificationVibrationIntensityPreferenceController()
DHapticFeedbackIntensityPreferenceController.java28 static final String PREF_KEY = "touch_vibration_preference_screen"; field in HapticFeedbackIntensityPreferenceController
31 super(context, PREF_KEY, Settings.System.HAPTIC_FEEDBACK_INTENSITY, in HapticFeedbackIntensityPreferenceController()
DRingVibrationIntensityPreferenceController.java28 static final String PREF_KEY = "ring_vibration_preference_screen"; field in RingVibrationIntensityPreferenceController
31 super(context, PREF_KEY, Settings.System.RING_VIBRATION_INTENSITY, in RingVibrationIntensityPreferenceController()
/packages/apps/Settings/tests/unit/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverStickyPreferenceControllerTest.java35 private static final String PREF_KEY = "battery_saver_sticky"; field in BatterySaverStickyPreferenceControllerTest
43 mController = new BatterySaverStickyPreferenceController(mContext, PREF_KEY); in setup()

123