Home
last modified time | relevance | path

Searched refs:setLockTaskPackages (Results 1 – 8 of 8) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DLockTaskTest.java132 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{PACKAGE_NAME}); in setLockTaskPackages_lockTaskPackagesIsSet()
138 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(originalLockTaskPackages); in setLockTaskPackages_lockTaskPackagesIsSet()
151 …sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{sTestApp.packageName()}); in startLockTask_recordsMetric()
171 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(originalLockTaskPackages); in startLockTask_recordsMetric()
190 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{}); in setLockTaskPackages_empty_lockTaskPackagesIsSet()
196 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(originalLockTaskPackages); in setLockTaskPackages_empty_lockTaskPackagesIsSet()
211 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{policyExemptApp}); in setLockTaskPackages_includesPolicyExemptApp_lockTaskPackagesIsSet()
217 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(originalLockTaskPackages); in setLockTaskPackages_includesPolicyExemptApp_lockTaskPackagesIsSet()
226 () -> sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{})); in setLockTaskPackages_policyIsNotAllowedToBeSet_throwsException()
236 sDeviceState.dpc().devicePolicyManager().setLockTaskPackages(new String[]{PACKAGE_NAME}); in isLockTaskPermitted_lockTaskPackageIsSet_returnsTrue()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DAffiliationTest.java72 mDevicePolicyManager.setLockTaskPackages(ADMIN_RECEIVER_COMPONENT, packages); in testSetLockTaskPackagesClearedIfUserBecomesUnaffiliated()
104 mDevicePolicyManager.setLockTaskPackages(ADMIN_RECEIVER_COMPONENT, new String[0]); in checkLockTaskMethodsThrow()
/cts/common/device-side/bedstead/remotedpc/src/communication/main/java/com/android/bedstead/remotedpc/managers/
DRemoteDevicePolicyManager.java61 void setLockTaskPackages(@NonNull ComponentName admin, @NonNull String[] packages); in setLockTaskPackages() method
63 @RemoteDpcAutomaticAdmin void setLockTaskPackages(@NonNull String[] packages); in setLockTaskPackages() method
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DLockTaskUiTestActivity.java250 mDpm.setLockTaskPackages(ADMIN_RECEIVER, new String[] {TEST_PACKAGE_NAME}); in startLockTaskMode()
299 mDpm.setLockTaskPackages(ADMIN_RECEIVER, new String[] {}); in stopLockTaskMode()
DCommandReceiverActivity.java262 mDpm.setLockTaskPackages(mAdmin, in onCreate()
265 mDpm.setLockTaskPackages(mAdmin, new String[] {getPackageName()}); in onCreate()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DDevicePolicySafetyCheckerIntegrationTest.java185 dpm.setLockTaskPackages(admin, new String[] { TEST_PACKAGE });
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDevicePolicyManagerWrapper.java134 doAnswer(answer).when(spy).setLockTaskPackages(any(), any()); in getWrapper()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java407 mDevicePolicyManager.setLockTaskPackages(mComponent, new String[] {"package"}); in testSetLockTaskPackages_failIfNotDeviceOwner()