Home
last modified time | relevance | path

Searched refs:prefs (Results 1 – 25 of 28) 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/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/services/net/java/android/net/
DNetworkStackClient.java353 final SharedPreferences prefs = getSharedPreferences(context); in maybeCrashWithTerribleFailure() local
354 final long lastCrashTime = tryGetLastCrashTime(prefs); in maybeCrashWithTerribleFailure()
378 tryWriteLastCrashTime(prefs, now); in maybeCrashWithTerribleFailure()
408 private long tryGetLastCrashTime(@Nullable SharedPreferences prefs) {
409 if (prefs == null) return 0L;
411 return prefs.getLong(PREF_KEY_LAST_CRASH_TIME, 0L);
418 private void tryWriteLastCrashTime(@Nullable SharedPreferences prefs, long value) {
419 if (prefs == null) return;
421 prefs.edit().putLong(PREF_KEY_LAST_CRASH_TIME, value).commit();
/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.java1300 PackagePreferences prefs = getOrCreatePackagePreferencesLocked(packageName, uid); in setAppImportanceLocked() local
1301 if ((prefs.lockedAppFields & LockableAppFields.USER_LOCKED_IMPORTANCE) != 0) { in setAppImportanceLocked()
1305 prefs.lockedAppFields = in setAppImportanceLocked()
1306 prefs.lockedAppFields | LockableAppFields.USER_LOCKED_IMPORTANCE; in setAppImportanceLocked()
1316 PackagePreferences prefs = getPackagePreferencesLocked(sourcePkg, sourceUid); in getNotificationDelegate() local
1318 if (prefs == null || prefs.delegate == null) { in getNotificationDelegate()
1321 if (!prefs.delegate.mUserAllowed || !prefs.delegate.mEnabled) { in getNotificationDelegate()
1324 return prefs.delegate.mPkg; in getNotificationDelegate()
1334 PackagePreferences prefs = getOrCreatePackagePreferencesLocked(sourcePkg, sourceUid); in setNotificationDelegate() local
1336 boolean userAllowed = prefs.delegate == null || prefs.delegate.mUserAllowed; in setNotificationDelegate()
[all …]
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java218 SharedPreferences prefs = getMultiDexPreferences(context); in isModified() local
219 return (prefs.getLong(prefsKeyPrefix + KEY_TIME_STAMP, NO_VALUE) != getTimeStamp(archive)) in isModified()
220 || (prefs.getLong(prefsKeyPrefix + KEY_CRC, NO_VALUE) != currentCrc); in isModified()
321 SharedPreferences prefs = getMultiDexPreferences(context); in putStoredApkInfo() local
322 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java475 SharedPreferences prefs = mContext.getSharedPreferences(
477 prefs.edit().putString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, filePath).apply();
509 SharedPreferences prefs = mContext.getSharedPreferences(
511 String path = prefs.getString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, null);
548 SharedPreferences prefs = mContext.getSharedPreferences(
550 if (prefs.getString(MbmsTempFileProvider.TEMP_FILE_ROOT_PREF_NAME, null) == null) {
/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/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/packages/SettingsLib/src/com/android/settingslib/inputmethod/
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()
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()
/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.java571 final File prefs = getSharedPreferencesPath(name); in deleteSharedPreferences() local
572 final File prefsBackup = SharedPreferencesImpl.makeBackupFile(prefs); in deleteSharedPreferences()
576 cache.remove(prefs); in deleteSharedPreferences()
578 prefs.delete(); in deleteSharedPreferences()
582 return !(prefs.exists() || prefsBackup.exists()); in deleteSharedPreferences()
/frameworks/base/config/
Dpreloaded-classes6949 java.util.prefs.AbstractPreferences
6950 java.util.prefs.BackingStoreException
6951 java.util.prefs.FileSystemPreferences$3
6952 java.util.prefs.FileSystemPreferences
6953 java.util.prefs.FileSystemPreferencesFactory
6954 java.util.prefs.Preferences
6955 java.util.prefs.PreferencesFactory
Dhiddenapi-greylist-max-o.txt98874 Lcom/android/internal/R$id;->prefs:I
118201 Ljava/util/prefs/AbstractPreferences$EventDispatchThread;
118202 Ljava/util/prefs/AbstractPreferences$EventDispatchThread;-><init>()V
118203 Ljava/util/prefs/AbstractPreferences$NodeAddedEvent;
118204 Ljava/util/prefs/AbstractPreferences$NodeAddedEvent;-><init>(Ljava/util/prefs/Preferences;Ljava/uti…
118205 Ljava/util/prefs/AbstractPreferences$NodeRemovedEvent;
118206 Ljava/util/prefs/AbstractPreferences$NodeRemovedEvent;-><init>(Ljava/util/prefs/Preferences;Ljava/u…
118207 Ljava/util/prefs/AbstractPreferences;->absolutePath:Ljava/lang/String;
118208 Ljava/util/prefs/AbstractPreferences;->EMPTY_ABSTRACT_PREFS_ARRAY:[Ljava/util/prefs/AbstractPrefere…
118209 Ljava/util/prefs/AbstractPreferences;->EMPTY_STRING_ARRAY:[Ljava/lang/String;
[all …]
/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