Lines Matching refs:sAnw

34 static ANativeWindow* sAnw;  variable
39 sAnw = ANativeWindow_fromSurface(env, surfaceObject); in Java_com_android_test_SurfaceProxy_setSurface()
40 assert(sAnw); in Java_com_android_test_SurfaceProxy_setSurface()
41 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_setSurface()
44 native_window_set_usage(sAnw, GRALLOC_USAGE_SW_WRITE_OFTEN); in Java_com_android_test_SurfaceProxy_setSurface()
45 native_window_set_buffers_format(sAnw, HAL_PIXEL_FORMAT_RGBA_8888); in Java_com_android_test_SurfaceProxy_setSurface()
52 assert(sAnw); in Java_com_android_test_SurfaceProxy_waitUntilBufferDisplayed()
53 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_waitUntilBufferDisplayed()
80 assert(sAnw); in Java_com_android_test_SurfaceProxy_draw()
82 ANativeWindow_lock(sAnw, &outBuffer, nullptr); in Java_com_android_test_SurfaceProxy_draw()
87 assert(sAnw); in Java_com_android_test_SurfaceProxy_ANativeWindowLock()
89 ANativeWindow_lock(sAnw, &outBuffer, nullptr); in Java_com_android_test_SurfaceProxy_ANativeWindowLock()
95 assert(sAnw); in Java_com_android_test_SurfaceProxy_ANativeWindowUnlockAndPost()
96 ANativeWindow_unlockAndPost(sAnw); in Java_com_android_test_SurfaceProxy_ANativeWindowUnlockAndPost()
103 assert(sAnw); in Java_com_android_test_SurfaceProxy_ANativeWindowSetBuffersGeometry()
104 return ANativeWindow_setBuffersGeometry(sAnw, w, h, format); in Java_com_android_test_SurfaceProxy_ANativeWindowSetBuffersGeometry()
109 assert(sAnw); in Java_com_android_test_SurfaceProxy_ANativeWindowSetBuffersTransform()
110 return native_window_set_buffers_transform(sAnw, transform); in Java_com_android_test_SurfaceProxy_ANativeWindowSetBuffersTransform()
116 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetScalingMode()
117 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetScalingMode()
125 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
128 int result = sAnw->dequeueBuffer(sAnw, &anb, &fenceFd); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
139 sAnw->cancelBuffer(sAnw, sBuffers[slot], -1); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer()
149 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceCancelBuffer()
151 int result = sAnw->cancelBuffer(sAnw, sBuffers[slot], -1); in Java_com_android_test_SurfaceProxy_SurfaceCancelBuffer()
159 assert(sAnw); in Java_com_android_test_SurfaceProxy_drawBuffer()
194 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceQueueBuffer()
196 int result = sAnw->queueBuffer(sAnw, sBuffers[slot], -1); in Java_com_android_test_SurfaceProxy_SurfaceQueueBuffer()
206 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetAsyncMode()
207 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetAsyncMode()
213 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetDequeueTimeout()
214 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetDequeueTimeout()
220 assert(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetMaxDequeuedBufferCount()
221 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_SurfaceSetMaxDequeuedBufferCount()
227 assert(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetBufferCount()
228 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetBufferCount()
229 int result = native_window_set_buffer_count(sAnw, count); in Java_com_android_test_SurfaceProxy_NativeWindowSetBufferCount()
235 assert(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetSharedBufferMode()
236 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetSharedBufferMode()
237 int result = native_window_set_shared_buffer_mode(sAnw, shared); in Java_com_android_test_SurfaceProxy_NativeWindowSetSharedBufferMode()
243 assert(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetAutoRefresh()
244 android::sp<android::Surface> surface = static_cast<android::Surface*>(sAnw); in Java_com_android_test_SurfaceProxy_NativeWindowSetAutoRefresh()
245 int result = native_window_set_auto_refresh(sAnw, autoRefresh); in Java_com_android_test_SurfaceProxy_NativeWindowSetAutoRefresh()