Home
last modified time | relevance | path

Searched refs:DestroyCallback (Results 1 – 2 of 2) sorted by relevance

/aosp12/frameworks/av/media/codec2/tests/vndk/
H A DC2BufferTest.cpp665 void DestroyCallback(const C2Buffer * /* buf */, void *arg) { in DestroyCallback() function
692 ASSERT_EQ(C2_OK, buffer->registerOnDestroyNotify(&DestroyCallback, &arg)); in TEST_F()
694 ASSERT_EQ(C2_DUPLICATE, buffer->registerOnDestroyNotify(&DestroyCallback, &arg)); in TEST_F()
700 ASSERT_EQ(C2_OK, buffer->registerOnDestroyNotify(&DestroyCallback, &arg)); in TEST_F()
702 ASSERT_EQ(C2_NOT_FOUND, buffer->unregisterOnDestroyNotify(&DestroyCallback, nullptr)); in TEST_F()
703 ASSERT_EQ(C2_OK, buffer->unregisterOnDestroyNotify(&DestroyCallback, &arg)); in TEST_F()
705 ASSERT_EQ(C2_NOT_FOUND, buffer->unregisterOnDestroyNotify(&DestroyCallback, &arg)); in TEST_F()
/aosp12/frameworks/base/media/jni/
H A Dandroid_media_tv_Tuner.cpp199 void DestroyCallback(const C2Buffer * buf, void *arg) { in DestroyCallback() function
340 pC2Buffer->unregisterOnDestroyNotify(&DestroyCallback, this); in ~MediaEvent()
428 pC2Buffer->registerOnDestroyNotify(&DestroyCallback, this); in getLinearBlock()