Home
last modified time | relevance | path

Searched refs:DISALLOW_INSTALL_UNKNOWN_SOURCES (Results 1 – 12 of 12) sorted by relevance

/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DInstallUnknownSourcesTest.java19 …com.android.bedstead.nene.userrestrictions.CommonUserRestrictions.DISALLOW_INSTALL_UNKNOWN_SOURCES;
57 sDeviceState.dpc().componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES)); in addUserRestriction_disallowInstallUnknownSources_cannotSet_throwsException()
61 @EnsureDoesNotHaveUserRestriction(DISALLOW_INSTALL_UNKNOWN_SOURCES)
67 sDeviceState.dpc().componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in addUserRestriction_disallowInstallUnknownSources_isSet() local
70 .isSet(DISALLOW_INSTALL_UNKNOWN_SOURCES)) in addUserRestriction_disallowInstallUnknownSources_isSet()
74 sDeviceState.dpc().componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in addUserRestriction_disallowInstallUnknownSources_isSet() local
79 @EnsureDoesNotHaveUserRestriction(DISALLOW_INSTALL_UNKNOWN_SOURCES)
85 sDeviceState.dpc().componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in addUserRestriction_disallowInstallUnknownSources_isNotSet() local
88 .isSet(DISALLOW_INSTALL_UNKNOWN_SOURCES)) in addUserRestriction_disallowInstallUnknownSources_isNotSet()
93 sDeviceState.dpc().componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in addUserRestriction_disallowInstallUnknownSources_isNotSet() local
DUserRestrictionsTest.java92 CommonUserRestrictions.DISALLOW_INSTALL_UNKNOWN_SOURCES,
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerShellCommandUserRestrictionTest.java19 …com.android.bedstead.nene.userrestrictions.CommonUserRestrictions.DISALLOW_INSTALL_UNKNOWN_SOURCES;
61 @EnsureHasUserRestriction(value = DISALLOW_INSTALL_UNKNOWN_SOURCES)
64 DISALLOW_INSTALL_UNKNOWN_SOURCES)).isTrue(); in testGetUserRestriction()
67 DISALLOW_INSTALL_UNKNOWN_SOURCES)).isFalse(); in testGetUserRestriction()
74 @EnsureHasUserRestriction(value = DISALLOW_INSTALL_UNKNOWN_SOURCES)
80 assertThat(restrictions).contains(DISALLOW_INSTALL_UNKNOWN_SOURCES + "=true"); in testGetUserAllRestrictions()
85 assertThat(noRestrictions).doesNotContain(DISALLOW_INSTALL_UNKNOWN_SOURCES + "=true"); in testGetUserAllRestrictions()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/userrestrictions/
DManagedProfileOwnerUserRestrictionsTest.java28 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
DBaseUserRestrictionsTest.java42 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/userrestrictions/
DCommonUserRestrictions.java43 public static final String DISALLOW_INSTALL_UNKNOWN_SOURCES = "no_install_unknown_sources"; field in CommonUserRestrictions
270 DISALLOW_INSTALL_UNKNOWN_SOURCES,
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DByodHelperActivity.java20 import static android.os.UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES;
268 setRestrictionAndSaveOriginal(DISALLOW_INSTALL_UNKNOWN_SOURCES, !allowNonMarket); in onCreate()
274 setRestrictionAndSaveOriginal(DISALLOW_INSTALL_UNKNOWN_SOURCES, false); in onCreate()
287 setRestrictionAndSaveOriginal(DISALLOW_INSTALL_UNKNOWN_SOURCES, false); in onCreate()
462 restoreOriginalRestriction(DISALLOW_INSTALL_UNKNOWN_SOURCES); in onActivityResult()
DUserRestrictions.java50 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
209 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES,
333 case UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES: in isRestrictionValid()
/cts/common/device-side/bedstead/remotedpc/src/main/java/com/android/bedstead/remotedpc/
DRemoteDpc.java19 import static android.os.UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES;
359 .clearUserRestriction(remoteDpc.componentName(), DISALLOW_INSTALL_UNKNOWN_SOURCES); in setAsProfileOwner() local
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceAndProfileOwnerTest.java597 final String DISALLOW_INSTALL_UNKNOWN_SOURCES = "no_install_unknown_sources"; in testPackageInstallUserRestrictions() local
616 changeUserRestrictionOrFail(DISALLOW_INSTALL_UNKNOWN_SOURCES, true, mUserId); in testPackageInstallUserRestrictions()
621 changeUserRestrictionOrFail(DISALLOW_INSTALL_UNKNOWN_SOURCES, false, mUserId); in testPackageInstallUserRestrictions()
/cts/common/device-side/bedstead/remotedpc/src/test/java/com/android/bedstead/remotedpc/
DRemoteDpcTest.java20 import static android.os.UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES;
601 .hasUserRestriction(DISALLOW_INSTALL_UNKNOWN_SOURCES)) in setAsProfileOwner_disallowInstallUnknownSourcesIsDisabled()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt34077 … field public static final String DISALLOW_INSTALL_UNKNOWN_SOURCES = "no_install_unknown_sources";