OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:anotherSharedPreferences
(Results
1 - 2
of
2
) sorted by null
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/android/content/
TestSharedPreferencesTest.java
44
TestSharedPreferences
anotherSharedPreferences
= new TestSharedPreferences(content, FILENAME, 3);
45
assertTrue(
anotherSharedPreferences
.getBoolean("boolean", false));
46
assertThat(
anotherSharedPreferences
.getFloat("float", 666f), equalTo(1.1f));
47
assertThat(
anotherSharedPreferences
.getInt("int", 666), equalTo(2));
48
assertThat(
anotherSharedPreferences
.getLong("long", 666l), equalTo(3l));
49
assertThat(
anotherSharedPreferences
.getString("string", "wacka wa"), equalTo("foobar"));
72
TestSharedPreferences
anotherSharedPreferences
= new TestSharedPreferences(content, FILENAME, 3);
73
assertTrue(
anotherSharedPreferences
.getBoolean("boolean", false));
74
assertThat(
anotherSharedPreferences
.getFloat("float", 666f), equalTo(1.1f));
75
assertThat(
anotherSharedPreferences
.getInt("int", 666), equalTo(2))
[
all
...]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
ShadowSharedPreferencesTest.java
56
SharedPreferences
anotherSharedPreferences
= context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE);
57
assertTrue(
anotherSharedPreferences
.getBoolean("boolean", false));
58
assertThat(
anotherSharedPreferences
.getFloat("float", 666f)).isEqualTo(1.1f);
59
assertThat(
anotherSharedPreferences
.getInt("int", 666)).isEqualTo(2);
60
assertThat(
anotherSharedPreferences
.getLong("long", 666L)).isEqualTo(3L);
61
assertThat(
anotherSharedPreferences
.getString("string", "wacka wa")).isEqualTo("foobar");
62
assertThat(
anotherSharedPreferences
.getStringSet("stringSet", null)).isEqualTo(stringSet);
72
SharedPreferences
anotherSharedPreferences
= context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE);
73
anotherSharedPreferences
.edit().putString("string", "value for key").commit();
97
SharedPreferences
anotherSharedPreferences
= context.getSharedPreferences(FILENAME, Context.MODE_PRIVATE)
[
all
...]
Completed in 86 milliseconds