Home
last modified time | relevance | path

Searched defs:userId (Results 1 – 17 of 17) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DEphemeralUserTest.java41 int userId = createUser(FLAG_EPHEMERAL); in testCreateEphemeralUser() local
51 int userId = createUser(); in testCreateLongLivedUser() local
65 int userId = createUser(FLAG_EPHEMERAL); in testProfileInheritsEphemeral() local
78 int userId = createUser(FLAG_EPHEMERAL); in testRemoveEphemeralOnStop() local
94 int userId = createUser(FLAG_GUEST); in testEphemeralGuestFeature() local
DBaseDevicePolicyTest.java125 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
130 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser()
140 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser()
152 protected void startUser(int userId) throws Exception { in startUser()
156 protected void switchUser(int userId) throws Exception { in switchUser()
165 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags()
191 protected void stopUser(int userId) throws Exception { in stopUser()
198 protected void removeUser(int userId) throws Exception { in removeUser()
219 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser()
226 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser()
[all …]
DDeviceOwnerTest.java114 int userId = -1; in testRemoteBugreportWithTwoUsers() local
154 int userId = createUser(); in testRemoveUsersOnSetForceEphemeralUsers() local
177 int userId = createUser(); in testRemoveUsersOnSetForceEphemeralUsersWithUserSwitch() local
214 int userId = createUser(); in testCreateUserAfterSetForceEphemeralUsers() local
293 int userId = -1; in testSecurityLoggingWithTwoUsers() local
DUserRestrictionsTest.java60 @Nullable String method, int userId) throws DeviceNotAvailableException { in runTests()
64 private boolean runTests(@Nonnull String className, int userId) in runTests()
DManagedProfileTest.java291 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal()
612 private void setDirectoryPrefix(String directoryName, int userId) in setDirectoryPrefix()
723 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser()
733 private String changeUserRestrictionForUser(String key, String command, int userId) in changeUserRestrictionForUser()
746 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser()
759 private void changeVerificationStatus(int userId, String packageName, String status) in changeVerificationStatus()
861 String testMethodName, Integer userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
DCustomManagedProfileTest.java51 private void assertIsProvisioningAllowed(boolean expected, int userId) in assertIsProvisioningAllowed()
DCustomDeviceOwnerTest.java102 int userId = -1; in testCannotSetDeviceOwnerWhenSecondaryUserPresent() local
DDeviceAndProfileOwnerTest.java591 private void changeUserRestrictionForUser(String key, String command, int userId) in changeUserRestrictionForUser()
596 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement()
608 private void changePolicy(String command, String extras, int userId) in changePolicy()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java41 public static void runDeviceTests(ITestDevice device, String packageName, int userId) in runDeviceTests()
52 int userId) throws DeviceNotAvailableException { in runDeviceTests()
62 String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTests()
146 final int userId = Integer.parseInt( in createUserOnDevice() local
158 private static void removeUserOnDevice(ITestDevice device, int userId) in removeUserOnDevice()
DExternalStorageHostTest.java247 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests()
249 Utils.runDeviceTests(getDevice(), packageName, testClassName, userId); in runDeviceTests() local
253 int userId) throws DeviceNotAvailableException { in runDeviceTests()
254 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTests() local
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java150 private void installTestAppForUser(int userId) throws Exception { in installTestAppForUser()
168 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser()
198 private void setTestAppAsDefaultSmsAppForUser(boolean setToSmsApp, int userId) in setTestAppAsDefaultSmsAppForUser()
207 private int getUserSerialNumber(int userId) throws DeviceNotAvailableException { in getUserSerialNumber()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java96 protected void clearShortcuts(String packageName, int userId) throws Exception { in clearShortcuts()
102 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
118 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser()
125 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser()
132 @Nullable String testMethodName, int userId, in runDeviceTestsAsUser()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable() local
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java69 protected int createRestrictedProfile(int userId) in createRestrictedProfile()
/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
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java290 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testSecondaryMountPointsNotWritable() local
/cts/tests/tests/media/src/android/media/cts/
DJetPlayerTest.java214 public void onJetUserIdUpdate(JetPlayer player, int userId, int repeatCount) { in onJetUserIdUpdate()