Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DSecureSettingTest.kt43 private const val OTHER_USER = 1 in <lambda>() constant
128 setting.setUserId(OTHER_USER) in <lambda>()
131 assertThat(setting.currentUser).isEqualTo(OTHER_USER) in <lambda>()
139 secureSettings.putIntForUser(TEST_SETTING, 3, OTHER_USER) in <lambda>()
149 setting.setUserId(OTHER_USER) in <lambda>()
150 secureSettings.putIntForUser(TEST_SETTING, 2, OTHER_USER) in <lambda>()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/provider/
DLocationProviderManagerTest.java122 private static final int OTHER_USER = CURRENT_USER + 10; field in LocationProviderManagerTest
179 mInjector.getUserInfoHelper().startUser(OTHER_USER); in setUp()
230 CallerIdentity newIdentity = CallerIdentity.forTest(OTHER_USER, 1, "otherpackage", in testProperties()
263 assertThat(mManager.isEnabled(OTHER_USER)).isTrue(); in testIsEnabled()
267 assertThat(mManager.isEnabled(OTHER_USER)).isTrue(); in testIsEnabled()
272 assertThat(mManager.isEnabled(OTHER_USER)).isFalse(); in testIsEnabled()
276 assertThat(mManager.isEnabled(OTHER_USER)).isTrue(); in testIsEnabled()
296 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, OTHER_USER, in testIsEnabledListener()
302 verify(listener, timeout(TIMEOUT_MS).times(1)).onProviderEnabledChanged(NAME, OTHER_USER, in testIsEnabledListener()