/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/ |
D | OrgOwnedProfileOwnerTest.java | 73 protected int mUserId; field in OrgOwnedProfileOwnerTest 86 mUserId = createManagedProfile(mPrimaryUserId); in createManagedProfile() 88 startUserAndWait(mUserId); in createManagedProfile() 90 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile() 91 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile() 92 startUserAndWait(mUserId); in createManagedProfile() 105 mUserId, DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in restrictManagedProfileRemoval() 110 assertThat(getDevice().removeUser(mUserId)).isFalse(); in testCannotRemoveManagedProfile() 116 mUserId); in testCanRelinquishControlOverDevice() 119 assertHasNoUser(mUserId); in testCanRelinquishControlOverDevice() [all …]
|
D | DeviceAndProfileOwnerHostSideTransferTest.java | 38 protected int mUserId; field in DeviceAndProfileOwnerHostSideTransferTest 44 final boolean hasManagedProfile = (mUserId != mPrimaryUserId); in testTransferOwnership() 48 "testTransferOwnership", mUserId); in testTransferOwnership() 59 "testTransferSameAdmin", mUserId); in testTransferSameAdmin() 64 installAppAsUser(INVALID_TARGET_APK, mUserId); in testTransferInvalidTarget() 67 "testTransferInvalidTarget", mUserId); in testTransferInvalidTarget() 74 "testTransferWithPoliciesOutgoing", mUserId); in testTransferPolicies() 77 "testTransferPoliciesAreRetainedAfterTransfer", mUserId); in testTransferPolicies() 84 "testTransferOwnershipChangedBroadcast", mUserId); in testTransferOwnershipChangedBroadcast() 91 "testTransferOwnership", mUserId); in testTransferCompleteCallback() [all …]
|
D | DeviceAdminServiceProfileOwnerTest.java | 26 private int mUserId; field in DeviceAdminServiceProfileOwnerTest 30 return mUserId; in getUserId() 39 mUserId = createUser(); in setUp() 44 CLog.i("Installing %s on user %d...", apk, mUserId); in installOwnerApp() 45 installAppAsUser(apk, mUserId); in installOwnerApp() 50 CLog.i("Removing admin %s from user %d...", component, mUserId); in removeAdmin() 51 removeAdmin(component, mUserId); in removeAdmin() 56 setProfileOwnerOrFail(component, mUserId); in setAsOwnerOrFail()
|
D | ProfileOwnerTestApi23.java | 32 private int mUserId; field in ProfileOwnerTestApi23 38 mUserId = USER_OWNER; in setUp() 40 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in setUp() 42 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp() 44 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp() 53 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown() 62 ".DelegatedCertInstallerTest", "testSetNotExistCertInstallerPackage", mUserId); in testDelegatedCertInstaller()
|
D | MixedManagedProfileOwnerTest.java | 62 mUserId = createManagedProfile(mParentUserId); in createManagedProfile() 64 startUserAndWait(mUserId); in createManagedProfile() 66 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile() 67 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile() 68 startUserAndWait(mUserId); in createManagedProfile() 73 removeUser(mUserId); in tearDown() 217 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, CLEAR_PROFILE_OWNER_NEGATIVE_TEST_CLASS, mUserId); in testCannotClearProfileOwner() 223 mUserId, DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS)); in markProfileOwnerOnOrganizationOwnedDevice() 232 "testGenerateKeyPairWithDeviceIdAttestationExpectingFailure", mUserId); in testDelegatedCertInstallerDeviceIdAttestation() 242 "testFailsWithoutProfileOwnerIdsGrant", mUserId); in testDeviceIdAttestationForProfileOwner() [all …]
|
D | DeviceAndProfileOwnerTest.java | 195 protected int mUserId; field in DeviceAndProfileOwnerTest 228 installAppAsUser(DELEGATE_APP_APK, mUserId); in testApplicationRestrictionIsRestricted() 230 "testAssertCallerIsNotApplicationRestrictionsManagingPackage", mUserId); in testApplicationRestrictionIsRestricted() 232 "testSetApplicationRestrictionsManagingPackageToDelegate", mUserId); in testApplicationRestrictionIsRestricted() 234 "testAssertCallerIsApplicationRestrictionsManagingPackage", mUserId); in testApplicationRestrictionIsRestricted() 302 installAppAsUser(TEST_APP_APK, mUserId); in testDelegation() 303 installAppAsUser(APP_RESTRICTIONS_TARGET_APP_APK, mUserId); in testDelegation() 317 runDeviceTestsAsUser(DELEGATE_APP_PKG, ".GeneralDelegateTest", null, mUserId, in testDelegation() 332 installAppAsUser(DELEGATE_APP_APK, mUserId); in installDelegateApp() 337 installAppAsUser(CERT_INSTALLER_APK, mUserId); in testDelegationCertSelection() [all …]
|
D | ProfileOwnerTest.java | 40 private int mUserId = 0; field in ProfileOwnerTest 46 mUserId = isHeadlessSystemUserMode() ? getCurrentUser() : getPrimaryUser(); in setUp() 49 installAppAsUser(PROFILE_OWNER_APK, mUserId); in setUp() 51 PROFILE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp() 53 removeAdmin(PROFILE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp() 105 removeAdmin(PROFILE_OWNER_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown() 113 CLog.d("executeProfileOwnerTest(): running %s on user %d", testClassName, mUserId); in executeProfileOwnerTest() 114 runDeviceTestsAsUser(PROFILE_OWNER_PKG, testClass, mUserId); in executeProfileOwnerTest() 120 mUserId); in executeProfileOwnerTestMethod() 121 runDeviceTestsAsUser(PROFILE_OWNER_PKG, className, testName, mUserId); in executeProfileOwnerTestMethod()
|
D | MixedManagedProfileOwnerTestApi30.java | 44 mUserId = createManagedProfile(mParentUserId); in createManagedProfile() 46 startUserAndWait(mUserId); in createManagedProfile() 48 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile() 49 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile() 50 startUserAndWait(mUserId); in createManagedProfile() 55 removeUser(mUserId); in tearDown()
|
D | MixedManagedProfileOwnerTestApi25.java | 45 mUserId = createManagedProfile(mParentUserId); in createManagedProfile() 47 startUserAndWait(mUserId); in createManagedProfile() 49 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in createManagedProfile() 50 setProfileOwnerOrFail(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in createManagedProfile() 51 startUserAndWait(mUserId); in createManagedProfile() 56 removeUser(mUserId); in tearDown()
|
D | MixedProfileOwnerTestApi25.java | 35 mUserId = mPrimaryUserId; in setUp() 37 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in setUp() 39 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp() 41 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp() 50 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
|
D | MixedProfileOwnerTest.java | 43 mUserId = mPrimaryUserId; in setUp() 46 + "mDeviceOwnerUserId=%d", getClass(), mUserId, mPrimaryUserId, mInitialUserId, in setUp() 49 installAppAsUser(DEVICE_ADMIN_APK, mUserId); in setUp() 51 DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId, in setUp() 53 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId); in setUp() 62 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown() 101 assumeTrue("Skipping test: profile owner is not on system user", mUserId == USER_SYSTEM); in testSetAutoTimeEnabled()
|
D | BaseDeviceAdminHostSideTest.java | 34 protected int mUserId; field in BaseDeviceAdminHostSideTest 58 mUserId = mPrimaryUserId; in setUp() 60 installAppAsUser(getDeviceAdminApkFileName(), mUserId); in setUp() local 61 setDeviceAdmin(getAdminReceiverComponent(), mUserId); in setUp() local 66 assertTrue("Failed to remove admin", removeAdmin(getAdminReceiverComponent(), mUserId)); in tearDown() 75 DeviceAdminHelper.getDeviceAdminJavaPackage() + "." + className, method, mUserId); in runTests()
|
D | DeviceAndProfileOwnerTestApi25.java | 37 protected int mUserId; field in DeviceAndProfileOwnerTestApi25 54 installAppAsUser(SIMPLE_PRE_M_APP_APK, mUserId); in testPermissionGrantPreMApp() 72 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass() 76 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
|
D | DeviceAndProfileOwnerTestApi30.java | 31 protected int mUserId; field in DeviceAndProfileOwnerTestApi30 46 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, mUserId); in executeDeviceTestClass() 50 runDeviceTestsAsUser(DEVICE_ADMIN_PKG, className, testName, mUserId); in executeDeviceTestMethod()
|
D | DeviceAdminHostSideTestApi24.java | 34 installAppAsUser(getDeviceAdminApkFileName(), mUserId); in testAdminWithNoProtection() local 35 setDeviceAdminExpectingFailure(getUnprotectedAdminReceiverComponent(), mUserId, in testAdminWithNoProtection() local
|
D | DeviceAdminHostSideTestApi23.java | 37 installAppAsUser(getDeviceAdminApkFileName(), mUserId); in testAdminWithNoProtection() local 39 setDeviceAdmin(getUnprotectedAdminReceiverComponent(), mUserId); in testAdminWithNoProtection() local
|
D | MixedDeviceOwnerTestApi25.java | 32 mUserId = mPrimaryUserId; in setUp() 47 removeAdmin(DEVICE_ADMIN_PKG + "/" + ADMIN_RECEIVER_TEST_CLASS, mUserId)); in tearDown()
|
/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/ |
D | UninstallExistingPackageTest.java | 44 installPackageAsUser(EMPTY_TEST_APP_APK, true, mUserId); in setUp() 45 assertTrue(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, mUserId)); in setUp() 56 assertTrue("Package is not installed for user " + mUserId, in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() 57 isPackageInstalledForUser(EMPTY_TEST_APP_PKG, mUserId)); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() 62 runDeviceTestAsUser("testUninstallExistingPackage", mUserId, in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() 64 assertFalse(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, mUserId)); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() 75 assertTrue(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, mUserId)); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser() 79 runDeviceTestAsUser("testUninstallExistingPackage", mUserId, in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser() 81 assertTrue(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, mUserId)); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser()
|
/cts/hostsidetests/webkit/src/com/android/cts/webkit/ |
D | WebViewHostSideMultipleProfileTest.java | 59 private int mUserId = -1; field in WebViewHostSideMultipleProfileTest 70 if (mUserId > 0) { in tearDown() 72 stopAndRemoveUser(mUserId); in tearDown() 80 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), false); in testSecondProfile() 81 startUser(mUserId); in testSecondProfile() 82 switchUser(mUserId); in testSecondProfile() 83 installTestApkForUser(mUserId); in testSecondProfile() 85 assertWebViewDeviceTestAsUserPasses(this, "testCreateWebViewAndNavigate", mUserId); in testSecondProfile() 92 mUserId = createUser(SECONDARY_USER_NAME + System.currentTimeMillis(), true); in testManagedProfile() 93 startUser(mUserId); in testManagedProfile() [all …]
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | AutofillRestrictionsTest.java | 38 int mUserId; field in AutofillRestrictionsTest 44 mUserId = getInstrumentation().getContext().getUserId(); in setUp() 87 mUserId, USER_SETUP_COMPLETE, 1); in enableService() 93 mUserId, AUTOFILL_SERVICE, SERVICE_NAME); in enableService() 102 runShellCommand("settings delete --user %d secure %s", mUserId, AUTOFILL_SERVICE); in disableService() 113 actual = runShellCommand("settings get --user %d secure %s", mUserId, in waitForServiceSettingSaved() 121 fail("Expected service status for user " + mUserId + ": " + expected in waitForServiceSettingSaved()
|
D | ContentCaptureRestrictionsTest.java | 37 int mUserId; field in ContentCaptureRestrictionsTest 43 mUserId = getInstrumentation().getContext().getUserId(); in setUp() 75 mUserId, USER_SETUP_COMPLETE, 1); in enableService() 77 runShellCommand("cmd content_capture set temporary-service %d %s %d", mUserId, in enableService() 85 runShellCommand("cmd content_capture set temporary-service %d", mUserId); in disableService()
|
D | ContentSuggestionsRestrictionsTest.java | 35 int mUserId; field in ContentSuggestionsRestrictionsTest 41 mUserId = getInstrumentation().getContext().getUserId(); in setUp() 86 runShellCommand("cmd content_suggestions set temporary-service %d %s %d", mUserId, in enableService() 94 runShellCommand("cmd content_suggestions set temporary-service %d", mUserId); in disableService()
|
/cts/hostsidetests/backup/ProfileKeyValueApp/src/android.cts.backup.profilekeyvalueapp/ |
D | ProfileKeyValueBackupRestoreTest.java | 41 private int mUserId; field in ProfileKeyValueBackupRestoreTest 47 mUserId = context.getUserId(); in setUp() 60 editor.putInt(PREFS_USER_KEY, mUserId); in writeSharedPrefsAndAssertSuccess() 67 assertThat(userIdPref).isEqualTo(mUserId); in assertSharedPrefsRestored()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AffiliationTest.java | 48 private @UserIdInt int mUserId; field in AffiliationTest 53 mUserId = context.getUserId(); in setUp() 56 Log.d(TAG, "setUp(): userId=" + mUserId + ", admin=" + mAdminComponent); in setUp() 93 Log.d(TAG, "setAffiliationIds(" + ids + ") on user " + mUserId); in setAffiliationIds() 97 assertWithMessage("affiliationIds on user %s", mUserId).that(setIds) in setAffiliationIds()
|
/cts/tests/app/src/android/app/cts/android/app/cts/tools/ |
D | ServiceProcessController.java | 53 final int mUserId; field in ServiceProcessController 94 mUserId = UserHandle.getUserId(mUid); in ServiceProcessController() 111 String cmd = "appops set --user " + mUserId + " " in denyBackgroundOp() 121 String cmd = "appops set --user " + mUserId + " " in allowBackgroundOp() 128 String cmd = "appops set --user " + mUserId + " " in denyAnyInBackgroundOp() 134 String cmd = "appops set --user " + mUserId + " " in allowAnyInBackgroundOp() 155 String cmd = "cmd deviceidle tempwhitelist -u " + mUserId in tempWhitelist() 161 String cmd = "cmd deviceidle tempwhitelist -u " + mUserId in removeFromTempWhitelist() 167 String cmd = "cmd appops set --user " + mUserId + " " in setAppOpMode()
|