/frameworks/base/core/java/android/view/ |
H A D | GLES20TextureLayer.java | 31 private SurfaceTexture mSurface; field in class:GLES20TextureLayer 75 if (mSurface == null) { 76 mSurface = new SurfaceTexture(mTexture); 78 return mSurface; 82 if (mSurface != null) { 83 mSurface.release(); 85 mSurface = surfaceTexture; 86 mSurface.attachToGLContext(mTexture); 92 GLES20Canvas.nUpdateTextureLayer(mLayer, width, height, isOpaque, mSurface);
|
H A D | TextureView.java | 109 private SurfaceTexture mSurface; field in class:TextureView 232 mSurface.detachFromGLContext(); 239 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); 247 if (shouldRelease) mSurface.release(); 248 mSurface = null; 324 if (mSurface != null) { 325 mSurface.setDefaultBufferSize(getWidth(), getHeight()); 328 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); 363 mSurface = mAttachInfo.mHardwareRenderer.createSurfaceTexture(mLayer); 365 mSurface [all...] |
/frameworks/av/libvideoeditor/lvpp/ |
H A D | 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) {
|
H A D | PreviewRenderer.h | 55 sp<Surface> mSurface; member in class:android::PreviewRenderer
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
H A D | CanvasTextureViewActivity.java | 72 private final TextureView mSurface; field in class:CanvasTextureViewActivity.RenderingThread 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/base/services/java/com/android/server/display/ |
H A D | VirtualDisplayAdapter.java | 105 private Surface mSurface; field in class:VirtualDisplayAdapter.VirtualDisplayDevice 119 mSurface = surface; 126 if (mSurface != null) { 133 if (mSurface != null) { 134 mSurface.release(); 135 mSurface = null; 142 if (mSurface != null) { 143 setSurfaceInTransactionLocked(mSurface);
|
H A D | OverlayDisplayAdapter.java | 197 private Surface mSurface; field in class:OverlayDisplayAdapter.OverlayDisplayDevice 216 if (mSurface != null) { 217 mSurface.release(); 218 mSurface = null; 226 if (mSurface == null) { 227 mSurface = new Surface(mSurfaceTexture); 229 setSurfaceInTransactionLocked(mSurface);
|
/frameworks/native/libs/gui/tests/ |
H A D | Surface_test.cpp | 53 mSurface = mSurfaceControl->getSurface(); 54 ASSERT_TRUE(mSurface != NULL); 61 sp<Surface> mSurface; member in class:android::SurfaceTest 67 sp<ANativeWindow> anw(mSurface); 78 sp<ANativeWindow> anw(mSurface); 88 sp<ANativeWindow> anw(mSurface); 129 sp<ANativeWindow> anw(mSurface);
|
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/ |
H A D | RsYuv.java | 47 private SurfaceTexture mSurface; field in class:RsYuv 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/ |
H A D | StrictModeFlash.java | 35 private final Surface mSurface = new Surface(); field in class:StrictModeFlash 50 mSurface.copyFrom(ctrl); 68 c = mSurface.lockCanvas(dirty); 89 mSurface.unlockCanvasAndPost(c);
|
H A D | FocusedStackFrame.java | 42 private final Surface mSurface = new Surface(); field in class:FocusedStackFrame 59 mSurface.copyFrom(ctrl); 71 c = mSurface.lockCanvas(mTmpDrawRect); 99 mSurface.unlockCanvasAndPost(c);
|
H A D | Watermark.java | 49 private final Surface mSurface = new Surface(); field in class:Watermark 121 mSurface.copyFrom(ctrl); 145 c = mSurface.lockCanvas(dirty); 174 mSurface.unlockCanvasAndPost(c);
|
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 290 mSurface(EGL_NO_SURFACE) { 300 &mGLConsumer, &mSurface, &mTexName); 333 if (mSurface != EGL_NO_SURFACE) { 334 mGLHelper->destroySurface(&mSurface); 342 return mRenderer->render(mSurface); 370 EGLSurface mSurface; member in class:Layer 385 mSurface(EGL_NO_SURFACE), 407 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, 455 mGLHelper->destroySurface(&mSurface); 475 result = doFrame(mSurface); 577 EGLSurface mSurface; member in class:BenchmarkRunner [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 66 mSurface(EGL_NO_SURFACE), 104 mSurface = surface; 132 if (mSurface != EGL_NO_SURFACE) { 133 eglDestroySurface(mDisplay, mSurface); 134 mSurface = EGL_NO_SURFACE; 164 return mSurface; 187 EGLSurface surface = mSurface; 234 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface); 240 mDisplay, mSurface, error); 243 mDisplay, mSurface, erro [all...] |
/frameworks/base/core/java/com/android/internal/view/ |
H A D | BaseSurfaceHolder.java | 40 public Surface mSurface = new Surface(); field in class:BaseSurfaceHolder 184 c = mSurface.lockCanvas(dirty); 215 mSurface.unlockCanvasAndPost(canvas); 220 return mSurface;
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
H A D | CameraDeviceBinderTest.java | 68 private Surface mSurface; field in class:CameraDeviceBinderTest 118 mSurface = mImageReader.getSurface(); 134 /* ignored */30, mSurface); 136 request.addTarget(mSurface); 187 mSurface.release(); 206 mSurface); 210 mCameraUser.createStream(/* ignored */0, /* ignored */0, /* ignored */0, mSurface)); 228 mSurface); 232 mCameraUser.createStream(/* ignored */0, /* ignored */0, /* ignored */0, mSurface)); 257 builder.addTarget(mSurface); [all...] |
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | RenderTarget.java | 67 private EGLSurface mSurface; field in class:RenderTarget 195 if (currentSurface != null && !currentSurface.equals(mSurface)) { 198 mDisplaySurfaces.put(mContext, mSurface); 253 if (removeReferenceTo(mSurface)) { 254 mEgl.eglDestroySurface(mDisplay, mSurface); 255 mSurface = EGL10.EGL_NO_SURFACE; 291 return "RenderTarget(" + mDisplay + ", " + mContext + ", " + mSurface + ", " + mFbo + ")"; 353 mSurface = surface; 361 return mSurface; 364 return displaySurface != null ? displaySurface : mSurface; [all...] |
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/ |
H A D | BlockingGLTextureView.java | 318 private SurfaceTexture mSurface; field in class:BlockingGLTextureView.RenderThread 338 if (mSurface == null) { 349 mSurface = surface; 363 if (mSurface != null) { 365 mSurface.updateTexImage(); 370 mSurface = null; 398 if (mEglHelper.createSurface(mSurface)) {
|
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A D | DisplaySinkService.java | 47 private Surface mSurface; field in class:DisplaySinkService 135 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { 139 mSurface = surface; 150 if (mSurface != null) { 154 mCodec.configure(format, mSurface, null, 0);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
H A D | Camera2Source.java | 59 private Surface mSurface; field in class:Camera2Source 129 mSurface.release(); 172 mSurface = mAllocationIn.getSurface(); 183 surfaces.add(mSurface); 188 mCaptureRequest.addTarget(mSurface);
|
/frameworks/wilhelm/tests/native-media/src/com/example/nativemedia/ |
H A D | MyGLSurfaceView.java | 98 mSurface.updateTexImage(); 100 mSurface.getTransformMatrix(mSTMatrix); 216 mSurface = new SurfaceTexture(mTextureID); 217 mSurface.setOnFrameAvailableListener(this); 337 private SurfaceTexture mSurface; field in class:MyRenderer 346 return mSurface;
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceTargetFilter.java | 58 private Surface mSurface; field in class:SurfaceTargetFilter 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/ |
H A D | EGLImpl.java | 29 private EGLSurfaceImpl mSurface = new EGLSurfaceImpl(-1); field in class:EGLImpl 143 if (mSurface.mEGLSurface != value) 144 mSurface = new EGLSurfaceImpl(value); 145 return mSurface;
|
/frameworks/base/core/tests/coretests/src/android/hardware/display/ |
H A D | VirtualDisplayTest.java | 73 private Surface mSurface; field in class:VirtualDisplayTest 88 mSurface = mImageReader.getSurface(); 102 mSurface = null; 114 WIDTH, HEIGHT, DENSITY, mSurface, 0); 137 WIDTH, HEIGHT, DENSITY, mSurface, 165 WIDTH, HEIGHT, DENSITY, mSurface, 218 WIDTH, HEIGHT, DENSITY, mSurface,
|
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/ |
H A D | 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; field in class:CamRenderer
|