Home
last modified time | relevance | path

Searched refs:prefs (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/opt/telephony/src/java/com/android/internal/telephony/util/
DVoicemailNotificationSettingsUtil.java48 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/
DBugreportPrefs.java37 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/
DVolumePrefs.java53 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()
DZenModePanel.java922 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { in onSharedPreferenceChanged() argument
/frameworks/base/services/net/java/android/net/
DConnectivityModuleConnector.java309 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/
DRemoveReceiver.java33 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/
DTestAppWidgetConfigure.java46 … SharedPreferences.Editor prefs = getSharedPreferences(TestAppWidgetProvider.PREFS_NAME, 0)
48 prefs.putString(TestAppWidgetProvider.PREF_PREFIX_KEY, text);
49 prefs.commit();
DTestAppWidgetProvider.java53 SharedPreferences prefs = context.getSharedPreferences( in onReceive() local
55 String prefix = prefs.getString(PREF_PREFIX_KEY, "hai"); in onReceive()
DAppWidgetHostActivity.java93 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/
DBackupTestActivity.java114 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/
DWallpaperBackupAgent.java124 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/
DSharedPreferencesTest.java43 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/
DTimeZoneResultAdapter.java144 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/
DPreferencesHelper.java1316 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/
DMultiDexExtractor.java223 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/
DMbmsDownloadSession.java553 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/
DMbmsTempFileProvider.java177 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/
DLocaleTracker.java612 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/
DInputMethodAndSubtypeUtil.java365 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()
DInputMethodAndSubtypeUtilCompat.java365 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/
DSettingsInjector.java177 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/
DPreferenceActivity.java626 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/
DContextImpl.java579 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/
Dpreloaded-classes6946 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/
Dandroid-22.txt50647 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 …]

12