/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | RenderSurfaceTest.cpp | 66 impl::RenderSurface mSurface{mCompositionEngine, mDisplay, member in android::compositionengine::__anon2f9684cc0111::RenderSurfaceTest 80 EXPECT_TRUE(mSurface.isValid()); in TEST_F() 94 mSurface.initialize(); in TEST_F() 104 EXPECT_EQ(expected, mSurface.getSize()); in TEST_F() 116 EXPECT_EQ(fence.get(), mSurface.getClientTargetAcquireFence().get()); in TEST_F() 127 mSurface.setDisplaySize(size); in TEST_F() 138 mSurface.setBufferDataspace(ui::Dataspace::DISPLAY_P3); in TEST_F() 146 EXPECT_FALSE(mSurface.isProtected()); in TEST_F() 152 mSurface.setProtected(true); in TEST_F() 153 EXPECT_TRUE(mSurface.isProtected()); in TEST_F() [all …]
|
/frameworks/base/libs/WindowManager/Shell/shared/src/com/android/wm/shell/shared/ |
D | CounterRotator.java | 29 private SurfaceControl mSurface = null; field in CounterRotator 33 return mSurface; in getSurface() 45 mSurface = new SurfaceControl.Builder() in setup() 53 RotationUtils.rotateSurface(t, mSurface, rotateDelta); in setup() 63 t.setPosition(mSurface, tmpPt.x, tmpPt.y); in setup() 64 t.show(mSurface); in setup() 71 if (mSurface == null) return; in addChild() 72 t.reparent(child, mSurface); in addChild() 80 if (mSurface == null) return; in cleanUp() 81 finishTransaction.remove(mSurface); in cleanUp()
|
/frameworks/base/core/java/android/view/ |
D | TextureView.java | 183 private SurfaceTexture mSurface; field in TextureView 337 if (mSurface != null) { in releaseSurfaceTexture() 341 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); in releaseSurfaceTexture() 349 mSurface.release(); in releaseSurfaceTexture() 351 mSurface = null; in releaseSurfaceTexture() 457 if (mSurface != null) { in onSizeChanged() 458 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in onSizeChanged() 461 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged() 473 boolean createNewSurface = (mSurface == null); in getTextureLayer() 476 mSurface = new SurfaceTexture(false); in getTextureLayer() [all …]
|
D | InputMonitor.java | 47 private final SurfaceControl mSurface; field in InputMonitor 74 mSurface.release(); in dispose() 108 this.mSurface = surface; in InputMonitor() 110 NonNull.class, null, mSurface); in InputMonitor() 127 return mSurface; in getSurface() 139 "surface = " + mSurface + in toString() 151 dest.writeTypedObject(mSurface, flags); in writeToParcel() 175 this.mSurface = surface; in InputMonitor() 177 NonNull.class, null, mSurface); in InputMonitor()
|
D | ScrollCaptureSession.java | 31 private final Surface mSurface; field in ScrollCaptureSession 44 mSurface = requireNonNull(surface); in ScrollCaptureSession() 62 return mSurface; in getSurface()
|
/frameworks/base/tests/SurfaceComposition/src/android/surfacecomposition/ |
D | CustomSurfaceView.java | 42 private Surface mSurface; field in CustomSurfaceView 106 if (mSurface != null) { in acquireCanvas() 107 mCanvas = mSurface.lockCanvas(null); in acquireCanvas() 115 if (mSurface == null) { in releaseCanvas() 119 mSurface.unlockCanvasAndPost(mCanvas); in releaseCanvas() 130 if (mSurface != null) { in invalidateSurface() 131 Canvas canvas = mSurface.lockCanvas(null); in invalidateSurface() 146 mSurface.unlockCanvasAndPost(canvas); in invalidateSurface() 157 if (mSurface == null) { in waitForSurfaceReady() 164 if (mSurface == null) in waitForSurfaceReady() [all …]
|
/frameworks/base/tests/GamePerformance/src/android/gameperformance/ |
D | CustomSurfaceView.java | 45 private Surface mSurface; field in CustomSurfaceView 52 if (mSurface == null) { 101 if (mSurface == null) { in invalidateSurface() 107 Canvas canvas = mSurface.lockHardwareCanvas(); in invalidateSurface() 124 mSurface.unlockCanvasAndPost(canvas); in invalidateSurface() 139 if (mSurface == null) { in waitForSurfaceReady() 146 if (mSurface == null) in waitForSurfaceReady() 156 if (mSurface != null) { in waitForSurfaceDestroyed() 162 if (mSurface != null) in waitForSurfaceDestroyed() 176 mSurface = holder.getSurface(); in surfaceChanged() [all …]
|
/frameworks/base/tests/graphics/HwAccelerationTest/src/com/android/test/hwui/ |
D | PenStylusActivity.kt | 43 private val mSurface: Surface constant in com.android.test.hwui.PenStylusActivity.SingleBufferedCanvas 50 mSurface = mImageReader.surface 51 mSurface.unlockCanvasAndPost(mSurface.lockCanvas(null)) 55 mCanvas = mSurface.lockCanvas(null) 62 mCanvas = mSurface.lockCanvas(rect) in lockCanvas() 68 mSurface.unlockCanvasAndPost(canvas) in unlockCanvas() 81 mSurface.unlockCanvasAndPost(mCanvas) in close()
|
D | CanvasTextureViewActivity.java | 72 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()
|
D | HardwareCanvasTextureViewActivity.java | 74 private final Surface mSurface; field in HardwareCanvasTextureViewActivity.RenderingThread 79 mSurface = new Surface(mView.getSurfaceTexture()); in RenderingThread() 93 final Canvas canvas = mSurface.lockHardwareCanvas(); in run() 98 mSurface.unlockCanvasAndPost(canvas); in run()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | Letterbox.java | 361 private SurfaceControl mSurface; field in Letterbox.LetterboxSurface 383 mSurface = mSurfaceControlFactory.get() in createSurface() 390 t.setLayer(mSurface, TASK_CHILD_LAYER_LETTERBOX_BACKGROUND) in createSurface() 391 .setColorSpaceAgnostic(mSurface, true); in createSurface() 402 return mSurface != null || mInputInterceptor != null; in isRemoved() 406 if (mSurface != null) { in remove() 407 mTransactionFactory.get().remove(mSurface).apply(); in remove() 408 mSurface = null; in remove() 432 if (mSurface == null) { in applySurfaceChanges() 438 t.setColor(mSurface, getRgbColorArray()); in applySurfaceChanges() [all …]
|
/frameworks/base/core/java/android/hardware/display/ |
D | VirtualDisplay.java | 38 private Surface mSurface; field in VirtualDisplay 44 mSurface = surface; in VirtualDisplay() 58 return mSurface; in getSurface() 81 if (mSurface != surface) { in setSurface() 83 mSurface = surface; in setSurface() 128 + ", surface=" + mSurface + "}"; in toString()
|
D | VirtualDisplayConfig.java | 54 private final Surface mSurface; field in VirtualDisplayConfig 80 mSurface = surface; in VirtualDisplayConfig() 134 return mSurface; in getSurface() 203 dest.writeTypedObject(mSurface, flags); in writeToParcel() 229 && Objects.equals(mSurface, that.mSurface) in equals() 241 mName, mWidth, mHeight, mDensityDpi, mFlags, mSurface, mUniqueId, in hashCode() 256 + " mSurface=" + mSurface in toString() 272 mSurface = in.readTypedObject(Surface.CREATOR); in VirtualDisplayConfig() 304 private Surface mSurface = null; field in VirtualDisplayConfig.Builder 365 mSurface = surface; in setSurface() [all …]
|
/frameworks/native/services/surfaceflinger/ |
D | NativeWindowSurface.cpp | 33 : mSurface(sp<Surface>::make(producer, /* controlledByApp */ false)) {} in createNativeWindowSurface() 37 sp<ANativeWindow> getNativeWindow() const override { return mSurface; } in createNativeWindowSurface() 39 void preallocateBuffers() override { mSurface->allocateBuffers(); } in createNativeWindowSurface() 42 sp<Surface> mSurface; in createNativeWindowSurface() member in android::surfaceflinger::impl::createNativeWindowSurface::NativeWindowSurface
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ScrollCaptureConnectionTest.java | 76 private Surface mSurface; field in ScrollCaptureConnectionTest 89 when(mSurface.isValid()).thenReturn(true); in setUp() 124 mConnection.startCapture(mSurface, mRemote); in testStartCapture() 136 ICancellationSignal signal = mConnection.startCapture(mSurface, mRemote); in testStartCapture_cancellation() 148 mConnection.startCapture(mSurface, mRemote); in testRequestImage() 162 mConnection.startCapture(mSurface, mRemote); in testRequestImage_afterClose() 175 mConnection.startCapture(mSurface, mRemote); in testRequestImage_cancellation() 188 mConnection.startCapture(mSurface, mRemote); in testEndCapture() 207 mConnection.startCapture(mSurface, mRemote); in testEndCapture_afterClose() 221 mConnection.startCapture(mSurface, mRemote); in testClose_withPendingOperation() [all …]
|
/frameworks/native/libs/renderengine/skia/ |
D | AutoBackendTexture.cpp | 41 mSurface = nullptr; in unref() 81 if (!mSurface.get() || mDataspace != dataspace) { in getOrCreateSurface() 87 mSurface = surface; in getOrCreateSurface() 91 return mSurface; in getOrCreateSurface()
|
/frameworks/native/cmds/flatland/ |
D | Main.cpp | 290 mSurface(EGL_NO_SURFACE) { in Layer() 300 &mGLConsumer, &mSurface, &mTexName); in setUp() 333 if (mSurface != EGL_NO_SURFACE) { in tearDown() 334 mGLHelper->destroySurface(&mSurface); in tearDown() 342 return mRenderer->render(mSurface); in render() 368 EGLSurface mSurface; member in Layer 383 mSurface(EGL_NO_SURFACE), in BenchmarkRunner() 404 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, in setUp() 452 mGLHelper->destroySurface(&mSurface); in tearDown() 471 result = doFrame(mSurface); in run() [all …]
|
/frameworks/rs/tests/java_api/LivePreview/src/com/android/rs/livepreview/ |
D | RsYuv.java | 48 private Surface mSurface; field in RsYuv 59 mAllocationOut.setSurface(mSurface); in setupSurface() 61 if (mSurface != null) { in setupSurface() 129 mSurface = new Surface(surface); in onSurfaceTextureAvailable() 136 mSurface = new Surface(surface); in onSurfaceTextureSizeChanged() 143 mSurface = null; in onSurfaceTextureDestroyed()
|
/frameworks/native/libs/gui/tests/ |
D | MultiTextureConsumer_test.cpp | 42 mSurface = new Surface(producer); in SetUp() 43 mANW = mSurface.get(); in SetUp() 64 sp<Surface> mSurface; member in android::MultiTextureConsumerTest 108 mSurface->lock(&buffer, nullptr); in TEST_F() 110 mSurface->unlockAndPost(); in TEST_F()
|
/frameworks/base/tests/CtsSurfaceControlTestsStaging/src/main/java/android/view/surfacecontroltests/ |
D | GraphicsActivity.java | 85 private Surface mSurface = null; field in GraphicsActivity 98 mSurface = holder.getSurface(); 106 mSurface = null; 206 private Surface mSurface; field in GraphicsActivity.TestSurface 227 mSurface = new Surface(mSurfaceControl); in TestSurface() 234 return mSurface; in getSurface() 296 Canvas canvas = mSurface.lockHardwareCanvas(); in postBuffer() 298 mSurface.unlockCanvasAndPost(canvas); in postBuffer() 307 if (mSurface != null) { in release() 308 mSurface.release(); in release() [all …]
|
/frameworks/base/services/core/jni/tvinput/ |
D | BufferProducerThread.cpp | 34 sp<ANativeWindow> anw(mSurface); in readyToRun() 57 if (surface == mSurface) { in setSurfaceLocked() 74 mSurface = surface; in setSurfaceLocked() 106 if (mSurface == NULL) { in threadLoop() 115 sp<ANativeWindow> anw(mSurface); in threadLoop()
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaCpuPipeline.cpp | 96 return Frame(mSurface->width(), mSurface->height(), 0); in getFrame() 106 renderFrame(*layerUpdateQueue, dirty, renderNodes, opaque, contentDrawBounds, mSurface, in draw() 123 mSurface = SkSurfaces::WrapPixels(imageInfo, pixels, widthBytes); in setSurface() 125 mSurface = sk_sp<SkSurface>(); in setSurface()
|
/frameworks/base/core/java/com/android/internal/view/ |
D | BaseSurfaceHolder.java | 40 public Surface mSurface = new Surface(); field in BaseSurfaceHolder 192 c = mSurface.lockHardwareCanvas(); in internalLockCanvas() 194 c = mSurface.lockCanvas(dirty); in internalLockCanvas() 226 mSurface.unlockCanvasAndPost(canvas); in unlockCanvasAndPost() 231 return mSurface; in getSurface()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 78 if (!mSurface.get()) { in surface() 81 return mSurface; in surface() 100 mSurface = mSurfaceControl->getSurface(); in createWindowSurface() 112 mSurface = new Surface(producer); in createOffscreenSurface()
|
/frameworks/av/services/camera/virtualcamera/util/ |
D | EglSurfaceTexture.cc | 50 mSurface = sp<Surface>::make(mBufferProducer); in EglSurfaceTexture() 60 return mSurface; in getSurface() 73 return mSurface->waitForNextFrame(mGlConsumer->getFrameNumber(), in waitForNextFrame()
|