Home
last modified time | relevance | path

Searched refs:mSharedPrefs (Results 1 – 15 of 15) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPreferences.java48 protected SharedPreferences mSharedPrefs; field in DefaultWallpaperPreferences
57 mSharedPrefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in DefaultWallpaperPreferences()
59 if (mNoBackupPrefs.getAll().isEmpty() && !mSharedPrefs.getAll().isEmpty()) { in DefaultWallpaperPreferences()
67 mSharedPrefs.registerOnSharedPreferenceChangeListener(mSharedPrefsChangedListener); in DefaultWallpaperPreferences()
76 if (mSharedPrefs.contains( in upgradePrefs()
79 mSharedPrefs.getString(NoBackupKeys.KEY_HOME_WALLPAPER_BASE_IMAGE_URL, null)); in upgradePrefs()
81 if (mSharedPrefs.contains(NoBackupKeys.KEY_HOME_WALLPAPER_MANAGER_ID)) { in upgradePrefs()
83 mSharedPrefs.getInt(NoBackupKeys.KEY_HOME_WALLPAPER_MANAGER_ID, 0)); in upgradePrefs()
85 if (mSharedPrefs.contains(NoBackupKeys.KEY_HOME_WALLPAPER_REMOTE_ID)) { in upgradePrefs()
87 mSharedPrefs.getString(NoBackupKeys.KEY_HOME_WALLPAPER_REMOTE_ID, null)); in upgradePrefs()
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ranking/
DSuggestionEventStore.java49 private final SharedPreferences mSharedPrefs; field in SuggestionEventStore
59 mSharedPrefs = context.getSharedPreferences(TAG, Context.MODE_PRIVATE); in SuggestionEventStore()
100 mSharedPrefs.edit().clear().apply(); in clear()
104 mSharedPrefs.edit().putLong(prefKey, value).apply(); in writePref()
108 return mSharedPrefs.getLong(prefKey, defaultValue); in readPref()
/packages/apps/ThemePicker/src/com/android/customization/module/
DDefaultCustomizationPreferences.java32 return mSharedPrefs.getString(KEY_CUSTOM_THEME, null); in getSerializedCustomThemes()
37 mSharedPrefs.edit().putString(KEY_CUSTOM_THEME, serializedCustomThemes).apply(); in storeCustomThemes()
42 return mSharedPrefs.getBoolean(KEY_VISITED_PREFIX + id, false); in getTabVisited()
47 mSharedPrefs.edit().putBoolean(KEY_VISITED_PREFIX + id, true).apply(); in setTabVisited()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/prefs/
DTmaPrefs.java110 mSharedPrefs.registerOnSharedPreferenceChangeListener(listenerWrapper); in registerChangeListener()
119 private final SharedPreferences mSharedPrefs; field in TmaPrefs
123 mSharedPrefs = PreferenceManager.getDefaultSharedPreferences(context); in TmaPrefs()
157 String id = mSharedPrefs.getString(mKey, null); in getValue()
170 mSharedPrefs.edit().putString(mKey, value.getId()).commit(); in setValue()
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DScopedPreferences.java50 private final SharedPreferences mSharedPrefs; field in ScopedPreferences.RuntimeScopedPreferences
58 mSharedPrefs = sharedPrefs; in RuntimeScopedPreferences()
66 return mSharedPrefs.getBoolean(INCLUDE_DEVICE_ROOT, mDefaultShowDeviceRoot); in getShowDeviceRoot()
71 mSharedPrefs.edit().putBoolean(INCLUDE_DEVICE_ROOT, display).apply(); in setShowDeviceRoot()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java55 private final SharedPreferences mSharedPrefs; field in SuggestionParser
63 mSharedPrefs = FeatureFactory.get(mContext) in SuggestionParser()
139 if (!mSharedPrefs.contains(keySetupTime)) { in isExclusiveCategoryExpired()
140 mSharedPrefs.edit() in isExclusiveCategoryExpired()
148 final long setupTime = mSharedPrefs.getLong(keySetupTime, 0); in isExclusiveCategoryExpired()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/plugins/
DPluginEnablerImpl.java30 final private SharedPreferences mSharedPrefs; field in PluginEnablerImpl
33 mSharedPrefs = Utilities.getDevicePrefs(context); in PluginEnablerImpl()
62 mSharedPrefs.edit().putBoolean(key, value).apply(); in putBoolean()
67 return mSharedPrefs.getBoolean(key, defValue); in getBoolean()
/packages/apps/Car/LensPicker/src/com/android/support/car/lenspicker/
DLensPickerTrampolineActivity.java45 private SharedPreferences mSharedPrefs; field in LensPickerTrampolineActivity
52 mSharedPrefs = LensPickerUtils.getFacetSharedPrefs(this); in onCreate()
84 String savedPackageName = mSharedPrefs.getString(facetKey, null /* defaultValue */); in onCreate()
159 LensPickerUtils.getLastLaunchedAppInfo(mSharedPrefs); in maybeRelaunchLastIntent()
191 LensPickerUtils.launch(this /* context */, mSharedPrefs, facetId, packageName, in maybeRelaunchLastIntent()
DLensPickerActivity.java43 private SharedPreferences mSharedPrefs; field in LensPickerActivity
56 mSharedPrefs = LensPickerUtils.getFacetSharedPrefs(this); in onCreate()
104 LensPickerUtils.saveLastLaunchedAppInfo(mSharedPrefs, mLastLaunchedFacetId, in onPause()
208 LensPickerUtils.launch(this /* context */, mSharedPrefs, facetId, packageName, in launch()
DLensPickerAdapter.java51 private SharedPreferences mSharedPrefs; field in LensPickerAdapter
60 mSharedPrefs = LensPickerUtils.getFacetSharedPrefs(context); in LensPickerAdapter()
/packages/services/Car/service/src/com/android/car/
DCarMediaService.java96 private SharedPreferences mSharedPrefs; field in CarMediaService
213 if (mSharedPrefs == null) { in initUser()
214 mSharedPrefs = mContext.getSharedPreferences(SHARED_PREF, Context.MODE_PRIVATE); in initUser()
250 if (mSharedPrefs == null) { in sharedPrefsInitialized()
677 String serialized = mSharedPrefs.getString(key, null); in saveLastMediaSource()
679 mSharedPrefs.edit().putString(key, componentName).apply(); in saveLastMediaSource()
684 mSharedPrefs.edit().putString(key, serializeComponentNameList(componentNames)) in saveLastMediaSource()
692 String serialized = mSharedPrefs.getString(key, null); in getLastMediaSource()
730 mSharedPrefs.edit().putInt(key, state).apply(); in savePlaybackState()
783 return mSharedPrefs.getInt(getPlaybackStateKey(), PlaybackState.STATE_NONE) in shouldStartPlayback()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DWatchdog.java38 private SharedPreferences mSharedPrefs; field in Watchdog
49 mSharedPrefs = prefs; in Watchdog()
60 saveEventsToSharedPrefs(mSharedPrefs, mEvents); in logEvent()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DLocationAccessCheck.java150 private final @NonNull SharedPreferences mSharedPrefs; field in LocationAccessCheck
327 mSharedPrefs = mContext.getSharedPreferences(PREFERENCES_FILE, MODE_PRIVATE); in LocationAccessCheck()
349 if (currentTimeMillis() - mSharedPrefs.getLong( in addLocationNotificationIfNeeded()
530 mSharedPrefs.edit().putLong(KEY_LOCATION_ACCESS_CHECK_ENABLED_TIME, in checkLocationAccessCheckEnabledAndUpdateEnabledTime()
536 mSharedPrefs.edit().remove(KEY_LOCATION_ACCESS_CHECK_ENABLED_TIME) in checkLocationAccessCheckEnabledAndUpdateEnabledTime()
547 return mSharedPrefs.getLong(KEY_LOCATION_ACCESS_CHECK_ENABLED_TIME, 0); in getLocationAccessCheckEnabledTime()
625 mSharedPrefs.edit().putLong(KEY_LAST_LOCATION_ACCESS_NOTIFICATION_SHOWN, in createNotificationForLocationUser()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java89 private final SharedPreferences mSharedPrefs; field in Player
103 mSharedPrefs = context.getSharedPreferences(SHARED_PREFS_NAME, Context.MODE_PRIVATE); in Player()
229 SharedPreferences.Editor editor = mSharedPrefs.edit(); in saveState()
272 String serialized = mSharedPrefs.getString(CURRENT_PLAYLIST_KEY, null); in maybeRestoreState()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncher.java271 private SharedPreferences mSharedPrefs; field in Launcher
326 mSharedPrefs = Utilities.getPrefs(this); in onCreate()
1373 return mSharedPrefs; in getSharedPrefs()