Searched refs:parentUserId (Results 1 – 9 of 9) sorted by relevance
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()
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()
567 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument568 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()572 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument574 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()592 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument594 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
264 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local265 if (parentUserId != mUserId) { in testApplicationRestrictions()266 installAppAsUser(DELEGATE_APP_APK, parentUserId); in testApplicationRestrictions()267 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, parentUserId); in testApplicationRestrictions()269 "testCannotAccessApis", parentUserId); in testApplicationRestrictions()
1791 int parentUserId, int profileUserId) { in ContactsTestSet() argument1794 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()