/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DefaultWallpaperPreferences.java | 48 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/ |
D | SuggestionEventStore.java | 49 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/ |
D | DefaultCustomizationPreferences.java | 32 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/ |
D | TmaPrefs.java | 110 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/ |
D | ScopedPreferences.java | 50 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/ |
D | SuggestionParser.java | 55 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/ |
D | PluginEnablerImpl.java | 30 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/ |
D | LensPickerTrampolineActivity.java | 45 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()
|
D | LensPickerActivity.java | 43 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()
|
D | LensPickerAdapter.java | 51 private SharedPreferences mSharedPrefs; field in LensPickerAdapter 60 mSharedPrefs = LensPickerUtils.getFacetSharedPrefs(context); in LensPickerAdapter()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarMediaService.java | 96 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/ |
D | Watchdog.java | 38 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/ |
D | LocationAccessCheck.java | 150 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/ |
D | Player.java | 89 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/ |
D | Launcher.java | 271 private SharedPreferences mSharedPrefs; field in Launcher 326 mSharedPrefs = Utilities.getPrefs(this); in onCreate() 1373 return mSharedPrefs; in getSharedPrefs()
|