Lines Matching defs:mPrefs
33 private SharedPreferences mPrefs;
43 mPrefs = PreferenceManager.getDefaultSharedPreferences(getContext());
66 mPrefs.edit().putString(prefKey, themeIdString).apply();
71 mPrefs.edit().remove(prefKey).apply();
76 mPrefs.edit().putString(prefKey, ILLEGAL_THEME_ID_STRING).apply();
80 assertEquals(expectedThemeId, KeyboardTheme.getKeyboardTheme(mPrefs, sdkVersion).mThemeId);
143 KeyboardTheme.getDefaultKeyboardTheme(mPrefs, sdkVersion);
149 assertEquals(isValidKeyboardThemeId(previousThemeId), mPrefs.contains(oldPrefKey));
153 assertFalse(mPrefs.contains(oldPrefKey));
197 final KeyboardTheme theme = KeyboardTheme.getKeyboardTheme(mPrefs, sdkVersion);
203 assertFalse(mPrefs.contains(KeyboardTheme.LXX_KEYBOARD_THEME_KEY));
206 mPrefs.contains(KeyboardTheme.KLP_KEYBOARD_THEME_KEY));
209 assertEquals(mPrefs.getString(KeyboardTheme.KLP_KEYBOARD_THEME_KEY, null),
215 assertFalse(mPrefs.contains(KeyboardTheme.KLP_KEYBOARD_THEME_KEY));
217 assertFalse(mPrefs.contains(KeyboardTheme.LXX_KEYBOARD_THEME_KEY));