Home
last modified time | relevance | path

Searched refs:mSurface (Results 1 – 25 of 113) sorted by relevance

12345

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp66 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/
DCounterRotator.java29 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/
DTextureView.java183 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 …]
DInputMonitor.java47 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()
DScrollCaptureSession.java31 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/
DCustomSurfaceView.java42 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/
DCustomSurfaceView.java45 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/
DPenStylusActivity.kt43 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()
DCanvasTextureViewActivity.java72 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()
DHardwareCanvasTextureViewActivity.java74 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/
DLetterbox.java361 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/
DVirtualDisplay.java38 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()
DVirtualDisplayConfig.java54 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/
DNativeWindowSurface.cpp33 : 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/
DScrollCaptureConnectionTest.java76 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/
DAutoBackendTexture.cpp41 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/
DMain.cpp290 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/
DRsYuv.java48 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/
DMultiTextureConsumer_test.cpp42 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/
DGraphicsActivity.java85 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/
DBufferProducerThread.cpp34 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/
DSkiaCpuPipeline.cpp96 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/
DBaseSurfaceHolder.java40 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/
DTestContext.cpp78 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/
DEglSurfaceTexture.cc50 mSurface = sp<Surface>::make(mBufferProducer); in EglSurfaceTexture()
60 return mSurface; in getSurface()
73 return mSurface->waitForNextFrame(mGlConsumer->getFrameNumber(), in waitForNextFrame()

12345