| /datastore/datastore-preferences-core/src/commonTest/kotlin/androidx/datastore/preferences/core/ |
| D | PreferencesSerializerTest.kt | 57 val prefs = preferencesOf(stringKey to "string1") in <lambda>() constant 70 val prefs = preferencesOf(stringSetKey to setOf("string1", "string2", "string3")) in <lambda>() constant 83 val prefs = preferencesOf(longKey to (1L shr 50)) in <lambda>() constant 96 val prefs = preferencesOf(intKey to 3) in <lambda>() constant 109 val prefs = preferencesOf(booleanKey to true) in <lambda>() constant 122 val prefs = preferencesOf(floatKey to 3.0f) in testWriteAndReadFloat() constant 136 val prefs = preferencesOf(maxDouble to Double.MAX_VALUE, minDouble to Double.MIN_VALUE) in <lambda>() constant 149 val prefs = preferencesOf(byteArrayKey to byteArrayOf(1, 2, 3, 4)) in testWriteAndReadByteArray() constant
|
| D | PreferencesTest.kt | 31 val prefs = preferencesOf(booleanKey to true) in testBoolean() constant 48 val prefs = preferencesOf(floatKey to 1.1f) in testFloat() constant 64 val prefs = preferencesOf(doubleKey to Double.MAX_VALUE) in testDouble() constant 80 val prefs = preferencesOf(intKey to 1) in testInt() constant 98 val prefs = preferencesOf(longKey to bigLong) in testLong() constant 115 val prefs = preferencesOf(stringKey to "string123") in testString() constant 132 val prefs = preferencesOf(stringSetKey to setOf("string1", "string2", "string3")) in testStringSet() constant 150 val prefs = preferencesOf(byteArrayKey to byteArray) in testByteArray() constant 166 val prefs = preferencesOf(byteArrayKey to byteArray) in testModifyingOriginalByteArrayDoesntModifyInternalState() constant 178 val prefs = preferencesOf(byteArrayKey to byteArray) in testModifyingReturnedByteArrayDoesntModifyInternalState() constant [all …]
|
| /datastore/datastore-preferences/src/androidInstrumentedTest/kotlin/androidx/datastore/preferences/ |
| D | SharedPreferencesToPreferencesTest.kt | 91 val prefs = preferencesStore.data.first() in <lambda>() constant 126 val prefs = preferencesStore.data.first() in <lambda>() constant 142 val prefs = preferencesStore.data.first() in <lambda>() constant 158 val prefs = preferencesStore.data.first() in <lambda>() constant 174 val prefs = preferencesStore.data.first() in supportsBooleanKey() constant 190 val prefs = preferencesStore.data.first() in <lambda>() constant 207 val prefs = preferencesStore.data.first() in <lambda>() constant 229 val prefs = preferencesStore.data.first() in <lambda>() constant 331 val prefs = preferencesStore.data.first() in canSpecifyMultipleKeys() constant 353 val prefs = preferencesStore.data.first() in <lambda>() constant [all …]
|
| D | PreferenceDataStoreDelegateTest.kt | 102 context.basic.edit { prefs -> prefs[stringKey] = "value" }, in testNewInstance() method
|
| /datastore/datastore-preferences-core/src/jvmAndroidTest/kotlin/androidx/datastore/preferences/core/ |
| D | PreferencesFileSerializerTest.kt | 68 val prefs = preferencesOf(intKey to 123, stringSetKey to setOf("1", "2", "3")) in testGetAllCantMutateInternalState() constant 86 val prefs = preferencesOf(stringSetKey to stringSet) in testModifyingStringSetDoesntModifyInternalState() constant 110 val prefs = preferencesOf(intKey to 123456) in testWrongTypeThrowsClassCastException() constant
|
| D | PreferencesSerializerJavaTest.kt | 69 val prefs = preferencesOf(intKey to 123, stringSetKey to setOf("1", "2", "3")) in testGetAllCantMutateInternalState() constant 87 val prefs = preferencesOf(stringSetKey to stringSet) in testModifyingStringSetDoesntModifyInternalState() constant 111 val prefs = preferencesOf(intKey to 123456) in testWrongTypeThrowsClassCastException() constant
|
| D | PreferenceDataStoreFactoryTest.kt | 60 assertEquals(store.edit { prefs -> prefs[stringKey] = "value" }, expectedPreferences) in <lambda>() method
|
| /datastore/datastore-sampleapp/src/main/java/com/example/datastoresampleapp/ |
| D | PreferencesDataStoreActivity.kt | 67 prefsDs.edit { prefs -> prefs[COUNTER_KEY] = (prefs[COUNTER_KEY] ?: 0) - 1 } in <lambda>() method 73 prefsDs.edit { prefs -> prefs[COUNTER_KEY] = (prefs[COUNTER_KEY] ?: 0) + 1 } in <lambda>() method
|
| /datastore/datastore/src/androidInstrumentedTest/kotlin/androidx/datastore/migrations/ |
| D | SharedPreferencesMigrationTest.kt | 113 ) { prefs: SharedPreferencesView, _: Byte -> in <lambda>() method 141 ) { prefs: SharedPreferencesView, _: Byte -> in <lambda>() method 164 ) { prefs: SharedPreferencesView, _: Byte -> in <lambda>() method 178 prefs: SharedPreferencesView, in <lambda>() method
|
| /datastore/datastore-preferences-rxjava3/src/androidTest/java/androidx/datastore/preferences/rxjava3/ |
| D | RxPreferencesDataStoreBuilderTest.java | 54 MutablePreferences prefs = preferencesIn.toMutablePreferences(); in incrementInteger() local
|
| /datastore/datastore-preferences-rxjava2/src/androidTest/java/androidx/datastore/preferences/rxjava2/ |
| D | RxPreferencesDataStoreBuilderTest.java | 54 MutablePreferences prefs = preferencesIn.toMutablePreferences(); in incrementInteger() local
|
| /datastore/datastore-preferences/src/androidMain/kotlin/androidx/datastore/preferences/ |
| D | SharedPreferencesMigration.android.kt | 132 { prefs -> in getShouldRunMigration() method
|
| /datastore/datastore/src/androidMain/kotlin/androidx/datastore/migrations/ |
| D | SharedPreferencesMigration.android.kt | 215 internal constructor(private val prefs: SharedPreferences, private val keySet: Set<String>?) { constant in SharedPreferencesView
|
| /datastore/datastore-preferences-core/src/nativeTest/kotlin/androidx/datastore/preferences/core/ |
| D | PreferenceDataStoreFactoryNativeTest.kt | 57 assertEquals(store.edit { prefs -> prefs[stringKey] = "value" }, expectedPreferences) in <lambda>() method
|