Home
last modified time | relevance | path

Searched refs:isEnabled (Results 1 – 25 of 175) sorted by relevance

1234567

/cts/hostsidetests/atrace/AtraceTestApp/src/com/android/cts/atracetestapp/
DAtraceDeviceTests.java54 assertTrue(Trace.isEnabled()); in assertTracingOn()
55 assertTrue(AtraceNdkMethods.isEnabled()); in assertTracingOn()
60 assertFalse(Trace.isEnabled()); in assertTracingOff()
61 assertFalse(AtraceNdkMethods.isEnabled()); in assertTracingOff()
66 assertTrue(Trace.isEnabled()); in beginEndSection()
67 assertTrue(AtraceNdkMethods.isEnabled()); in beginEndSection()
75 assertTrue(Trace.isEnabled()); in asyncBeginEndSection()
76 assertTrue(AtraceNdkMethods.isEnabled()); in asyncBeginEndSection()
84 assertTrue(Trace.isEnabled()); in counter()
85 assertTrue(AtraceNdkMethods.isEnabled()); in counter()
DAtraceNdkMethods.java20 public static native boolean isEnabled(); in isEnabled() method in AtraceNdkMethods
/cts/tests/tests/telephony/current/src/android/telephony/euicc/cts/
DEuiccManagerTest.java140 if (mEuiccManager.isEnabled()) { in testGetEid()
154 if (mEuiccManager.isEnabled()) { in testGetAvailableMemoryInBytes_euiccManagerDisabled()
165 if (!mEuiccManager.isEnabled()) { in testGetAvailableMemoryInBytes_euiccManagerEnabled()
199 if (mEuiccManager.isEnabled()) { in testDownloadSubscription()
232 if (mEuiccManager.isEnabled()) { in testGetEuiccInfo()
246 if (mEuiccManager.isEnabled()) { in testDeleteSubscription()
279 if (!mEuiccManager.isEnabled()) { in testSwitchToSubscritionDisableWithNoPortAndChangesCompatDisabled()
319 if (!mEuiccManager.isEnabled()) { in testSwitchToSubscriptionDisableWithNoPort()
336 if (mEuiccManager.isEnabled()) { in testSwitchToSubscription()
367 if (mEuiccManager.isEnabled()) { in testSwitchToSubscriptionWithCallback()
[all …]
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/wifi/
DWifiTest.java42 assertThat(TestApis.wifi().isEnabled()).isTrue(); in isEnabled_isEnabled_returnsTrue()
48 assertThat(TestApis.wifi().isEnabled()).isFalse(); in isEnabled_isNotEnabled_returnsFalse()
56 assertThat(TestApis.wifi().isEnabled()).isFalse(); in setEnabled_false_isNotEnabled()
64 assertThat(TestApis.wifi().isEnabled()).isTrue(); in setEnabled_true_isEnabled()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/wifi/
DWifi.kt33 var isEnabled: Boolean in <lambda>() variable
40 if (isEnabled == enabled) { in <lambda>()
47 Poll.forValue("Wifi enabled") { isEnabled } in <lambda>()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsMmTelManagerTest.java208 boolean isEnabled = mMmTelManager.isVoWiFiSettingEnabled(); in testGetVoWiFiSetting_noPermission()
237 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testAdvancedCallingSetting()
240 (m) -> m.setAdvancedCallingSettingEnabled(!isEnabled)); in testAdvancedCallingSetting()
246 + "setAdvancedCallingSettingEnabled", !isEnabled, isEnabledResult); in testAdvancedCallingSetting()
250 (m) -> m.setAdvancedCallingSettingEnabled(isEnabled)); in testAdvancedCallingSetting()
269 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVtSetting()
272 (m) -> m.setVtSettingEnabled(!isEnabled)); in testVtSetting()
278 !isEnabled, isEnabledResult); in testVtSetting()
282 (m) -> m.setVtSettingEnabled(isEnabled)); in testVtSetting()
305 boolean isEnabled = ShellIdentityUtils.invokeMethodWithShellPermissions(mMmTelManager, in testVoWiFiSetting()
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DListPreferenceTest.java54 boolean isEnabled = mListPref.isEnabled(); in testIsEnabled()
55 assertTrue(isEnabled); in testIsEnabled()
DPreferenceCategoryTest.java40 assertTrue(!prefCat.isEnabled()); in testPreferenceCategory()
/cts/hostsidetests/atrace/AtraceTestApp/jni/
DCtsTrace.cpp20 static jboolean isEnabled(JNIEnv*, jclass) { in isEnabled() function
43 { "isEnabled", "()Z", (void*) isEnabled },
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/activities/
DActivityReference.java52 public boolean isEnabled(UserReference user) { in isEnabled() method in ActivityReference
73 public boolean isEnabled() { in isEnabled() method in ActivityReference
74 return isEnabled(TestApis.users().instrumented()); in isEnabled()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/bluetooth/
DBluetooth.java62 if (isEnabled() == enabled) { in setEnabled()
88 Boolean unused2 = Poll.forValue("Bluetooth Enabled", this::isEnabled) in enable()
114 Boolean unused2 = Poll.forValue("Bluetooth Enabled", this::isEnabled) in disable()
126 public boolean isEnabled() { in isEnabled() method in Bluetooth
129 return sBluetoothAdapter.isEnabled(); in isEnabled()
/cts/tests/tests/bluetooth/src/android/bluetooth/cts/
DBluetoothConfigTest.java81 final boolean isEnabled = TestUtils.isProfileEnabled(profile); in checkIsProfileEnabledInList()
85 if (!isEnabled || isSupported) { in checkIsProfileEnabledInList()
90 + ". Config currently return: " + isEnabled in checkIsProfileEnabledInList()
129 final boolean isEnabled = TestUtils.isProfileEnabled(profile); in checkIsProfileEnabled()
133 if (!isEnabled || isSupported) { in checkIsProfileEnabled()
/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/bluetooth/
DBluetoothTest.java45 assertThat(TestApis.bluetooth().isEnabled()).isTrue(); in setEnabled_true_bluetoothIsEnabled()
54 assertThat(TestApis.bluetooth().isEnabled()).isFalse(); in setEnabled_false_bluetoothIsDisabled()
/cts/tests/tests/widget/src/android/widget/cts/
DHeaderViewListAdapterTest.java206 assertTrue(headerViewListAdapter.isEnabled(0)); in testIsEnabled()
212 assertFalse(headerViewListAdapter.isEnabled(0)); in testIsEnabled()
213 assertTrue(headerViewListAdapter.isEnabled(1)); in testIsEnabled()
219 assertFalse(headerViewListAdapter.isEnabled(0)); in testIsEnabled()
220 assertTrue(headerViewListAdapter.isEnabled(1)); in testIsEnabled()
221 assertFalse(headerViewListAdapter.isEnabled(2)); in testIsEnabled()
222 assertFalse(headerViewListAdapter.isEnabled(3)); in testIsEnabled()
225 assertTrue(headerViewListAdapter.isEnabled(0)); in testIsEnabled()
226 assertFalse(headerViewListAdapter.isEnabled(1)); in testIsEnabled()
227 assertFalse(headerViewListAdapter.isEnabled(2)); in testIsEnabled()
[all …]
DTabWidgetTest.java237 assertTrue(mTabWidget.isEnabled()); in testSetEnabled()
238 assertTrue(mTabWidget.getChildAt(0).isEnabled()); in testSetEnabled()
239 assertTrue(mTabWidget.getChildAt(1).isEnabled()); in testSetEnabled()
242 assertFalse(mTabWidget.isEnabled()); in testSetEnabled()
243 assertFalse(mTabWidget.getChildAt(0).isEnabled()); in testSetEnabled()
244 assertFalse(mTabWidget.getChildAt(1).isEnabled()); in testSetEnabled()
247 assertTrue(mTabWidget.isEnabled()); in testSetEnabled()
248 assertTrue(mTabWidget.getChildAt(0).isEnabled()); in testSetEnabled()
249 assertTrue(mTabWidget.getChildAt(1).isEnabled()); in testSetEnabled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBtAdapterUtils.java101 if (bluetoothAdapter.isEnabled()) return true; in enableAdapter()
107 while (!bluetoothAdapter.isEnabled()) { in enableAdapter()
120 return bluetoothAdapter.isEnabled(); in enableAdapter()
/cts/common/device-side/interactive/steps/src/main/java/com/android/interactive/steps/settings/
DSwitchWifiOffStep.java24 super("Switch wifi off", () -> !TestApis.wifi().isEnabled()); in SwitchWifiOffStep()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserInfo.kt96 fun isEnabled(): Boolean = proxy.isEnabled() method in com.android.bedstead.nene.users.UserInfo
/cts/hostsidetests/devicepolicy/app/AutofillApp/src/com/android/cts/devicepolicy/autofillapp/
DSimpleActivity.java27 final boolean enabled = getSystemService(AutofillManager.class).isEnabled(); in onStart()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DPreferentialNetworkServiceTest.java318 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isTrue(); in setPreferentialNetworkServiceConfigs_enabled_isSet()
338 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isTrue(); in setPreferentialNetworkServiceConfigs_fallback_isSet()
362 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isTrue(); in setPreferentialNetworkServiceConfigs_block_isSet()
396 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isTrue(); in setPreferentialNetworkServiceConfigs_enabled_isSet_excludedUids_set()
401 .getPreferentialNetworkServiceConfigs().get(1).isEnabled()).isTrue(); in setPreferentialNetworkServiceConfigs_enabled_isSet_excludedUids_set()
432 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isFalse(); in setPrefentialNetworkServiceConfigs_overlappingUids_throwsException()
441 .getPreferentialNetworkServiceConfigs().get(0).isEnabled()).isFalse(); in setPreferentialNetworkServiceConfigs_default_isNotSet()
/cts/tests/tests/app/src/android/app/cts/
DRemoteActionTest.java58 assertFalse(result.isEnabled()); in testParcel()
80 assertFalse(result.isEnabled()); in testClone()
/cts/common/device-side/interactive/automation/src/main/java/com/android/interactive/steps/settings/
DCanYouSwitchWifiOffStepAutomation.java34 new UiSelector().resourceId("android:id/switch_widget")).isEnabled(); in automate()
/cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DDocumentsClientTest.java473 assertFalse(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
483 assertFalse(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
500 assertFalse(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
509 assertFalse(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
515 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkEnabled_blockFromTree()
531 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
538 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
554 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
563 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
569 assertTrue(findSaveButton().isEnabled()); in testRestrictStorageAccessFrameworkDisabled_notBlockFromTree()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java58 + " enabled: " + mBluetoothAdapter.isEnabled() in setUp()
237 assertWithMessage("mBluetoothAdapter.isEnabled()").that(mBluetoothAdapter.isEnabled()) in assertBluetoothAdapterEnabled()
242 assertWithMessage("mBluetoothAdapter.isEnabled()").that(mBluetoothAdapter.isEnabled()) in assertBluetoothAdapterDisabled()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39626/src/android/security/cts/CVE_2021_39626/
DPocActivity.java57 && !bluetoothAdapter.isEnabled()) in onCreate()
59 && bluetoothAdapter.isEnabled())) { in onCreate()

1234567