Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java90 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser() argument
101 "pm install -r --user " + userId + " " + remotePath); in installAppAsUser()
106 protected void startUser(int userId) throws Exception { in startUser() argument
107 String command = "am start-user " + userId; in startUser()
151 protected void removeUser(int userId) throws Exception { in removeUser() argument
152 String stopUserCommand = "am stop-user -w " + userId; in removeUser()
156 String removeUserCommand = "pm remove-user " + userId; in removeUser()
163 for (int userId : listUsers()) { in removeTestUsers()
164 if (userId != 0) { in removeTestUsers()
165 removeUser(userId); in removeTestUsers()
[all …]
DManagedProfileTest.java274 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal() argument
276 final String direction = (userId == 0) in testCrossProfileCopyPasteInternal()
285 "testCanReadAcrossProfiles", userId)); in testCrossProfileCopyPasteInternal()
287 "testIsNotified", userId)); in testCrossProfileCopyPasteInternal()
290 "testCannotReadAcrossProfiles", userId)); in testCrossProfileCopyPasteInternal()
617 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() argument
619 String command = "am start -W --user " + userId in disableActivityForUser()
627 private String changeUserRestrictionForUser(String key, String command, int userId) in changeUserRestrictionForUser() argument
629 String adbCommand = "am start -W --user " + userId in changeUserRestrictionForUser()
640 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser() argument
[all …]
DCustomDeviceOwnerTest.java102 int userId = -1; in testCannotSetDeviceOwnerWhenSecondaryUserPresent() local
105 userId = createUser(); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
108 removeUser(userId); in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
DDeviceAndProfileOwnerTest.java271 private void changeUserRestrictionForUser(String key, String command, int userId) in changeUserRestrictionForUser() argument
273 String adbCommand = "am start -W --user " + userId in changeUserRestrictionForUser()
/cts/hostsidetests/appsecurity/src/com/android/cts/appsecurity/
DUtils.java41 public static void runDeviceTests(ITestDevice device, String packageName, int userId) in runDeviceTests() argument
43 runDeviceTests(device, packageName, null, null, userId); in runDeviceTests()
52 int userId) throws DeviceNotAvailableException { in runDeviceTests() argument
53 runDeviceTests(device, packageName, testClassName, null, userId); in runDeviceTests()
62 String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTests() argument
75 if (userId != USER_OWNER) { in runDeviceTests()
77 testRunner.addInstrumentationArg("hack_key", "hack_value --user " + userId); in runDeviceTests()
144 final int userId = Integer.parseInt( in createUserOnDevice() local
146 device.executeShellCommand("am start-user " + userId); in createUserOnDevice()
147 return userId; in createUserOnDevice()
[all …]
DExternalStorageHostTest.java240 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests() argument
242 Utils.runDeviceTests(getDevice(), packageName, testClassName, userId); in runDeviceTests() local
246 int userId) throws DeviceNotAvailableException { in runDeviceTests() argument
247 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTests() local
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java74 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable() local
81 final File userPath = new File(path, userId); in testMountPointsNotWritable()
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java86 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotReadable() local
93 final File userPath = new File(path, userId); in testMountPointsNotReadable()
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java279 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testSecondaryMountPointsNotWritable() local
284 final File userPath = new File(path, userId); in testSecondaryMountPointsNotWritable()
/cts/tests/tests/media/src/android/media/cts/
DJetPlayerTest.java205 public void onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount) { in onJetUserIdUpdate() argument