/frameworks/base/core/java/android/view/ |
GLES20TextureLayer.java | 31 private SurfaceTexture mSurface; 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);
|
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 mSurface.setDefaultBufferSize(getWidth(), getHeight()); 328 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); 363 mSurface = mAttachInfo.mHardwareRenderer.createSurfaceTexture(mLayer); 365 mSurface.setDefaultBufferSize(getWidth(), getHeight()) [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;
|
/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/base/services/java/com/android/server/display/ |
VirtualDisplayAdapter.java | 105 private Surface mSurface; 119 mSurface = surface; 126 if (mSurface != null) { 133 if (mSurface != null) { 134 mSurface.release(); 135 mSurface = null; 142 if (mSurface != null) { 143 setSurfaceInTransactionLocked(mSurface);
|
OverlayDisplayAdapter.java | 197 private Surface mSurface; 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/ |
Surface_test.cpp | 53 mSurface = mSurfaceControl->getSurface(); 54 ASSERT_TRUE(mSurface != NULL); 61 sp<Surface> mSurface; 67 sp<ANativeWindow> anw(mSurface); 78 sp<ANativeWindow> anw(mSurface); 88 sp<ANativeWindow> anw(mSurface); 129 sp<ANativeWindow> anw(mSurface);
|
/cts/suite/pts/deviceTests/opengl/src/com/android/pts/opengl/primitive/ |
GLPrimitiveActivity.java | 38 private volatile Surface mSurface = null; 72 mSurface = holder.getSurface(); 150 setupFullPipelineBenchmark(mSurface, mOffscreen, workload); 153 setupPixelOutputBenchmark(mSurface, mOffscreen, workload); 156 setupShaderPerfBenchmark(mSurface, mOffscreen, workload); 159 setupContextSwitchBenchmark(mSurface, mOffscreen, workload);
|
/cts/tests/tests/media/src/android/media/cts/ |
InputSurface.java | 46 private Surface mSurface; 55 mSurface = surface; 107 mEGLSurface = EGL14.eglCreateWindowSurface(mEGLDisplay, configs[0], mSurface, 127 mSurface.release(); 133 mSurface = null; 163 return mSurface;
|
OutputSurface.java | 53 private Surface mSurface; 112 mSurface = new Surface(mSurfaceTexture); 183 mSurface.release(); 194 mSurface = null; 211 return 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 | 35 private final Surface mSurface = new Surface(); 50 mSurface.copyFrom(ctrl); 68 c = mSurface.lockCanvas(dirty); 89 mSurface.unlockCanvasAndPost(c);
|
FocusedStackFrame.java | 42 private final Surface mSurface = new Surface(); 59 mSurface.copyFrom(ctrl); 71 c = mSurface.lockCanvas(mTmpDrawRect); 99 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 | 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; 385 mSurface(EGL_NO_SURFACE), 407 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, 455 mGLHelper->destroySurface(&mSurface); 475 result = doFrame(mSurface); [all...] |
/frameworks/native/services/surfaceflinger/ |
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, 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;
|
/external/chromium_org/third_party/angle_dx11/src/libGLESv2/renderer/ |
Image9.h | 45 virtual bool isDirty() const {return mSurface && mDirty;} 75 IDirect3DSurface9 *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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/integration/ |
CameraDeviceBinderTest.java | 68 private Surface mSurface; 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/ |
RenderTarget.java | 67 private EGLSurface mSurface; 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/ |
BlockingGLTextureView.java | 318 private SurfaceTexture mSurface; 338 if (mSurface == null) { 349 mSurface = surface; 363 if (mSurface != null) { 365 mSurface.updateTexImage(); 370 mSurface = null; 398 if (mEglHelper.createSurface(mSurface)) {
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
BlockingGLTextureView.java | 318 private SurfaceTexture mSurface; 338 if (mSurface == null) { 349 mSurface = surface; 363 if (mSurface != null) { 365 mSurface.updateTexImage(); 370 mSurface = null; 398 if (mEglHelper.createSurface(mSurface)) {
|