Home
last modified time | relevance | path

Searched refs:SECONDARY_USER (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/common/domain/interactor/
DPackageChangeInteractorTest.kt58 fakeUserRepository.setUserInfos(listOf(MAIN_USER, SECONDARY_USER)) in setUp()
70 setUser(SECONDARY_USER) in packageChanges()
91 setUser(SECONDARY_USER) in packageChanges_ignoresUpdatesFromOtherUsers()
95 packageUid = UserHandle.getUid(SECONDARY_USER.id, /* appId = */ 10), in packageChanges_ignoresUpdatesFromOtherUsers()
110 setUser(SECONDARY_USER) in packageChanges_forCurrentUser()
114 packageUid = UserHandle.getUid(SECONDARY_USER.id, /* appId = */ 10), in packageChanges_forCurrentUser()
173 val SECONDARY_USER = UserInfo(SECONDARY_USER_HANDLE.identifier, "secondary", 0) constant
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
DAuthSessionCoordinatorTest.java42 private static final int SECONDARY_USER = 10; field in AuthSessionCoordinatorTest
167 mCoordinator.authStartedFor(SECONDARY_USER, 1 /* sensorId */, 0 /* requestId */); in testMultiUserAuth()
168 mCoordinator.lockedOutFor(SECONDARY_USER, BIOMETRIC_STRONG, 1 /* sensorId */, in testMultiUserAuth()
181 mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testMultiUserAuth()
183 assertThat(mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testMultiUserAuth()
185 assertThat(mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testMultiUserAuth()
201 mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testMultiUserAuth()
203 assertThat(mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testMultiUserAuth()
205 assertThat(mCoordinator.getLockoutStateFor(SECONDARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testMultiUserAuth()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DAuthorizedPanelsRepositoryImplTest.kt54 userTracker = kosmos.fakeUserTracker.apply { set(listOf(PRIMARY_USER, SECONDARY_USER), 0) } in setUp()
98 userTracker.set(listOf(SECONDARY_USER), 0) in testPreApprovedPackagesOnlySetForUserThatDoesntHaveThem()
165 collectLastValue(repository.observeAuthorizedPanels(SECONDARY_USER.userHandle)) in observeAuthorizedPanelsForAnotherUser()
173 userTracker.set(listOf(PRIMARY_USER, SECONDARY_USER), 1) in observeAuthorizedPanelsForAnotherUser()
207 private val SECONDARY_USER = constant
DSelectedComponentRepositoryTest.kt55 val SECONDARY_USER: UserHandle = UserHandle.of(12) constant
90 SECONDARY_USER.identifier to secondaryUserSharedPref in setUp()
147 whenever(userTracker.userId).thenReturn(SECONDARY_USER.identifier) in testGetPreferredStructure_differentUserId()
199 collectLastValue(repository.selectedComponentFlow(SECONDARY_USER)) in testDifferentUsersWithDifferentComponentSelected()
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnTestBase.java63 protected static final UserInfo SECONDARY_USER = new UserInfo(15, "Secondary", FLAG_ADMIN); field in VpnTestBase
72 RESTRICTED_PROFILE_B.restrictedProfileParentId = SECONDARY_USER.id;
DVpnManagerServiceTest.java385 assertFalse(mService.isVpnLockdownEnabled(SECONDARY_USER.id)); in testIsVpnLockdownEnabled()
398 assertNull(mService.getVpnLockdownAllowlist(SECONDARY_USER.id)); in testGetVpnLockdownAllowlist()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepositoryImplTest.kt66 setKeyguardFeaturesDisabled(SECONDARY_USER, KEYGUARD_DISABLE_FEATURES_NONE) in setUp()
75 val enabledState by collectLastValue(underTest.getEnabledState(SECONDARY_USER)) in secondaryUserIsInvalid()
116 SECONDARY_USER.id in hubIsDisabledByUser()
260 val SECONDARY_USER = UserInfo(/* id= */ 1, /* name= */ "secondary user", /* flags= */ 0) constant
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java87 private static final int SECONDARY_USER = 11; field in CrossProfileAppsServiceImplTest
129 mUserEnabled.put(SECONDARY_USER, true); in setupEnabledProfiles()
163 mockAppsInstalled(PACKAGE_ONE, SECONDARY_USER, true); in setupPackage()
208 mTestInjector.setCallingUserId(SECONDARY_USER); in getTargetUserProfiles_fromSecondaryUser()
544 UserHandle.of(SECONDARY_USER).getIdentifier(), in startActivityAsUser_secondaryUser()
571 UserHandle.of(SECONDARY_USER).getIdentifier(), in startAnyActivityAsUser_secondaryUser()
DAppsFilterImplTest.java95 private static final int SECONDARY_USER = 10; field in AppsFilterImplTest
97 private static final int[] USER_ARRAY = {SYSTEM_USER, SECONDARY_USER};
98 private static final int[] USER_ARRAY_WITH_ADDED = {SYSTEM_USER, SECONDARY_USER, ADDED_USER};
816 SECONDARY_USER)); in testSystemUidSecondaryUser_DoesntFilter()
818 UserHandle.getUid(SECONDARY_USER, Process.FIRST_APPLICATION_UID - 1), in testSystemUidSecondaryUser_DoesntFilter()
819 null, target, SECONDARY_USER)); in testSystemUidSecondaryUser_DoesntFilter()
1216 assertThat(toList(seesNothingFilter.get(SECONDARY_USER)), in testWhoCanSee()
1288 assertThat(toList(seesNothingFilter.get(SECONDARY_USER)), in testOnChangeReport()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java87 private static final int SECONDARY_USER = 11; field in CrossProfileAppsServiceImplTest
129 mUserEnabled.put(SECONDARY_USER, true); in setupEnabledProfiles()
163 mockAppsInstalled(PACKAGE_ONE, SECONDARY_USER, true); in setupPackage()
208 mTestInjector.setCallingUserId(SECONDARY_USER); in getTargetUserProfiles_fromSecondaryUser()
544 UserHandle.of(SECONDARY_USER).getIdentifier(), in startActivityAsUser_secondaryUser()
571 UserHandle.of(SECONDARY_USER).getIdentifier(), in startAnyActivityAsUser_secondaryUser()
/frameworks/base/services/tests/VpnTests/java/com/android/server/connectivity/
DVpnTest.java472 setMockedUsers(PRIMARY_USER, SECONDARY_USER, RESTRICTED_PROFILE_A, RESTRICTED_PROFILE_B); in testRestrictedProfilesAreAddedToVpn()