Searched refs:mPrefs (Results 1 – 4 of 4) sorted by relevance
/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/ |
D | SimpleGeofenceStore.java | 38 private final SharedPreferences mPrefs; field in SimpleGeofenceStore 46 mPrefs = context.getSharedPreferences(SHARED_PREFERENCES, Context.MODE_PRIVATE); in SimpleGeofenceStore() 57 double lat = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LATITUDE), in getGeofence() 59 double lng = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_LONGITUDE), in getGeofence() 61 float radius = mPrefs.getFloat(getGeofenceFieldKey(id, KEY_RADIUS), in getGeofence() 64 mPrefs.getLong(getGeofenceFieldKey(id, KEY_EXPIRATION_DURATION), in getGeofence() 66 int transitionType = mPrefs.getInt(getGeofenceFieldKey(id, KEY_TRANSITION_TYPE), in getGeofence() 87 SharedPreferences.Editor prefs = mPrefs.edit(); in setGeofence() 104 SharedPreferences.Editor prefs = mPrefs.edit(); in clearGeofence()
|
/development/samples/browseable/ActivityInstrumentation/src/com.example.android.activityinstrumentation/ |
D | MainActivity.java | 56 private SharedPreferences mPrefs; field in MainActivity 73 mPrefs = PreferenceManager.getDefaultSharedPreferences(MainActivity.this); in onCreate() 85 int selection = mPrefs.getInt(PREF_SPINNER_POS, PREF_SPINNER_VALUE_ISNULL); in onCreate() 101 mPrefs.edit().putInt(PREF_SPINNER_POS, position).commit(); in onCreate() 106 mPrefs.edit().remove(PREF_SPINNER_POS).commit(); in onCreate()
|
/development/apps/CustomLocale/src/com/android/customlocale2/ |
D | CustomLocaleActivity.java | 75 private SharedPreferences mPrefs; field in CustomLocaleActivity 85 mPrefs = getPreferences(MODE_PRIVATE); in onCreate() 137 String customLocales = mPrefs.getString(CUSTOM_LOCALES, null); in onActivityResult() 150 mPrefs.edit().putString(CUSTOM_LOCALES, customLocales).commit(); in onActivityResult() 224 String customLocales = mPrefs.getString(CUSTOM_LOCALES, ""); in setupLocaleList() 381 String oldLocales = mPrefs.getString(CUSTOM_LOCALES, ""); in removeCustomLocale() 401 boolean ok = mPrefs.edit().putString(CUSTOM_LOCALES, newLocales).commit(); in removeCustomLocale()
|
/development/samples/CubeLiveWallpaper/src/com/example/android/livecubes/cube2/ |
D | CubeWallpaper2.java | 87 private SharedPreferences mPrefs; field in CubeWallpaper2.CubeEngine 100 mPrefs = CubeWallpaper2.this.getSharedPreferences(SHARED_PREFS_NAME, 0); in CubeEngine() 101 mPrefs.registerOnSharedPreferenceChangeListener(this); in CubeEngine() 102 onSharedPreferenceChanged(mPrefs, null); in CubeEngine()
|