Home
last modified time | relevance | path

Searched refs:sharedPrefKey (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherPrefs.kt58 IS_STARTUP_DATA_MIGRATED.sharedPrefKey, in <lambda>()
84 String::class.java -> sp.getString(item.sharedPrefKey, default as? String) in <lambda>()
86 java.lang.Boolean::class.java -> sp.getBoolean(item.sharedPrefKey, default as Boolean) in <lambda>()
88 java.lang.Integer::class.java -> sp.getInt(item.sharedPrefKey, default as Int) in <lambda>()
90 java.lang.Float::class.java -> sp.getFloat(item.sharedPrefKey, default as Float) in <lambda>()
92 java.lang.Long::class.java -> sp.getLong(item.sharedPrefKey, default as Long) in <lambda>()
93 Set::class.java -> sp.getStringSet(item.sharedPrefKey, default as? Set<String>) in <lambda>()
166 String::class.java -> putString(item.sharedPrefKey, value as? String) in <lambda>()
168 java.lang.Boolean::class.java -> putBoolean(item.sharedPrefKey, value as Boolean) in <lambda>()
170 java.lang.Integer::class.java -> putInt(item.sharedPrefKey, value as Int) in <lambda>()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DLauncherPrefsTest.kt212 bootAwarePrefs.edit().remove(bootAwareItem.sharedPrefKey).commit() in put_bootAwareItem_updatesDeviceProtectedStorage()
215 assertThat(bootAwarePrefs.contains(bootAwareItem.sharedPrefKey)).isTrue() in put_bootAwareItem_updatesDeviceProtectedStorage()
227 encryptedPrefs.edit().remove(bootAwareItem.sharedPrefKey).commit() in put_bootAwareItem_updatesEncryptedStorage()
230 assertThat(encryptedPrefs.contains(bootAwareItem.sharedPrefKey)).isTrue() in put_bootAwareItem_updatesEncryptedStorage()
247 .putString(bootAwareItem.sharedPrefKey, bootAwareItem.defaultValue) in remove_bootAwareItem_removesFromDeviceProtectedStorage()
251 assertThat(bootAwarePrefs.contains(bootAwareItem.sharedPrefKey)).isFalse() in remove_bootAwareItem_removesFromDeviceProtectedStorage()
264 .putString(bootAwareItem.sharedPrefKey, bootAwareItem.defaultValue) in remove_bootAwareItem_removesFromEncryptedStorage()
268 assertThat(encryptedPrefs.contains(bootAwareItem.sharedPrefKey)).isFalse() in remove_bootAwareItem_removesFromEncryptedStorage()
282 if (bootAwarePrefs.contains(bootAwareItem.sharedPrefKey)) { in migrate_bootAwareItemsToDeviceProtectedStorage_worksAsIntended()
283 bootAwarePrefs.edit().remove(bootAwareItem.sharedPrefKey).commit() in migrate_bootAwareItemsToDeviceProtectedStorage_worksAsIntended()
[all …]