/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 | MixedDeviceOwnerTest.java | 67 final int userId = createSecondaryUserAsProfileOwner(); in testLockTask_unaffiliatedUser() local 84 final int userId = createSecondaryUserAsProfileOwner(); in testLockTask_affiliatedSecondaryUser() local 132 final int userId = createUserAndWaitStart(); in createSecondaryUserAsProfileOwner() local 139 private void switchToUser(int userId) throws Exception { in switchToUser() 145 private void setUserAsAffiliatedUserToPrimary(int userId) throws Exception { in setUserAsAffiliatedUserToPrimary()
|
D | BaseDevicePolicyTest.java | 241 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser() 246 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() 252 boolean dontKillApp, int userId) in installAppAsUser() 266 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser() 278 protected void startUser(int userId) throws Exception { in startUser() 283 protected void startUserAndWait(int userId) throws Exception { in startUserAndWait() 293 protected void startUser(int userId, boolean waitFlag) throws Exception { in startUser() 304 protected void switchUser(int userId) throws Exception { in switchUser() 325 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags() 371 private void stopUserAsync(int userId) throws Exception { in stopUserAsync() [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() 308 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception { in runGlobalRestrictionsTest()
|
D | ManagedProfileTest.java | 364 private void runProfileTimeoutTest(String method, int userId) in runProfileTimeoutTest() 693 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal() 1080 private void setDirectoryPrefix(String directoryName, int userId) in setDirectoryPrefix() 1180 private void givePackageWriteSettingsPermission(int userId, String pkg) throws Exception { in givePackageWriteSettingsPermission() 1646 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() 1656 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 1661 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction() 1673 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser() 1686 private void changeVerificationStatus(int userId, String packageName, String status) in changeVerificationStatus() 1790 String testMethodName, Integer userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
|
D | CustomManagedProfileTest.java | 51 private void assertIsProvisioningAllowed(boolean expected, int userId) in assertIsProvisioningAllowed()
|
D | DeviceAndProfileOwnerTest.java | 1238 final int userId = createUser(); in testCannotRemoveUserIfRestrictionSet() local 1920 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 1925 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement() 1952 private void setInstallPackageAppOps(String packageName, boolean allowed, int userId) in setInstallPackageAppOps() 1960 private void changePolicyOrFail(String command, String extras, int userId) in changePolicyOrFail() 1968 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser() 1973 protected void setScreenCaptureDisabled(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled() 1992 protected void setScreenCaptureDisabled_assist(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled_assist() 2028 private void allowNotificationPolicyAccess(String packageName, int userId) in allowNotificationPolicyAccess() 2041 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 | 678 private void updatePermissions(String packageName, int userId, String[] permissions, in updatePermissions() 688 private void updateAppOp(String packageName, int userId, String appOp, boolean allow) in updateAppOp() 693 private void updateAppOp(String packageName, boolean targetsUid, int userId, in updateAppOp() 709 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests() 711 runDeviceTests(getDevice(), packageName, testClassName, null, userId, null); in runDeviceTests() local 715 int userId) throws DeviceNotAvailableException { in runDeviceTests() 716 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() 217 String serviceClass, int userId) throws Throwable { in installAndCheckBound() 227 private void checkBound(String packageName, String serviceClass, int userId) throws Throwable { in checkBound() 246 private void installAndCheckNotBound(String apk, String packageName, int userId, in installAndCheckNotBound() 257 private void checkNotBoundWithError(String packageName, int userId, in checkNotBoundWithError() 269 private void checkPackageNotBound(String packageName, int userId) throws Throwable { in checkPackageNotBound() 471 private void assertUserHasNoConnection(int userId) throws Throwable { in assertUserHasNoConnection() 478 private void assertUserHasNoFinder(int userId) throws Throwable { in assertUserHasNoFinder() 498 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() 253 @Nullable String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser() 315 int userId) throws Exception { in getSettings() 336 @Nullable String value, int userId) throws Exception { in putSettings()
|
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingTest.java | 148 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()
|
/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 | 163 int userId = android.os.Process.myUserHandle().getIdentifier(); in setService() local 170 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
|