Home
last modified time | relevance | path

Searched refs:mPrefs (Results 1 – 6 of 6) sorted by relevance

/development/samples/browseable/Geofencing/Application/src/com.example.android.wearable.geofencing/
DSimpleGeofenceStore.java38 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/
DMainActivity.java56 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/DumpViewer/app/src/main/java/com/android/dumpviewer/utils/
DHistory.java26 private final SharedPreferences mPrefs; field in History
35 mPrefs = prefs; in History()
50 TextUtils.split(mPrefs.getString(mSharedPrefKey, ""), SEPARATOR))); in load()
56 mPrefs.edit().putString(mSharedPrefKey, TextUtils.join(SEPARATOR, items)).apply(); in save()
/development/apps/CustomLocale/src/com/android/customlocale2/
DCustomLocaleActivity.java75 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/
DCubeWallpaper2.java87 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()
/development/apps/DumpViewer/app/src/main/java/com/android/dumpviewer/
DDumpActivity.java102 private SharedPreferences mPrefs; field in DumpActivity
206 mPrefs = getSharedPreferences(SHARED_PREF_NAME, Context.MODE_PRIVATE); in onCreate()
207 mCommandHistory = new History(mPrefs, "command_history", MAX_HISTORY_SIZE); in onCreate()
209 mRegexpHistory = new History(mPrefs, "regexp_history", MAX_HISTORY_SIZE); in onCreate()
211 mSearchHistory = new History(mPrefs, "search_history", MAX_HISTORY_SIZE); in onCreate()