Searched refs:primaryUser (Results 1 – 5 of 5) sorted by relevance
91 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 …]
111 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()
259 UserHandle primaryUser = adminUsers.get(0); in bindPrimaryUserService() local261 Log.d(TAG, "Calling primary user: " + primaryUser); in bindPrimaryUserService()276 serviceConnection, Context.BIND_AUTO_CREATE, primaryUser); in bindPrimaryUserService() local
486 assertThat(TestApis.users().current()).isEqualTo(sDeviceState.primaryUser()); in currentUser_primaryUser_returnsCurrentUser()
1071 public UserReference primaryUser() {1296 return primaryUser();