Home
last modified time | relevance | path

Searched refs:getPrefs (Results 1 – 19 of 19) sorted by relevance

/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DLocalPreferences.java43 return getPrefs(context).getInt(createKey(ROOT_VIEW_MODE_PREFIX, root), fallback); in getViewMode()
48 return getPrefs(context).getBoolean(SHOW_HIDDEN_FILES, fallback); in getShowHiddenFiles()
53 getPrefs(context).edit().putInt(createKey(ROOT_VIEW_MODE_PREFIX, root), viewMode).apply(); in setViewMode()
59 getPrefs(context).edit() in setShowHiddenFiles()
64 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in LocalPreferences
/packages/services/Telephony/src/com/android/phone/settings/
DVoicemailProviderSettingsUtil.java55 SharedPreferences prefs = getPrefs(context); in load()
103 SharedPreferences prefs = getPrefs(context); in save()
136 SharedPreferences prefs = getPrefs(context); in delete()
143 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in VoicemailProviderSettingsUtil
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DRestoreDbTask.java282 return Utilities.getPrefs(context).getBoolean(RESTORE_TASK_PENDING, false); in isPending()
287 Utilities.getPrefs(context).edit().putBoolean(RESTORE_TASK_PENDING, isPending).commit(); in setPending()
291 SharedPreferences prefs = Utilities.getPrefs(context); in restoreAppWidgetIdsIfExists()
306 Utilities.getPrefs(context).edit() in setRestoredAppWidgetIds()
/packages/apps/Settings/src/com/android/settings/deviceinfo/legal/
DModuleLicenseProvider.java104 SharedPreferences.Editor editor = getPrefs(context).edit(); in openFile()
129 SharedPreferences prefs = getPrefs(context); in isCachedHtmlFileOutdated()
191 private static SharedPreferences getPrefs(Context context) { in getPrefs() method in ModuleLicenseProvider
/packages/apps/Launcher3/src/com/android/launcher3/
DSessionCommitReceiver.java124 return Utilities.getPrefs(context).getBoolean(ADD_ICON_PREFERENCE_KEY, true); in isEnabled()
131 SharedPreferences prefs = Utilities.getPrefs(context); in applyDefaultUserPrefs()
155 Utilities.getPrefs(mContext).edit() in doInBackground()
DInstallShortcutReceiver.java108 SharedPreferences prefs = Utilities.getPrefs(context); in addToQueue()
123 SharedPreferences prefs = Utilities.getPrefs(context); in flushQueueInBackground()
164 SharedPreferences sp = Utilities.getPrefs(context); in removeFromInstallQueue()
262 Set<String> strings = Utilities.getPrefs(context).getStringSet(APPS_PENDING_INSTALL, null); in getPendingShortcuts()
DInvariantDeviceProfile.java169 Utilities.getPrefs(context).edit().putString(KEY_IDP_GRID_NAME, newGridName).apply(); in InvariantDeviceProfile()
171 Utilities.getPrefs(context).edit() in InvariantDeviceProfile()
219 ? Utilities.getPrefs(context).getString(KEY_IDP_GRID_NAME, null) : null; in getCurrentGridName()
336 Utilities.getPrefs(appContext).edit().putString(KEY_IDP_GRID_NAME, gridName).apply(); in setCurrentGrid()
DLauncherProvider.java370 Utilities.getPrefs(getContext()).getBoolean(EMPTY_DATABASE_CREATED, false)); in call()
495 Utilities.getPrefs(getContext()).edit().remove(EMPTY_DATABASE_CREATED).commit(); in clearFlagEmptyDbCreated()
506 SharedPreferences sp = Utilities.getPrefs(getContext()); in loadDefaultFavoritesIfNecessary()
701 Utilities.getPrefs(mContext).edit().putBoolean(EMPTY_DATABASE_CREATED, true).commit(); in onEmptyDbCreated()
DUtilities.java485 public static SharedPreferences getPrefs(Context context) { in getPrefs() method in Utilities
DLauncher.java375 mSharedPrefs = Utilities.getPrefs(this); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/pm/
DInstallSessionHelper.java19 import static com.android.launcher3.Utilities.getPrefs;
78 getPrefs(context).getString(PROMISE_ICON_IDS, ""))); in InstallSessionHelper()
127 getPrefs(mAppContext).edit() in updatePromiseIconPrefs()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DWorkModeSwitch.java77 Utilities.getPrefs(getContext()).edit().putInt(KEY_WORK_TIP_COUNTER, -1).apply(); in toggle()
193 SharedPreferences prefs = Utilities.getPrefs(context); in showTipIfNeeded()
/packages/apps/Launcher3/src/com/android/launcher3/qsb/
DQsbContainerView.java204 int widgetId = Utilities.getPrefs(context).getInt(mKeyWidgetId, -1); in createQsb()
248 Utilities.getPrefs(getContext()).edit().putInt(mKeyWidgetId, widgetId).apply(); in saveWidgetId()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java882 Utilities.getPrefs(context).edit()
892 SharedPreferences prefs = Utilities.getPrefs(context);
923 SharedPreferences prefs = Utilities.getPrefs(context);
DGridSizeMigrationTaskV2.java109 SharedPreferences prefs = Utilities.getPrefs(context); in needsToMigrate()
148 SharedPreferences prefs = Utilities.getPrefs(context); in migrateGridIfNeeded()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DRotationHelper.java102 mSharedPrefs = Utilities.getPrefs(mActivity); in RotationHelper()
/packages/apps/Launcher3/src/com/android/launcher3/settings/
DSettingsActivity.java88 Utilities.getPrefs(getApplicationContext()).registerOnSharedPreferenceChangeListener(this); in onCreate()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRecentsOrientedState.java147 mSharedPrefs = Utilities.getPrefs(context); in RecentsOrientedState()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DTouchInteractionService.java373 SharedPreferences sharedPrefs = Utilities.getPrefs(this); in resetHomeBounceSeenOnQuickstepEnabledFirstTime()