Searched refs:mPrefs (Results 1 – 5 of 5) sorted by relevance
38 private final SharedPreferences mPrefs; field in PrefState43 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 …]
31 private PrefState mPrefs; field in NekoTile36 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()
72 private PrefState mPrefs; field in NekoLand88 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()
58 private int mPrefs; field in TextKeyListener301 mPrefs = (cap ? AUTO_CAP : 0) | in updatePrefs()314 return mPrefs; in getPrefs()
105 private final ZenPrefs mPrefs; field in ZenModePanel148 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()