Home
last modified time | relevance | path

Searched refs:parentUserId (Results 1 – 10 of 10) sorted by relevance

/cts/tests/appcloning/src/android/appcloning/cts/
DAppCloningDeviceTestBase.java35 protected int createAndStartUser(String name, String type, String parentUserId) { in createAndStartUser() argument
41 command = "pm create-user --profileOf " + parentUserId + " --user-type " + type in createAndStartUser()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java191 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument
192 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()
200 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument
201 return createAndStartUser(" --profileOf " + parentUserId + " --managed"); in createAndStartManagedProfile()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/contacts/
DManagedProfileContactsAccessTest.java135 protected static int createManagedProfile(String parentUserId) in createManagedProfile() argument
137 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
151 private static String getCreateManagedProfileCommandOutput(String parentUserId) in getCreateManagedProfileCommandOutput() argument
153 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
/cts/hostsidetests/backup/src/android/cts/backup/
DProfileFullBackupRestoreHostSideTest.java50 int parentUserId = mDevice.getCurrentUser(); in setUp() local
51 int profileUserId = createProfileUser(parentUserId, "Profile-Full"); in setUp()
DProfileScheduledJobHostSideTest.java80 int parentUserId = mDevice.getCurrentUser(); in setUp() local
81 int profileUserId = createProfileUser(parentUserId, "Profile-Jobs"); in setUp()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java135 public static String createManagedProfileUser(int parentUserId, String userName) { in createManagedProfileUser() argument
136 return "pm create-user --profileOf " + parentUserId + " --managed " + userName; in createManagedProfileUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java532 private int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
533 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
547 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
549 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileContactsTest.java210 String managedProfilePackage, int parentUserId, int profileUserId) { in ContactsTestSet() argument
213 mParentUserId = parentUserId; in ContactsTestSet()
DBaseDevicePolicyTest.java687 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
688 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
692 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument
694 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()
797 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
799 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java173 protected int createProfile(int parentUserId) throws Exception{ in createProfile() argument
174 final String command = "pm create-user --profileOf " + parentUserId in createProfile()