Home
last modified time | relevance | path

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

/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java208 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument
209 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()
217 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument
218 return createAndStartUser(" --profileOf " + parentUserId + " --managed"); in createAndStartManagedProfile()
/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.java77 int parentUserId = mDevice.getCurrentUser(); in setUp() local
78 int profileUserId = createProfileUser(parentUserId, "Profile-Jobs"); in setUp()
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java146 public static String createManagedProfileUser(int parentUserId, String userName) { in createManagedProfileUser() argument
147 return "pm create-user --profileOf " + parentUserId + " --managed " + userName; in createManagedProfileUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java640 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
641 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
645 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument
647 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()
665 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
667 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
DDeviceAndProfileOwnerTest.java266 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local
267 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()
DManagedProfileTest.java1782 int parentUserId, int profileUserId) { in ContactsTestSet() argument
1785 mParentUserId = parentUserId; in ContactsTestSet()
/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()
/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DMultiUserTest.java328 private int createProfile(int parentUserId) throws Exception { in createProfile() argument
329 final String command = ShellCommandUtils.createManagedProfileUser(parentUserId, in createProfile()