Home
last modified time | relevance | path

Searched refs:mHasFeature (Results 1 – 9 of 9) sorted by relevance

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DLauncherAppsProfileTest.java40 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
41 if (mHasFeature) { in setUp()
57 if (mHasFeature) { in tearDown()
66 if (!mHasFeature) { in testGetActivitiesWithProfile()
86 if (!mHasFeature) { in testLauncherCallbackPackageAddedProfile()
102 if (!mHasFeature) { in testLauncherCallbackPackageRemovedProfile()
119 if (!mHasFeature) { in testLauncherCallbackPackageChangedProfile()
DDeviceAndProfileOwnerTest.java64 if (mHasFeature) { in tearDown()
74 if (!mHasFeature) { in testApplicationRestrictions()
81 if (!mHasFeature) { in testPermissionGrant()
89 if (!mHasFeature) { in testPermissionPolicy()
97 if (!mHasFeature) { in testPermissionMixedPolicies()
105 if (!mHasFeature) { in testPermissionPrompts()
113 if (!mHasFeature) { in testPermissionAppUpdate()
145 if (!mHasFeature) { in testPermissionGrantPreMApp()
153 if (!mHasFeature) { in testPersistentIntentResolving()
160 if (!mHasFeature) { in testScreenCaptureDisabled()
[all …]
DManagedProfileTest.java73 mHasFeature = mHasFeature && hasDeviceFeature( in setUp()
77 if (mHasFeature) { in setUp()
89 if (mHasFeature) { in tearDown()
99 if (!mHasFeature) { in testManagedProfileSetup()
110 if (!mHasFeature) { in testWipeData()
129 fail(mHasFeature ? "Device must allow creating only one managed profile" in testMaxOneManagedProfile()
138 if (!mHasFeature || !hasDeviceFeature(FEATURE_WIFI)) { in testProfileWifiCleanup()
158 if (!mHasFeature) { in testCrossProfileIntentFilters()
179 if (!mHasFeature) { in testAppLinks()
222 if (!mHasFeature) { in testSettingsIntents()
[all …]
DMixedProfileOwnerTest.java36 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
38 if (mHasFeature) { in setUp()
50 if (mHasFeature) { in tearDown()
63 if (!mHasFeature) { in testScreenCaptureDisabled_allowedPrimaryUser()
DDeviceOwnerTest.java47 if (mHasFeature) { in setUp()
56 if (mHasFeature) { in tearDown()
92 if (hasWifi && mHasFeature) { in testWifiConfigLockdown()
103 if (!mHasFeature) { in testCannotSetDeviceOwnerAgain()
119 if (!mHasFeature) { in executeDeviceOwnerTest()
DCustomDeviceOwnerTest.java63 if (mHasFeature) { in tearDown()
72 if (!mHasFeature) { in testOwnerChangedBroadcast()
99 if (!mHasFeature || getMaxNumberOfUsersSupported() < 2) { in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
115 if (!mHasFeature) { in testCannotSetDeviceOwnerWhenAccountPresent()
132 if (!mHasFeature) { in testSilentPackageInstall()
DMixedDeviceOwnerTest.java38 if (mHasFeature) { in setUp()
49 if (mHasFeature) { in tearDown()
DBaseDevicePolicyTest.java55 protected boolean mHasFeature; field in BaseDevicePolicyTest
66 mHasFeature = getDevice().getApiLevel() >= 21 /* Build.VERSION_CODES.L */ in setUp()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java44 private boolean mHasFeature; field in SystemUpdatePolicyTest
49 mHasFeature = Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1; in setUp()
51 if (mHasFeature) { in setUp()
60 if (mHasFeature) { in tearDown()
68 if (!mHasFeature) { in testSetEmptytInstallPolicy()
75 if (!mHasFeature) { in testSetAutomaticInstallPolicy()
82 if (!mHasFeature) { in testSetWindowedInstallPolicy()
89 if (!mHasFeature) { in testSetPostponeInstallPolicy()
96 if (!mHasFeature) { in testShouldFailInvalidWindowPolicy()