/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/ |
D | VoicemailNotificationSettingsUtil.java | 48 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setVibrationEnabled() local 49 SharedPreferences.Editor editor = prefs.edit(); in setVibrationEnabled() 61 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getVibrationPreference() local 62 migrateVoicemailVibrationSettingsIfNeeded(context, prefs); in getVibrationPreference() 63 return prefs.getBoolean(getVoicemailVibrationSharedPrefsKey(), false /* defValue */); in getVibrationPreference() 67 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in setRingtoneUri() local 70 SharedPreferences.Editor editor = prefs.edit(); in setRingtoneUri() 82 SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(context); in getRingTonePreference() local 83 migrateVoicemailRingtoneSettingsIfNeeded(context, prefs); in getRingTonePreference() 84 String uriString = prefs.getString( in getRingTonePreference() [all …]
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportPrefs.java | 37 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState() local 39 return prefs.getInt(KEY_WARNING_STATE, def); in getWarningState() 43 final SharedPreferences prefs = context.getSharedPreferences( in setWarningState() local 45 prefs.edit().putInt(KEY_WARNING_STATE, value).apply(); in setWarningState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/ |
D | VolumePrefs.java | 53 prefs(c).unregisterOnSharedPreferenceChangeListener(listener); in unregisterCallbacks() 57 prefs(c).registerOnSharedPreferenceChangeListener(listener); in registerCallbacks() 60 private static SharedPreferences prefs(Context context) { in prefs() method in VolumePrefs 65 return prefs(context).getBoolean(key, def); in get()
|
D | ZenModePanel.java | 922 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { in onSharedPreferenceChanged() argument
|
/frameworks/base/services/net/java/android/net/ |
D | ConnectivityModuleConnector.java | 309 final SharedPreferences prefs = getSharedPreferences(); in maybeCrashWithTerribleFailure() local 310 final long lastCrashTime = tryGetLastCrashTime(prefs); in maybeCrashWithTerribleFailure() 334 tryWriteLastCrashTime(prefs, now); in maybeCrashWithTerribleFailure() 364 private long tryGetLastCrashTime(@Nullable SharedPreferences prefs) { 365 if (prefs == null) return 0L; 367 return prefs.getLong(PREF_KEY_LAST_CRASH_TIME, 0L); 374 private void tryWriteLastCrashTime(@Nullable SharedPreferences prefs, long value) { 375 if (prefs == null) return; 377 prefs.edit().putLong(PREF_KEY_LAST_CRASH_TIME, value).commit();
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | RemoveReceiver.java | 33 SharedPreferences prefs = context.getSharedPreferences( in onReceive() local 36 if (prefs.getBoolean(pkg, false)) { in onReceive() 37 prefs.edit().remove(pkg).apply(); in onReceive()
|
/frameworks/base/tests/appwidgets/AppWidgetHostTest/src/com/android/tests/appwidgethost/ |
D | TestAppWidgetConfigure.java | 46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0) 48 prefs.putString(TestAppWidgetProvider.PREF_PREFIX_KEY, text); 49 prefs.commit();
|
D | TestAppWidgetProvider.java | 53 SharedPreferences prefs = context.getSharedPreferences( in onReceive() local 55 String prefix = prefs.getString(PREF_PREFIX_KEY, "hai"); in onReceive()
|
D | AppWidgetHostActivity.java | 93 SharedPreferences.Editor prefs = getPreferences(0).edit(); in configureAppWidget() local 94 prefs.putInt(PENDING_APPWIDGET_ID, appWidgetId); in configureAppWidget() 95 prefs.commit(); in configureAppWidget()
|
/frameworks/base/tests/backup/src/com/android/backuptest/ |
D | BackupTestActivity.java | 114 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 115 int val = prefs.getInt(PREF_KEY, 0); 123 SharedPreferences prefs = getSharedPreferences(PREF_GROUP_SETTINGS, MODE_PRIVATE); 124 int val = prefs.getInt(PREF_KEY, 0); 125 SharedPreferences.Editor editor = prefs.edit();
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 124 SharedPreferences prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in onFullBackup() local 125 final int lastSysGeneration = prefs.getInt(SYSTEM_GENERATION, -1); in onFullBackup() 126 final int lastLockGeneration = prefs.getInt(LOCK_GENERATION, -1); in onFullBackup() 167 prefs.edit().putInt(SYSTEM_GENERATION, sysGeneration).apply(); in onFullBackup() 178 prefs.edit().putInt(LOCK_GENERATION, lockGeneration).apply(); in onFullBackup() 255 SharedPreferences prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE); in onRestoreFinished() local 256 prefs.edit() in onRestoreFinished()
|
/frameworks/base/apct-tests/perftests/core/src/android/os/ |
D | SharedPreferencesTest.java | 43 SharedPreferences prefs = context.getSharedPreferences("test", Context.MODE_PRIVATE); in timeCachedGetSharedPreferences() local 45 prefs = context.getSharedPreferences("test", Context.MODE_PRIVATE); in timeCachedGetSharedPreferences()
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
D | TimeZoneResultAdapter.java | 144 SharedPreferences prefs = mContext.getSharedPreferences(SHARED_PREFS_NAME, in onSetFilter() local 146 String recentsString = prefs.getString(KEY_RECENT_TIMEZONES, null); in onSetFilter() 197 SharedPreferences prefs = mContext.getSharedPreferences(SHARED_PREFS_NAME, in saveRecentTimezone() local 199 String recentsString = prefs.getString(KEY_RECENT_TIMEZONES, null); in saveRecentTimezone() 234 prefs.edit().putString(KEY_RECENT_TIMEZONES, recentsString).apply(); in saveRecentTimezone()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | PreferencesHelper.java | 1316 PackagePreferences prefs = getOrCreatePackagePreferencesLocked(packageName, uid); in setAppImportanceLocked() local 1317 if ((prefs.lockedAppFields & LockableAppFields.USER_LOCKED_IMPORTANCE) != 0) { in setAppImportanceLocked() 1321 prefs.lockedAppFields = in setAppImportanceLocked() 1322 prefs.lockedAppFields | LockableAppFields.USER_LOCKED_IMPORTANCE; in setAppImportanceLocked() 1332 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in getNotificationDelegate() local 1334 if (prefs == null || prefs.delegate == null) { in getNotificationDelegate() 1337 if (!prefs.delegate.mUserAllowed || !prefs.delegate.mEnabled) { in getNotificationDelegate() 1340 return prefs.delegate.mPkg; in getNotificationDelegate() 1350 PackagePreferences prefs = getOrCreatePackagePreferencesLocked(sourcePkg, sourceUid); in setNotificationDelegate() local 1352 boolean userAllowed = prefs.delegate == null || prefs.delegate.mUserAllowed; in setNotificationDelegate() [all …]
|
/frameworks/multidex/library/src/androidx/multidex/ |
D | MultiDexExtractor.java | 223 SharedPreferences prefs = getMultiDexPreferences(context); in isModified() local 224 return (prefs.getLong(prefsKeyPrefix + KEY_TIME_STAMP, NO_VALUE) != getTimeStamp(archive)) in isModified() 225 || (prefs.getLong(prefsKeyPrefix + KEY_CRC, NO_VALUE) != currentCrc); in isModified() 326 SharedPreferences prefs = getMultiDexPreferences(context); in putStoredApkInfo() local 327 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo()
|
/frameworks/base/telephony/java/android/telephony/ |
D | MbmsDownloadSession.java | 553 SharedPreferences prefs = mContext.getSharedPreferences( in setTempFileRootDirectory() local 555 prefs.edit().putString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, filePath).apply(); in setTempFileRootDirectory() 587 SharedPreferences prefs = mContext.getSharedPreferences( in getTempFileRootDirectory() local 589 String path = prefs.getString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, null); in getTempFileRootDirectory() 626 SharedPreferences prefs = mContext.getSharedPreferences( in download() local 628 if (prefs.getString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, null) == null) { in download()
|
/frameworks/base/telephony/java/android/telephony/mbms/ |
D | MbmsTempFileProvider.java | 177 SharedPreferences prefs = context.getSharedPreferences(TEMP_FILE_ROOT_PREF_FILE_NAME, 0); in getEmbmsTempFileDir() local 178 String storedTempFileRoot = prefs.getString(TEMP_FILE_ROOT_PREF_NAME, null); in getEmbmsTempFileDir()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | LocaleTracker.java | 612 final SharedPreferences prefs = mPhone.getContext().getSharedPreferences( in updateLastKnownCountryIso() local 614 final SharedPreferences.Editor editor = prefs.edit(); in updateLastKnownCountryIso() 629 final SharedPreferences prefs = mPhone.getContext().getSharedPreferences( in getLastKnownCountryIso() local 631 return prefs.getString(LAST_KNOWN_COUNTRY_ISO_SHARED_PREFS_KEY, ""); in getLastKnownCountryIso()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
D | InputMethodAndSubtypeUtil.java | 365 final SharedPreferences prefs = pref.getSharedPreferences(); in removeUnnecessaryNonPersistentPreference() local 366 if (prefs != null && prefs.contains(key)) { in removeUnnecessaryNonPersistentPreference() 367 prefs.edit().remove(key).apply(); in removeUnnecessaryNonPersistentPreference()
|
D | InputMethodAndSubtypeUtilCompat.java | 365 final SharedPreferences prefs = pref.getSharedPreferences(); in removeUnnecessaryNonPersistentPreference() local 366 if (prefs != null && prefs.contains(key)) { in removeUnnecessaryNonPersistentPreference() 367 prefs.edit().remove(key).apply(); in removeUnnecessaryNonPersistentPreference()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | SettingsInjector.java | 177 final List<Preference> prefs = new ArrayList<>(); in getInjectedSettings() local 182 prefs.add(preference); in getInjectedSettings() 185 if (!prefs.isEmpty()) { in getInjectedSettings() 186 result.put(userHandle.getIdentifier(), prefs); in getInjectedSettings() local
|
/frameworks/base/core/java/android/preference/ |
D | PreferenceActivity.java | 626 mPrefsContainer = (ViewGroup) findViewById(com.android.internal.R.id.prefs); in onCreate() 1249 transaction.replace(com.android.internal.R.id.prefs, f); in switchToHeaderInner() 1354 transaction.replace(com.android.internal.R.id.prefs, fragment); in startPreferenceFragment() 1390 transaction.replace(com.android.internal.R.id.prefs, f); in startPreferencePanel()
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 579 final File prefs = getSharedPreferencesPath(name); in deleteSharedPreferences() local 580 final File prefsBackup = SharedPreferencesImpl.makeBackupFile(prefs); in deleteSharedPreferences() 584 cache.remove(prefs); in deleteSharedPreferences() 586 prefs.delete(); in deleteSharedPreferences() 590 return !(prefs.exists() || prefsBackup.exists()); in deleteSharedPreferences()
|
/frameworks/base/config/ |
D | preloaded-classes | 6946 java.util.prefs.AbstractPreferences 6947 java.util.prefs.BackingStoreException 6948 java.util.prefs.FileSystemPreferences$3 6949 java.util.prefs.FileSystemPreferences 6950 java.util.prefs.FileSystemPreferencesFactory 6951 java.util.prefs.Preferences 6952 java.util.prefs.PreferencesFactory
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 50647 package java.util.prefs { 50649 public abstract class AbstractPreferences extends java.util.prefs.Preferences { 50650 ctor protected AbstractPreferences(java.util.prefs.AbstractPreferences, java.lang.String); 50652 method public void addNodeChangeListener(java.util.prefs.NodeChangeListener); 50653 method public void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener); 50654 method protected final java.util.prefs.AbstractPreferences[] cachedChildren(); 50655 method protected abstract java.util.prefs.AbstractPreferences childSpi(java.lang.String); 50656 method public java.lang.String[] childrenNames() throws java.util.prefs.BackingStoreException; 50657 …method protected abstract java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStor… 50658 method public void clear() throws java.util.prefs.BackingStoreException; [all …]
|