Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/server/
DBootReceiver.java98 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents() local
138 addFileWithFootersToDropBox(db, prefs, headers, lastKmsgFooter, in logBootEvents()
140 addFileWithFootersToDropBox(db, prefs, headers, lastKmsgFooter, in logBootEvents()
143 addFileToDropBox(db, prefs, headers, "/cache/recovery/log", in logBootEvents()
145 addFileToDropBox(db, prefs, headers, "/cache/recovery/last_kmsg", in logBootEvents()
147 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_console", in logBootEvents()
149 addFileToDropBox(db, prefs, headers, "/data/dontpanic/apanic_threads", in logBootEvents()
151 addAuditErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_AUDIT"); in logBootEvents()
152 addFsckErrorsToDropBox(db, prefs, headers, -LOG_SIZE, "SYSTEM_FSCK"); in logBootEvents()
161 addFileToDropBox(db, prefs, headers, tombstoneFiles[i].getPath(), in logBootEvents()
[all …]
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportPrefs.java35 final SharedPreferences prefs = context.getSharedPreferences( in getWarningState() local
37 return prefs.getInt(KEY_WARNING_STATE, def); in getWarningState()
41 final SharedPreferences prefs = context.getSharedPreferences( in setWarningState() local
43 prefs.edit().putInt(KEY_WARNING_STATE, value).apply(); in setWarningState()
/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/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/multidex/library/src/android/support/multidex/
DMultiDexExtractor.java137 SharedPreferences prefs = getMultiDexPreferences(context); in isModified() local
138 return (prefs.getLong(KEY_TIME_STAMP, NO_VALUE) != getTimeStamp(archive)) in isModified()
139 || (prefs.getLong(KEY_CRC, NO_VALUE) != currentCrc); in isModified()
232 SharedPreferences prefs = getMultiDexPreferences(context); in putStoredApkInfo() local
233 SharedPreferences.Editor edit = prefs.edit(); in putStoredApkInfo()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java845 prefs().registerOnSharedPreferenceChangeListener(this); in Prefs()
858 prefs().edit().putInt(KEY_NONE_SELECTED, mNoneSelected).apply(); in trackNoneSelected()
870 prefs().edit().putInt(KEY_MINUTE_INDEX, mMinuteIndex).apply(); in setMinuteIndex()
874 public void onSharedPreferenceChanged(SharedPreferences prefs, String key) { in onSharedPreferenceChanged() argument
879 private SharedPreferences prefs() { in prefs() method in ZenModePanel.Prefs
884 mMinuteIndex = clampIndex(prefs().getInt(KEY_MINUTE_INDEX, DEFAULT_BUCKET_INDEX)); in updateMinuteIndex()
893 mNoneSelected = clampNoneSelected(prefs().getInt(KEY_NONE_SELECTED, 0)); in updateNoneSelected()
/frameworks/base/docs/html/guide/topics/ui/
Dsettings.jd598 android:fragment="com.example.prefs.SettingsActivity$SettingsFragmentOne"
602 android:fragment="com.example.prefs.SettingsActivity$SettingsFragmentTwo"
686 android:fragment="com.example.prefs.SettingsFragmentOne"
690 android:fragment="com.example.prefs.SettingsFragmentTwo"
705 android:targetPackage="com.example.prefs"
706 android:targetClass="com.example.prefs.SettingsActivity"
707 android:action="com.example.prefs.PREFS_ONE" />
713 android:targetPackage="com.example.prefs"
714 android:targetClass="com.example.prefs.SettingsActivity"
715 android:action="com.example.prefs.PREFS_TWO" />
[all …]
/frameworks/base/core/java/android/preference/
DPreferenceActivity.java635 mPrefsContainer = (ViewGroup) findViewById(com.android.internal.R.id.prefs); in onCreate()
1221 transaction.replace(com.android.internal.R.id.prefs, f); in switchToHeaderInner()
1319 transaction.replace(com.android.internal.R.id.prefs, fragment); in startPreferenceFragment()
1358 transaction.replace(com.android.internal.R.id.prefs, f); in startPreferencePanel()
/frameworks/base/docs/html/google/gcm/
Dclient.jd287 SharedPreferences prefs;
329 final SharedPreferences prefs = getGCMPreferences(context);
330 String registrationId = prefs.getString(PROPERTY_REG_ID, "");
338 int registeredVersion = prefs.getInt(PROPERTY_APP_VERSION, Integer.MIN_VALUE);
456 final SharedPreferences prefs = getGCMPreferences(context);
459 SharedPreferences.Editor editor = prefs.edit();
/frameworks/base/docs/html/training/enterprise/
Ddevice-management-policy.jd107 SharedPreferences prefs = context.getSharedPreferences(APP_PREF, Activity.MODE_PRIVATE);
108 prefs.edit().clear().commit();
/frameworks/base/docs/html/training/basics/network-ops/
Dmanaging.jd21 <li><a href="#prefs">Implement a Preferences Activity</a></li>
210 <h2 id="prefs">Implement a Preferences Activity</h2>
421 // Checks the user prefs and the network connection. Based on the result, decides whether
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerService.java3191 List<PreferredActivity> prefs = pir != null in findPreferredActivity() local
3195 if (prefs != null && prefs.size() > 0) { in findPreferredActivity()
3219 final int M = prefs.size(); in findPreferredActivity()
3221 final PreferredActivity pa = prefs.get(i); in findPreferredActivity()
/frameworks/base/docs/html/guide/topics/data/
Dbackup.jd641 static final String PREFS_BACKUP_KEY = "prefs";
/frameworks/base/docs/html/
Dsitemap.txt791 http://developer.android.com/reference/java/util/prefs/package-summary.html
1230 http://developer.android.com/reference/java/util/prefs/NodeChangeListener.html
1231 http://developer.android.com/reference/java/util/prefs/PreferenceChangeListener.html
1232 http://developer.android.com/reference/java/util/prefs/PreferencesFactory.html
1233 http://developer.android.com/reference/java/util/prefs/AbstractPreferences.html
1234 http://developer.android.com/reference/java/util/prefs/NodeChangeEvent.html
1235 http://developer.android.com/reference/java/util/prefs/PreferenceChangeEvent.html
1236 http://developer.android.com/reference/java/util/prefs/Preferences.html
1237 http://developer.android.com/reference/java/util/prefs/BackingStoreException.html
1238 http://developer.android.com/reference/java/util/prefs/InvalidPreferencesFormatException.html
/frameworks/base/api/
Dsystem-current.txt53178 package java.util.prefs {
53180 public abstract class AbstractPreferences extends java.util.prefs.Preferences {
53181 ctor protected AbstractPreferences(java.util.prefs.AbstractPreferences, java.lang.String);
53183 method public void addNodeChangeListener(java.util.prefs.NodeChangeListener);
53184 method public void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
53185 method protected final java.util.prefs.AbstractPreferences[] cachedChildren();
53186 method protected abstract java.util.prefs.AbstractPreferences childSpi(java.lang.String);
53187 method public java.lang.String[] childrenNames() throws java.util.prefs.BackingStoreException;
53188 …method protected abstract java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStor…
53189 method public void clear() throws java.util.prefs.BackingStoreException;
[all …]
Dcurrent.txt50649 package java.util.prefs {
50651 public abstract class AbstractPreferences extends java.util.prefs.Preferences {
50652 ctor protected AbstractPreferences(java.util.prefs.AbstractPreferences, java.lang.String);
50654 method public void addNodeChangeListener(java.util.prefs.NodeChangeListener);
50655 method public void addPreferenceChangeListener(java.util.prefs.PreferenceChangeListener);
50656 method protected final java.util.prefs.AbstractPreferences[] cachedChildren();
50657 method protected abstract java.util.prefs.AbstractPreferences childSpi(java.lang.String);
50658 method public java.lang.String[] childrenNames() throws java.util.prefs.BackingStoreException;
50659 …method protected abstract java.lang.String[] childrenNamesSpi() throws java.util.prefs.BackingStor…
50660 method public void clear() throws java.util.prefs.BackingStoreException;
[all …]