Searched refs:parentUserId (Results 1 – 5 of 5) sorted by relevance
211 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument212 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()220 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument221 return createAndStartUser(" --profileOf " + parentUserId + " --managed"); in createAndStartManagedProfile()
165 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local166 if (parentUserId != mUserId) { in testApplicationRestrictions()167 installAppAsUser(DELEGATE_APP_APK, parentUserId); in testApplicationRestrictions()168 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, parentUserId); in testApplicationRestrictions()170 "testCannotAccessApis", parentUserId); in testApplicationRestrictions()
434 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument435 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()439 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument441 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()459 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument461 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
1032 int parentUserId, int profileUserId) { in ContactsTestSet() argument1035 mParentUserId = parentUserId; in ContactsTestSet()
196 protected int createProfile(int parentUserId) throws Exception{ in createProfile() argument197 final String command = "pm create-user --profileOf " + parentUserId in createProfile()