Searched refs:parentUserId (Results 1 – 9 of 9) sorted by relevance
208 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument209 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()217 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument218 return createAndStartUser(" --profileOf " + parentUserId + " --managed"); in createAndStartManagedProfile()
50 int parentUserId = mDevice.getCurrentUser(); in setUp() local51 int profileUserId = createProfileUser(parentUserId, "Profile-Full"); in setUp()
77 int parentUserId = mDevice.getCurrentUser(); in setUp() local78 int profileUserId = createProfileUser(parentUserId, "Profile-Jobs"); in setUp()
146 public static String createManagedProfileUser(int parentUserId, String userName) { in createManagedProfileUser() argument147 return "pm create-user --profileOf " + parentUserId + " --managed " + userName; in createManagedProfileUser()
640 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument641 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()645 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument647 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()665 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument667 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
266 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local267 if (parentUserId != mUserId) { in testApplicationRestrictions()268 installAppAsUser(DELEGATE_APP_APK, parentUserId); in testApplicationRestrictions()269 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, parentUserId); in testApplicationRestrictions()271 "testCannotAccessApis", parentUserId); in testApplicationRestrictions()
1782 int parentUserId, int profileUserId) { in ContactsTestSet() argument1785 mParentUserId = parentUserId; in ContactsTestSet()
173 protected int createProfile(int parentUserId) throws Exception{ in createProfile() argument174 final String command = "pm create-user --profileOf " + parentUserId in createProfile()
328 private int createProfile(int parentUserId) throws Exception { in createProfile() argument329 final String command = ShellCommandUtils.createManagedProfileUser(parentUserId, in createProfile()