Home
last modified time | relevance | path

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

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCrossProfileAppsTest.java91 assertThat(targetProfiles).doesNotContain(sDeviceState.primaryUser().userHandle()); in getTargetUserProfiles_callingFromPrimaryUser_doesNotContainPrimaryUser()
107 assertThat(targetProfiles).contains(sDeviceState.primaryUser().userHandle()); in getTargetUserProfiles_callingFromWorkProfile_containsPrimaryUser()
146 assertMainActivityLaunchedForUser(sDeviceState.primaryUser().userHandle()); in startMainActivity_callingFromWorkProfile_targetIsPrimaryUser_launches()
181 sDeviceState.primaryUser().userHandle()); in startMainActivity_activityNotExported_throwsSecurityException()
190 sDeviceState.primaryUser().userHandle()); in startMainActivity_activityNotMain_throwsSecurityException()
209 sDeviceState.primaryUser().userHandle()); in startMainActivity_callingFromPrimaryUser_targetIsPrimaryUser_throwsSecurityException()
241 sCrossProfileApps.getProfileSwitchingLabel(sDeviceState.primaryUser().userHandle()); in getProfileSwitchingLabel_callingFromPrimaryUser_targetIsPrimaryUser_throwsSecurityException()
250 sCrossProfileApps.getProfileSwitchingLabel(sDeviceState.primaryUser().userHandle()); in getProfileSwitchingLabel_callingFromPrimaryUser_targetIsSecondaryUser_throwsSecurityException()
268 sDeviceState.primaryUser().userHandle())).isNotNull(); in getProfileSwitchingLabel_callingFromWorProfile_targetIsPrimaryUser_notNull()
284 sDeviceState.primaryUser().userHandle()); in getProfileSwitchingLabelIconDrawable_callingFromPrimaryUser_targetIsPrimaryUser_throwsSecurityException()
[all …]
DCrossProfileSharingTest.java111 sTestApp.install(sDeviceState.primaryUser())) { in openingPersonalFromProfile_disallowShareIntoProfile_restrictionApplied()
137 sTestApp.install(sDeviceState.primaryUser())) { in openingPersonalFromProfile_disallowShareIntoProfile_restrictionRemoved()
183 return getResolveInfo(sDeviceState.primaryUser(), FLAG_PARENT_CAN_ACCESS_MANAGED); in getWorkToPersonalForwarder()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java259 UserHandle primaryUser = adminUsers.get(0); in bindPrimaryUserService() local
261 Log.d(TAG, "Calling primary user: " + primaryUser); in bindPrimaryUserService()
276 serviceConnection, Context.BIND_AUTO_CREATE, primaryUser); in bindPrimaryUserService() local
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUsersTest.java486 assertThat(TestApis.users().current()).isEqualTo(sDeviceState.primaryUser()); in currentUser_primaryUser_returnsCurrentUser()
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java1071 public UserReference primaryUser() {
1296 return primaryUser();