Home
last modified time | relevance | path

Searched refs:enabled (Results 1 – 25 of 33) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationModeTestActivity.java240 boolean enabled = Secure.isLocationProviderEnabled(cr, provider); in testSecureProviderIsEnabled()
241 mStatus[i] = enabled ? PASS : FAIL; in testSecureProviderIsEnabled()
247 boolean enabled = Secure.isLocationProviderEnabled(cr, provider); in testSecureProviderIsDisabled()
248 mStatus[i] = !enabled ? PASS : FAIL; in testSecureProviderIsDisabled()
254 boolean enabled = manager.isProviderEnabled(gpsProvider); in testManagerProviderIsEnabled()
255 mStatus[i] = enabled ? PASS : FAIL; in testManagerProviderIsEnabled()
261 boolean enabled = manager.isProviderEnabled(gpsProvider); in testManagerProviderIsDisabled()
262 mStatus[i] = !enabled ? PASS : FAIL; in testManagerProviderIsDisabled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DTvAppVerifierActivity.java64 protected void setButtonEnabled(View item, boolean enabled) { in setButtonEnabled() argument
66 button.setFocusable(enabled); in setButtonEnabled()
67 button.setClickable(enabled); in setButtonEnabled()
68 button.setEnabled(enabled); in setButtonEnabled()
DMockTvInputService.java155 static void expectSetCaptionEnabled(boolean enabled, View postTarget, in expectSetCaptionEnabled() argument
159 sSetCaptionEnabledCallback.getBundle().putBoolean(CAPTION_ENABLED, enabled); in expectSetCaptionEnabled()
379 public void onSetCaptionEnabled(boolean enabled) { in onSetCaptionEnabled() argument
383 if (bundle.getBoolean(CAPTION_ENABLED) == enabled) { in onSetCaptionEnabled()
/cts/tests/tests/content/src/android/content/pm/cts/
DComponentInfoTest.java145 mComponentInfo.enabled = false; in testIsEnabled()
148 mComponentInfo.enabled = true; in testIsEnabled()
149 mComponentInfo.applicationInfo.enabled = false; in testIsEnabled()
223 assertEquals(mComponentInfo.enabled, ci.enabled); in testWriteToParcel()
DApplicationInfoTest.java69 assertEquals(mApplicationInfo.enabled, info.enabled); in testWriteToParcel()
DPackageInfoTest.java100 assertEquals(expected.enabled, actual.enabled); in checkAppInfo()
/cts/tests/tests/tv/src/android/media/tv/cts/
DStubTvInputService.java57 public void onSetCaptionEnabled(boolean enabled) { in onSetCaptionEnabled() argument
DHardwareSessionTest.java132 public void onSetCaptionEnabled(boolean enabled) { in onSetCaptionEnabled() argument
DStubTunerTvInputService.java171 public void onSetCaptionEnabled(boolean enabled) { in onSetCaptionEnabled() argument
/cts/tests/tests/netlegacy22/api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java215 private void setWifiState(final boolean enabled) { in setWifiState() argument
216 if (enabled != isWifiConnected()) { in setWifiState()
217 final NetworkInfo.State desiredState = enabled ? in setWifiState()
222 mWifiManager.setWifiEnabled(enabled); in setWifiState()
/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java519 boolean enabled = m.getData().getBoolean(ENABLED_KEY); in handleMessage()
523 String.valueOf(enabled), String.valueOf(mEnabledShouldBe) ), in handleMessage()
524 mEnabledShouldBe, enabled); in handleMessage()
532 public void expectEnabled(boolean enabled) { in expectEnabled() argument
533 mEnabledShouldBe = enabled; in expectEnabled()
574 public void setEnabled(boolean enabled) { in setEnabled() argument
575 mEnabled = enabled; in setEnabled()
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DCaptioningManagerTest.java143 public void onEnabledChanged(boolean enabled) { in onEnabledChanged() argument
144 super.onEnabledChanged(enabled); in onEnabledChanged()
DAccessibilityManagerTest.java60 public void onAccessibilityStateChanged(boolean enabled) { in testAddAndRemoveAccessibilityStateChangeListener()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/flashlight/
DCameraFlashlightActivity.java160 public void onTorchModeChanged(String cameraId, boolean enabled) {
166 if (mTestState == TestState.WAITING_ON_CALLBACK_ON && enabled) {
168 } else if (mTestState == TestState.WAITING_ON_CALLBACK_OFF && !enabled) {
/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java340 boolean enabled = wifiManager.isWifiEnabled(); in getWifiMacAddress()
343 if (!enabled) { in getWifiMacAddress()
351 if (!enabled) { in getWifiMacAddress()
/cts/tests/tests/media/src/android/media/cts/
DPresetReverbTest.java342 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
345 mIsEnabled = enabled; in createListenerLooper()
DBassBoostTest.java381 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
384 mIsEnabled = enabled; in createListenerLooper()
DEqualizerTest.java401 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
404 mIsEnabled = enabled; in createListenerLooper()
DEnvReverbTest.java501 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
504 mIsEnabled = enabled; in createListenerLooper()
DVirtualizerTest.java638 public void onEnableStatusChange(AudioEffect effect, boolean enabled) { in createListenerLooper()
641 mIsEnabled = enabled; in createListenerLooper()
/cts/apps/CtsVerifier/assets/scripts/
Dexecute_power_tests.py291 def setUsbEnabled(self, enabled, verbose = True): argument
292 if enabled:
311 if enabled:
321 if enabled and self._tcp_connect_port > 0:
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DFlashlightTest.java370 public void onTorchModeChanged(String cameraId, boolean enabled) { in onTorchModeChanged() argument
373 if (enabled) { in onTorchModeChanged()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DInputConnectionWrapperTest.java195 public boolean reportFullscreenMode(boolean enabled) { in reportFullscreenMode() argument
/cts/tests/tests/app/src/android/app/cts/
DSystemFeaturesTest.java467 boolean enabled = mWifiManager.isWifiEnabled(); in testWifiFeature()
476 if (!enabled) { in testWifiFeature()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java503 private void updateNextButton(final boolean enabled) { in updateNextButton() argument
507 mNextButton.setEnabled(enabled); in updateNextButton()

12