Home
last modified time | relevance | path

Searched refs:preferences (Results 1 – 25 of 89) sorted by relevance

1234

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDailyLoggingAlarmReceiver.java56 WallpaperPreferences preferences = injector.getPreferences(appContext); in onReceive() local
62 preferences.setLastDailyLogTimestamp(System.currentTimeMillis()); in onReceive()
98 WallpaperPreferences preferences = injector.getPreferences(appContext); in logDailyWallpaperRotationStatus()
100 … long dailyWallpaperEnabledTimestamp = preferences.getDailyWallpaperEnabledTimestamp(); in logDailyWallpaperRotationStatus()
122 preferences.getDailyWallpaperLastRotationStatusTimestamp(); in logDailyWallpaperRotationStatus()
130 preferences.getDailyWallpaperLastRotationStatus(); in logDailyWallpaperRotationStatus()
137 preferences.incrementNumDaysDailyRotationFailed(); in logDailyWallpaperRotationStatus()
138 … logger.logNumDaysDailyRotationFailed(preferences.getNumDaysDailyRotationFailed()); in logDailyWallpaperRotationStatus()
140 preferences.resetNumDaysDailyRotationFailed(); in logDailyWallpaperRotationStatus()
145 preferences.resetNumDaysDailyRotationNotAttempted(); in logDailyWallpaperRotationStatus()
[all …]
DDailyLoggingAlarmScheduler.java42 WallpaperPreferences preferences = injector.getPreferences(appContext); in setAlarm() local
44 long lastTimestamp = preferences.getLastDailyLogTimestamp(); in setAlarm()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
DPreferenceListCacheTest.java66 Preference[] preferences = new Preference[] {first, second, third}; in testCacheAndRestoreAllPreferences() local
67 setupMockPreferenceGroup(preferences); in testCacheAndRestoreAllPreferences()
83 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreSomePreferences() local
84 setupMockPreferenceGroup(preferences); in testRestoreSomePreferences()
101 Preference[] preferences = new Preference[] {first, second, third}; in testRestoreZeroPreferences() local
102 setupMockPreferenceGroup(preferences); in testRestoreZeroPreferences()
119 Preference[] preferences = new Preference[] {first, second, third}; in testKeyCollisionThrows() local
120 setupMockPreferenceGroup(preferences); in testKeyCollisionThrows()
129 Preference[] preferences = new Preference[] {first}; in testEmptyKeyThrows() local
130 setupMockPreferenceGroup(preferences); in testEmptyKeyThrows()
[all …]
/packages/apps/Camera2/src/com/android/camera/settings/
DSettingsManager.java130 SharedPreferences preferences; in openPreferences() local
134 preferences = mContext.getSharedPreferences( in openPreferences()
138 preferences.registerOnSharedPreferenceChangeListener(listener); in openPreferences()
140 return preferences; in openPreferences()
154 protected void closePreferences(SharedPreferences preferences) { in closePreferences() argument
157 preferences.unregisterOnSharedPreferenceChangeListener(listener); in closePreferences()
369 SharedPreferences preferences = getPreferencesFromScope(scope);
371 return preferences.getString(key, defaultValue);
374 preferences.edit().remove(key).apply();
471 SharedPreferences preferences = getPreferencesFromScope(scope);
[all …]
/packages/apps/Dialer/java/com/android/incallui/telecomeventui/
DInternationalCallOnWifiDialogFragment.java58 SharedPreferences preferences = StorageComponent.get(context).unencryptedSharedPrefs(); in shouldShow() local
59 boolean shouldShow = preferences.getBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, true); in shouldShow()
106 SharedPreferences preferences = StorageComponent.get(getActivity()).unencryptedSharedPrefs(); in onCreateDialog() local
109 alwaysWarn.setChecked(preferences.getBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, false)); in onCreateDialog()
117 (dialog, which) -> onPositiveButtonClick(preferences, alwaysWarn.isChecked())) in onCreateDialog()
120 (dialog, which) -> onNegativeButtonClick(preferences, alwaysWarn.isChecked())) in onCreateDialog()
127 private void onPositiveButtonClick(@NonNull SharedPreferences preferences, boolean alwaysWarn) { in onPositiveButtonClick() argument
132 preferences.edit().putBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, alwaysWarn).apply(); in onPositiveButtonClick()
138 private void onNegativeButtonClick(@NonNull SharedPreferences preferences, boolean alwaysWarn) { in onNegativeButtonClick() argument
143 preferences.edit().putBoolean(ALWAYS_SHOW_WARNING_PREFERENCE_KEY, alwaysWarn).apply(); in onNegativeButtonClick()
/packages/apps/LegacyCamera/src/com/android/camera/
DCameraSettings.java363 public static int readExposure(ComboPreferences preferences) { in readExposure() argument
364 String exposure = preferences.getString( in readExposure()
422 ComboPreferences preferences, Parameters parameters) { in restorePreferences() argument
423 int currentCameraId = readPreferredCameraId(preferences); in restorePreferences()
428 preferences.setLocalId(context, backCameraId); in restorePreferences()
429 Editor editor = preferences.edit(); in restorePreferences()
435 preferences.setLocalId(context, frontCameraId); in restorePreferences()
436 Editor editor = preferences.edit(); in restorePreferences()
443 preferences.setLocalId(context, currentCameraId); in restorePreferences()
445 upgradeGlobalPreferences(preferences.getGlobal()); in restorePreferences()
[all …]
/packages/apps/Dialer/java/com/android/voicemail/impl/sync/
DVvmAccountManager.java60 VisualVoicemailPreferences preferences = in addAccount() local
62 statusMessage.putStatus(preferences.edit()).apply(); in addAccount()
76 VisualVoicemailPreferences preferences = new VisualVoicemailPreferences(context, phoneAccount); in removeAccount() local
77 preferences in removeAccount()
92 PerAccountSharedPreferences preferences = in isAccountActivated() local
94 migrateActivationState(context, preferences, phoneAccount); in isAccountActivated()
95 return preferences.getBoolean(IS_ACCOUNT_ACTIVATED, false); in isAccountActivated()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/
DPawSecretCodeListener.java74 SharedPreferences preferences = StorageComponent.get(context).unencryptedSharedPrefs(); in onReceive() local
75 boolean wasEnabled = preferences.getBoolean(PAW_ENABLED_WITH_SECRET_CODE_KEY, false); in onReceive()
77 preferences.edit().putBoolean(PAW_ENABLED_WITH_SECRET_CODE_KEY, false).apply(); in onReceive()
82 selectPawType(preferences); in onReceive()
89 public static void selectPawType(SharedPreferences preferences) { in selectPawType() argument
96 preferences in selectPawType()
DPawImageLoaderImpl.java37 SharedPreferences preferences = StorageComponent.get(context).unencryptedSharedPrefs(); in loadPayload() local
38 if (!preferences.getBoolean(PawSecretCodeListener.PAW_ENABLED_WITH_SECRET_CODE_KEY, false)) { in loadPayload()
43 preferences.getInt(PawSecretCodeListener.PAW_TYPE, PawSecretCodeListener.PAW_TYPE_INVALID); in loadPayload()
47 PawSecretCodeListener.selectPawType(preferences); in loadPayload()
49 preferences.getInt( in loadPayload()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DVideoChargesAlertDialogFragment.java79 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); in shouldShow() local
80 if (preferences.getBoolean(KEY_DO_NOT_SHOW_VIDEO_CHARGES_ALERT, false)) { in shouldShow()
118 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getActivity()); in onCreateDialog() local
124 (dialog, which) -> onPositiveButtonClicked(preferences, alertCheckBox.isChecked())) in onCreateDialog()
130 private void onPositiveButtonClicked(@NonNull SharedPreferences preferences, boolean isChecked) { in onPositiveButtonClicked() argument
133 preferences.edit().putBoolean(KEY_DO_NOT_SHOW_VIDEO_CHARGES_ALERT, isChecked).apply(); in onPositiveButtonClicked()
/packages/apps/Dialer/java/com/android/dialer/common/
DPerAccountSharedPreferences.java31 private final SharedPreferences preferences; field in PerAccountSharedPreferences
36 preferences = prefs; in PerAccountSharedPreferences()
47 preferences = prefs; in PerAccountSharedPreferences()
57 editor = preferences.edit(); in Editor()
129 return preferences.contains(getKey(key)); in contains()
136 Object object = preferences.getAll().get(getKey(key)); in getValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicePreferenceControllerTest.java119 final List<Preference> preferences = new ArrayList<>(); in updateState_shouldRemoveAllAndAddInjectedSettings() local
125 preferences.add(pref1); in updateState_shouldRemoveAllAndAddInjectedSettings()
126 preferences.add(pref2); in updateState_shouldRemoveAllAndAddInjectedSettings()
127 map.put(UserHandle.myUserId(), preferences); in updateState_shouldRemoveAllAndAddInjectedSettings() local
195 final List<Preference> preferences = new ArrayList<>(); in withUserRestriction_shouldDisableLocationAccuracy() local
199 preferences.add(pref); in withUserRestriction_shouldDisableLocationAccuracy()
201 map.put(UserHandle.myUserId(), preferences); in withUserRestriction_shouldDisableLocationAccuracy() local
/packages/apps/Dialer/java/com/android/voicemail/impl/configui/
DConfigOverrideFragment.java141 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); in getConfig() local
142 for (String key : preferences.getAll().keySet()) { in getConfig()
148 result.putBoolean(configKey, preferences.getBoolean(key, false)); in getConfig()
150 result.putInt(configKey, Integer.valueOf(preferences.getString(key, null))); in getConfig()
152 result.putString(configKey, preferences.getString(key, null)); in getConfig()
154 result.putStringArray(configKey, fromCsv(preferences.getString(key, null))); in getConfig()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/error/
DVoicemailTosMessageCreator.java60 private final SharedPreferences preferences; field in VoicemailTosMessageCreator
69 this.preferences = in VoicemailTosMessageCreator()
335 return preferences.getInt(VoicemailVersionConstants.PREF_VVM3_TOS_VERSION_ACCEPTED_KEY, 0)
338 return preferences.getInt(VoicemailVersionConstants.PREF_DIALER_TOS_VERSION_ACCEPTED_KEY, 0)
345 preferences
352 preferences
372 return preferences.getInt(
378 preferences
387 return preferences.getInt(
/packages/apps/Camera2/src/com/android/camera/app/
DFirstRunDetector.java80 SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context); in initializeTimeOfFirstRun() local
84 long timeOfFirstUseMillis = preferences.getLong(CLIENT_FIRST_USE_TIME, 0); in initializeTimeOfFirstRun()
94 boolean isUpgrade = cameraPrefs.getAll().size() > 0 || preferences.getAll().size() > 0; in initializeTimeOfFirstRun()
100 preferences.edit().putLong(CLIENT_FIRST_USE_TIME, timeOfFirstUseMillis).apply(); in initializeTimeOfFirstRun()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/television/
DPermissionsFrameFragment.java78 PreferenceScreen preferences = getPreferenceScreen(); in onCreatePreferences() local
79 if (preferences == null) { in onCreatePreferences()
80 preferences = getPreferenceManager().createPreferenceScreen(getActivity()); in onCreatePreferences()
81 setPreferenceScreen(preferences); in onCreatePreferences()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DTwoStatePreferenceHelper.java46 final ArrayList<Preference> preferences = new ArrayList<>(); in replaceAllCheckBoxPreferencesBySwitchPreferences() local
49 preferences.add(group.getPreference(index)); in replaceAllCheckBoxPreferencesBySwitchPreferences()
53 final Preference preference = preferences.get(index); in replaceAllCheckBoxPreferencesBySwitchPreferences()
/packages/apps/Dialer/java/com/android/voicemail/impl/
DPreOMigrationHandler.java58 VisualVoicemailPreferences preferences = in migrate() local
60 if (preferences.getBoolean(PRE_O_MIGRATION_FINISHED, false)) { in migrate()
67 preferences.edit().putBoolean(PRE_O_MIGRATION_FINISHED, true).apply(); in migrate()
/packages/apps/Car/Settings/src/com/android/car/settings/accounts/
DAccountSyncDetailsPreferenceController.java271 List<SyncPreference> preferences = getSyncPreferences(preferencesToRemove); in forceUpdateSyncCategory() local
276 Collections.sort(preferences, Comparator.comparing( in forceUpdateSyncCategory()
280 for (int i = 0; i < preferences.size(); i++) { in forceUpdateSyncCategory()
281 SyncPreference pref = preferences.get(i); in forceUpdateSyncCategory()
DChooseAccountPreferenceController.java145 List<AuthenticatorDescriptionPreference> preferences = in forceUpdateAccountsCategory() local
148 for (int i = 0; i < preferences.size(); i++) { in forceUpdateAccountsCategory()
149 AuthenticatorDescriptionPreference preference = preferences.get(i); in forceUpdateAccountsCategory()
DAccountListPreferenceController.java148 List<? extends Preference> preferences = getAccountPreferences(preferencesToRemove); in forceUpdateAccountsCategory() local
151 for (int i = 0; i < preferences.size(); i++) { in forceUpdateAccountsCategory()
152 Preference pref = preferences.get(i); in forceUpdateAccountsCategory()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/location/
DLocationServicesPreferenceControllerTest.java140 Map<Integer, List<Preference>> preferences = new ArrayMap<>(); in getSamplePreferences() local
141 preferences.put(PROFILE_ID, in getSamplePreferences()
144 return preferences; in getSamplePreferences()
/packages/apps/QuickSearchBox/
Dproguard.flags1 -keep class com.android.quicksearchbox.preferences.DeviceSearchFragment
3 -keep class com.android.quicksearchbox.preferences.SearchableItemsFragment
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DWallpaperDisabledFragment.java83 … WallpaperPreferences preferences = InjectorProvider.getInjector().getPreferences(getActivity()); in onResume() local
84 preferences.setLastAppActiveTimestamp(new Date().getTime()); in onResume()
/packages/apps/EmergencyInfo/tests/unit/src/com/android/emergency/edit/
DEditInfoActivityTest.java45 import com.android.emergency.preferences.EmergencyContactsPreference;
46 import com.android.emergency.preferences.EmergencyEditTextPreference;
47 import com.android.emergency.preferences.EmergencyListPreference;

1234