/frameworks/base/core/java/android/view/ |
GLES20TextureLayer.java | 31 private SurfaceTexture mSurface; 70 if (mSurface == null) { 71 mSurface = new SurfaceTexture(mTexture, false); 73 return mSurface; 77 if (mSurface != null) { 78 mSurface.release(); 80 mSurface = surfaceTexture; 81 mSurface.attachToGLContext(mTexture); 87 GLES20Canvas.nUpdateTextureLayer(mLayer, width, height, isOpaque, mSurface);
|
TextureView.java | 109 private SurfaceTexture mSurface; 232 mSurface.detachFromGLContext(); 239 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); 247 if (shouldRelease) mSurface.release(); 248 mSurface = null; 324 if (mSurface != null) { 325 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()); 328 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); 363 mSurface = mAttachInfo.mHardwareRenderer.createSurfaceTexture(mLayer); 365 nSetDefaultBufferSize(mSurface, getWidth(), getHeight()) [all...] |
SurfaceView.java | 96 final Surface mSurface = new Surface(); // Current surface in use 429 mSurface.setCompatibilityTranslator(mTranslator); 506 if (DEBUG) Log.i(TAG, "Cur surface: " + mSurface); 551 if (mSurface.isValid()) { 560 mSurface.transferFrom(mNewSurface); 562 if (visible && mSurface.isValid()) { 807 c = mSurface.lockCanvas(dirty); [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
PreviewRenderer.cpp | 45 : mSurface(surface), 52 ANativeWindow* anw = mSurface.get(); 80 native_window_api_disconnect(mSurface.get(), NATIVE_WINDOW_API_CPU); 100 if ((err = native_window_dequeue_buffer_and_wait(mSurface.get(), 133 if ((err = mSurface->ANativeWindow::queueBuffer(mSurface.get(), mBuf, -1)) != 0) {
|
PreviewRenderer.h | 55 sp<Surface> mSurface;
|
/cts/tests/tests/media/src/android/media/cts/ |
InputSurface.java | 47 private Surface mSurface; 56 mSurface = surface; 108 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, configs[0], mSurface, 130 mSurface.release(); 137 mSurface = null; 160 return mSurface;
|
OutputSurface.java | 67 private Surface mSurface; 126 mSurface = new Surface(mSurfaceTexture); 196 mSurface.release(); 209 mSurface = null; 230 return mSurface;
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
CanvasTextureViewActivity.java | 72 private final TextureView mSurface; 76 mSurface = surface; 90 final Canvas canvas = mSurface.lockCanvas(null); 95 mSurface.unlockCanvasAndPost(canvas); 98 if (x + 20.0f + speedX >= mSurface.getWidth() || x + speedX <= 0.0f) { 101 if (y + 20.0f + speedY >= mSurface.getHeight() || y + speedY <= 0.0f) {
|
/frameworks/native/libs/gui/tests/ |
Surface_test.cpp | 52 mSurface = mSurfaceControl->getSurface(); 53 ASSERT_TRUE(mSurface != NULL); 60 sp<Surface> mSurface; 66 sp<ANativeWindow> anw(mSurface); 77 sp<ANativeWindow> anw(mSurface); 87 sp<ANativeWindow> anw(mSurface); 127 sp<ANativeWindow> anw(mSurface);
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
RsYuv.java | 47 private SurfaceTexture mSurface; 58 mAllocationOut.setSurfaceTexture(mSurface); 60 if (mSurface != null) { 128 mSurface = surface; 135 mSurface = surface; 142 mSurface = surface;
|
/frameworks/base/services/java/com/android/server/wm/ |
StrictModeFlash.java | 34 private final Surface mSurface = new Surface(); 49 mSurface.copyFrom(ctrl); 67 c = mSurface.lockCanvas(dirty); 88 mSurface.unlockCanvasAndPost(c);
|
Watermark.java | 49 private final Surface mSurface = new Surface(); 121 mSurface.copyFrom(ctrl); 145 c = mSurface.lockCanvas(dirty); 174 mSurface.unlockCanvasAndPost(c);
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
SurfaceTextureRenderer.java | 87 private SurfaceTexture mSurface = null; 106 mSurface.updateTexImage(); 108 mSurface.getTransformMatrix(mSTMatrix); 220 if (mSurface != null) { 221 mSurface.release(); 223 mSurface = new SurfaceTexture(mTextureID); 224 mSurface.setOnFrameAvailableListener(this); 299 return mSurface;
|
/frameworks/native/cmds/flatland/ |
Main.cpp | 216 mSurface(EGL_NO_SURFACE) { 226 &mGLConsumer, &mSurface, &mTexName); 259 if (mSurface != EGL_NO_SURFACE) { 260 mGLHelper->destroySurface(&mSurface); 268 return mRenderer->render(mSurface); 296 EGLSurface mSurface; 311 mSurface(EGL_NO_SURFACE), 333 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, 381 mGLHelper->destroySurface(&mSurface); 401 result = doFrame(mSurface); [all...] |
/frameworks/native/services/surfaceflinger/ |
DisplayDevice.cpp | 83 mSurface(EGL_NO_SURFACE), 112 mSurface = surface; 140 if (mSurface != EGL_NO_SURFACE) { 141 eglDestroySurface(mDisplay, mSurface); 142 mSurface = EGL_NO_SURFACE; 172 return mSurface; 195 EGLSurface surface = mSurface; 217 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface); 223 mDisplay, mSurface, error); 226 mDisplay, mSurface, error) [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
BaseSurfaceHolder.java | 40 public Surface mSurface = new Surface(); 184 c = mSurface.lockCanvas(dirty); 215 mSurface.unlockCanvasAndPost(canvas); 220 return mSurface;
|
/development/ndk/platforms/android-14/samples/native-media/src/com/example/nativemedia/ |
MyGLSurfaceView.java | 86 mSurface.updateTexImage(); 88 mSurface.getTransformMatrix(mSTMatrix); 204 mSurface = new SurfaceTexture(mTextureID); 205 mSurface.setOnFrameAvailableListener(this); 325 private SurfaceTexture mSurface; 334 return mSurface;
|
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
WindowSurface.java | 69 mDrawingThread.mSurface = holder; 86 mDrawingThread.mSurface = holder; 140 SurfaceHolder mSurface; 189 while (mSurface == null || !mRunning) { 209 Canvas canvas = mSurface.lockCanvas(); 266 mSurface.unlockCanvasAndPost(canvas);
|
/frameworks/base/services/java/com/android/server/display/ |
OverlayDisplayAdapter.java | 194 private Surface mSurface; 220 if (mSurface == null) { 221 mSurface = new Surface(mSurfaceTexture); 223 setSurfaceInTransactionLocked(mSurface); 226 if (mSurface != null) { 227 mSurface.destroy(); 228 mSurface = null;
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 315 private SurfaceTexture mSurface; 335 if (mSurface == null) { 346 mSurface = surface; 360 if (mSurface != null) { 362 mSurface.updateTexImage(); 367 mSurface = null; 390 if (mEglHelper.createSurface(mSurface)) {
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
MyGLSurfaceView.java | 98 mSurface.updateTexImage(); 100 mSurface.getTransformMatrix(mSTMatrix); 216 mSurface = new SurfaceTexture(mTextureID); 217 mSurface.setOnFrameAvailableListener(this); 337 private SurfaceTexture mSurface; 346 return mSurface;
|
/frameworks/base/cmds/bootanimation/ |
BootAnimation.h | 95 EGLDisplay mSurface;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
SurfaceTargetFilter.java | 58 private Surface mSurface; 99 if (mSurface == null) { 245 mSurfaceId = mGlEnv.registerSurface(mSurface); 247 throw new RuntimeException("Could not register Surface: " + mSurface);
|
/frameworks/base/opengl/java/com/google/android/gles_jni/ |
EGLImpl.java | 29 private EGLSurfaceImpl mSurface = new EGLSurfaceImpl(-1); 143 if (mSurface.mEGLSurface != value) 144 mSurface = new EGLSurfaceImpl(value); 145 return mSurface;
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
GL2CameraEye.java | 188 mSurface.updateTexImage(); 190 mSurface.getTransformMatrix(mSTMatrix); 191 long timestamp = mSurface.getTimestamp(); 311 mSurface = new SurfaceTexture(mTextureID); 312 mSurface.setOnFrameAvailableListener(this); 314 mCamera.setPreviewTexture(mSurface); 499 private SurfaceTexture mSurface;
|