Home
last modified time | relevance | path

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

123

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java106 if (mHasFeature) { in setUp()
119 mHasCreateAndManageUserFeature = mHasFeature && canCreateAdditionalUsers(1) in setUp()
125 if (mHasFeature) { in tearDown()
142 if (!mHasFeature) { in testLockScreenInfo()
154 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi()
166 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testRemoteBugreportWithTwoUsers()
425 if (!mHasFeature) { in testUserSession()
432 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testSecurityLoggingWithTwoUsers()
452 if (!mHasFeature) { in testSecurityLoggingWithSingleUser()
494 if (!mHasFeature) { in testSecurityLoggingEnabledLogged()
[all …]
DDeviceAndProfileOwnerTest.java179 if (mHasFeature) { in tearDown()
208 if (!mHasFeature) { in testCaCertManagement()
215 if (!mHasFeature) { in testInstallCaCertLogged()
231 if (!mHasFeature) { in testApplicationRestrictionIsRestricted()
244 if (!mHasFeature) { in testApplicationRestrictions()
363 if (!mHasFeature) { in testDelegation()
398 if (!mHasFeature) { in testDelegationCertSelection()
415 if (!mHasFeature) { in testPermissionGrant()
423 if (!mHasFeature) { in testPermissionGrant_developmentPermission()
441 if (!mHasFeature) { in testAlwaysOnVpn()
[all …]
DDeviceOwnerPlusProfileOwnerTest.java67 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
68 if (mHasFeature) { in setUp()
85 if (mHasFeature) { in tearDown()
97 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_corpOwnedManagedProfile()
121 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_corpOwnedManagedProfileWithManagedProvisioning()
141 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_canBindEvenIfProfileNotEnabled()
154 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_byodPlusDeviceOwnerCannotBind()
178 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testBindDeviceAdminServiceAsUser_secondaryUser()
199 if (!mHasFeature || !canCreateAdditionalUsers(2)) { in testBindDeviceAdminServiceAsUser_compPlusSecondaryUser()
221 if (!mHasFeature) { in testCannotRemoveProfileIfRestrictionSet()
[all …]
DManagedProfileProvisioningTest.java30 mHasFeature = mHasFeature && hasDeviceFeature( in setUp()
33 if (mHasFeature) { in setUp()
43 if (mHasFeature) { in tearDown()
54 if (!mHasFeature) { in testManagedProfileProvisioning()
65 if (!mHasFeature) { in testEXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE()
76 if (!mHasFeature) { in testVerifySuccessfulIntentWasReceived()
87 if (!mHasFeature) { in testAccountMigration()
101 if (!mHasFeature) { in testAccountCopy()
115 if (!mHasFeature) { in testWebview()
DManagedProfileTest.java111 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
115 if (mHasFeature) { in setUp()
145 if (mHasFeature) { in tearDown()
156 if (mHasFeature) { in testManagedProfilesSupportedWithLockScreenOnly()
164 if (!mHasFeature) { in testManagedProfileSetup()
173 if (!mHasFeature) { in testWipeDataWithReason()
193 if (!mHasFeature) { in testWipeDataLogged()
213 if (!mHasFeature) { in testWipeDataWithoutReason()
236 if (!mHasFeature) { in testWipeData()
254 if (!mHasFeature || !mSupportsFbe || !mHasSecureLockScreen) { in testLockNowWithKeyEviction()
[all …]
DProfileOwnerTest.java38 if (mHasFeature) { in setUp()
51 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi()
58 if (!mHasFeature) { in testManagement()
65 if (!mHasFeature) { in testAdminActionBookkeeping()
72 if (!mHasFeature) { in testAppUsageObserver()
81 if (!mHasFeature || !hasBackupService) { in testBackupServiceEnabling()
89 if (mHasFeature) { in tearDown()
99 if (!mHasFeature) { in executeProfileOwnerTest()
DDeviceAndProfileOwnerHostSideTransferTest.java39 if (!mHasFeature) { in testTransferOwnership()
55 if (!mHasFeature) { in testTransferSameAdmin()
64 if (!mHasFeature) { in testTransferInvalidTarget()
74 if (!mHasFeature) { in testTransferPolicies()
86 if (!mHasFeature) { in testTransferOwnershipChangedBroadcast()
95 if (!mHasFeature) { in testTransferCompleteCallback()
117 if (!mHasFeature) { in testTransferOwnershipNoMetadata()
126 if (!mHasFeature) { in testIsTransferBundlePersisted()
139 if (!mHasFeature) { in testGetTransferOwnershipBundleOnlyCalledFromAdmin()
148 if (!mHasFeature) { in testBundleEmptyAfterTransferWithNullBundle()
[all …]
DLauncherAppsProfileTest.java45 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
46 if (mHasFeature) { in setUp()
65 if (mHasFeature) { in tearDown()
74 if (!mHasFeature) { in testGetActivitiesWithProfile()
109 if (!mHasFeature) { in testProfileOwnerAppHiddenInPrimaryProfile()
121 if (!mHasFeature) { in testNoHiddenActivityInProfile()
138 if (!mHasFeature) { in testLauncherCallbackPackageAddedProfile()
150 if (!mHasFeature) { in testLauncherCallbackPackageRemovedProfile()
163 if (!mHasFeature) { in testLauncherCallbackPackageChangedProfile()
177 if (!mHasFeature) { in testReverseAccessNoThrow()
DMixedManagedProfileOwnerTest.java37 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
39 if (mHasFeature) { in setUp()
58 if (mHasFeature) { in tearDown()
71 if (!mHasFeature) { in testScreenCaptureDisabled_allowedPrimaryUser()
84 if (!mHasFeature) { in testScreenCaptureDisabled_assist_allowedPrimaryUser()
164 if (!mHasFeature || !mHasSecureLockScreen) { in testResetPasswordWithToken()
179 if (!mHasFeature) { in testCannotClearProfileOwner()
193 if (!mHasFeature) { in testDelegatedCertInstallerDeviceIdAttestation()
210 if (!mHasFeature) { in testDeviceIdAttestationForProfileOwner()
DQuietModeHostsideTest.java27 mHasFeature = mHasFeature & hasDeviceFeature("android.software.managed_users"); in setUp()
29 if(mHasFeature) { in setUp()
45 if (mHasFeature) { in tearDown()
53 if (!mHasFeature) { in testQuietMode_defaultForegroundLauncher()
65 if (!mHasFeature) { in testQuietMode_notForegroundLauncher()
77 if (!mHasFeature) { in testQuietMode_notDefaultLauncher()
DUserRestrictionsTest.java55 if (mHasFeature) { in tearDown()
82 if (!mHasFeature) { in testUserRestrictions_deviceOwnerOnly()
96 if (!mHasFeature) { in testUserRestrictions_primaryProfileOwnerOnly()
116 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_secondaryProfileOwnerOnly()
132 if (!mHasFeature || !mSupportsMultiUser || !mHasManagedUserFeature) { in testUserRestrictions_managedProfileOwnerOnly()
154 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_layering()
192 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_layering_profileOwnerNoLeaking()
220 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_profileGlobalRestrictionsAsDo()
240 if (!mHasFeature || !mSupportsMultiUser || !mHasManagedUserFeature) { in testUserRestrictions_ProfileGlobalRestrictionsAsPo()
DManagedProfileProvisioningSingleAdminTest.java35 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
37 if (mHasFeature) { in setUp()
46 if (mHasFeature) { in tearDown()
56 if (!mHasFeature) { in testEXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME()
DEphemeralUserTest.java27 mHasFeature = canCreateAdditionalUsers(1); in setUp()
38 if (!mHasFeature) { in testCreateEphemeralUser()
48 if (!mHasFeature) { in testCreateLongLivedUser()
61 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users") in testProfileInheritsEphemeral()
76 if (!mHasFeature) { in testRemoveEphemeralOnStop()
91 if (!mHasFeature) { in testEphemeralGuestFeature()
DMixedManagedProfileOwnerTestApi25.java32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
34 if (mHasFeature) { in setUp()
53 if (mHasFeature) { in tearDown()
65 if (!mHasFeature || !mHasSecureLockScreen) { in testResetPassword()
78 if (!mHasFeature || !mSupportsFbe || !mHasSecureLockScreen) { in testResetPasswordFbe()
DBaseDeviceAdminHostSideTest.java56 if (mHasFeature) { in setUp()
64 if (mHasFeature) { in tearDown()
87 if (!mHasFeature) { in testRunDeviceAdminTest()
94 if (!mHasFeature || !mHasSecureLockScreen) { in testResetPassword_nycRestrictions()
114 if (!mHasFeature || !mHasSecureLockScreen) { in testRunDeviceOwnerPasswordTest()
DMixedDeviceOwnerTest.java40 if (mHasFeature) { in setUp()
55 if (mHasFeature) { in tearDown()
63 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testLockTask_unaffiliatedUser()
81 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testLockTask_affiliatedSecondaryUser()
91 if (!mHasFeature) { in testDelegatedCertInstallerDeviceIdAttestation()
DAdbProvisioningTests.java33 if (!mHasFeature) { in setUp()
42 if (!mHasFeature) { in tearDown()
50 if (!mHasFeature) { in testAdbDeviceOwnerLogged()
64 if (!mHasFeature) { in testAdbProfileOwnerLogged()
DDeviceAndProfileOwnerTestApi25.java54 if (mHasFeature) { in tearDown()
68 if (!mHasFeature || !mHasSecureLockScreen) { in testResetPassword()
76 if (!mHasFeature || !mSupportsFbe || !mHasSecureLockScreen) { in testResetPasswordFbe()
91 if (!mHasFeature) { in testPermissionGrantPreMApp()
DCustomDeviceOwnerTest.java48 if (mHasFeature) { in tearDown()
57 if (!mHasFeature) { in testOwnerChangedBroadcast()
88 if (!mHasFeature || getMaxNumberOfUsersSupported() < 2) { in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
105 if (!mHasFeature) { in testCannotSetDeviceOwnerWhenAccountPresent()
DCustomManagedProfileTest.java30 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
38 if (mHasFeature) { in testIsProvisioningAllowed()
DProfileOwnerTestApi23.java33 if (mHasFeature) { in setUp()
49 if (mHasFeature) { in tearDown()
58 if (!mHasFeature) { in testDelegatedCertInstaller()
DMixedDeviceOwnerHostSideTransferTest.java37 if (mHasFeature) { in setUp()
53 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipCompleteCallback()
76 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users")) { in testTransferAffiliatedProfileOwnershipInComp()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DRequiredFeatureRule.java40 private final boolean mHasFeature; field in RequiredFeatureRule
44 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
53 if (!mHasFeature) { in apply()
58 mHasFeature); in apply()
/cts/tests/tests/provider/src/android/provider/cts/
DBlockedNumberBackupRestoreTest.java47 private boolean mHasFeature; field in BlockedNumberBackupRestoreTest
58 mHasFeature = isFeatureSupported(); in setUp()
61 if (mHasFeature && mIsSystemUser) { in setUp()
74 if (mHasFeature && mIsSystemUser) { in tearDown()
86 if (!mHasFeature || !mIsSystemUser) { in testBackupAndRestoreForSingleNumber()
107 if (!mHasFeature || !mIsSystemUser) { in testBackupAndRestoreWithDeletion()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DRequiredFeatureRule.java33 private final boolean mHasFeature; field in RequiredFeatureRule
37 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
46 if (!mHasFeature) { in apply()

123