Home
last modified time | relevance | path

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

/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java169 protected int createAndStartRestrictedProfile(int parentUserId) throws Exception { in createAndStartRestrictedProfile() argument
170 return createAndStartUser(" --profileOf " + parentUserId + " --restricted"); in createAndStartRestrictedProfile()
178 protected int createAndStartManagedProfile(int parentUserId) throws Exception { in createAndStartManagedProfile() argument
179 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.java76 int parentUserId = mDevice.getCurrentUser(); in setUp() local
77 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/appsecurity/src/android/appsecurity/cts/
DResumeOnRebootHostTest.java580 private int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
581 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
595 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
597 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DManagedProfileContactsTest.java203 String managedProfilePackage, int parentUserId, int profileUserId) { in ContactsTestSet() argument
206 mParentUserId = parentUserId; in ContactsTestSet()
DBaseDevicePolicyTest.java692 protected int createManagedProfile(int parentUserId) throws DeviceNotAvailableException { in createManagedProfile() argument
693 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in createManagedProfile()
697 protected void assertCannotCreateManagedProfile(int parentUserId) in assertCannotCreateManagedProfile() argument
699 String commandOutput = getCreateManagedProfileCommandOutput(parentUserId); in assertCannotCreateManagedProfile()
792 private String getCreateManagedProfileCommandOutput(int parentUserId) in getCreateManagedProfileCommandOutput() argument
794 String command = "pm create-user --profileOf " + parentUserId + " --managed " in getCreateManagedProfileCommandOutput()
DDeviceAndProfileOwnerTest.java275 int parentUserId = getPrimaryUser(); in testApplicationRestrictions() local
276 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()
/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.java334 private int createProfile(int parentUserId) throws Exception { in createProfile() argument
335 final String command = ShellCommandUtils.createManagedProfileUser(parentUserId, in createProfile()