Home
last modified time | relevance | path

Searched refs:getWho (Results 1 – 25 of 27) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DUserSessionTest.java26 mDevicePolicyManager.setLogoutEnabled(getWho(), true); in testSetLogoutEnabled()
31 mDevicePolicyManager.setLogoutEnabled(getWho(), false); in testSetLogoutDisabled()
36 mDevicePolicyManager.setStartUserSessionMessage(getWho(), START_SESSION_MESSAGE); in testSetStartUserSessionMessage()
38 mDevicePolicyManager.getStartUserSessionMessage(getWho())); in testSetStartUserSessionMessage()
42 mDevicePolicyManager.setEndUserSessionMessage(getWho(), END_SESSION_MESSAGE); in testSetEndUserSessionMessage()
43 assertEquals(END_SESSION_MESSAGE, mDevicePolicyManager.getEndUserSessionMessage(getWho())); in testSetEndUserSessionMessage()
47 mDevicePolicyManager.setStartUserSessionMessage(getWho(), START_SESSION_MESSAGE); in testClearStartUserSessionMessage()
48 mDevicePolicyManager.setStartUserSessionMessage(getWho(), null); in testClearStartUserSessionMessage()
49 assertNull(mDevicePolicyManager.getStartUserSessionMessage(getWho())); in testClearStartUserSessionMessage()
54 mDevicePolicyManager.setEndUserSessionMessage(getWho(), END_SESSION_MESSAGE); in testClearEndUserSessionMessage()
[all …]
DDevicePolicyLoggingTest.java33 mDevicePolicyManager.setKeyguardDisabled(getWho(), true); in testSetKeyguardDisabledLogged()
34 mDevicePolicyManager.setKeyguardDisabled(getWho(), false); in testSetKeyguardDisabledLogged()
38 mDevicePolicyManager.setStatusBarDisabled(getWho(), true); in testSetStatusBarDisabledLogged()
39 mDevicePolicyManager.setStatusBarDisabled(getWho(), false); in testSetStatusBarDisabledLogged()
53 mDevicePolicyManager.setGlobalSetting(getWho(), AUTO_TIME, "1"); in testSetGlobalSettingLogged()
54 mDevicePolicyManager.setGlobalSetting(getWho(), AUTO_TIME_ZONE, "1"); in testSetGlobalSettingLogged()
55 mDevicePolicyManager.setGlobalSetting(getWho(), DATA_ROAMING, "1"); in testSetGlobalSettingLogged()
56 mDevicePolicyManager.setGlobalSetting(getWho(), USB_MASS_STORAGE_ENABLED, "1"); in testSetGlobalSettingLogged()
58 mDevicePolicyManager.setGlobalSetting(getWho(), AUTO_TIME, autoTimeOriginalValue); in testSetGlobalSettingLogged()
60 getWho(), AUTO_TIME_ZONE, autoTimeZoneOriginalValue); in testSetGlobalSettingLogged()
[all …]
DPrivateDnsPolicyTest.java47 mDevicePolicyManager.setGlobalPrivateDnsModeOpportunistic(getWho()); in tearDown()
64 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in setUserRestriction()
66 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in setUserRestriction()
75 int resultCode = mDevicePolicyManager.setGlobalPrivateDnsModeOpportunistic(getWho()); in callSetGlobalPrivateDnsOpportunisticModeExpectingResult()
92 getWho(), privateDnsHost); in callSetGlobalPrivateDnsHostModeExpectingResult()
109 mDevicePolicyManager.getGlobalPrivateDnsMode(getWho())).isEqualTo( in testSetOpportunisticMode()
111 assertThat(mDevicePolicyManager.getGlobalPrivateDnsHost(getWho())).isNull(); in testSetOpportunisticMode()
122 mDevicePolicyManager.getGlobalPrivateDnsMode(getWho())).isEqualTo( in testSetSpecificHostMode()
125 mDevicePolicyManager.getGlobalPrivateDnsHost(getWho())).isEqualTo( in testSetSpecificHostMode()
132 () -> mDevicePolicyManager.setGlobalPrivateDnsModeSpecifiedHost(getWho(), null)); in testSetModeWithIncorrectHost()
[all …]
DOverrideApnTest.java85 List <ApnSetting> apnList = mDevicePolicyManager.getOverrideApns(getWho()); in tearDown()
87 boolean deleted = mDevicePolicyManager.removeOverrideApn(getWho(), apn.getId()); in tearDown()
90 mDevicePolicyManager.setOverrideApnsEnabled(getWho(), false); in tearDown()
94 assertFalse(mDevicePolicyManager.removeOverrideApn(getWho(), -1)); in testRemoveOverrideApnFailsForIncorrectId()
98 mDevicePolicyManager.addOverrideApn(getWho(), testApnFull); in testInsertConflictingApn()
99 int insertConflictingId = mDevicePolicyManager.addOverrideApn(getWho(), testApnFull); in testInsertConflictingApn()
104 mDevicePolicyManager.addOverrideApn(getWho(), testApnFull); in testUpdateConflictingApn()
111 int apnIdToUpdate = mDevicePolicyManager.addOverrideApn(getWho(), apnToBeUpdated); in testUpdateConflictingApn()
113 assertFalse(mDevicePolicyManager.updateOverrideApn(getWho(), apnIdToUpdate, testApnFull)); in testUpdateConflictingApn()
114 assertTrue(mDevicePolicyManager.removeOverrideApn(getWho(), apnIdToUpdate)); in testUpdateConflictingApn()
[all …]
DAdminActionBookkeepingTest.java45 mDevicePolicyManager.setSecurityLoggingEnabled(getWho(), false); in tearDown()
46 mDevicePolicyManager.setNetworkLoggingEnabled(getWho(), false); in tearDown()
47 mDevicePolicyManager.uninstallCaCert(getWho(), TestCertificates.TEST_CA.getBytes()); in tearDown()
61 mDevicePolicyManager.setSecurityLoggingEnabled(getWho(), true); in testRetrieveSecurityLogs()
64 mDevicePolicyManager.retrieveSecurityLogs(getWho()); in testRetrieveSecurityLogs()
74 mDevicePolicyManager.retrievePreRebootSecurityLogs(getWho()) != null; in testRetrieveSecurityLogs()
99 mDevicePolicyManager.setNetworkLoggingEnabled(getWho(), true); in testGetLastNetworkLogRetrievalTime()
102 mDevicePolicyManager.retrieveNetworkLogs(getWho(), 0 /* batchToken */); in testGetLastNetworkLogRetrievalTime()
116 mDevicePolicyManager.setOrganizationName(getWho(), null); in testDeviceOwnerOrganizationName()
120 mDevicePolicyManager.setOrganizationName(getWho(), "organization"); in testDeviceOwnerOrganizationName()
[all …]
DUserControlDisabledPackagesTest.java48 mDevicePolicyManager.setUserControlDisabledPackages(getWho(), protectedPackages); in testSetUserControlDisabledPackages()
67 assertThat(mDevicePolicyManager.getUserControlDisabledPackages(getWho())) in testForceStopWithUserControlDisabled()
74 mDevicePolicyManager.setUserControlDisabledPackages(getWho(), pkgs); in testClearSetUserControlDisabledPackages()
75 assertThat(mDevicePolicyManager.getUserControlDisabledPackages(getWho())) in testClearSetUserControlDisabledPackages()
81 assertThat(mDevicePolicyManager.getUserControlDisabledPackages(getWho())) in testForceStopWithUserControlEnabled()
91 assertThat(mDevicePolicyManager.getUserControlDisabledPackages(getWho())) in testFgsStopWithUserControlDisabled()
100 assertThat(mDevicePolicyManager.getUserControlDisabledPackages(getWho())) in testFgsStopWithUserControlEnabled()
DSensorToggleRestrictionTest.java46 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_CAMERA_TOGGLE); in tearDown()
47 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_MICROPHONE_TOGGLE); in tearDown()
59 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_CAMERA_TOGGLE); in testCameraToggle_RestrictionSet_CannotChangeSensorPrivacy()
76 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_MICROPHONE_TOGGLE); in testMicrophoneToggle_RestrictionSet_CannotChangeSensorPrivacy()
92 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_CAMERA_TOGGLE); in testCameraToggle_RestrictionSet_ResetSensorPrivacy()
111 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_MICROPHONE_TOGGLE); in testMicrophoneToggle_RestrictionSet_ResetSensorPrivacy()
DBaseAffiliatedProfileOwnerTest.java51 assertTrue(mDevicePolicyManager.isAdminActive(getWho())); in assertDeviceOrAffiliatedProfileOwner()
59 protected ComponentName getWho() { in getWho() method in BaseAffiliatedProfileOwnerTest
DCreateAndManageUserTest.java72 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER); in tearDown()
73 mDevicePolicyManager.clearUserRestriction(getWho(), UserManager.DISALLOW_REMOVE_USER); in tearDown()
110 List<UserHandle> secondaryUsers = mDevicePolicyManager.getSecondaryUsers(getWho()); in testCreateAndManageUser_GetSecondaryUsers()
164 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_REMOVE_USER); in testCreateAndManageUser_StopEphemeralUser_DisallowRemoveUser()
390 mDevicePolicyManager.setAffiliationIds(getWho(), Collections.singleton(AFFILIATION_ID)); in runCrossUserVerification()
419 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_ADD_USER); in testCreateAndManageUser_AddRestrictionSet()
425 mDevicePolicyManager.addUserRestriction(getWho(), UserManager.DISALLOW_REMOVE_USER); in testCreateAndManageUser_RemoveRestrictionSet()
449 return createAndManageUser(/* profileOwner= */ getWho(), /* adminExtras= */ null, flags); in createAndManageUser()
461 /* admin= */ getWho(), in createAndManageUser()
486 boolean switched = mDevicePolicyManager.switchUser(getWho(), userHandle); in switchUserAndWaitForBroadcasts()
[all …]
DSetLocationEnabledTest.java91 mDevicePolicyManager.setLocationEnabled(getWho(), enabled); in setLocationEnabledAndWaitIfNecessary()
114 mDevicePolicyManager.setLocationEnabled(getWho(), enabled); in setLocationEnabledAndWaitIfNecessary()
DPackageInstallTest.java89 mDevicePolicyManager.setKeepUninstalledPackages(getWho(), in testKeepPackageCache()
97 assertTrue(mDevicePolicyManager.installExistingPackage(getWho(), TEST_APP_PKG)); in testInstallExistingPackage()
DBaseDeviceOwnerTest.java106 ComponentName admin = getWho(); in assertDeviceOwner()
117 protected ComponentName getWho() { in getWho() method in BaseDeviceOwnerTest
DNetworkLoggingTest.java106 final List<NetworkEvent> events = mDevicePolicyManager.retrieveNetworkLogs(getWho(),
145 mDevicePolicyManager.retrieveNetworkLogs(getWho(), FAKE_BATCH_TOKEN); in testRetrievingNetworkLogsThrowsSecurityException()
158 assertNull(mDevicePolicyManager.retrieveNetworkLogs(getWho(), FAKE_BATCH_TOKEN)); in testProvidingWrongBatchTokenReturnsNull()
458 ComponentName admin = getWho(); in setNetworkLoggingEnabled()
DBluetoothRestrictionTest.java264 mDevicePolicyManager.addUserRestriction(getWho(), restriction); in addUserRestriction()
269 mDevicePolicyManager.clearUserRestriction(getWho(), restriction); in clearUserRestriction()
DDevicePolicySafetyCheckerIntegrationTest.java246 mTester.testAllOperations(mDevicePolicyManager, getWho()); in testAllOperations()
253 mTester.testUnsafeStateException(mDevicePolicyManager, getWho()); in testUnsafeStateException()
DHeadlessSystemUserTest.java96 .that(admin).isEqualTo(getWho()); in assertProfileOwner()
DWifiConfigLockdownTest.java54 mDevicePolicyManager.setGlobalSetting(getWho(), in setUp()
70 mDevicePolicyManager.setGlobalSetting(getWho(), in tearDown()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DLockScreenInfoTest.java25 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), null); in tearDown()
45 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in testEmptyStringClearsLockInfo()
85 mDevicePolicyManager.setDeviceOwnerLockScreenInfo(getWho(), message); in setLockInfo()
89 protected ComponentName getWho() { in getWho() method in LockScreenInfoTest
DDeviceIdAttestationTest.java32 getWho()); in testFailsWithoutProfileOwnerIdsGrant()
40 mDevicePolicyManager, getWho()); in testSucceedsWithProfileOwnerIdsGrant()
44 protected ComponentName getWho() { in getWho() method in DeviceIdAttestationTest
DKeyManagementTest.java135 mDevicePolicyManager.removeKeyPair(getWho(), TEST_ALIAS); in tearDown()
146 getWho(), mFakePrivKey, new Certificate[] {mFakeCert}, grant, true)) in testCanInstallWithAutomaticAccess()
156 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), grant)).isTrue(); in testCanInstallWithAutomaticAccess()
211 getWho(), "RSA", buildRsaKeySpec(alias, false /* useStrongBox */), 0); in testCanGenerateRSAKeyPair()
215 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanGenerateRSAKeyPair()
224 getWho(), "RSA", buildRsaKeySpec(alias, true /* useStrongBox */), 0); in testCanGenerateRSAKeyPairUsingStrongBox()
226 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanGenerateRSAKeyPairUsingStrongBox()
246 getWho(), "EC", buildEcKeySpec(alias, false /* useStrongBox */), 0); in testCanGenerateECKeyPair()
250 assertThat(mDevicePolicyManager.removeKeyPair(getWho(), alias)).isTrue(); in testCanGenerateECKeyPair()
259 getWho(), "EC", buildEcKeySpec(alias, true /* useStrongBox */), 0); in testCanGenerateECKeyPairUsingStrongBox()
[all …]
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/
DDevicePolicySafetyCheckerIntegrationTest.java36 mTester.testAllOperations(mDevicePolicyManager, getWho()); in testAllOperations()
43 mTester.testUnsafeStateException(mDevicePolicyManager, getWho()); in testUnsafeStateException()
DBaseProfileOwnerTest.java63 assertTrue(dpm.isAdminActive(getWho())); in assertProfileOwner()
67 protected static ComponentName getWho() { in getWho() method in BaseProfileOwnerTest
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DAdminReceiver.java40 getManager(context).setProfileEnabled(getWho(context)); in onProfileProvisioningComplete()
41 getManager(context).setProfileName(getWho(context), "Corp owned Managed Profile"); in onProfileProvisioningComplete()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java91 ComponentName admin = getWho(context); in onReceive()
230 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
242 dpm.addCrossProfileIntentFilter(getWho(context), filter, in setupProfile()
256 dpm.setPermissionGrantState(getWho(context), context.getPackageName(), in setupProfile()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DBasePackageInstallTest.java102 mDevicePolicyManager.setUninstallBlocked(getWho(), TEST_APP_PKG, false); in tearDown()
115 protected static ComponentName getWho() { in getWho() method in BasePackageInstallTest

12