Home
last modified time | relevance | path

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

12345

/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/
DMultiUserTest.java288 private void switchUser(int userId) throws Exception { in switchUser()
325 private void installPossibleInstantPackage(String apkFileName, int userId, boolean instant) in installPossibleInstantPackage()
348 private void waitUntilImeIsInShellCommandResult(String imeId, int userId) throws Exception { in waitUntilImeIsInShellCommandResult()
351 IME_COMMAND_TIMEOUT, imeId + " is not found for user #" + userId in waitUntilImeIsInShellCommandResult() local
355 private void assertTestApkIsReadyAfterInstallation(int userId) throws Exception { in assertTestApkIsReadyAfterInstallation()
370 private void assertIme1ExistsInApiResult(int userId) throws Exception { in assertIme1ExistsInApiResult()
374 private void assertIme1NotExistInApiResult(int userId) throws Exception { in assertIme1NotExistInApiResult()
378 private void assertIme1EnabledInApiResult(int userId) throws Exception { in assertIme1EnabledInApiResult()
382 private void assertIme1NotEnabledInApiResult(int userId) throws Exception { in assertIme1NotEnabledInApiResult()
386 private void assertIme1Selected(int userId) { in assertIme1Selected()
[all …]
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java106 String userId = output.substring(output.lastIndexOf(" ")).trim(); in createProfileUser() local
115 void startUser(int userId) throws DeviceNotAvailableException { in startUser()
123 void startUserAndInitializeForBackup(int userId) in startUserAndInitializeForBackup()
140 String switchUserToLocalTransportAndAssertSuccess(int userId) in switchUserToLocalTransportAndAssertSuccess()
160 String transport, int userId) throws DeviceNotAvailableException { in userHasBackupTransport()
171 void clearBackupDataInTransportForUser(String packageName, String transport, int userId) in clearBackupDataInTransportForUser()
178 void clearPackageDataAsUser(String packageName, int userId) throws DeviceNotAvailableException { in clearPackageDataAsUser()
183 void installPackageAsUser(String apk, int userId) in installPackageAsUser()
189 void uninstallPackageAsUser(String packageName, int userId) throws DeviceNotAvailableException { in uninstallPackageAsUser()
198 void installExistingPackageAsUser(String packageName, int userId) in installExistingPackageAsUser()
[all …]
/cts/hostsidetests/appsearch/src/android/appsearch/cts/
DAppSearchHostTestBase.java42 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runDeviceTestAsUserInPkgA()
45 runDeviceTests(getDevice(), TARGET_PKG_A, TEST_CLASS_A, testMethod, userId, in runDeviceTestAsUserInPkgA() local
49 protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId, in runDeviceTestAsUserInPkgA()
63 protected void runStorageAugmenterDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runStorageAugmenterDeviceTestAsUserInPkgA()
67 testMethod, userId, DEFAULT_INSTRUMENTATION_TIMEOUT_MS)).isTrue(); in runStorageAugmenterDeviceTestAsUserInPkgA() local
70 protected void runDeviceTestAsUserInPkgB(@Nonnull String testMethod, int userId) in runDeviceTestAsUserInPkgB()
73 runDeviceTests(getDevice(), TARGET_PKG_B, TEST_CLASS_B, testMethod, userId, in runDeviceTestAsUserInPkgB() local
DAppSearchInstantAppTest.java55 private void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId) in runDeviceTestAsUserInPkgA()
58 runDeviceTests(getDevice(), TARGET_PKG_A, TEST_CLASS_A, testMethod, userId, in runDeviceTestAsUserInPkgA() local
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageVisibilityTest.java84 int userId = mUsers[1]; in testUninstalledPackageVisibility() local
108 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId); in testUninstalledPackageVisibility() local
110 ".PackageAccessTest", "testPackageAccess_notInOtherUserUninstalled", userId); in testUninstalledPackageVisibility() local
113 ".PackageAccessTest", "testPackageAccess_getPackagesCantSeeTiny", userId); in testUninstalledPackageVisibility() local
139 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId); in testUninstalledPackageVisibility() local
141 ".PackageAccessTest", "testPackageAccess_getPackagesCanSeeTiny", userId); in testUninstalledPackageVisibility() local
153 private void uninstallWithKeepDataForUser(String packageName, int userId) throws Exception { in uninstallWithKeepDataForUser()
DInstantAppUserTest.java241 String testMethodName, int userId) in runDeviceTestsAsUser()
243 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTestsAsUser() local
256 private void installAppAsUser(String apk, int userId) throws Exception { in installAppAsUser()
258 assertNull(getDevice().installPackageForUser(buildHelper.getTestFile(apk), false, userId)); in installAppAsUser() local
261 private void replaceFullAppAsUser(String apk, int userId) throws Exception { in replaceFullAppAsUser()
264 buildHelper.getTestFile(apk), true, userId, "--full")); in replaceFullAppAsUser() local
267 private void installExistingInstantAppAsUser(String packageName, int userId) throws Exception { in installExistingInstantAppAsUser()
276 private void installExistingFullAppAsUser(String packageName, int userId) throws Exception { in installExistingFullAppAsUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java280 protected void waitForUserUnlock(int userId) throws Exception { in waitForUserUnlock()
313 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
318 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser()
324 boolean dontKillApp, int userId) in installAppAsUser()
379 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser()
396 protected void startUser(int userId) throws Exception { in startUser()
402 protected void startUserAndWait(int userId) throws Exception { in startUserAndWait()
413 protected void startUser(int userId, boolean waitFlag) throws Exception { in startUser()
424 protected void switchUser(int userId) throws Exception { in switchUser()
446 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags()
[all …]
DEphemeralUserTest.java44 int userId = createUser(FLAG_EPHEMERAL); in testCreateEphemeralUser() local
52 int userId = createUser(); in testCreateLongLivedUser() local
62 int userId = createUser(FLAG_EPHEMERAL); in testRemoveEphemeralOnStop() local
76 int userId = createUser(FLAG_GUEST); in testEphemeralGuestFeature() local
DManagedProfileTest.java586 private void assertChooserActivityInForeground(int userId) in assertChooserActivityInForeground()
591 private void assertResolverActivityInForeground(int userId) in assertResolverActivityInForeground()
596 private void assertActivityInForeground(String fullActivityName, int userId) in assertActivityInForeground()
603 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail()
608 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction()
DUserRestrictionsTest.java81 @Nullable String method, int userId) throws DeviceNotAvailableException { in runTests()
85 private void runTests(@Nonnull String className, int userId) in runTests()
270 private void setPoAsUser(int userId) throws Exception { in setPoAsUser()
323 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception { in runGlobalRestrictionsTest()
DBaseLauncherAppsTest.java38 protected void installTestApps(int userId) throws Exception { in installTestApps()
49 protected void startCallbackService(int userId) throws Exception { in startCallbackService()
DDeviceAndProfileOwnerTest.java368 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpn() local
380 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpnLockDown() local
394 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpnAcrossReboot() local
413 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpnPackageUninstalled() local
430 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpnUnsupportedPackage() local
455 int userId = getUserIdForAlwaysOnVpnTests(); in testAlwaysOnVpnUnsupportedPackageReplaced() local
1035 final int userId = createUser(); in testCannotRemoveUserIfRestrictionSet() local
1733 private void executeDeviceTestClassNoRestrictBackground(String className, int userId) in executeDeviceTestClassNoRestrictBackground()
1748 protected void executeDeviceTestClass(String className, int userId) throws Exception { in executeDeviceTestClass()
1756 protected void executeDeviceTestMethod(String className, String testName, int userId) in executeDeviceTestMethod()
[all …]
DOrgOwnedProfileOwnerTest.java366 private void sendWipeProfileBroadcast(int userId) throws Exception { in sendWipeProfileBroadcast()
421 private void addSmsRole(String app, int userId) throws Exception { in addSmsRole()
426 private void removeSmsRole(String app, int userId) throws Exception { in removeSmsRole()
475 private void setupIme(String imeComponent, int userId) throws Exception { in setupIme()
503 private void takeScreenCaptureAsUser(int userId, String testMethodName) throws Exception { in takeScreenCaptureAsUser()
530 private void assertHasNoUser(int userId) throws DeviceNotAvailableException { in assertHasNoUser()
545 private void setPoAsUser(int userId) throws Exception { in setPoAsUser()
764 private void waitForUserStopped(int userId) throws Exception { in waitForUserStopped()
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DPackageManagerMultiUserTestBase.java67 @Nullable String testMethodName, int userId, in runDeviceTestAsUser()
79 userId, in runDeviceTestAsUser() local
88 protected void runDeviceTestAsUser(String testMethodName, int userId, in runDeviceTestAsUser()
104 int userId = Integer.parseInt(tokens[tokens.length - 1]); in createUser() local
111 protected void setupUser(int userId) throws Exception { in setupUser()
115 protected void removeUser(int userId) throws Exception { in removeUser()
122 protected void installExistingPackageForUser(String pkgName, int userId) throws Exception { in installExistingPackageForUser()
129 protected boolean isPackageInstalledForUser(String pkgName, int userId) throws Exception { in isPackageInstalledForUser()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DHeadlessSystemUserTest.java71 final int userId = user.id; in testProfileOwnerIsSetOnNewUser() local
79 eventually(() -> assertProfileOwner(newUserDpm.getProfileOwner(), userId)); in testProfileOwnerIsSetOnNewUser() local
83 final int userId = user.id; in testProfileOwnerIsSetOnNewUser() local
92 private void assertProfileOwner(ComponentName admin, @UserIdInt int userId) { in assertProfileOwner()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DEphemeralTest.java104 final int userId = createUser(); in testRemoveUserOrSetEphemeral_nonRunningUserRemoved() local
121 final int userId = createUser(); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterSwitch() local
142 final int userId = createUser(); in testRemoveUserOrSetEphemeral_currentUserSetEphemeral_removeAfterReboot() local
152 private void executeRemoveUserOrSetEphemeralAdbCommand(int userId) throws Exception { in executeRemoveUserOrSetEphemeralAdbCommand()
156 private void assertUserEphemeral(int userId) throws Exception { in assertUserEphemeral()
DCreateUsersNoAppCrashesTest.java43 int userId = getDevice().createUser( in testCanCreateGuestUser() local
54 int userId = getDevice().createUser( in testCanCreateSecondaryUser() local
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/
DShellCommandUtils.java40 public static String getCurrentIme(int userId) { in getCurrentIme()
50 public static String setCurrentImeSync(String imeId, int userId) { in setCurrentImeSync()
58 public static String getEnabledImes(int userId) { in getEnabledImes()
66 public static String getAvailableImes(int userId) { in getAvailableImes()
80 public static String enableIme(String imeId, int userId) { in enableIme()
90 public static String disableIme(String imeId, int userId) { in disableIme()
101 public static String resetImes(int userId) { in resetImes()
125 public static String uninstallPackage(String packageName, int userId) { in uninstallPackage()
/cts/hostsidetests/webkit/src/com/android/cts/webkit/
DWebViewHostSideMultipleProfileTest.java100 private void installTestApkForUser(int userId) throws DeviceNotAvailableException { in installTestApkForUser()
142 private void startUser(int userId) throws DeviceNotAvailableException { in startUser()
149 private void switchUser(int userId) throws DeviceNotAvailableException { in switchUser()
156 private void setProfileOwnwer(int userId, String componentName) in setProfileOwnwer()
166 private void stopAndRemoveUser(int userId) throws DeviceNotAvailableException { in stopAndRemoveUser()
185 String methodName, int userId) throws DeviceNotAvailableException { in assertWebViewDeviceTestAsUserPasses()
/cts/hostsidetests/car/src/android/car/cts/
DCarHostJUnit4TestCase.java244 public UserInfo getUserInfo(int userId) throws Exception { in getUserInfo()
291 int userId = executeAndParseCommand(CREATE_USER_OUTPUT_PATTERN, in createUser() local
303 protected void markUserForRemovalAfterTest(int userId) { in markUserForRemovalAfterTest()
310 protected void waitForUserInitialized(int userId) throws Exception { in waitForUserInitialized()
337 protected void assertUserInitialized(int userId) throws Exception { in assertUserInitialized()
346 protected boolean isUserInitialized(int userId) throws Exception { in isUserInitialized()
355 protected void switchUser(int userId) throws Exception { in switchUser()
367 protected void waitUntilCurrentUser(int userId) throws Exception { in waitUntilCurrentUser()
378 protected void removeUser(int userId) throws Exception { in removeUser()
392 int userId = Integer.parseInt(matcher.group(1)); in removeUsers() local
[all …]
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java61 int userId = UserHandle.myUserId(); in testSetEnabled() local
73 int userId = UserHandle.myUserId(); in testSetEnabledExclusiveInCategory() local
85 int userId = UserHandle.myUserId(); in testGetOverlayInfosForTarget() local
/cts/tests/translation/src/android/translation/cts/
DHelper.java70 final int userId = UserHandle.myUserId(); in setTemporaryTranslationService() local
78 final int userId = UserHandle.myUserId(); in resetTemporaryTranslationService() local
90 final int userId = UserHandle.myUserId(); in setTemporaryContentCaptureService() local
98 final int userId = UserHandle.myUserId(); in resetTemporaryContentCaptureService() local
109 final int userId = UserHandle.myUserId(); in setDefaultContentCaptureServiceEnabled() local
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/
DAppBindingHostTest.java78 private void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser()
178 private void setSmsApp(String pkg, int userId) throws Exception { in setSmsApp()
229 String serviceClass, int userId) throws Throwable { in installAndCheckBound()
239 private void checkBound(String packageName, String serviceClass, int userId) throws Throwable { in checkBound()
258 private void installAndCheckNotBound(String apk, String packageName, int userId, in installAndCheckNotBound()
269 private void checkNotBoundWithError(String packageName, int userId, in checkNotBoundWithError()
281 private void checkPackageNotBound(String packageName, int userId) throws Throwable { in checkPackageNotBound()
560 private void assertUserHasNoConnection(int userId) throws Throwable { in assertUserHasNoConnection()
567 private void assertUserHasNoFinder(int userId) throws Throwable { in assertUserHasNoFinder()
588 final int userId = getDevice().createUser("test-user"); in testSecondaryUser() local
/cts/tests/app/src/android/app/cts/
DUserHandleTest.java25 private static void assertSameUserHandle(int userId) { in assertSameUserHandle()
42 private static void assertParcel(int userId) { in assertParcel()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java148 protected void startUserAndWait(int userId) throws Exception { in startUserAndWait()
175 private void installTestAppForUser(int userId) throws Exception { in installTestAppForUser()
202 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser()
232 private void setTestAppAsDefaultSmsAppForUser(boolean setToSmsApp, int userId) in setTestAppAsDefaultSmsAppForUser()
241 private int getUserSerialNumber(int userId) throws DeviceNotAvailableException { in getUserSerialNumber()

12345