| /cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ | 
| D | MultiUserTest.java | 314         Integer userId = device.getMainUserId();  in getDeviceMainUserId()  local337     private void switchUser(int userId) throws Exception {  in switchUser()
 391     private void installPossibleInstantPackage(String apkFileName, int userId, boolean instant)  in installPossibleInstantPackage()
 414     private void waitUntilImeIsInShellCommandResult(String imeId, int userId) throws Exception {  in waitUntilImeIsInShellCommandResult()
 417                 IME_COMMAND_TIMEOUT, imeId + " is not found for user #" + userId  in waitUntilImeIsInShellCommandResult()  local
 421     private void assertTestApkIsReadyAfterInstallation(int userId) throws Exception {  in assertTestApkIsReadyAfterInstallation()
 436     private void assertIme1InCurrentInputMethodInfo(int userId) throws Exception {  in assertIme1InCurrentInputMethodInfo()
 440     private void assertIme1NotCurrentInputMethodInfo(int userId) throws Exception {  in assertIme1NotCurrentInputMethodInfo()
 444     private void assertIme2InCurrentInputMethodInfo(int userId) throws Exception {  in assertIme2InCurrentInputMethodInfo()
 453     private void assertIme2NotCurrentInputMethodInfo(int userId) throws Exception {  in assertIme2NotCurrentInputMethodInfo()
 [all …]
 
 | 
| /cts/hostsidetests/backup/src/android/cts/backup/ | 
| D | BaseMultiUserBackupHostSideTest.java | 106             String userId = output.substring(output.lastIndexOf(" ")).trim();  in createProfileUser()  local115     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/tests/PhotoPicker/src/android/photopicker/cts/util/ | 
| D | PhotoPickerFilesUtils.java | 48     public static List<Uri> createImagesAndGetUris(int count, int userId)  in createImagesAndGetUris()53     public static List<Uri> createImagesAndGetUris(int count, int userId, boolean isFavorite)  in createImagesAndGetUris()
 75     public static List<Pair<Uri, String>> createImagesAndGetUriAndPath(int count, int userId,  in createImagesAndGetUriAndPath()
 90     public static Pair<Uri, String> createImage(int userId, boolean isFavorite) throws Exception {  in createImage()
 95     public static List<Uri> createMj2VideosAndGetUris(int count, int userId) throws Exception {  in createMj2VideosAndGetUris()
 108     public static List<Uri> createVideosAndGetUris(int count, int userId) throws Exception {  in createVideosAndGetUris()
 129     private static void clearMediaOwner(Uri uri, int userId) throws Exception {  in clearMediaOwner()
 135     private static Uri createMj2Video(int userId) throws Exception {  in createMj2Video()
 141     private static Uri createVideo(int userId) throws Exception {  in createVideo()
 148             String mimeType, int userId, boolean isFavorite) throws Exception {  in getPermissionAndStageMedia()
 [all …]
 
 | 
| /cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ | 
| D | BaseDevicePolicyTest.java | 278     protected void waitForUserUnlock(int userId) throws Exception {  in waitForUserUnlock()311     protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException,  in installAppAsUser()
 316     protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId)  in installAppAsUser()
 322             boolean dontKillApp, int userId)  in installAppAsUser()
 377     protected void forceStopPackageForUser(String packageName, int userId) throws Exception {  in forceStopPackageForUser()
 382     protected void fgsStopPackageForUser(String packageName, int userId) throws Exception {  in fgsStopPackageForUser()
 399     protected void startUser(int userId) throws Exception {  in startUser()
 405     protected void startUserAndWait(int userId) throws Exception {  in startUserAndWait()
 416     protected void startUser(int userId, boolean waitFlag) throws Exception {  in startUser()
 427     protected void switchUser(int userId) throws Exception {  in switchUser()
 [all …]
 
 | 
| D | EphemeralUserTest.java | 44         int userId = createUser(FLAG_EPHEMERAL);  in testCreateEphemeralUser()  local52         int userId = createUser();  in testCreateLongLivedUser()  local
 62         int userId = createUser(FLAG_EPHEMERAL);  in testRemoveEphemeralOnStop()  local
 76         int userId = createUser(FLAG_GUEST);  in testEphemeralGuestFeature()  local
 
 | 
| D | DeviceAndProfileOwnerTest.java | 244         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpn()  local256         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnLockDown()  local
 270         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnAcrossReboot()  local
 289         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnPackageUninstalled()  local
 306         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnUnsupportedPackage()  local
 331         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnUnsupportedPackageReplaced()  local
 353         int userId = getUserIdForAlwaysOnVpnTests();  in testAlwaysOnVpnPackageLogged()  local
 1374     private void executeDeviceTestClassNoRestrictBackground(String className, int userId)  in executeDeviceTestClassNoRestrictBackground()
 1389     protected void executeDeviceTestClass(String className, int userId) throws Exception {  in executeDeviceTestClass()
 1397     protected void executeDeviceTestMethod(String className, String testName, int userId)  in executeDeviceTestMethod()
 [all …]
 
 | 
| D | DeviceOwnerTest.java | 105         final int userId = createUser();  in testRemoteBugreportWithTwoUsers()  local359         final int userId = createUser();  in testNetworkLoggingWithTwoUsers()  local
 664         final int userId = createAffiliatedSecondaryUser();  in testPackageInstallCache_multiUser()  local
 840         final int userId = createUser();  in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotStopped()  local
 893         final int userId = createUser();  in testSetUserControlDisabledPackages_multiUser_reboot_verifyPackageNotFgsStopped()  local
 946     private void startProtectedPackage(int userId) throws Exception {  in startProtectedPackage()
 959     private void tryForceStoppingProtectedPackage(int userId, boolean canUserStopPackage)  in tryForceStoppingProtectedPackage()
 978     private void tryFgsStoppingProtectedPackage(int userId, boolean canUserStopPackage)  in tryFgsStoppingProtectedPackage()
 1063         int userId = createUser();  in testListForegroundAffiliatedUsers_notAffiliated()  local
 1072         int userId = createAffiliatedSecondaryUser();  in testListForegroundAffiliatedUsers_affiliated()  local
 [all …]
 
 | 
| /cts/hostsidetests/multiuser/src/android/host/multiuser/ | 
| D | EphemeralTest.java | 116         final int userId = createUser();  in testRemoveUserWhenPossible_nonRunningUserRemoved()  local134         final int userId = createUser();  in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterSwitch()  local
 156         final int userId = createUser();  in testRemoveUserWhenPossible_currentUserSetEphemeral_removeAfterReboot()  local
 182         final int userId = createUser();  in testRemoveUserWhenPossible_devicePolicyIsSet()  local
 203     private void executeRemoveUserWhenPossible(int userId, int expectedResult) throws Exception {  in executeRemoveUserWhenPossible()
 207     private void executeRemoveUserWhenPossible(int userId, boolean overrideDevicePolicy,  in executeRemoveUserWhenPossible()
 225     private void assertUserEphemeral(int userId) throws Exception {  in assertUserEphemeral()
 
 | 
| D | CreateUsersNoAppCrashesTest.java | 47         int userId = createGuestUser();  in testCanCreateGuestUser()  local55         int userId = getDevice().createUser(  in testCanCreateSecondaryUser()  local
 
 | 
| /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ | 
| D | PackageVisibilityTest.java | 88         int userId = mUsers[1];  in testUninstalledPackageVisibility()  local112                 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId);  in testUninstalledPackageVisibility()  local
 114                 ".PackageAccessTest", "testPackageAccess_notInOtherUserUninstalled", userId);  in testUninstalledPackageVisibility()  local
 117                 ".PackageAccessTest", "testPackageAccess_getPackagesCantSeeTiny", userId);  in testUninstalledPackageVisibility()  local
 143                 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId);  in testUninstalledPackageVisibility()  local
 145                 ".PackageAccessTest", "testPackageAccess_getPackagesCanSeeTiny", userId);  in testUninstalledPackageVisibility()  local
 157     private void uninstallWithKeepDataForUser(String packageName, int userId) throws Exception {  in uninstallWithKeepDataForUser()
 
 | 
| D | InstantAppUserTest.java | 243             String testMethodName, int userId)  in runDeviceTestsAsUser()245         Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId);  in runDeviceTestsAsUser()  local
 258     private void installAppAsUser(String apk, int userId) throws Exception {  in installAppAsUser()
 260         assertNull(getDevice().installPackageForUser(buildHelper.getTestFile(apk), false, userId));  in installAppAsUser()  local
 263     private void replaceFullAppAsUser(String apk, int userId) throws Exception {  in replaceFullAppAsUser()
 266                 buildHelper.getTestFile(apk), true, userId, "--full"));  in replaceFullAppAsUser()  local
 269     private void installExistingInstantAppAsUser(String packageName, int userId) throws Exception {  in installExistingInstantAppAsUser()
 278     private void installExistingFullAppAsUser(String packageName, int userId) throws Exception {  in installExistingFullAppAsUser()
 
 | 
| /cts/hostsidetests/appsearch/src/android/appsearch/cts/ | 
| D | AppSearchHostTestBase.java | 45     protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId)  in runDeviceTestAsUserInPkgA()48                 runDeviceTests(getDevice(), TARGET_PKG_A, TEST_CLASS_A, testMethod, userId,  in runDeviceTestAsUserInPkgA()  local
 52     protected void runDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId,  in runDeviceTestAsUserInPkgA()
 66     protected void runStorageAugmenterDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId)  in runStorageAugmenterDeviceTestAsUserInPkgA()
 70                         testMethod, userId, DEFAULT_INSTRUMENTATION_TIMEOUT_MS)).isTrue();  in runStorageAugmenterDeviceTestAsUserInPkgA()  local
 73     protected void runContactsIndexerDeviceTestAsUserInPkgA(@Nonnull String testMethod, int userId,  in runContactsIndexerDeviceTestAsUserInPkgA()
 87     protected void runDeviceTestAsUserInPkgB(@Nonnull String testMethod, int userId)  in runDeviceTestAsUserInPkgB()
 90                 runDeviceTests(getDevice(), TARGET_PKG_B, TEST_CLASS_B, testMethod, userId,  in runDeviceTestAsUserInPkgB()  local
 
 | 
| /cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/ | 
| D | PackageManagerMultiUserTestBase.java | 67             @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/ | 
| D | HeadlessSystemUserTest.java | 71             final int userId = user.id;  in testProfileOwnerIsSetOnNewUser()  local80                 assertProfileOwner(newUserDpm.getProfileOwner(), userId);  in testProfileOwnerIsSetOnNewUser()  local
 85                 final int userId = user.id;  in testProfileOwnerIsSetOnNewUser()  local
 94     private void assertProfileOwner(ComponentName admin, @UserIdInt int userId) {  in assertProfileOwner()
 
 | 
| /cts/hostsidetests/webkit/src/com/android/cts/webkit/ | 
| D | WebViewHostSideMultipleProfileTest.java | 100     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/statsdatom/src/android/cts/statsdatom/users/ | 
| D | UserLifecycleEventStatsTests.java | 39             int userId = userCreate(userName, true);  in testCreateGuestUser()  local48             int userId = removeGuestUser(userName, true);  in testRemoveGuestUser()  local
 65             int userId = userCreate(userName, false);  in testCreateFullUser()  local
 74             int userId = removeGuestUser(userName, false);  in testRemoveFullUser()  local
 92     protected void assertExpectedEvents(List<EventMetricData> data, int userId, String eventName) {  in assertExpectedEvents()
 
 | 
| D | UserInfoStatsTests.java | 72             int userId = userCreate(userName, true);  in testGuestUserExists()  local98             int userId = userCreate(userName, false);  in testSecondaryUserExists()  local
 120     private UserInfo findUserById(List<AtomsProto.Atom> data, int userId) {  in findUserById()
 130         int userId = getDevice().createUser(userName, isGuest, false /* ephemeral */);  in userCreate()  local
 
 | 
| D | UserLifecycleJourneyStatsTests.java | 43             int userId = userCreate(userName, true);  in testCreateGuestUser()  local53             int userId = removeGuestUser(userName, true);  in testRemoveGuestUser()  local
 72             int userId = userCreate(userName, false);  in testCreateFullUser()  local
 82             int userId = removeGuestUser(userName, false);  in testRemoveFullUser()  local
 
 | 
| /cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ | 
| D | ShellCommandUtils.java | 42     public static String getCurrentIme(int userId) {  in getCurrentIme()52     public static String setCurrentImeSync(String imeId, int userId) {  in setCurrentImeSync()
 60     public static String getEnabledImes(int userId) {  in getEnabledImes()
 68     public static String getAvailableImes(int userId) {  in getAvailableImes()
 82     public static String enableIme(String imeId, int userId) {  in enableIme()
 92     public static String disableIme(String imeId, int userId) {  in disableIme()
 103     public static String resetImes(int userId) {  in resetImes()
 127     public static String uninstallPackage(String packageName, int userId) {  in uninstallPackage()
 
 | 
| /cts/hostsidetests/car/util/src/android/car/cts/ | 
| D | CarHostJUnit4TestCase.java | 283     public UserInfo getUserInfo(int userId) throws Exception {  in getUserInfo()351         int userId = executeAndParseCommand(CREATE_USER_OUTPUT_PATTERN,  in createUser()  local
 364     protected void markUserForRemovalAfterTest(int userId) {  in markUserForRemovalAfterTest()
 371     protected void waitForUserInitialized(int userId) throws Exception {  in waitForUserInitialized()
 398     protected void assertUserInitialized(int userId) throws Exception {  in assertUserInitialized()
 407     protected boolean isUserInitialized(int userId) throws Exception {  in isUserInitialized()
 416     protected boolean isUserEphemeral(int userId) throws Exception {  in isUserEphemeral()
 425     protected void switchUser(int userId) throws Exception {  in switchUser()
 437     protected void waitUntilCurrentUser(int userId) throws Exception {  in waitUntilCurrentUser()
 481     protected boolean removeUser(int userId) throws Exception {  in removeUser()
 [all …]
 
 | 
| /cts/tests/tests/car/src/android/car/view/inputmethod/cts/ | 
| D | InputMethodManagerServiceProxyTest.java | 76         int userId = UserHandle.USER_NULL;  in testCarImmsLifecycle()  local100     private static void stopAndRemoveUser(int userId) {  in stopAndRemoveUser()
 107     private static boolean containsCarImmsForUser(int userId) {  in containsCarImmsForUser()
 135             int userId = Integer.parseInt(immsMatcher.group(1));  in parseServiceConfigDump()  local
 
 | 
| /cts/hostsidetests/media/src/android/media/cts/ | 
| D | BaseMultiUserTest.java | 145             String appFileName, String packageName, int userId, boolean asInstantApp)  in installAppAsUser()170         int userId = Integer.parseInt(tokens[tokens.length-1]);  in createAndStartUser()  local
 208     protected void removeUser(int userId) throws Exception  {  in removeUser()
 234             @Nullable String testMethodName, int userId) throws DeviceNotAvailableException {  in runDeviceTests()
 262             int userId) throws Exception {  in getSettings()
 283             @Nullable String value, int userId) throws Exception {  in putSettings()
 
 | 
| /cts/tests/tests/car/src/android/car/cts/ | 
| D | CarServiceHelperServiceUpdatableTest.java | 138             int userId = response.getUser().getIdentifier();  in testSendUserLifecycleEventAndOnUserCreated()  local186             int userId = response.getUser().getIdentifier();  in testSendUserLifecycleEventAndOnUserRemoved()  local
 214     private void assertUserLifecycleEventLogged(int eventType, int userId) throws Exception {  in assertUserLifecycleEventLogged()
 274         public void assertEventReceived(int userId, int eventType)  in assertEventReceived()
 287         public void assertEventNotReceived(int userId, int eventType)  in assertEventNotReceived()
 300         private boolean checkEvent(int userId, int eventType) {  in checkEvent()
 
 | 
| /cts/tests/appcloning/src/android/appcloning/cts/ | 
| D | AppCloningDeviceTestBase.java | 47         String userId = output.substring(output.lastIndexOf(' ') + 1)  in createAndStartUser()  local59     protected void removeUser(int userId) {  in removeUser()
 
 | 
| /cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/ | 
| D | AppBindingHostTest.java | 79     private void installAppAsUser(String appFileName, boolean grantPermissions, int userId)  in installAppAsUser()179     private void setSmsApp(String pkg, int userId) throws Throwable {  in setSmsApp()
 243             String serviceClass, int userId) throws Throwable {  in installAndCheckBound()
 253     private void checkBound(String packageName, String serviceClass, int userId) throws Throwable {  in checkBound()
 272     private void installAndCheckNotBound(String apk, String packageName, int userId,  in installAndCheckNotBound()
 283     private void checkNotBoundWithError(String packageName, int userId,  in checkNotBoundWithError()
 295     private void checkPackageNotBound(String packageName, int userId) throws Throwable {  in checkPackageNotBound()
 574     private void assertUserHasNoConnection(int userId) throws Throwable {  in assertUserHasNoConnection()
 581     private void assertUserHasNoFinder(int userId) throws Throwable {  in assertUserHasNoFinder()
 602         final int userId = getDevice().createUser("test-user");  in testSecondaryUser()  local
 
 |