Home
last modified time | relevance | path

Searched refs:TEST_SETTING (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/settings/
DUserSettingsProxyTest.kt62 TEST_SETTING, in registerContentObserverForUser_inputString_success()
78 TEST_SETTING, in registerContentObserverForUser_inputString_notifyForDescendants_true()
145 mSettings.putString(TEST_SETTING, "test") in getString_keyPresent_returnValidValue()
146 assertThat(mSettings.getString(TEST_SETTING)).isEqualTo("test") in getString_keyPresent_returnValidValue()
151 assertThat(mSettings.getString(TEST_SETTING)).isEmpty() in getString_keyAbsent_returnEmptyValue()
156 mSettings.putStringForUser(TEST_SETTING, "test", MAIN_USER_ID) in getStringForUser_multipleUsers_validResult()
157 mSettings.putStringForUser(TEST_SETTING, "test1", SECONDARY_USER_ID) in getStringForUser_multipleUsers_validResult()
158 assertThat(mSettings.getStringForUser(TEST_SETTING, MAIN_USER_ID)).isEqualTo("test") in getStringForUser_multipleUsers_validResult()
159 assertThat(mSettings.getStringForUser(TEST_SETTING, SECONDARY_USER_ID)).isEqualTo("test1") in getStringForUser_multipleUsers_validResult()
164 mSettings.putInt(TEST_SETTING, 2) in getInt_keyPresent_returnValidValue()
[all …]
DSettingsProxyTest.kt55 mSettings.registerContentObserverSync(TEST_SETTING, mContentObserver) in registerContentObserver_inputString_success()
63 TEST_SETTING, in registerContentObserver_inputString_notifyForDescendants_true()
97 mSettings.putString(TEST_SETTING, "test") in getString_keyPresent_returnValidValue()
98 assertThat(mSettings.getString(TEST_SETTING)).isEqualTo("test") in getString_keyPresent_returnValidValue()
103 assertThat(mSettings.getString(TEST_SETTING)).isEmpty() in getString_keyAbsent_returnEmptyValue()
108 mSettings.putInt(TEST_SETTING, 2) in getInt_keyPresent_returnValidValue()
109 assertThat(mSettings.getInt(TEST_SETTING)).isEqualTo(2) in getInt_keyPresent_returnValidValue()
115 mSettings.putString(TEST_SETTING, "test") in getInt_keyPresent_nonIntegerValue_throwException()
116 mSettings.getInt(TEST_SETTING) in getInt_keyPresent_nonIntegerValue_throwException()
122 assertThrows(SettingNotFoundException::class.java) { mSettings.getInt(TEST_SETTING) } in getInt_keyAbsent_throwException()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DUserSettingObserverTest.kt41 private const val TEST_SETTING = "setting" in <lambda>() constant
64 TEST_SETTING, in <lambda>()
87 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
97 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
114 secureSettings.putIntForUser(TEST_SETTING, 2, USER) in <lambda>()
117 secureSettings.putIntForUser(TEST_SETTING, 4, USER) in <lambda>()
124 assertThat(secureSettings.getIntForUser(TEST_SETTING, USER)).isEqualTo(5) in <lambda>()
141 secureSettings.putIntForUser(TEST_SETTING, 3, OTHER_USER) in <lambda>()
152 secureSettings.putIntForUser(TEST_SETTING, 2, OTHER_USER) in <lambda>()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/
DServiceListingTest.java53 private static final String TEST_SETTING = "testSetting"; field in ServiceListingTest
68 .setSetting(TEST_SETTING) in setUp()
93 .setSetting(TEST_SETTING) in testValidator()
134 .setSetting(TEST_SETTING) in testNoValidator()
166 TEST_SETTING, in testSaveLoad() local
174 TEST_SETTING)).contains(testComponent1.flattenToString()); in testSaveLoad()
176 TEST_SETTING)).contains(testComponent2.flattenToString()); in testSaveLoad()
183 TEST_SETTING)).doesNotContain(testComponent1.flattenToString()); in testSaveLoad()
185 TEST_SETTING)).contains(testComponent2.flattenToString()); in testSaveLoad()
192 TEST_SETTING)).contains(testComponent1.flattenToString()); in testSaveLoad()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DAutoTileManagerTest.java97 private static final String TEST_SETTING = "setting"; field in AutoTileManagerTest
144 TEST_SETTING + SEPARATOR + TEST_SPEC, in setUp()
236 assertNull(manager.getSecureSettingForKey(TEST_SETTING)); in testCreatedAutoTileManagerIsNotInitialized()
294 UserSettingObserver setting = mAutoTileManager.getSecureSettingForKey(TEST_SETTING); in testChangeUserCallbacksStoppedAndStarted()
348 UserSettingObserver setting = mAutoTileManager.getSecureSettingForKey(TEST_SETTING); in testChangeUserSomeCallbacksNotAdded()
446 changeValue(TEST_SETTING, 1); in testSettingTileAdded_onChanged()
461 changeValue(TEST_SETTING, 1); in testSettingTileAdded_onlyOnce()
462 changeValue(TEST_SETTING, 2); in testSettingTileAdded_onlyOnce()
469 changeValue(TEST_SETTING, 0); in testSettingTileNotAdded_onChangedTo0()
478 changeValue(TEST_SETTING, 1); in testSettingTileNotAdded_ifPreviouslyAdded()