Searched refs:parentUserId (Results 1 – 10 of 10) sorted by relevance
169 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument170 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()178 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument179 return createAndStartUser(" --profileOf " + parentUserId + " --managed"); in createAndStartManagedProfile()
50 int parentUserId = mDevice.getCurrentUser(); in setUp() local51 int profileUserId = createProfileUser(parentUserId, "Profile-Full"); in setUp()
76 int parentUserId = mDevice.getCurrentUser(); in setUp() local77 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()
580 private int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument581 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()595 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument597 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
203 String managedProfilePackage, int parentUserId, int profileUserId) { in ContactsTestSet() argument206 mParentUserId = parentUserId; in ContactsTestSet()
692 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument693 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()697 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument699 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()792 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument794 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
275 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local276 if (parentUserId != mUserId) { in testApplicationRestrictions()277 installAppAsUser(DELEGATE_APP_APK, parentUserId); in testApplicationRestrictions()278 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, parentUserId); in testApplicationRestrictions()280 "testCannotAccessApis", parentUserId); in testApplicationRestrictions()
173 protected int createProfile(int parentUserId) throws Exception{ in createProfile() argument174 final String command = "pm create-user --profileOf " + parentUserId in createProfile()
334 private int createProfile(int parentUserId) throws Exception { in createProfile() argument335 final String command = ShellCommandUtils.createManagedProfileUser(parentUserId, in createProfile()