/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | BaseDevicePolicyTest.java | 173 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser() 178 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser() 188 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser() 200 protected void startUser(int userId) throws Exception { in startUser() 211 protected void switchUser(int userId) throws Exception { in switchUser() 224 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags() 270 private void stopUserAsync(int userId) throws Exception { in stopUserAsync() 277 protected void stopUser(int userId) throws Exception { in stopUser() 320 protected void removeUser(int userId) throws Exception { in removeUser() 370 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 | UserRestrictionsTest.java | 70 @Nullable String method, int userId) throws DeviceNotAvailableException { in runTests() 74 private void runTests(@Nonnull String className, int userId) in runTests() 258 private void setPoAsUser(int userId) throws Exception { in setPoAsUser() 305 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception { in runGlobalRestrictionsTest()
|
D | DeviceOwnerTest.java | 125 final int userId = createUser(); in testRemoteBugreportWithTwoUsers() local 392 final int userId = createUser(); in testSecurityLoggingWithTwoUsers() local 453 final int userId = createUser(); in testNetworkLoggingWithTwoUsers() local 556 final int userId = createUser(); in testLockTask_unaffiliatedUser() local 581 final int userId = createAffiliatedSecondaryUser(); in testLockTask_affiliatedSecondaryUser() local 773 final int userId = createAffiliatedSecondaryUser(); in testPackageInstallCache_multiUser() local 846 private void executeAffiliatedProfileOwnerTest(String testClassName, int userId) in executeAffiliatedProfileOwnerTest() 864 final int userId = createUser(); in createAffiliatedSecondaryUser() local
|
D | DeviceAndProfileOwnerTest.java | 777 final int userId = createUser(); in testCannotRemoveUserIfRestrictionSet() local 970 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 975 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement() 1002 private void setInstallPackageAppOps(String packageName, boolean allowed, int userId) in setInstallPackageAppOps() 1010 private void changePolicyOrFail(String command, String extras, int userId) in changePolicyOrFail() 1018 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser() 1023 protected void setScreenCaptureDisabled(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled() 1042 protected void setScreenCaptureDisabled_assist(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled_assist() 1078 private void allowNotificationPolicyAccess(String packageName, int userId) in allowNotificationPolicyAccess() 1091 private void disallowNotificationPolicyAccess(String packageName, int userId) in disallowNotificationPolicyAccess() [all …]
|
D | ManagedProfileTest.java | 307 private void runProfileTimeoutTest(String method, int userId) in runProfileTimeoutTest() 625 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal() 958 private void setDirectoryPrefix(String directoryName, int userId) in setDirectoryPrefix() 1059 private void givePackageWriteSettingsPermission(int userId, String pkg) throws Exception { in givePackageWriteSettingsPermission() 1224 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser() 1234 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail() 1239 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction() 1251 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser() 1264 private void changeVerificationStatus(int userId, String packageName, String status) in changeVerificationStatus() 1366 String testMethodName, Integer userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
|
D | DeviceAndProfileOwnerHostSideTransferTest.java | 86 protected void setupTestParameters(int userId, String outgoingTestClassName, in setupTestParameters() 160 final int userId = createManagedProfile(mPrimaryUserId); in setupManagedProfile() local
|
D | CustomManagedProfileTest.java | 51 private void assertIsProvisioningAllowed(boolean expected, int userId) in assertIsProvisioningAllowed()
|
D | CustomDeviceOwnerTest.java | 93 int userId = -1; in testCannotSetDeviceOwnerWhenSecondaryUserPresent() local
|
D | DeviceAndProfileOwnerTestApi25.java | 100 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser()
|
D | CrossProfileAppsHostSideTest.java | 43 private void installRequiredApps(int userId) in installRequiredApps()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | PackageVisibilityTest.java | 76 int userId = mUsers[1]; in testUninstalledPackageVisibility() local 100 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId); in testUninstalledPackageVisibility() local 102 ".PackageAccessTest", "testPackageAccess_notInOtherUserUninstalled", userId); in testUninstalledPackageVisibility() local 105 ".PackageAccessTest", "testPackageAccess_getPackagesCantSeeTiny", userId); in testUninstalledPackageVisibility() local 128 ".PackageAccessTest", "testPackageAccess_getPackagesCanSeeTiny", userId); in testUninstalledPackageVisibility() local 140 protected void uninstallWithKeepDataForUser(String packageName, int userId) in uninstallWithKeepDataForUser()
|
D | BaseAppSecurityTest.java | 63 protected void installTestAppForUser(String apk, int userId) throws Exception { in installTestAppForUser() 69 buildHelper.getTestFile(apk), true, false, userId, "-t")); in installTestAppForUser() local 72 protected boolean isAppVisibleForUser(String packageName, int userId, in isAppVisibleForUser()
|
D | InstantAppUserTest.java | 190 String testMethodName, int userId) in runDeviceTestsAsUser() 192 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTestsAsUser() local 205 private void installAppAsUser(String apk, int userId) throws Exception { in installAppAsUser() 210 private void replaceFullAppAsUser(String apk, int userId) throws Exception { in replaceFullAppAsUser() 213 buildHelper.getTestFile(apk), true, userId, "--full")); in replaceFullAppAsUser() local 216 private void installExistingInstantAppAsUser(String packageName, int userId) throws Exception { in installExistingInstantAppAsUser() 226 private void installExistingFullAppAsUser(String packageName, int userId) throws Exception { in installExistingFullAppAsUser()
|
D | ExternalStorageHostTest.java | 350 private void enableWriteSettings(String packageName, int userId) in enableWriteSettings() 371 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests() 373 runDeviceTests(getDevice(), packageName, testClassName, null, userId, null); in runDeviceTests() local 377 int userId) throws DeviceNotAvailableException { in runDeviceTests() 378 runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId, null); in runDeviceTests() local
|
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/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 | 150 private void installTestAppForUser(int userId) throws Exception { in installTestAppForUser() 169 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser() 199 private void setTestAppAsDefaultSmsAppForUser(boolean setToSmsApp, int userId) in setTestAppAsDefaultSmsAppForUser() 208 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/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() 134 @Nullable String testMethodName, int userId, in runDeviceTestsAsUser()
|
/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/media/common/android/media/cts/ |
D | MediaSessionTestHelperConstants.java | 86 public static String buildControlCommand(int userId, int flag) { in buildControlCommand()
|
/cts/hostsidetests/multiuser/src/android/host/multiuser/ |
D | CreateUsersNoAppCrashesTest.java | 67 int userId = getDevice().createUser( in testCanCreateGuestUser() local 82 int userId = getDevice().createUser( in testCanCreateSecondaryUser() local
|
D | BaseMultiUserTest.java | 76 protected int createRestrictedProfile(int userId) in createRestrictedProfile()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 86 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotReadable() local
|