SharedPreferencesTest.java | 57 SharedPreferences prefs = getPrefs(); local 58 prefs.edit().clear().commit(); 76 SharedPreferences prefs = getPrefs(); local 78 prefs.edit().putString("foo", "bar").commit(); 83 SharedPreferences prefs = getPrefs(); local 85 assertFalse(prefs.contains(key)); 86 assertEquals(0, prefs.getAll().size()); 87 assertTrue(prefs.getAll().isEmpty()); 88 assertEquals(false, prefs.getBoolean(key, false)); 89 assertEquals(true, prefs.getBoolean(key, true)) 111 SharedPreferences prefs = getPrefs(); local 211 SharedPreferences prefs = getPrefs(); local 232 SharedPreferences prefs = mContext.getSharedPreferences("torture", Context.MODE_PRIVATE); local 273 SharedPreferences prefs = mContext.getSharedPreferences(prefsName, Context.MODE_PRIVATE); local [all...] |