/frameworks/base/core/java/android/hardware/display/ |
H A D | VirtualDisplay.java | 38 private Surface mSurface; field in class:VirtualDisplay 45 mSurface = surface; 59 return mSurface; 75 if (mSurface != surface) { 77 mSurface = surface; 110 + ", surface=" + mSurface + "}";
|
/frameworks/base/core/java/android/view/ |
H A D | TextureView.java | 110 private SurfaceTexture mSurface; field in class:TextureView 245 if (mSurface != null) { 249 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); 257 mSurface.release(); 259 mSurface = null; 363 if (mSurface != null) { 364 mSurface.setDefaultBufferSize(getWidth(), getHeight()); 367 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); 379 boolean createNewSurface = (mSurface == null); 382 mSurface [all...] |
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
H A D | CustomSurfaceView.java | 42 private Surface mSurface; field in class:CustomSurfaceView 106 if (mSurface != null) { 107 mCanvas = mSurface.lockCanvas(null); 115 if (mSurface == null) { 119 mSurface.unlockCanvasAndPost(mCanvas); 130 if (mSurface != null) { 131 Canvas canvas = mSurface.lockCanvas(null); 146 mSurface.unlockCanvasAndPost(canvas); 157 if (mSurface == null) { 164 if (mSurface [all...] |
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
H A D | TaskSnapshotSurfaceTest.java | 56 private TaskSnapshotSurface mSurface; field in class:TaskSnapshotSurfaceTest 64 mSurface = new TaskSnapshotSurface(sWm, new Window(), new Surface(), snapshot, "Test", 80 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 200)); 90 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 100)); 100 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); 111 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); 121 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 200)); 128 assertEquals(new Rect(0, 0, 100, 90), mSurface.calculateSnapshotCrop()); 134 assertEquals(new Rect(0, 10, 100, 90), mSurface.calculateSnapshotCrop()); 140 assertEquals(new Rect(10, 0, 100, 100), mSurface [all...] |
/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) {
|
H A D | HardwareCanvasTextureViewActivity.java | 74 private final Surface mSurface; field in class:HardwareCanvasTextureViewActivity.RenderingThread 79 mSurface = new Surface(mView.getSurfaceTexture()); 93 final Canvas canvas = mSurface.lockHardwareCanvas(); 98 mSurface.unlockCanvasAndPost(canvas);
|
H A D | HardwareCanvasSurfaceViewActivity.java | 106 private final SurfaceHolder mSurface; field in class:HardwareCanvasSurfaceViewActivity.RenderingThread 111 mSurface = surface; 130 final Canvas canvas = mSurface.lockHardwareCanvas(); 135 mSurface.unlockCanvasAndPost(canvas);
|
/frameworks/base/libs/hwui/tests/common/ |
H A D | TestContext.cpp | 66 if (!mSurface.get()) { 69 return mSurface; 88 mSurface = mSurfaceControl->getSurface(); 99 mSurface = new Surface(producer);
|
H A D | TestContext.h | 48 LOG_ALWAYS_FATAL_IF(mSurface.get(), 67 sp<Surface> mSurface; member in class:android::uirenderer::test::TestContext
|
/frameworks/native/libs/gui/tests/ |
H A D | MultiTextureConsumer_test.cpp | 42 mSurface = new Surface(producer); 43 mANW = mSurface.get(); 64 sp<Surface> mSurface; member in class:android::MultiTextureConsumerTest 108 mSurface->lock(&buffer, NULL); 110 mSurface->unlockAndPost();
|
/frameworks/base/core/java/android/app/ |
H A D | ActivityView.java | 126 private Surface mSurface; field in class:ActivityView 185 if (mSurface != null && (visibility == View.GONE || mLastVisibility == View.GONE)) { 187 final Surface surface = (visibility == View.GONE) ? null : mSurface; 215 " mSurface=" + mSurface); 221 " mSurface=" + mSurface); 225 return mSurface != null; 232 if (mSurface == null) { 246 if (mSurface [all...] |
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
H A D | RsYuv.java | 48 private Surface mSurface; field in class:RsYuv 59 mAllocationOut.setSurface(mSurface); 61 if (mSurface != null) { 129 mSurface = new Surface(surface); 136 mSurface = new Surface(surface); 143 mSurface = null;
|
/frameworks/base/libs/hwui/renderthread/ |
H A D | Frame.h | 50 EGLSurface mSurface; member in class:android::uirenderer::renderthread::Frame
|
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | StrictModeFlash.java | 38 private final Surface mSurface = new Surface(); field in class:StrictModeFlash 53 mSurface.copyFrom(ctrl); 71 c = mSurface.lockCanvas(dirty); 92 mSurface.unlockCanvasAndPost(c);
|
H A D | CircularDisplayMask.java | 48 private final Surface mSurface = new Surface(); field in class:CircularDisplayMask 82 mSurface.copyFrom(ctrl); 103 c = mSurface.lockCanvas(dirty); 131 mSurface.unlockCanvasAndPost(c);
|
H A D | EmulatorDisplayOverlay.java | 45 private final Surface mSurface = new Surface(); field in class:EmulatorDisplayOverlay 72 mSurface.copyFrom(ctrl); 90 c = mSurface.lockCanvas(dirty); 103 mSurface.unlockCanvasAndPost(c);
|
/frameworks/base/core/java/com/android/internal/view/ |
H A D | BaseSurfaceHolder.java | 40 public Surface mSurface = new Surface(); field in class:BaseSurfaceHolder 192 c = mSurface.lockHardwareCanvas(); 194 c = mSurface.lockCanvas(dirty); 226 mSurface.unlockCanvasAndPost(canvas); 231 return mSurface;
|
/frameworks/native/services/surfaceflinger/ |
H A D | DisplayDevice.cpp | 104 mSurface(EGL_NO_SURFACE), 158 mSurface = eglSurface; 193 if (mSurface != EGL_NO_SURFACE) { 194 eglDestroySurface(mDisplay, mSurface); 195 mSurface = EGL_NO_SURFACE; 229 return mSurface; 257 eglSetSwapRectangleANDROID(mDisplay, mSurface, 328 EGLBoolean success = eglSwapBuffers(mDisplay, mSurface); 334 mDisplay, mSurface, error); 337 mDisplay, mSurface, erro [all...] |
/frameworks/native/cmds/flatland/ |
H A D | Main.cpp | 289 mSurface(EGL_NO_SURFACE) { 299 &mGLConsumer, &mSurface, &mTexName); 332 if (mSurface != EGL_NO_SURFACE) { 333 mGLHelper->destroySurface(&mSurface); 341 return mRenderer->render(mSurface); 369 EGLSurface mSurface; member in class:Layer 384 mSurface(EGL_NO_SURFACE), 406 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, 454 mGLHelper->destroySurface(&mSurface); 474 result = doFrame(mSurface); 576 EGLSurface mSurface; member in class:BenchmarkRunner [all...] |
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/ui/ |
H A D | SurfaceTargetFilter.java | 50 private Surface mSurface; field in class:SurfaceTargetFilter 91 if (mSurface == null) { 237 mSurfaceId = mGlEnv.registerSurface(mSurface); 239 throw new RuntimeException("Could not register Surface: " + mSurface);
|
/frameworks/base/services/core/java/com/android/server/vr/ |
H A D | Vr2dDisplay.java | 98 private Surface mSurface; field in class:Vr2dDisplay 330 if (mSurface != surface && (surface == null || surface.isValid())) { 331 Log.i(TAG, "Setting the new surface from " + mSurface + " to " + surface); 335 if (mSurface != null) { 336 mSurface.release(); 338 mSurface = surface;
|
/frameworks/base/services/core/java/com/android/server/display/ |
H A D | VirtualDisplayAdapter.java | 199 private Surface mSurface; field in class:VirtualDisplayAdapter.VirtualDisplayDevice 220 mSurface = surface; 240 if (mSurface != null) { 241 mSurface.release(); 242 mSurface = null; 274 setSurfaceInTransactionLocked(mSurface); 280 if (!mStopped && mSurface != surface) { 281 if ((mSurface != null) != (surface != null)) { 285 mSurface = surface; 365 mInfo.state = 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 | 48 private Surface mSurface; field in class:DisplaySinkService 136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { 140 mSurface = surface; 151 if (mSurface != null) { 160 mCodec.configure(format, mSurface, null, 0);
|