/cts/hostsidetests/inputmethodservice/hostside/src/android/inputmethodservice/cts/hostside/ |
D | MultiUserTest.java | 282 private void switchUser(int userId) throws Exception { in switchUser() 319 private void installPossibleInstantPackage(String apkFileName, int userId, boolean instant) in installPossibleInstantPackage() 342 private void waitUntilImeIsInShellCommandResult(String imeId, int userId) throws Exception { in waitUntilImeIsInShellCommandResult() 345 IME_COMMAND_TIMEOUT, imeId + " is not found for user #" + userId in waitUntilImeIsInShellCommandResult() local 349 private void assertTestApkIsReadyAfterInstallation(int userId) throws Exception { in assertTestApkIsReadyAfterInstallation() 364 private void assertIme1ExistsInApiResult(int userId) throws Exception { in assertIme1ExistsInApiResult() 368 private void assertIme1NotExistInApiResult(int userId) throws Exception { in assertIme1NotExistInApiResult() 372 private void assertIme1EnabledInApiResult(int userId) throws Exception { in assertIme1EnabledInApiResult() 376 private void assertIme1NotEnabledInApiResult(int userId) throws Exception { in assertIme1NotEnabledInApiResult() 380 private void assertIme1Selected(int userId) { in assertIme1Selected() [all …]
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BaseMultiUserBackupHostSideTest.java | 107 String userId = output.substring(output.lastIndexOf(" ")).trim(); in createProfileUser() local 116 void startUser(int userId) throws DeviceNotAvailableException { in startUser() 124 void startUserAndInitializeForBackup(int userId) in startUserAndInitializeForBackup() 141 String switchUserToLocalTransportAndAssertSuccess(int userId) throws IOException { in switchUserToLocalTransportAndAssertSuccess() 159 void clearBackupDataInTransportForUser(String packageName, String transport, int userId) in clearBackupDataInTransportForUser() 166 void clearPackageDataAsUser(String packageName, int userId) throws DeviceNotAvailableException { in clearPackageDataAsUser() 171 void installPackageAsUser(String apk, int userId) in installPackageAsUser() 177 void uninstallPackageAsUser(String packageName, int userId) throws DeviceNotAvailableException { in uninstallPackageAsUser() 186 void installExistingPackageAsUser(String packageName, int userId) in installExistingPackageAsUser() 197 void installExistingPackageAsUserWaitTillComplete(String packageName, int userId) in installExistingPackageAsUserWaitTillComplete() [all …]
|
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 207 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser() 212 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() 222 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser() 234 protected void startUser(int userId) throws Exception { in startUser() 245 protected void switchUser(int userId) throws Exception { in switchUser() 258 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags() 304 private void stopUserAsync(int userId) throws Exception { in stopUserAsync() 311 protected void stopUser(int userId) throws Exception { in stopUser() 354 protected void removeUser(int userId) throws Exception { in removeUser() 407 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() [all …]
|
D | EphemeralUserTest.java | 41 int userId = createUser(FLAG_EPHEMERAL); in testCreateEphemeralUser() local 51 int userId = createUser(); in testCreateLongLivedUser() local 66 int userId = createUser(FLAG_EPHEMERAL); in testProfileInheritsEphemeral() local 79 int userId = createUser(FLAG_EPHEMERAL); in testRemoveEphemeralOnStop() local 95 int userId = createUser(FLAG_GUEST); in testEphemeralGuestFeature() local
|
D | BaseLauncherAppsTest.java | 38 protected void installTestApps(int userId) throws Exception { in installTestApps() 49 protected void startCallbackService(int userId) throws Exception { in startCallbackService()
|
D | UserRestrictionsTest.java | 72 @Nullable String method, int userId) throws DeviceNotAvailableException { in runTests() 76 private void runTests(@Nonnull String className, int userId) in runTests() 260 private void setPoAsUser(int userId) throws Exception { in setPoAsUser() 307 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception { in runGlobalRestrictionsTest()
|
D | DeviceOwnerTest.java | 173 final int userId = createUser(); in testRemoteBugreportWithTwoUsers() local 431 final int userId = createUser(); in testSecurityLoggingWithTwoUsers() local 518 final int userId = createUser(); in testNetworkLoggingWithTwoUsers() local 649 final int userId = createUser(); in testLockTask_unaffiliatedUser() local 674 final int userId = createAffiliatedSecondaryUser(); in testLockTask_affiliatedSecondaryUser() local 958 final int userId = createAffiliatedSecondaryUser(); in testPackageInstallCache_multiUser() local 1138 private void executeAffiliatedProfileOwnerTest(String testClassName, int userId) in executeAffiliatedProfileOwnerTest() 1156 final int userId = createUser(); in createAffiliatedSecondaryUser() local
|
D | ManagedProfileTest.java | 362 private void runProfileTimeoutTest(String method, int userId) in runProfileTimeoutTest() 703 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal() 1092 private void setDirectoryPrefix(String directoryName, int userId) in setDirectoryPrefix() 1192 private void givePackageWriteSettingsPermission(int userId, String pkg) throws Exception { in givePackageWriteSettingsPermission() 1657 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() 1667 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 1672 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction() 1684 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser() 1697 private void changeVerificationStatus(int userId, String packageName, String status) in changeVerificationStatus() 1799 String testMethodName, Integer userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
|
D | CustomManagedProfileTest.java | 51 private void assertIsProvisioningAllowed(boolean expected, int userId) in assertIsProvisioningAllowed()
|
D | DeviceAndProfileOwnerTest.java | 1116 final int userId = createUser(); in testCannotRemoveUserIfRestrictionSet() local 1798 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 1803 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement() 1830 private void setInstallPackageAppOps(String packageName, boolean allowed, int userId) in setInstallPackageAppOps() 1838 private void changePolicyOrFail(String command, String extras, int userId) in changePolicyOrFail() 1846 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser() 1851 protected void setScreenCaptureDisabled(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled() 1870 protected void setScreenCaptureDisabled_assist(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled_assist() 1906 private void allowNotificationPolicyAccess(String packageName, int userId) in allowNotificationPolicyAccess() 1919 private void disallowNotificationPolicyAccess(String packageName, int userId) in disallowNotificationPolicyAccess() [all …]
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PackageVisibilityTest.java | 84 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 136 ".PackageAccessTest", "testPackageAccess_getPackagesCanSeeTiny", userId); in testUninstalledPackageVisibility() local 148 private void uninstallWithKeepDataForUser(String packageName, int userId) throws Exception { in uninstallWithKeepDataForUser()
|
D | InstantAppUserTest.java | 241 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()
|
D | BaseAppSecurityTest.java | 53 protected void installTestAppForUser(String apk, int userId) throws Exception { in installTestAppForUser() 57 protected void installTestAppForUser(String apk, boolean instant, int userId) throws Exception { in installTestAppForUser() 82 protected boolean isAppVisibleForUser(String packageName, int userId, in isAppVisibleForUser()
|
D | ExternalStorageHostTest.java | 679 private void updatePermissions(String packageName, int userId, String[] permissions, in updatePermissions() 689 private void updateAppOp(String packageName, int userId, String appOp, boolean allow) in updateAppOp() 694 private void updateAppOp(String packageName, boolean targetsUid, int userId, in updateAppOp() 710 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests() 712 runDeviceTests(getDevice(), packageName, testClassName, null, userId, null); in runDeviceTests() local 716 int userId) throws DeviceNotAvailableException { in runDeviceTests() 717 runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId, null); in runDeviceTests() local
|
/cts/hostsidetests/inputmethodservice/common/src/android/inputmethodservice/cts/common/test/ |
D | ShellCommandUtils.java | 40 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/tests/tests/content/src/android/content/om/cts/ |
D | OverlayManagerTest.java | 61 int userId = UserHandle.myUserId(); in testSetEnabled() local 73 int userId = UserHandle.myUserId(); in testSetEnabledExclusiveInCategory() local 85 int userId = UserHandle.myUserId(); in testGetOverlayInfosForTarget() local
|
/cts/hostsidetests/appbinding/hostside/src/com/android/cts/appbinding/ |
D | AppBindingHostTest.java | 64 private void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() 164 private void setSmsApp(String pkg, int userId) throws Exception { in setSmsApp() 218 String serviceClass, int userId) throws Throwable { in installAndCheckBound() 228 private void checkBound(String packageName, String serviceClass, int userId) throws Throwable { in checkBound() 247 private void installAndCheckNotBound(String apk, String packageName, int userId, in installAndCheckNotBound() 258 private void checkNotBoundWithError(String packageName, int userId, in checkNotBoundWithError() 270 private void checkPackageNotBound(String packageName, int userId) throws Throwable { in checkPackageNotBound() 472 private void assertUserHasNoConnection(int userId) throws Throwable { in assertUserHasNoConnection() 479 private void assertUserHasNoFinder(int userId) throws Throwable { in assertUserHasNoFinder() 499 final int userId = getDevice().createUser("test-user"); in testSecondaryUser() local
|
/cts/hostsidetests/media/src/android/media/cts/ |
D | BaseMultiUserTest.java | 153 protected void installAppAsUser(String appFileName, int userId, boolean asInstantApp) in installAppAsUser() 189 int userId = Integer.parseInt(tokens[tokens.length-1]); in createAndStartUser() local 227 protected void removeUser(int userId) throws Exception { in removeUser() 252 @Nullable String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser() 314 int userId) throws Exception { in getSettings() 335 @Nullable String value, int userId) throws Exception { in putSettings()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 146 protected void startUserAndWait(int userId) throws Exception { in startUserAndWait() 173 private void installTestAppForUser(int userId) throws Exception { in installTestAppForUser() 200 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() 230 private void setTestAppAsDefaultSmsAppForUser(boolean setToSmsApp, int userId) in setTestAppAsDefaultSmsAppForUser() 239 private int getUserSerialNumber(int userId) throws DeviceNotAvailableException { in getUserSerialNumber()
|
/cts/hostsidetests/media/src/android/media/session/cts/ |
D | MediaSessionManagerHostTest.java | 243 private void runTestAsUser(String testMethodName, int userId) in runTestAsUser() 259 private void setAllowGetActiveSessionForTest(boolean allow, int userId) throws Exception { in setAllowGetActiveSessionForTest() 270 private void sendControlCommand(int userId, int flag) throws Exception { in sendControlCommand()
|
/cts/tests/contentsuggestions/src/android/contentsuggestions/cts/ |
D | ContentSuggestionsManagerTest.java | 153 int userId = android.os.Process.myUserHandle().getIdentifier(); in setService() local 160 int userId = android.os.Process.myUserHandle().getIdentifier(); in resetService() local
|
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 98 protected void clearShortcuts(String packageName, int userId) throws Exception { in clearShortcuts() 104 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser() 120 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser() 127 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser()
|
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/ |
D | Utils.java | 47 String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTests() 52 String testMethodName, int userId, Map<String, String> testArgs) in runDeviceTests() 60 String testMethodName, int userId, Map<String, String> testArgs, long timeout, in runDeviceTests()
|
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/ |
D | ReadExternalStorageTest.java | 80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable() local
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersNoAppCrashesTest.java | 59 int userId = getDevice().createUser( in testCanCreateGuestUser() local 73 int userId = getDevice().createUser( in testCanCreateSecondaryUser() local
|