Home
last modified time | relevance | path

Searched refs:enable (Results 1 – 25 of 75) sorted by relevance

123

/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DBluetoothRestrictionTest.java53 enable(); in tearDown()
68 assertFalse(mBluetoothAdapter.enable()); in testEnableBluetoothFailsWhenDisallowed()
77 enable(); in testBluetoothGetsDisabledAfterRestrictionSet()
102 enable(); in testEnableBluetoothSucceedsAfterRestrictionRemoved()
206 private void enable() { in enable() method in BluetoothRestrictionTest
219 mBluetoothAdapter.enable(); in enable()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DBluetoothTest.java56 enable(); in tearDown()
69 enable(); in testEnableDisable()
83 enable(); in testListenUsingRfcommWithServiceRecord()
157 private void enable() { in enable() method in BluetoothTest
169 assertThat(mAdapter.enable()).isTrue(); in enable()
DNotificationListenerTest.java176 private void toggleNotificationListener(boolean enable) throws Exception { in toggleNotificationListener() argument
180 + (enable ? "allow_listener " : "disallow_listener ") in toggleNotificationListener()
182 Log.i(TAG, "Toggled notification listener state" + testListener + " to state " + enable); in toggleNotificationListener()
183 if (enable) { in toggleNotificationListener()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DDataProfileTest.java54 .enable(IS_ENABLED) in testConstructorAndGetters()
91 .enable(IS_ENABLED) in testEquals()
109 .enable(IS_ENABLED) in testEquals()
132 .enable(IS_ENABLED) in testNotEquals()
150 .enable(false) in testNotEquals()
175 .enable(IS_ENABLED) in testParcel()
/cts/tests/tests/graphics/assets/shaders/
Dpassthrough_fsh.glsl2 #extension GL_ARB_separate_shader_objects : enable
3 #extension GL_ARB_shading_language_420pack : enable
Dpassthrough_vsh.glsl2 #extension GL_ARB_separate_shader_objects : enable
3 #extension GL_ARB_shading_language_420pack : enable
Dtri.vert19 #extension GL_ARB_separate_shader_objects : enable
20 #extension GL_ARB_shading_language_420pack : enable
Dtri.frag19 #extension GL_ARB_separate_shader_objects : enable
20 #extension GL_ARB_shading_language_420pack : enable
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DAudioFrequencyActivity.java124 void enableTestUI(boolean enable) { in enableTestUI() argument
128 void enableLayout(int layoutId, boolean enable) { in enableLayout() argument
131 group.getChildAt(i).setEnabled(enable); in enableLayout()
172 public void enableUILayout(LinearLayout layout, boolean enable) { in enableUILayout() argument
175 view.setEnabled(enable); in enableUILayout()
DUSBAudioPeripheralPlayActivity.java60 void enableTestUI(boolean enable) { in enableTestUI() argument
61 mPlayBtn.setEnabled(enable); in enableTestUI()
DMidiTestActivityBase.java261 void enableTestButtons(boolean enable) { in enableTestButtons() argument
264 if (enable) { in enableTestButtons()
269 mUSBTestBtn.setEnabled(enable); in enableTestButtons()
270 mVirtTestBtn.setEnabled(enable); in enableTestButtons()
271 mBTTestBtn.setEnabled(enable); in enableTestButtons()
DUSBAudioPeripheralRecordActivity.java151 void enableTestUI(boolean enable) { in enableTestUI() argument
152 mRecordBtn.setEnabled(enable); in enableTestUI()
153 mRecordLoopbackBtn.setEnabled(enable); in enableTestUI()
/cts/hostsidetests/jvmti/base/jni/
Dtracking.cpp62 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback() argument
65 callbacks.VMObjectAlloc = enable ? ObjectAllocated : nullptr; in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
72 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking() argument
74 enable ? JVMTI_ENABLE : JVMTI_DISABLE, in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
Dredefine.cpp134 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jboolean enable) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent() argument
144 enable == JNI_TRUE ? JVMTI_ENABLE : JVMTI_DISABLE, in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
158 JNIEnv* env ATTRIBUTE_UNUSED, jclass klass ATTRIBUTE_UNUSED, jboolean enable) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setPopTransformations() argument
159 data.SetPop(enable == JNI_TRUE ? true : false); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setPopTransformations()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/net/
DBytesTransferredTest.java155 private void doTestDataUsageBytesTransferEnabled(boolean enable) throws Throwable { in doTestDataUsageBytesTransferEnabled() argument
157 setNetworkStatsCombinedSubTypeEnabled(enable); in doTestDataUsageBytesTransferEnabled()
169 && ((enable && ratTypeEqualsToUnknown) in doTestDataUsageBytesTransferEnabled()
170 || (!enable && ratTypeGreaterThanUnknown))) { in doTestDataUsageBytesTransferEnabled()
255 private void setNetworkStatsCombinedSubTypeEnabled(boolean enable) throws Exception { in setNetworkStatsCombinedSubTypeEnabled() argument
257 + (enable ? "1" : "0")); in setNetworkStatsCombinedSubTypeEnabled()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/instantapps/
DBaseTestActivity.java98 private void enablePassFailButtons(boolean enable) { in enablePassFailButtons() argument
99 mPassButton.setEnabled(enable); in enablePassFailButtons()
100 mFailButton.setEnabled(enable); in enablePassFailButtons()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DComponentReference.java74 public ComponentReference enable(UserReference user) { in enable() method in ComponentReference
89 public ComponentReference enable() { in enable() method in ComponentReference
90 return enable(mTestApis.users().instrumented()); in enable()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DLocationUtils.java37 boolean enable) throws IOException { in registerMockLocationProvider() argument
41 + (enable ? "allow" : "deny")); in registerMockLocationProvider()
/cts/tests/tests/media/src/android/media/cts/
DPresetReverbTest.java296 public ListenerThread(boolean control, boolean enable, boolean parameter) { in ListenerThread() argument
299 mEnable = enable; in ListenerThread()
313 private void createListenerLooper(boolean control, boolean enable, boolean parameter) { in createListenerLooper() argument
314 mEffectListenerLooper = new ListenerThread(control, enable, parameter) { in createListenerLooper()
DBassBoostTest.java333 public ListenerThread(boolean control, boolean enable, boolean parameter) { in ListenerThread() argument
336 mEnable = enable; in ListenerThread()
350 private void createListenerLooper(boolean control, boolean enable, boolean parameter) { in createListenerLooper() argument
351 mEffectListenerLooper = new ListenerThread(control, enable, parameter) { in createListenerLooper()
DEqualizerTest.java354 public ListenerThread(boolean control, boolean enable, boolean parameter) { in ListenerThread() argument
357 mEnable = enable; in ListenerThread()
370 private void createListenerLooper(boolean control, boolean enable, boolean parameter) { in createListenerLooper() argument
371 mEffectListenerLooper = new ListenerThread(control, enable, parameter) { in createListenerLooper()
DUtils.java83 Instrumentation instrumentation, boolean enable) { in setAppOps() argument
89 cmd.append(enable ? " allow" : " deny"); in setAppOps()
99 String expectedResult = enable ? "allow" : "deny"; in setAppOps()
/cts/tests/tests/view/src/android/view/cts/
DOrientationListenerTest.java56 listener.enable(); in testRegisterationOfOrientationListener()
90 listener.enable(); in testOnOrientationChanged()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java416 private void ensurePointerCaptureState(boolean enable) { in ensurePointerCaptureState() argument
419 if (enable == hasCapture) { in ensurePointerCaptureState()
423 mActivityRule.getActivity().runOnUiThread(enable ? mDecorView::requestPointerCapture in ensurePointerCaptureState()
429 + (enable ? "enabling" : "disabling") in ensurePointerCaptureState()
438 assertEquals("The view's Pointer Capture state did not match.", enable, in ensurePointerCaptureState()
/cts/hostsidetests/jvmti/allocation-tracking/app/src/android/jvmti/cts/
DJvmtiTrackingTest.java169 private static native void setupObjectAllocCallback(boolean enable); in setupObjectAllocCallback() argument
171 private static native void enableAllocationTracking(Thread thread, boolean enable); in enableAllocationTracking() argument

123