Home
last modified time | relevance | path

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

12

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java59 if (mHasFeature) { in setUp()
68 mHasEphemeralUserFeature = mHasFeature && canCreateAdditionalUsers(1) && hasUserSplit(); in setUp()
70 mHasFeature && canCreateAdditionalUsers(1) && !hasUserSplit(); in setUp()
75 if (mHasFeature) { in tearDown()
112 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testRemoteBugreportWithTwoUsers()
264 if (mHasFeature && canCreateAdditionalUsers(1)) { in testCreateAndManageUser_AddRestrictionSet()
271 if (mHasFeature && canCreateAdditionalUsers(1)) { in testCreateAndManageUser_RemoveRestrictionSet()
278 if (mHasFeature && canCreateAdditionalUsers(1)) { in testUserAddedOrRemovedBroadcasts()
285 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testSecurityLoggingWithTwoUsers()
305 if (!mHasFeature) { in testSecurityLoggingWithSingleUser()
[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()
DDeviceAndProfileOwnerTest.java114 if (mHasFeature) { in tearDown()
136 if (!mHasFeature) { in testCaCertManagement()
143 if (!mHasFeature) { in testApplicationRestrictions()
185 if (!mHasFeature) { in testDelegation()
231 if (!mHasFeature) { in testPermissionGrant()
248 if (!mHasFeature) { in testAlwaysOnVpn()
257 if (!mHasFeature) { in testAlwaysOnVpnLockDown()
273 if (!mHasFeature) { in testAlwaysOnVpnPackageUninstalled()
289 if (!mHasFeature) { in testPermissionPolicy()
297 if (!mHasFeature) { in testPermissionMixedPolicies()
[all …]
DProfileOwnerTest.java37 if (mHasFeature) { in setUp()
50 if (!mHasFeature || !hasDeviceFeature("android.hardware.wifi")) { in testWifi()
57 if (!mHasFeature) { in testManagement()
64 if (!mHasFeature) { in testAdminActionBookkeeping()
72 if (mHasFeature) { in tearDown()
82 if (!mHasFeature) { in executeProfileOwnerTest()
DDeviceOwnerPlusProfileOwnerTest.java56 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
57 if (mHasFeature) { in setUp()
74 if (mHasFeature) { in tearDown()
86 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_corpOwnedManagedProfile()
110 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_corpOwnedManagedProfileWithManagedProvisioning()
130 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_canBindEvenIfProfileNotEnabled()
143 if (!mHasFeature) { in testBindDeviceAdminServiceAsUser_byodPlusDeviceOwnerCannotBind()
167 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testBindDeviceAdminServiceAsUser_secondaryUser()
188 if (!mHasFeature || !canCreateAdditionalUsers(1)) { in testBindDeviceAdminServiceAsUser_compPlusSecondaryUser()
210 if (!mHasFeature) { in testCannotRemoveProfileIfRestrictionSet()
[all …]
DManagedProfileTest.java91 mHasFeature = mHasFeature && hasDeviceFeature( in setUp()
95 if (mHasFeature) { in setUp()
110 if (mHasFeature) { in tearDown()
120 if (!mHasFeature) { in testManagedProfileSetup()
132 if (!mHasFeature) { in testWipeData()
144 if (!mHasFeature || !mSupportsFbe) { in testLockNowWithKeyEviction()
172 fail(mHasFeature ? "Device must allow creating only one managed profile" in testMaxOneManagedProfile()
181 if (!mHasFeature || !hasDeviceFeature(FEATURE_WIFI)) { in testProfileWifiCleanup()
200 if (!mHasFeature || !hasDeviceFeature(FEATURE_WIFI)) { in testWifiMacAddress()
208 if (!mHasFeature) { in testCrossProfileIntentFilters()
[all …]
DEphemeralUserTest.java27 mHasFeature = canCreateAdditionalUsers(1); in setUp()
38 if (!mHasFeature || !hasUserSplit()) { in testCreateEphemeralUser()
48 if (!mHasFeature) { in testCreateLongLivedUser()
61 if (!mHasFeature || !hasDeviceFeature("android.software.managed_users") in testProfileInheritsEphemeral()
75 if (!mHasFeature || !hasUserSplit()) { in testRemoveEphemeralOnStop()
90 if (!mHasFeature || !hasUserSplit()) { in testEphemeralGuestFeature()
110 if (!mHasFeature || hasUserSplit()) { in testCreateEphemeralWithoutUserSplitFails()
DMixedManagedProfileOwnerTestApi25.java32 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
34 if (mHasFeature) { in setUp()
53 if (mHasFeature) { in tearDown()
65 if (!mHasFeature) { in testResetPassword()
78 if (!mHasFeature || !mSupportsFbe) { in testResetPasswordFbe()
DLauncherAppsProfileTest.java43 mHasFeature = mHasFeature && hasDeviceFeature("android.software.managed_users"); in setUp()
44 if (mHasFeature) { in setUp()
67 if (mHasFeature) { in tearDown()
75 if (!mHasFeature) { in testGetActivitiesWithProfile()
110 if (!mHasFeature) { in testLauncherCallbackPackageAddedProfile()
122 if (!mHasFeature) { in testLauncherCallbackPackageRemovedProfile()
135 if (!mHasFeature) { in testLauncherCallbackPackageChangedProfile()
DUserRestrictionsTest.java53 if (mHasFeature) { in tearDown()
80 if (!mHasFeature) { in testUserRestrictions_deviceOwnerOnly()
94 if (!mHasFeature) { in testUserRestrictions_primaryProfileOwnerOnly()
114 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_secondaryProfileOwnerOnly()
130 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_managedProfileOwnerOnly()
152 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_layering()
190 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_layering_profileOwnerNoLeaking()
218 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_profileGlobalRestrictionsAsDo()
238 if (!mHasFeature || !mSupportsMultiUser) { in testUserRestrictions_ProfileGlobalRestrictionsAsPo()
DMixedManagedProfileOwnerTest.java35 mHasFeature &= hasDeviceFeature("android.software.managed_users"); in setUp()
37 if (mHasFeature) { in setUp()
56 if (mHasFeature) { in tearDown()
69 if (!mHasFeature) { in testScreenCaptureDisabled_allowedPrimaryUser()
82 if (!mHasFeature) { in testScreenCaptureDisabled_assist_allowedPrimaryUser()
DBaseDeviceAdminHostSideTest.java56 if (mHasFeature) { in setUp()
64 if (mHasFeature) { in tearDown()
87 if (!mHasFeature) { in testRunDeviceAdminTest()
111 if (!mHasFeature) { in testResetPassword_nycRestrictions()
129 if (!mHasFeature) { in testRunDeviceOwnerPasswordTest()
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()
DCustomDeviceOwnerTest.java51 if (mHasFeature) { in tearDown()
60 if (!mHasFeature) { in testOwnerChangedBroadcast()
90 if (!mHasFeature || getMaxNumberOfUsersSupported() < 2) { in testCannotSetDeviceOwnerWhenSecondaryUserPresent()
107 if (!mHasFeature) { in testCannotSetDeviceOwnerWhenAccountPresent()
DDeviceAndProfileOwnerTestApi25.java53 if (mHasFeature) { in tearDown()
67 if (!mHasFeature) { in testResetPassword()
75 if (!mHasFeature || !mSupportsFbe) { in testResetPasswordFbe()
DMixedProfileOwnerTest.java31 if (mHasFeature) { in setUp()
47 if (mHasFeature) { in tearDown()
DMixedProfileOwnerTestApi25.java31 if (mHasFeature) { in setUp()
47 if (mHasFeature) { in tearDown()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java46 private boolean mHasFeature; field in SystemUpdatePolicyTest
51 mHasFeature = ApiLevelUtil.isAfter(Build.VERSION_CODES.LOLLIPOP_MR1); in setUp()
53 if (mHasFeature) { in setUp()
62 if (mHasFeature) { in tearDown()
70 if (!mHasFeature) { in testSetEmptytInstallPolicy()
77 if (!mHasFeature) { in testSetAutomaticInstallPolicy()
84 if (!mHasFeature) { in testSetWindowedInstallPolicy()
91 if (!mHasFeature) { in testSetPostponeInstallPolicy()
98 if (!mHasFeature) { in testShouldFailInvalidWindowPolicy()
/cts/tests/tests/provider/src/android/provider/cts/
DBlockedNumberBackupRestoreTest.java46 private boolean mHasFeature; field in BlockedNumberBackupRestoreTest
56 mHasFeature = isFeatureSupported(); in setUp()
58 if (mHasFeature) { in setUp()
71 if (mHasFeature) { in tearDown()
83 if (!mHasFeature) { in testBackupAndRestoreForSingleNumber()
104 if (!mHasFeature) { in testBackupAndRestoreWithDeletion()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DRequiredFeatureRule.java34 private final boolean mHasFeature; field in RequiredFeatureRule
38 mHasFeature = hasFeature(feature); in RequiredFeatureRule()
47 if (!mHasFeature) { in apply()
/cts/tests/tests/net/src/android/net/cts/
DTheaterModeTest.java32 private boolean mHasFeature; field in TheaterModeTest
39 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
45 if (!mHasFeature) { in testTheaterMode()
DAirplaneModeTest.java33 private boolean mHasFeature; field in AirplaneModeTest
40 mHasFeature = (mContext.getPackageManager().hasSystemFeature(FEATURE_BLUETOOTH) in setup()
46 if (!mHasFeature) { in testAirplaneMode()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionTest.java46 protected boolean mHasFeature; field in VoiceInteractionTest
58 mHasFeature = mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); in setUp()
59 if (mHasFeature) { in setUp()
67 if (mHasFeature && mReceiver != null) { in tearDown()
92 if (!mHasFeature) { in testAll()
DLocalVoiceInteractionTest.java46 protected boolean mHasFeature; field in LocalVoiceInteractionTest
58 mHasFeature = mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); in setUp()
71 if (!mHasFeature) { in testLifecycle()

12