Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DTransitionDrawableTest.java83 Drawable.Callback cb = mock(Drawable.Callback.class); in testStartTransition() local
84 mTransitionDrawable.setCallback(cb); in testStartTransition()
88 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
93 reset(cb); in testStartTransition()
95 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
100 reset(cb); in testStartTransition()
102 verify(cb, times(1)).invalidateDrawable(any()); in testStartTransition()
111 Drawable.Callback cb = mock(Drawable.Callback.class); in testResetTransition() local
112 mTransitionDrawable.setCallback(cb); in testResetTransition()
116 verify(cb, times(1)).invalidateDrawable(any()); in testResetTransition()
[all …]
DAnimatedImageDrawableTest.java166 Callback cb = new Callback(drawable); in testRegisterWithoutLooper() local
167 drawable.registerAnimationCallback(cb); in testRegisterWithoutLooper()
176 Callback cb = new Callback(drawable); in testRegisterCallback() local
177 drawable.registerAnimationCallback(cb); in testRegisterCallback()
178 assertTrue(drawable.unregisterAnimationCallback(cb)); in testRegisterCallback()
181 assertFalse(drawable.unregisterAnimationCallback(cb)); in testRegisterCallback()
201 for (Callback cb : callbacks) { in testClearCallbacks()
202 drawable.registerAnimationCallback(cb); in testClearCallbacks()
208 for (Callback cb : callbacks) { in testClearCallbacks()
210 assertFalse(drawable.unregisterAnimationCallback(cb)); in testClearCallbacks()
[all …]
DDrawableWrapperTest.java100 Drawable.Callback cb = mock(Drawable.Callback.class); in testInvalidateDrawable() local
101 wrapper.setCallback(cb); in testInvalidateDrawable()
103 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
105 reset(cb); in testInvalidateDrawable()
107 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
109 reset(cb); in testInvalidateDrawable()
112 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
120 Drawable.Callback cb = mock(Drawable.Callback.class); in testScheduleDrawable() local
121 wrapper.setCallback(cb); in testScheduleDrawable()
123 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
[all …]
DRippleDrawableTest.java128 Drawable.Callback cb = mock(Drawable.Callback.class); in testSetColor() local
130 dr.setCallback(cb); in testSetColor()
133 verify(cb, times(1)).invalidateDrawable(dr); in testSetColor()
DLayerDrawableTest.java348 Drawable.Callback cb = mock(Drawable.Callback.class); in testInvalidateDrawable() local
349 layerDrawable.setCallback(cb); in testInvalidateDrawable()
351 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
353 reset(cb); in testInvalidateDrawable()
355 verify(cb, times(1)).invalidateDrawable(any()); in testInvalidateDrawable()
357 reset(cb); in testInvalidateDrawable()
360 verify(cb, never()).invalidateDrawable(any()); in testInvalidateDrawable()
368 Drawable.Callback cb = mock(Drawable.Callback.class); in testScheduleDrawable() local
369 layerDrawable.setCallback(cb); in testScheduleDrawable()
371 verify(cb, times(1)).scheduleDrawable(any(), any(), anyLong()); in testScheduleDrawable()
[all …]
/cts/tests/tests/systemui/src/android/systemui/cts/
DColorUtils.java50 final float cb = (V - b) / vtemp; in hue() local
53 H = cb - cg; in hue()
55 H = 2 + cr - cb; in hue()
/cts/hostsidetests/jvmti/base/jni/
Dredefine.cpp134 jvmtiEventCallbacks cb; in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent() local
135 memset(&cb, 0, sizeof(cb)); in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
136 cb.ClassFileLoadHook = CommonClassFileLoadHookRetransformable; in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
137 if (JvmtiErrorToException(env, jvmti_env, jvmti_env->SetEventCallbacks(&cb, sizeof(cb)))) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
/cts/hostsidetests/devicepolicy/app/PrintingApp/src/com/android/cts/devicepolicy/printingapp/
DPrintActivity.java66 CancellationSignal signal, PrintDocumentAdapter.LayoutResultCallback cb, in onStart()
73 PrintDocumentAdapter.WriteResultCallback cb) { in onStart()
/cts/tests/tests/view/jni/
Dandroid_view_cts_ChoreographerNativeTest.cpp52 Callback* cb = static_cast<Callback*>(data); in frameCallback() local
53 cb->count++; in frameCallback()
54 cb->frameTime = std::chrono::nanoseconds{frameTimeNanos}; in frameCallback()
/cts/tests/tests/content/src/android/content/cts/
DMockSyncAdapter.java81 public void onUnsyncableAccount(ISyncAdapterUnsyncableAccountCallback cb) in onUnsyncableAccount() argument
83 cb.onUnsyncableAccountDone(true); in onUnsyncableAccount()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/location/
DLocationVerifier.java198 public LocationVerifier(PassFailLog cb, LocationManager locationManager, in LocationVerifier() argument
206 mCb = cb; in LocationVerifier()
/cts/tests/tests/os/src/android/os/cts/
DHandlerTest.java53 final Callback cb = new Callback() { in testConstructor() local
63 new Handler(cb); in testConstructor()
69 new Handler(Looper.getMainLooper(), cb); in testConstructor() local
/cts/hostsidetests/statsd/apps/statsdapp/src/com/android/server/cts/device/statsd/
DAtomTests.java167 final CameraDevice.StateCallback cb = new CameraDevice.StateCallback() { in testCameraState() local
194 cam.openCamera(cameraIds[0], cb, handler); in testCameraState()
/cts/tests/camera/src/android/hardware/camera2/cts/
DAllocationTest.java317 float cb = yuvData[1] & 0xFF; // U channel in convertPixelYuvToRgb() local
322 float g = y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128); in convertPixelYuvToRgb()
323 float b = y + 1.772f * (cb - 128); in convertPixelYuvToRgb()
DImageReaderTest.java645 float cb = cbRow[cbPix] & 0xFF; in convertPixelYuvToRgba() local
651 Math.min(COLOR_RANGE, y - 0.34414f * (cb - 128) - 0.71414f * (cr - 128))); in convertPixelYuvToRgba()
652 int b = (int) Math.max(0.0f, Math.min(COLOR_RANGE, y + 1.772f * (cb - 128))); in convertPixelYuvToRgba()
/cts/tests/tests/security/res/raw/
Dopenssl_heartbleed_test_cert.pem77 c2:fa:9c:be:c3:da:76:2b:cb:4e:65:4d:b6:98:80:5d:66:d7:
/cts/tests/tests/media/src/android/media/cts/
DMediaControllerTest.java565 public void onCommand(String command, Bundle extras, ResultReceiver cb) { in onCommand() argument
570 mCommandCallback = cb; in onCommand()
DMediaController2Test.java604 SessionCommand2 customCommand, Bundle args, ResultReceiver cb) { in testSendCustomCommand()
605 super.onCustomCommand(session, controller, customCommand, args, cb); in testSendCustomCommand()
609 assertNull(cb); in testSendCustomCommand()
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/iget_wide/d/
DT_iget_wide_4.dfh9 // parsed: offset 12, len 20: signature : 2608...94cb
/cts/tests/camera/libctscamera2jni/
Dnative-camera-jni.cpp2267 JNIEnv* env, jstring jOutPath, AImageReader_ImageCallback cb) { in nativeImageReaderTestBase() argument
2315 AImageReader_ImageListener readerCb { &readerListener, cb }; in nativeImageReaderTestBase()
/cts/tests/tests/media/assets/
DfileSequence1.ts1492 �*\���ZT���R&�7���������� U#��)oG�Řڍ����[O}[�+cb X~ˀM��}����,�#u����Y;��������S�e�v<]�N5�…
2819 �7�<�s������Qz���'mK�ST*#�t���>�u�~ ,��L|\6���cb��r�b�:%x�U*XV��ƍ�A���qX������c�*7�����…
Dsegment000001.ts1159 �*\���ZT���R&�7���������� U#��)oG�Řڍ����[O}[�+cb X~ˀM��}����,�#u����Y;��������SG��e�v<]…
2565 �7�<�s������Qz���'mK�ST*#�t���>�u�~ ,��L|\6���cb��r�b�:%xG��U*XV��ƍ�A���qX������c�*7��…
Dsegment000000.ts4860 �=Ù���|}����y�+$I��j��UUV�#g����U��5��\ˠI��ނs~V���Q�T�m��}��f=���D��cb���^eb͆ν����;���%��…
/cts/tests/tests/media/res/raw/
Dtestmp3_3.raw1 …P2d8KY2Bhp5+wAbHrU6vQTcw2/pSnUvIqEMGX8eihOSm+D3zPl/V7UT6+xG0ke3Kh7AMRZX7fs+cb+tMQU1FMy45N//6cAQ9Dg…