Home
last modified time | relevance | path

Searched refs:mANW (Results 1 – 10 of 10) sorted by relevance

/frameworks/native/libs/gui/tests/
DSurfaceTextureClient_test.cpp54 mANW = mSTC; in SetUp()
93 mANW.clear(); in TearDown()
117 sp<ANativeWindow> mANW; member in android::SurfaceTextureClientTest
132 int err = mANW->query(mANW.get(), NATIVE_WINDOW_QUEUES_TO_WINDOW_COMPOSER, in TEST_F()
140 int err = mANW->query(mANW.get(), NATIVE_WINDOW_CONCRETE_TYPE, &result); in TEST_F()
171 EGLSurface eglSurface = eglCreateWindowSurface(dpy, myConfig, mANW.get(), in TEST_F()
185 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, mEglConfig, mANW.get(), nullptr); in TEST_F()
212 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 0, 8)); in TEST_F()
213 EXPECT_GT(OK, native_window_set_buffers_dimensions(mANW.get(), 8, 0)); in TEST_F()
217 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
[all …]
DSurfaceTextureGL_test.cpp31 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
33 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
35 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
37 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
41 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F()
81 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
83 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
85 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
87 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
[all …]
DSurfaceTextureMultiContextGL_test.cpp29 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
30 ASSERT_NO_FATAL_FAILURE(produceOneRGBA8Frame(mANW)); in TEST_F()
44 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
45 ASSERT_NO_FATAL_FAILURE(produceOneRGBA8Frame(mANW)); in TEST_F()
60 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
61 ASSERT_NO_FATAL_FAILURE(produceOneRGBA8Frame(mANW)); in TEST_F()
68 native_window_api_disconnect(mANW.get(), NATIVE_WINDOW_API_CPU); in TEST_F()
76 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
77 ASSERT_NO_FATAL_FAILURE(produceOneRGBA8Frame(mANW)); in TEST_F()
89 ASSERT_EQ(OK, native_window_api_connect(mANW.get(), NATIVE_WINDOW_API_CPU)); in TEST_F()
[all …]
DSurfaceTextureFBO_test.cpp30 ASSERT_EQ(NO_ERROR, native_window_api_connect(mANW.get(), in TEST_F()
32 ASSERT_EQ(NO_ERROR, native_window_set_buffers_dimensions(mANW.get(), in TEST_F()
34 ASSERT_EQ(NO_ERROR, native_window_set_buffers_format(mANW.get(), in TEST_F()
36 ASSERT_EQ(NO_ERROR, native_window_set_usage(mANW.get(), in TEST_F()
40 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
52 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), buf->getNativeBuffer(), in TEST_F()
64 ASSERT_EQ(NO_ERROR, native_window_dequeue_buffer_and_wait(mANW.get(), in TEST_F()
76 ASSERT_EQ(NO_ERROR, mANW->queueBuffer(mANW.get(), in TEST_F()
DSurfaceTextureGL.h45 mANW = mSTC; in SetUp()
54 mANW.clear(); in TearDown()
67 sp<ANativeWindow> mANW; variable
DMultiTextureConsumer_test.cpp43 mANW = mSurface.get(); in SetUp()
65 ANativeWindow* mANW; member in android::MultiTextureConsumerTest
71 ASSERT_EQ(native_window_set_usage(mANW, GRALLOC_USAGE_SW_WRITE_OFTEN), NO_ERROR); in TEST_F()
72 ASSERT_EQ(native_window_set_buffers_format(mANW, HAL_PIXEL_FORMAT_RGBA_8888), NO_ERROR); in TEST_F()
DCpuConsumer_test.cpp76 mANW = mSTC; in SetUp()
80 mANW.clear(); in TearDown()
161 sp<ANativeWindow> mANW; member in android::CpuConsumerTest
542 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, 1)); in TEST_P()
548 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time, in TEST_P()
577 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, numInQueue)); in TEST_P()
586 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time[i], in TEST_P()
619 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, params.maxLockedBuffers + 1)); in TEST_P()
628 ASSERT_NO_FATAL_FAILURE(produceOneFrame(mANW, params, time, in TEST_P()
696 ASSERT_NO_FATAL_FAILURE(configureANW(mANW, params, params.maxLockedBuffers + 1)); in TEST_P()
[all …]
DSurfaceTextureGLToGL_test.cpp279 mANW.clear(); in TEST_F()
317 mANW.clear(); in TEST_F()
349 native_window_set_buffers_user_dimensions(mANW.get(), texWidth, texHeight); in TEST_F()
412 native_window_set_buffers_user_dimensions(mANW.get(), texWidth, texHeight); in TEST_F()
DSurfaceTextureGLToGL.h41 mANW.get(), nullptr); in SetUpWindowAndContext()
/frameworks/native/opengl/tests/EGLTest/
DEGL_test.cpp153 sp<ANativeWindow> mANW = mSTC; in TEST_F() local
156 mANW.get(), NULL); in TEST_F()
273 sp<ANativeWindow> mANW = mSTC; in TEST_F() local
281 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
321 sp<ANativeWindow> mANW = mSTC; in TEST_F() local
329 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
334 static_cast<android_dataspace>(ANativeWindow_getBuffersDataSpace(mANW.get())); in TEST_F()
413 sp<ANativeWindow> mANW = mSTC; in TEST_F() local
421 EGLSurface eglSurface = eglCreateWindowSurface(mEglDisplay, config, mANW.get(), winAttrs); in TEST_F()
585 sp<ANativeWindow> mANW = mSTC; in TEST_F() local
[all …]