Home
last modified time | relevance | path

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

/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DPrefState.java38 private final SharedPreferences mPrefs; field in PrefState
43 mPrefs = mContext.getSharedPreferences(FILE_NAME, 0); in PrefState()
48 mPrefs.edit() in addCat()
54 mPrefs.edit().remove(CAT_KEY_PREFIX + String.valueOf(cat.getSeed())).apply(); in removeCat()
59 Map<String, ?> map = mPrefs.getAll(); in getCats()
72 return mPrefs.getInt(FOOD_STATE, 0); in getFoodState()
76 mPrefs.edit().putInt(FOOD_STATE, foodState).apply(); in setFoodState()
80 return mPrefs.getFloat(WATER_STATE, 0f); in getWaterState()
84 mPrefs.edit().putFloat(WATER_STATE, waterState).apply(); in setWaterState()
90 mPrefs.registerOnSharedPreferenceChangeListener(this); in setListener()
[all …]
DNekoTile.java31 private PrefState mPrefs; field in NekoTile
36 mPrefs = new PrefState(this); in onCreate()
42 mPrefs.setListener(this); in onStartListening()
49 mPrefs.setListener(null); in onStopListening()
71 int foodState = mPrefs.getFoodState(); in updateState()
84 if (mPrefs.getFoodState() != 0) { in onClick()
87 mPrefs.setFoodState(0); in onClick()
DNekoLand.java72 private PrefState mPrefs; field in NekoLand
88 mPrefs = new PrefState(this); in onCreate()
89 mPrefs.setListener(this); in onCreate()
101 mPrefs.setListener(null); in onDestroy()
113 List<Cat> list = mPrefs.getCats(); in updateCats()
132 mPrefs.addCat(cat); in onCatClick()
144 mPrefs.removeCat(cat); in onCatRemove()
167 mPrefs.addCat(cat); in showNameDialog()
/frameworks/base/core/java/android/text/method/
DTextKeyListener.java58 private int mPrefs; field in TextKeyListener
301 mPrefs = (cap ? AUTO_CAP : 0) | in updatePrefs()
314 return mPrefs; in getPrefs()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DZenModePanel.java105 private final ZenPrefs mPrefs; field in ZenModePanel
148 mPrefs = new ZenPrefs(); in ZenModePanel()
166 pw.println(mPrefs.mConfirmedPriorityIntroduction); in dump()
168 pw.println(mPrefs.mConfirmedSilenceIntroduction); in dump()
356 mPrefs.trackNoneSelected(); in checkForAttachedZenChange()
465 final boolean introduction = (zenImportant && !mPrefs.mConfirmedPriorityIntroduction in updateWidgets()
466 || zenNone && !mPrefs.mConfirmedSilenceIntroduction in updateWidgets()
467 || zenAlarm && !mPrefs.mConfirmedAlarmIntroduction); in updateWidgets()
829 mPrefs.setMinuteIndex(-1); in select()
831 mPrefs.setMinuteIndex(mBucketIndex); in select()