OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:mPrefs
(Results
1 - 25
of
37
) sorted by null
1
2
/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/build/prebuilts/gradle/ActivityInstrumentation/ActivityInstrumentationSample/src/main/java/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).commit();
106
mPrefs
.edit().remove(PREF_SPINNER_POS).commit();
/developers/samples/android/testing/ActivityInstrumentation/ActivityInstrumentationSample/src/main/java/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).commit();
106
mPrefs
.edit().remove(PREF_SPINNER_POS).commit();
/development/samples/browseable/ActivityInstrumentation/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).commit();
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
108
private SharedPreferences
mPrefs
;
128
mPrefs
= PreferenceManager.getDefaultSharedPreferences(context);
129
mPrefs
.registerOnSharedPreferenceChangeListener(this);
133
mPrefs
.unregisterOnSharedPreferenceChangeListener(this);
155
final SharedPreferences prefs =
mPrefs
;
394
mPrefs
.edit().putString(PREF_LAST_USED_PERSONALIZATION_TOKEN, tokenStr).apply();
398
final String tokenStr =
mPrefs
.getString(PREF_LAST_USED_PERSONALIZATION_TOKEN, null);
/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);
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
SimpleReaderActivity.java
42
SharedPreferences
mPrefs
;
66
mPrefs
= getSharedPreferences(PREFS_NAME, 0);
67
boolean isTypeB =
mPrefs
.getBoolean("typeB", false);
164
SharedPreferences.Editor editor =
mPrefs
.edit();
172
SharedPreferences.Editor editor =
mPrefs
.edit();
/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);
159
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);
538
mPrefs
.edit().putInt(PERSISTENT_LAST_TAB, tab).apply();
543
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);
Completed in 4222 milliseconds
1
2