Home
last modified time | relevance | path

Searched refs:mSurface (Results 1 – 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/view/
DTextureView.java109 private SurfaceTexture mSurface; field in TextureView
232 mSurface.detachFromGLContext(); in destroySurface()
239 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); in destroySurface()
247 if (shouldRelease) mSurface.release(); in destroySurface()
248 mSurface = null; in destroySurface()
324 if (mSurface != null) { in onSizeChanged()
325 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); in onSizeChanged()
328 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged()
363 mSurface = mAttachInfo.mHardwareRenderer.createSurfaceTexture(mLayer); in getHardwareLayer()
365 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); in getHardwareLayer()
[all …]
DGLES20TextureLayer.java31 private SurfaceTexture mSurface; field in GLES20TextureLayer
70 if (mSurface == null) { in getSurfaceTexture()
71 mSurface = new SurfaceTexture(mTexture, false); in getSurfaceTexture()
73 return mSurface; in getSurfaceTexture()
77 if (mSurface != null) { in setSurfaceTexture()
78 mSurface.release(); in setSurfaceTexture()
80 mSurface = surfaceTexture; in setSurfaceTexture()
81 mSurface.attachToGLContext(mTexture); in setSurfaceTexture()
87 GLES20Canvas.nUpdateTextureLayer(mLayer, width, height, isOpaque, mSurface); in update()
DSurfaceView.java96 final Surface mSurface = new Surface(); // Current surface in use field in SurfaceView
429 mSurface.setCompatibilityTranslator(mTranslator); in updateWindow()
506 if (DEBUG) Log.i(TAG, "Cur surface: " + mSurface); in updateWindow()
551 if (mSurface.isValid()) { in updateWindow()
560 mSurface.transferFrom(mNewSurface); in updateWindow()
562 if (visible && mSurface.isValid()) { in updateWindow()
807 c = mSurface.lockCanvas(dirty);
844 mSurface.unlockCanvasAndPost(canvas);
849 return mSurface;
/frameworks/native/libs/gui/tests/
DSurface_test.cpp52 mSurface = mSurfaceControl->getSurface(); in SetUp()
53 ASSERT_TRUE(mSurface != NULL); in SetUp()
60 sp<Surface> mSurface; member in android::SurfaceTest
66 sp<ANativeWindow> anw(mSurface); in TEST_F()
77 sp<ANativeWindow> anw(mSurface); in TEST_F()
87 sp<ANativeWindow> anw(mSurface); in TEST_F()
127 sp<ANativeWindow> anw(mSurface); in TEST_F()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DCanvasTextureViewActivity.java72 private final TextureView mSurface; field in CanvasTextureViewActivity.RenderingThread
76 mSurface = surface; in RenderingThread()
90 final Canvas canvas = mSurface.lockCanvas(null); in run()
95 mSurface.unlockCanvasAndPost(canvas); in run()
98 if (x + 20.0f + speedX >= mSurface.getWidth() || x + speedX <= 0.0f) { in run()
101 if (y + 20.0f + speedY >= mSurface.getHeight() || y + speedY <= 0.0f) { in run()
DGLTextureViewActivity.java138 private final SurfaceTexture mSurface; field in GLTextureViewActivity.RenderThread
149 mSurface = surface; in RenderThread()
383 mEglSurface = mEgl.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, null); in initGL()
/frameworks/av/libvideoeditor/lvpp/
DPreviewRenderer.cpp45 : mSurface(surface), in PreviewRenderer()
52 ANativeWindow* anw = mSurface.get(); in init()
80 native_window_api_disconnect(mSurface.get(), NATIVE_WINDOW_API_CPU); in ~PreviewRenderer()
100 if ((err = native_window_dequeue_buffer_and_wait(mSurface.get(), in getBufferYV12()
133 if ((err = mSurface->ANativeWindow::queueBuffer(mSurface.get(), mBuf, -1)) != 0) { in renderYV12()
DPreviewRenderer.h55 sp<Surface> mSurface; variable
/frameworks/native/services/surfaceflinger/
DDisplayDevice.cpp83 mSurface(EGL_NO_SURFACE), in DisplayDevice()
112 mSurface = surface; in DisplayDevice()
140 if (mSurface != EGL_NO_SURFACE) { in ~DisplayDevice()
141 eglDestroySurface(mDisplay, mSurface); in ~DisplayDevice()
142 mSurface = EGL_NO_SURFACE; in ~DisplayDevice()
172 return mSurface; in getEGLSurface()
195 EGLSurface surface = mSurface; in flip()
217 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface); in swapBuffers()
223 mDisplay, mSurface, error); in swapBuffers()
226 mDisplay, mSurface, error); in swapBuffers()
[all …]
/frameworks/native/cmds/flatland/
DMain.cpp216 mSurface(EGL_NO_SURFACE) { in Layer()
226 &mGLConsumer, &mSurface, &mTexName); in setUp()
259 if (mSurface != EGL_NO_SURFACE) { in tearDown()
260 mGLHelper->destroySurface(&mSurface); in tearDown()
268 return mRenderer->render(mSurface); in render()
296 EGLSurface mSurface; member in Layer
311 mSurface(EGL_NO_SURFACE), in BenchmarkRunner()
333 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, in setUp()
381 mGLHelper->destroySurface(&mSurface); in tearDown()
401 result = doFrame(mSurface); in run()
[all …]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java47 private SurfaceTexture mSurface; field in RsYuv
58 mAllocationOut.setSurfaceTexture(mSurface); in setupSurface()
60 if (mSurface != null) { in setupSurface()
128 mSurface = surface; in onSurfaceTextureAvailable()
135 mSurface = surface; in onSurfaceTextureSizeChanged()
142 mSurface = surface; in onSurfaceTextureDestroyed()
/frameworks/base/services/java/com/android/server/wm/
DStrictModeFlash.java34 private final Surface mSurface = new Surface(); field in StrictModeFlash
49 mSurface.copyFrom(ctrl); in StrictModeFlash()
67 c = mSurface.lockCanvas(dirty); in drawIfNeeded()
88 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
DWatermark.java49 private final Surface mSurface = new Surface(); field in Watermark
121 mSurface.copyFrom(ctrl); in Watermark()
145 c = mSurface.lockCanvas(dirty); in drawIfNeeded()
174 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
/frameworks/base/services/java/com/android/server/display/
DOverlayDisplayAdapter.java194 private Surface mSurface; field in OverlayDisplayAdapter.OverlayDisplayDevice
220 if (mSurface == null) { in performTraversalInTransactionLocked()
221 mSurface = new Surface(mSurfaceTexture); in performTraversalInTransactionLocked()
223 setSurfaceInTransactionLocked(mSurface); in performTraversalInTransactionLocked()
226 if (mSurface != null) { in performTraversalInTransactionLocked()
227 mSurface.destroy(); in performTraversalInTransactionLocked()
228 mSurface = null; in performTraversalInTransactionLocked()
DWifiDisplayAdapter.java582 private Surface mSurface; field in WifiDisplayAdapter.WifiDisplayDevice
595 mSurface = surface; in WifiDisplayDevice()
599 mSurface = null; in clearSurfaceLocked()
610 setSurfaceInTransactionLocked(mSurface); in performTraversalInTransactionLocked()
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/
DMyGLSurfaceView.java98 mSurface.updateTexImage(); in onDrawFrame()
100 mSurface.getTransformMatrix(mSTMatrix); in onDrawFrame()
216 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
217 mSurface.setOnFrameAvailableListener(this); in onSurfaceCreated()
337 private SurfaceTexture mSurface; field in MyRenderer
346 return mSurface; in getSurfaceTexture()
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java40 public Surface mSurface = new Surface(); field in BaseSurfaceHolder
184 c = mSurface.lockCanvas(dirty); in internalLockCanvas()
215 mSurface.unlockCanvasAndPost(canvas); in unlockCanvasAndPost()
220 return mSurface; in getSurface()
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/
DSurfaceTargetFilter.java58 private Surface mSurface; field in SurfaceTargetFilter
99 if (mSurface == null) { in setupPorts()
245 mSurfaceId = mGlEnv.registerSurface(mSurface); in registerSurface()
247 throw new RuntimeException("Could not register Surface: " + mSurface); in registerSurface()
/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLImpl.java29 private EGLSurfaceImpl mSurface = new EGLSurfaceImpl(-1); field in EGLImpl
143 if (mSurface.mEGLSurface != value) in eglGetCurrentSurface()
144 mSurface = new EGLSurfaceImpl(value); in eglGetCurrentSurface()
145 return mSurface; in eglGetCurrentSurface()
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
DGL2CameraEye.java188 mSurface.updateTexImage(); in onDrawFrame()
190 mSurface.getTransformMatrix(mSTMatrix); in onDrawFrame()
191 long timestamp = mSurface.getTimestamp(); in onDrawFrame()
311 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
312 mSurface.setOnFrameAvailableListener(this); in onSurfaceCreated()
314 mCamera.setPreviewTexture(mSurface); in onSurfaceCreated()
499 private SurfaceTexture mSurface; field in CamRenderer
/frameworks/base/media/tests/MediaDump/src/com/android/mediadump/
DVideoDumpView.java323 private SurfaceTexture mSurface; field in VideoDumpView.VideoDumpRenderer
380 mSurface.updateTexImage(); in onDrawFrame()
381 mSurface.getTransformMatrix(mSTMatrix); in onDrawFrame()
575 mSurface = new SurfaceTexture(mTextureID); in onSurfaceCreated()
576 mSurface.setOnFrameAvailableListener(this); in onSurfaceCreated()
578 Surface surface = new Surface(mSurface); in onSurfaceCreated()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp265 mSurface = surface; in readyToRun()
309 eglDestroySurface(mDisplay, mSurface); in threadLoop()
328 eglSwapBuffers(mDisplay, mSurface); in android()
365 EGLBoolean res = eglSwapBuffers(mDisplay, mSurface); in android()
479 eglSwapBuffers(mDisplay, mSurface); in movie()
538 eglSwapBuffers(mDisplay, mSurface); in movie()
DBootAnimation.h95 EGLDisplay mSurface; variable
/frameworks/base/services/java/com/android/server/power/
DElectronBeam.java85 private Surface mSurface; field in ElectronBeam
526 mSurface = new Surface(); in createSurface()
527 mSurface.copyFrom(mSurfaceControl); in createSurface()
543 mEglSurface = EGL14.eglCreateWindowSurface(mEglDisplay, mEglConfig, mSurface, in createEglSurface()
569 mSurface.release(); in destroySurface()
/frameworks/av/cmds/stagefright/
Dsf2.cpp50 mSurface(surface), in Controller()
54 CHECK(!mDecodeAudio || mSurface == NULL); in Controller()
112 if (mSurface != NULL) { in onMessageReceived()
114 "native-window", new NativeWindowWrapper(mSurface)); in onMessageReceived()
241 sp<Surface> mSurface; member

12