/packages/apps/Nfc/nci/src/com/android/nfc/dhimpl/ |
NativeNfcSecureElement.java | 34 SharedPreferences mPrefs; 40 mPrefs = mContext.getSharedPreferences(NativeNfcManager.PREF, Context.MODE_PRIVATE); 41 mPrefsEditor = mPrefs.edit();
|
/packages/apps/Nfc/nxp/src/com/android/nfc/dhimpl/ |
NativeNfcSecureElement.java | 34 SharedPreferences mPrefs; 40 mPrefs = mContext.getSharedPreferences(NativeNfcManager.PREF, Context.MODE_PRIVATE); 41 mPrefsEditor = mPrefs.edit();
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
ClockFragment.java | 55 private SharedPreferences mPrefs; 201 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); 209 mPrefs.registerOnSharedPreferenceChangeListener(this); 254 mPrefs.unregisterOnSharedPreferenceChangeListener(this);
|
/developers/samples/android/testing/ActivityInstrumentationSample/src/com/example/android/activityinstrumentation/ |
MainActivity.java | 56 private SharedPreferences mPrefs; 73 mPrefs = PreferenceManager.getDefaultSharedPreferences(MainActivity.this); 85 int selection = mPrefs.getInt(PREF_SPINNER_POS, PREF_SPINNER_VALUE_ISNULL); 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position); 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit();
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
FastScrollingIndexCacheTest.java | 32 private MockSharedPreferences mPrefs; 56 mPrefs = new MockSharedPreferences(); 57 mCache = FastScrollingIndexCache.getInstanceForTest(mPrefs); 144 FastScrollingIndexCache cache2 = FastScrollingIndexCache.getInstanceForTest(mPrefs); 152 mPrefs.edit().putString(FastScrollingIndexCache.PREFERENCE_KEY, "123");
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
Settings.java | 107 private SharedPreferences mPrefs; 127 mPrefs = PreferenceManager.getDefaultSharedPreferences(context); 128 mPrefs.registerOnSharedPreferenceChangeListener(this); 132 mPrefs.unregisterOnSharedPreferenceChangeListener(this); 154 final SharedPreferences prefs = mPrefs; 371 mPrefs.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply(); 375 final String tokenStr = mPrefs.getString(PREF_LAST_USED_PERSONALIZATION_TOKEN, null);
|
AdditionalSubtypeSettings.java | 59 private SharedPreferences mPrefs; 395 mPrefs = getPreferenceManager().getSharedPreferences(); 409 Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); 573 final String oldSubtypes = Settings.readPrefAdditionalSubtypes(mPrefs, getResources()); 579 Settings.writePrefAdditionalSubtypes(mPrefs, prefSubtypes);
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
CubeWallpaper2.java | 87 private SharedPreferences mPrefs; 100 mPrefs = CubeWallpaper2.this.getSharedPreferences(SHARED_PREFS_NAME, 0); 101 mPrefs.registerOnSharedPreferenceChangeListener(this); 102 onSharedPreferenceChanged(mPrefs, null);
|
/frameworks/base/core/java/android/text/method/ |
TextKeyListener.java | 53 private int mPrefs; 296 mPrefs = (cap ? AUTO_CAP : 0) | 309 return mPrefs;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
ContactEditorUtils.java | 57 private final SharedPreferences mPrefs; 67 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); 80 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).remove(KEY_KNOWN_ACCOUNTS) 86 mPrefs.edit().remove(KEY_DEFAULT_ACCOUNT).apply(); 94 mPrefs.edit().putString(KEY_KNOWN_ACCOUNTS, "").putString(KEY_DEFAULT_ACCOUNT, "").apply(); 106 return !mPrefs.getBoolean(KEY_ANYTHING_SAVED, false); 119 final SharedPreferences.Editor editor = mPrefs.edit() 147 final String saved = mPrefs.getString(KEY_DEFAULT_ACCOUNT, null); 179 final String saved = mPrefs.getString(KEY_KNOWN_ACCOUNTS, null);
|
/packages/apps/Gallery/src/com/android/camera/ |
ImageGallery.java | 83 private SharedPreferences mPrefs; 108 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); 430 mPrefs.getString("pref_gallery_size_key", "1"))); 433 String sortOrder = mPrefs.getString("pref_gallery_sort_key", null); [all...] |
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/personalization/ |
UserHistoryDictionaryTests.java | 41 private SharedPreferences mPrefs; 53 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext()); 95 testFilenameSuffix /* locale */, mPrefs); 119 testFilenameSuffix /* locale */, mPrefs); 132 testFilenameSuffix, mPrefs);
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
FastScrollingIndexCache.java | 69 private final SharedPreferences mPrefs; 106 mPrefs = prefs; 249 mPrefs.edit().remove(PREFERENCE_KEY).commit(); 274 mPrefs.edit().putString(PREFERENCE_KEY, sb.toString()).apply(); 289 final String savedValue = mPrefs.getString(PREFERENCE_KEY, null);
|
/packages/wallpapers/Basic/src/com/android/wallpaper/polarclock/ |
PolarClockWallpaper.java | 296 private SharedPreferences mPrefs; 353 mPrefs = PolarClockWallpaper.this.getSharedPreferences(SHARED_PREFS_NAME, 0); 354 mPrefs.registerOnSharedPreferenceChangeListener(this); 357 onSharedPreferenceChanged(mPrefs, null);
|
/packages/apps/Settings/src/com/android/settings/ |
HomeSettings.java | 61 ArrayList<HomeAppPreference> mPrefs; 76 HomeAppPreference pref = mPrefs.get(index); 87 uninstallApp(mPrefs.get(index)); 125 for (int i = 0; i < mPrefs.size(); i++) { 126 HomeAppPreference pref = mPrefs.get(i); 138 if (mPrefs.size() < 2) { 154 mPrefs = new ArrayList<HomeAppPreference>(); 167 mPrefs.add(pref);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
DynamicGridKeyboard.java | 44 private final SharedPreferences mPrefs; 65 mPrefs = prefs; 143 Settings.writeEmojiRecentKeys(mPrefs, jsonStr); 168 final String str = Settings.readEmojiRecentKeys(mPrefs);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/ |
DecayingExpandableBinaryDictionaryBase.java | 62 private final SharedPreferences mPrefs; 76 mPrefs = sp; 91 Settings.writeLastUserHistoryWriteTime(mPrefs, mLocale); 168 final long last = Settings.readLastUserHistoryWriteTime(mPrefs, locale);
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
TimerFragment.java | 85 private SharedPreferences mPrefs; 523 mPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); 547 mPrefs.registerOnSharedPreferenceChangeListener(this); 549 mAdapter = createAdapter(getActivity(), mPrefs); 568 if (mPrefs.getBoolean(Timers.FROM_NOTIFICATION, false)) { 571 SharedPreferences.Editor editor = mPrefs.edit(); 575 if (mPrefs.getBoolean(Timers.FROM_ALERT, false)) { 578 SharedPreferences.Editor editor = mPrefs.edit(); 611 mPrefs.unregisterOnSharedPreferenceChangeListener(this); 681 SharedPreferences.Editor editor = mPrefs.edit() [all...] |
/development/apps/CustomLocale/src/com/android/customlocale2/ |
CustomLocaleActivity.java | 75 private SharedPreferences mPrefs; 85 mPrefs = getPreferences(MODE_PRIVATE); 137 String customLocales = mPrefs.getString(CUSTOM_LOCALES, null); 150 mPrefs.edit().putString(CUSTOM_LOCALES, customLocales).commit(); 224 String customLocales = mPrefs.getString(CUSTOM_LOCALES, ""); 381 String oldLocales = mPrefs.getString(CUSTOM_LOCALES, ""); 401 boolean ok = mPrefs.edit().putString(CUSTOM_LOCALES, newLocales).commit();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/research/ |
ResearchLogger.java | 163 private SharedPreferences mPrefs; 219 mPrefs = PreferenceManager.getDefaultSharedPreferences(latinIME); 220 mPrefs.registerOnSharedPreferenceChangeListener(this); 223 sIsLogging = ResearchSettings.readResearchLoggerEnabledFlag(mPrefs); 278 final long lastCleanupTime = ResearchSettings.readResearchLastDirCleanupTime(mPrefs); 282 ResearchSettings.writeResearchLastDirCleanupTime(mPrefs, now); 295 if (mPrefs != null) { 296 mPrefs.unregisterOnSharedPreferenceChangeListener(this); 301 if (ResearchSettings.readHasSeenSplash(mPrefs)) return; 313 if (mPrefs == null) [all...] |
/packages/apps/Contacts/src/com/android/contacts/activities/ |
ActionBarAdapter.java | 75 private final SharedPreferences mPrefs; 131 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); 534 mPrefs.edit().putInt(PERSISTENT_LAST_TAB, tab).apply(); 539 return mPrefs.getInt(PERSISTENT_LAST_TAB, TabState.DEFAULT);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
ContactBrowseListFragment.java | 80 private SharedPreferences mPrefs; 179 mPrefs = PreferenceManager.getDefaultSharedPreferences(activity); 640 ContactListFilter.storeToPreferences(mPrefs, mFilter); 642 Editor editor = mPrefs.edit(); 658 String selectedUri = mPrefs.getString(getPersistentSelectionKey(), null); 667 ContactListFilter.storeToPreferences(mPrefs, mFilter); 671 mFilter = ContactListFilter.restoreDefaultPreferences(mPrefs);
|
/packages/apps/DeskClock/src/com/android/deskclock/worldclock/ |
CitiesActivity.java | 96 private SharedPreferences mPrefs; 300 mPrefs.edit().putInt(PREF_SORT, sortType).commit(); 460 mPrefs = PreferenceManager.getDefaultSharedPreferences(this); 461 mSortType = mPrefs.getInt(PREF_SORT, SORT_BY_NAME);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
KeyboardSwitcher.java | 66 private SharedPreferences mPrefs; 104 mPrefs = prefs; 179 Settings.readKeyPreviewPopupEnabled(mPrefs, mResources), 180 Settings.readKeyPreviewPopupDismissDelay(mPrefs, mResources));
|
/packages/apps/Browser/src/com/android/browser/ |
BrowserSettings.java | 108 private SharedPreferences mPrefs; 139 mPrefs = PreferenceManager.getDefaultSharedPreferences(mContext); 192 mPrefs.registerOnSharedPreferenceChangeListener(BrowserSettings.this); 197 if (mPrefs.contains(PREF_TEXT_SIZE)) { 220 mPrefs.edit().remove(PREF_TEXT_SIZE).apply(); 411 return mPrefs.getBoolean(PREF_DEBUG_MENU, false); 415 Editor edit = mPrefs.edit(); 470 long gal = mPrefs.getLong(GoogleAccountLogin.PREF_AUTOLOGIN_TIME, -1); 471 mPrefs.edit() 532 return mPrefs; [all...] |