/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/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/services/net/java/android/net/ |
D | NetworkStackClient.java | 353 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/ |
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 | 1300 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/ |
D | MultiDexExtractor.java | 218 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/ |
D | MbmsDownloadSession.java | 475 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/ |
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/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/packages/SettingsLib/src/com/android/settingslib/inputmethod/ |
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()
|
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()
|
/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 | 571 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/ |
D | preloaded-classes | 6949 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
|
D | hiddenapi-greylist-max-o.txt | 98874 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/ |
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 …]
|