OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mPrefs
(Results
1 - 9
of
9
) sorted by null
/developers/build/prebuilts/gradle/ActivityInstrumentation/Application/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/Application/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();
/developers/build/prebuilts/gradle/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofenceStore.java
38
private final SharedPreferences
mPrefs
;
46
mPrefs
= context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE);
57
double lat =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE),
59
double lng =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE),
61
float radius =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_RADIUS),
64
mPrefs
.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION),
66
int transitionType =
mPrefs
.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE),
87
SharedPreferences.Editor prefs =
mPrefs
.edit();
104
SharedPreferences.Editor prefs =
mPrefs
.edit();
/developers/samples/android/wearable/wear/Geofencing/Application/src/main/java/com/example/android/wearable/geofencing/
SimpleGeofenceStore.java
38
private final SharedPreferences
mPrefs
;
46
mPrefs
= context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE);
57
double lat =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE),
59
double lng =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE),
61
float radius =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_RADIUS),
64
mPrefs
.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION),
66
int transitionType =
mPrefs
.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE),
87
SharedPreferences.Editor prefs =
mPrefs
.edit();
104
SharedPreferences.Editor prefs =
mPrefs
.edit();
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
SimpleGeofenceStore.java
38
private final SharedPreferences
mPrefs
;
46
mPrefs
= context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE);
57
double lat =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE),
59
double lng =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE),
61
float radius =
mPrefs
.getFloat(getGeofenceFieldKey(id, KEY_RADIUS),
64
mPrefs
.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION),
66
int transitionType =
mPrefs
.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE),
87
SharedPreferences.Editor prefs =
mPrefs
.edit();
104
SharedPreferences.Editor prefs =
mPrefs
.edit();
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
SimpleReaderActivity.java
43
SharedPreferences
mPrefs
;
67
mPrefs
= getSharedPreferences(PREFS_NAME, 0);
68
boolean isTypeB =
mPrefs
.getBoolean("typeB", false);
173
SharedPreferences.Editor editor =
mPrefs
.edit();
181
SharedPreferences.Editor editor =
mPrefs
.edit();
/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);
/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();
Completed in 1307 milliseconds