Home
last modified time | relevance | path

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

/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()
DSmsBackupRestoreTest.java72 private boolean mHasFeature; field in SmsBackupRestoreTest
82 mHasFeature = isFeatureSupported(); in setUp()
83 if (mHasFeature) { in setUp()
95 if (mHasFeature) { in tearDown()
139 if (!mHasFeature) { in testSmsBackupRestore()
/cts/tests/admin/src/android/admin/cts/
DDeviceAdminActivationTest.java89 private boolean mHasFeature; field in DeviceAdminActivationTest
101 mHasFeature = mInstrumentation.getContext().getPackageManager().hasSystemFeature( in setUp()
112 if (!mHasFeature) { in testActivateGoodReceiverDisplaysActivationUi()
128 if (!mHasFeature) { in testActivateBrokenReceiverFails()
140 if (!mHasFeature) { in testActivateBrokenReceiver2Fails()
152 if (!mHasFeature) { in testActivateBrokenReceiver3Fails()
164 if (!mHasFeature) { in testActivateBrokenReceiver4Fails()
176 if (!mHasFeature) { in testActivateBrokenReceiver5Fails()
188 if (!mHasFeature) { in testNonSystemAppCantBecomeAdmin_withKeyEvent()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java72 protected boolean mHasFeature; field in PrivacyDeviceOwnerTest
87 mHasFeature = hasDeviceFeature("android.software.device_admin"); in setUp()
88 if (!mHasFeature) return; in setUp()
107 if (mHasFeature) { in tearDown()
122 if (!mHasFeature) { in testDeviceOwnerWithInfo()
131 if (!mHasFeature) { in testNonDeviceOwnerWithInfo()
139 if (!mHasFeature) { in testDeviceOwnerWithoutInfo()
148 if (!mHasFeature) { in testNonDeviceOwnerWithoutInfo()
/cts/tests/tests/voicesettings/src/android/voicesettings/cts/
DAirplaneModeTest.java47 mHasFeature = mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); in customSetup()
49 Log.v(TAG, "setUp(): mHasFeature=" + mHasFeature + ", original airplane mode=" in customSetup()
66 if (!mHasFeature) { in testAll()
DBatterySaverModeTest.java38 mHasFeature = mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); in customSetup()
43 if (!mHasFeature) { in testAll()
DBroadcastTestBase.java66 protected boolean mHasFeature; field in BroadcastTestBase
81 mHasFeature = false; in setUp()
88 Log.v(TAG, getClass().getSimpleName() + ".tearDown(): hasFeature=" + mHasFeature in tearDown()
91 if (mHasFeature && mActivityDoneReceiver != null) { in tearDown()
DZenModeTest.java41 mHasFeature = mContext.getPackageManager().hasSystemFeature(FEATURE_VOICE_RECOGNIZERS); in customSetup()
52 if (!mHasFeature) { in testAll()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java60 private boolean mHasFeature; field in NumberBlockingTest
66 mHasFeature = getDevice().isMultiUserSupported() in setUp()
70 if (!mHasFeature) { in setUp()
84 if (mHasFeature) { in tearDown()
97 if (!mHasFeature) { in testNumberBlocking()