Home
last modified time | relevance | path

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

/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/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/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java567 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
568 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
572 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument
574 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()
592 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
594 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
DDeviceAndProfileOwnerTest.java264 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local
265 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()
DManagedProfileTest.java1791 int parentUserId, int profileUserId) { in ContactsTestSet() argument
1794 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()