Home | History | Annotate | Download | only in devicepolicy

Lines Matching refs:userId

70             @Nullable String method, int userId) throws DeviceNotAvailableException {
71 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, "." + className, method, userId);
74 private void runTests(@Nonnull String className, int userId)
76 runTests(className, null, userId);
258 private void setPoAsUser(int userId) throws Exception {
259 installAppAsUser(DEVICE_ADMIN_APK, userId);
262 userId, /* expectFailure */ false));
264 if (userId == mDeviceOwnerUserId) {
291 for (int userId : usersToCheck) {
292 runGlobalRestrictionsTest(ENSURE_GLOBAL_RESTRICTIONS_TEST, userId);
298 for (int userId : usersToCheck) {
299 runGlobalRestrictionsTest(ENSURE_NO_GLOBAL_RESTRICTIONS_TEST, userId);
305 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception {
306 runTests(GLOBAL_RESTRICTIONS_TEST_CLASS, testMethodName, userId);