Home
last modified time | relevance | path

Searched refs:PRIMARY_USER (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/sensors/
DAuthSessionCoordinatorTest.java41 private static final int PRIMARY_USER = 0; field in AuthSessionCoordinatorTest
57 mCoordinator.authStartedFor(PRIMARY_USER, 1 /* sensorId */, 0 /* requestId */); in testUserUnlockedWithWeak()
58 mCoordinator.lockedOutFor(PRIMARY_USER, BIOMETRIC_STRONG, 1 /* sensorId */, in testUserUnlockedWithWeak()
61 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserUnlockedWithWeak()
63 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testUserUnlockedWithWeak()
65 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testUserUnlockedWithWeak()
68 mCoordinator.authStartedFor(PRIMARY_USER, 1 /* sensorId */, 0 /* requestId */); in testUserUnlockedWithWeak()
69 mCoordinator.authEndedFor(PRIMARY_USER, BIOMETRIC_WEAK, 1 /* sensorId */, in testUserUnlockedWithWeak()
72 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testUserUnlockedWithWeak()
74 assertThat(mCoordinator.getLockoutStateFor(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testUserUnlockedWithWeak()
[all …]
DMultiBiometricLockoutStateTest.java46 private static final int PRIMARY_USER = 0; field in MultiBiometricLockoutStateTest
72 unlockAllBiometrics(mLockoutState, PRIMARY_USER); in unlockAllBiometrics()
76 lockoutAllBiometrics(mLockoutState, PRIMARY_USER); in lockoutAllBiometrics()
88 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testInitialStateLockedOut()
90 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testInitialStateLockedOut()
92 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testInitialStateLockedOut()
99 mLockoutState.setPermanentLockOut(PRIMARY_USER, BIOMETRIC_CONVENIENCE); in testConvenienceLockout()
100 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_STRONG)).isEqualTo( in testConvenienceLockout()
102 assertThat(mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_WEAK)).isEqualTo( in testConvenienceLockout()
105 mLockoutState.getLockoutState(PRIMARY_USER, BIOMETRIC_CONVENIENCE)).isEqualTo( in testConvenienceLockout()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/data/repository/
DCommunalSettingsRepositoryImplTest.kt65 setKeyguardFeaturesDisabled(PRIMARY_USER, KEYGUARD_DISABLE_FEATURES_NONE) in setUp()
86 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in classicFlagIsDisabled()
95 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in communalHubFlagIsDisabled()
107 PRIMARY_USER.id in hubIsDisabledByUser()
109 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in hubIsDisabledByUser()
123 PRIMARY_USER.id in hubIsDisabledByUser()
132 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in hubIsDisabledByDevicePolicy()
135 setKeyguardFeaturesDisabled(PRIMARY_USER, KEYGUARD_DISABLE_WIDGETS_ALL) in hubIsDisabledByDevicePolicy()
157 collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in hubIsEnabled_whenDisallowedByDevicePolicyForWorkProfile()
168 val enabledState by collectLastValue(underTest.getEnabledState(PRIMARY_USER)) in hubIsDisabledByUserAndDevicePolicy()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/data/
DQSPreferencesRepositoryTest.kt66 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in showLabels_updatesFromUserChange()
72 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in showLabels_updatesFromUserChange()
92 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in setShowLabels_forDifferentUser()
100 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in setShowLabels_forDifferentUser()
125 private val PRIMARY_USER = UserInfo(PRIMARY_USER_ID, "user 0", UserInfo.FLAG_MAIN) constant
128 private val USERS = listOf(PRIMARY_USER, ANOTHER_USER)
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/dreams/homecontrols/
DHomeControlsComponentInteractorTest.kt72 fakeUserRepository.setUserInfos(listOf(PRIMARY_USER, ANOTHER_USER)) in setUp()
82 setActiveUser(PRIMARY_USER) in testPanelComponentReturnsComponentNameForSelectedItemByUser()
96 setActiveUser(PRIMARY_USER) in testPanelComponentReturnsComponentNameAsInitialValueWithoutServiceUpdate()
112 setActiveUser(PRIMARY_USER) in testPanelComponentReturnsNullForHomeControlsThatDoesNotSupportPanel()
126 setActiveUser(PRIMARY_USER) in testPanelComponentReturnsNullWhenPanelIsUnauthorized()
147 setActiveUser(PRIMARY_USER) in testPanelComponentReturnsComponentNameForDifferentUsers()
168 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in testPanelComponentReturnsNullWhenControlsComponentReturnsNullForListingController()
179 setActiveUser(PRIMARY_USER) in testMonitoringUpdatesAndRestart()
223 setActiveUser(PRIMARY_USER) in testMonitoringUpdatesAndRestart_dreamEndsAfterDelay()
331 private val PRIMARY_USER = constant
DHomeControlsDreamStartableTest.kt84 userRepository.setUserInfos(listOf(PRIMARY_USER)) in setUp()
108 userRepository.setSelectedUserInfo(PRIMARY_USER) in testStartEnablesHomeControlsDreamServiceWhenPanelComponentIsNotNull()
184 private val PRIMARY_USER = constant
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/panels/domain/interactor/
DIconLabelVisibilityInteractorTest.kt69 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in changingUser_receivesCorrectShowLabels()
79 fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in changingUser_receivesCorrectShowLabels()
86 private val PRIMARY_USER = UserInfo(0, "user 0", UserInfo.FLAG_MAIN) constant
88 private val USERS = listOf(PRIMARY_USER, ANOTHER_USER)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/panels/
DSelectedComponentRepositoryTest.kt54 val PRIMARY_USER: UserHandle = UserHandle.of(0) constant
89 PRIMARY_USER.identifier to primaryUserSharedPref, in setUp()
160 val emittedValue by collectLastValue(repository.selectedComponentFlow(PRIMARY_USER)) in testEmitValueFromGetSelectedComponent()
171 val emittedValue by collectLastValue(repository.selectedComponentFlow(PRIMARY_USER)) in testEmitNullWhenRemoveSelectedComponentIsCalled()
181 val emittedValue by collectLastValue(repository.selectedComponentFlow(PRIMARY_USER)) in testChangeEmitValueChangeWhenANewComponentIsSelected()
197 collectLastValue(repository.selectedComponentFlow(PRIMARY_USER)) in testDifferentUsersWithDifferentComponentSelected()
DAuthorizedPanelsRepositoryImplTest.kt54 userTracker = kosmos.fakeUserTracker.apply { set(listOf(PRIMARY_USER, SECONDARY_USER), 0) } in setUp()
142 collectLastValue(repository.observeAuthorizedPanels(PRIMARY_USER.userHandle)) in observeAuthorizedPanels()
173 userTracker.set(listOf(PRIMARY_USER, SECONDARY_USER), 1) in observeAuthorizedPanelsForAnotherUser()
205 private val PRIMARY_USER = constant
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java85 private static final int PRIMARY_USER = 0; field in CrossProfileAppsServiceImplTest
127 mUserEnabled.put(PRIMARY_USER, true); in setupEnabledProfiles()
139 if (targetUser == PRIMARY_USER) { in setupEnabledProfiles()
142 profileUserId = PRIMARY_USER; in setupEnabledProfiles()
155 mTestInjector.setCallingUserId(PRIMARY_USER); in setupCaller()
161 mockAppsInstalled(PACKAGE_ONE, PRIMARY_USER, true); in setupPackage()
221 assertThat(targetProfiles).containsExactly(UserHandle.of(PRIMARY_USER)); in getTargetUserProfiles_fromProfile_installed()
227 mockAppsInstalled(PACKAGE_ONE, PRIMARY_USER, false); in getTargetUserProfiles_fromProfile_notInstalled()
249 UserHandle.of(PRIMARY_USER).getIdentifier(), in startActivityAsUser_currentUser()
276 UserHandle.of(PRIMARY_USER).getIdentifier(), in startAnyActivityAsUser_currentUser()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java85 private static final int PRIMARY_USER = 0; field in CrossProfileAppsServiceImplTest
127 mUserEnabled.put(PRIMARY_USER, true); in setupEnabledProfiles()
139 if (targetUser == PRIMARY_USER) { in setupEnabledProfiles()
142 profileUserId = PRIMARY_USER; in setupEnabledProfiles()
155 mTestInjector.setCallingUserId(PRIMARY_USER); in setupCaller()
161 mockAppsInstalled(PACKAGE_ONE, PRIMARY_USER, true); in setupPackage()
221 assertThat(targetProfiles).containsExactly(UserHandle.of(PRIMARY_USER)); in getTargetUserProfiles_fromProfile_installed()
227 mockAppsInstalled(PACKAGE_ONE, PRIMARY_USER, false); in getTargetUserProfiles_fromProfile_notInstalled()
249 UserHandle.of(PRIMARY_USER).getIdentifier(), in startActivityAsUser_currentUser()
276 UserHandle.of(PRIMARY_USER).getIdentifier(), in startAnyActivityAsUser_currentUser()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/
DBouncerMessageViewModelTest.kt81 kosmos.fakeUserRepository.setUserInfos(listOf(PRIMARY_USER)) in <lambda>()
166 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
203 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
240 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
264 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
279 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
293 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
316 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
339 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
376 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
[all …]
/frameworks/base/services/tests/VpnTests/java/com/android/server/
DVpnTestBase.java61 protected static final UserInfo PRIMARY_USER = new UserInfo(27, "Primary", field in VpnTestBase
71 RESTRICTED_PROFILE_A.restrictedProfileParentId = PRIMARY_USER.id;
73 MANAGED_PROFILE_A.profileGroupId = PRIMARY_USER.id;
/frameworks/base/services/tests/VpnTests/java/com/android/server/connectivity/
DVpnTest.java282 private static final Range<Integer> PRIMARY_USER_RANGE = uidRangeForUser(PRIMARY_USER.id);
472 setMockedUsers(PRIMARY_USER, SECONDARY_USER, RESTRICTED_PROFILE_A, RESTRICTED_PROFILE_B); in testRestrictedProfilesAreAddedToVpn()
474 final Vpn vpn = createVpn(PRIMARY_USER.id); in testRestrictedProfilesAreAddedToVpn()
479 vpn.createUserAndRestrictedProfilesRanges(PRIMARY_USER.id, null, null); in testRestrictedProfilesAreAddedToVpn()
487 setMockedUsers(PRIMARY_USER, MANAGED_PROFILE_A); in testManagedProfilesAreNotAddedToVpn()
489 final Vpn vpn = createVpn(PRIMARY_USER.id); in testManagedProfilesAreNotAddedToVpn()
491 PRIMARY_USER.id, null, null); in testManagedProfilesAreNotAddedToVpn()
498 setMockedUsers(PRIMARY_USER, RESTRICTED_PROFILE_A, MANAGED_PROFILE_A); in testAddUserToVpnOnlyAddsOneUser()
500 final Vpn vpn = createVpn(PRIMARY_USER.id); in testAddUserToVpnOnlyAddsOneUser()
502 vpn.addUserToRanges(ranges, PRIMARY_USER.id, null, null); in testAddUserToVpnOnlyAddsOneUser()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DScreenshotPolicyImplTest.kt45 private const val PRIMARY_USER = 2000 constant
135 userId = PRIMARY_USER,
160 userId = PRIMARY_USER,
173 userId = PRIMARY_USER,
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/domain/interactor/
DBouncerMessageInteractorTest.kt85 kosmos.fakeUserRepository.setUserInfos(listOf(PRIMARY_USER)) in <lambda>()
95 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
428 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
467 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
505 kosmos.fakeUserRepository.setSelectedUserInfo(PRIMARY_USER) in <lambda>()
578 private val PRIMARY_USER = in <lambda>() constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DBiometricSettingsRepositoryTest.kt123 userRepository.setUserInfos(listOf(PRIMARY_USER, ANOTHER_USER)) in createBiometricSettingsRepository()
124 userRepository.setSelectedUserInfo(PRIMARY_USER) in createBiometricSettingsRepository()
549 userRepository.setSelectedUserInfo(PRIMARY_USER) in userChange_isFingerprintEnrolledAndEnabledUpdated()
831 private val PRIMARY_USER = constant