Home
last modified time | relevance | path

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

123456

/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
/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.java274 protected void waitForUserUnlock(int userId) throws Exception { in waitForUserUnlock()
307 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
312 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser()
318 boolean dontKillApp, int userId) in installAppAsUser()
373 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser()
389 protected void startUser(int userId) throws Exception { in startUser()
394 protected void startUserAndWait(int userId) throws Exception { in startUserAndWait()
404 protected void startUser(int userId, boolean waitFlag) throws Exception { in startUser()
415 protected void switchUser(int userId) throws Exception { in switchUser()
436 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
DMixedDeviceOwnerTest.java94 final int userId = createSecondaryUserAsProfileOwner(); in testLockTask_unaffiliatedUser() local
354 final int userId = createUser(); in testSecurityLoggingWithTwoUsers() local
408 int userId = mDeviceOwnerUserId; in runSecurityLoggingTests() local
554 int userId, Map<String, String> params) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
586 final int userId = createUserAndWaitStart(); in createSecondaryUserAsProfileOwner() local
596 private void switchToUser(int userId) throws Exception { in switchToUser()
602 private void setUserAsAffiliatedUserToPrimary(int userId) throws Exception { in setUserAsAffiliatedUserToPrimary()
DManagedProfileTest.java604 private void assertChooserActivityInForeground(int userId) in assertChooserActivityInForeground()
609 private void assertResolverActivityInForeground(int userId) in assertResolverActivityInForeground()
614 private void assertActivityInForeground(String fullActivityName, int userId) in assertActivityInForeground()
621 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail()
626 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction()
DDeviceOwnerTest.java116 final int userId = createUser(); in testRemoteBugreportWithTwoUsers() local
377 final int userId = createUser(); in testNetworkLoggingWithTwoUsers() local
690 final int userId = createAffiliatedSecondaryUser(); in testPackageInstallCache_multiUser() local
910 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_verifyMetricIsLogged() local
937 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_verifyPackageNotStopped() local
960 final int userId = createUser(); in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped() local
1027 private void startProtectedPackage(int userId) throws Exception { in startProtectedPackage()
1072 private void tryStoppingProtectedPackage(int userId, boolean canUserStopPackage) in tryStoppingProtectedPackage()
1154 int userId = createUser(); in testListForegroundAffiliatedUsers_notAffiliated() local
1163 int userId = createAffiliatedSecondaryUser(); in testListForegroundAffiliatedUsers_affiliated() local
[all …]
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()
/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()
138 private void startUser(int userId) throws DeviceNotAvailableException { in startUser()
145 private void switchUser(int userId) throws DeviceNotAvailableException { in switchUser()
152 private void setProfileOwnwer(int userId, String componentName) in setProfileOwnwer()
162 private void stopAndRemoveUser(int userId) throws DeviceNotAvailableException { in stopAndRemoveUser()
181 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/media/src/android/media/cts/
DBaseMultiUserTest.java128 protected void installAppAsUser(String appFileName, int userId, boolean asInstantApp) in installAppAsUser()
150 int userId = Integer.parseInt(tokens[tokens.length-1]); in createAndStartUser() local
188 protected void removeUser(int userId) throws Exception { in removeUser()
214 @Nullable String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTests()
242 int userId) throws Exception { in getSettings()
263 @Nullable String value, int userId) throws Exception { in putSettings()
/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()

123456