Home
last modified time | relevance | path

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

12345

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp66 impl::RenderSurface mSurface{mCompositionEngine, mDisplay, member in android::compositionengine::__anon326301b10111::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/src/com/android/wm/shell/util/
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.java179 private SurfaceTexture mSurface; field in TextureView
325 if (mSurface != null) { in releaseSurfaceTexture()
329 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); in releaseSurfaceTexture()
337 mSurface.release(); in releaseSurfaceTexture()
339 mSurface = null; in releaseSurfaceTexture()
443 if (mSurface != null) { in onSizeChanged()
444 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in onSizeChanged()
447 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged()
459 boolean createNewSurface = (mSurface == null); in getTextureLayer()
462 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/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.java345 private SurfaceControl mSurface; field in Letterbox.LetterboxSurface
367 mSurface = mSurfaceControlFactory.get() in createSurface()
374 t.setLayer(mSurface, TASK_CHILD_LAYER_LETTERBOX_BACKGROUND) in createSurface()
375 .setColorSpaceAgnostic(mSurface, true); in createSurface()
386 return mSurface != null || mInputInterceptor != null; in isRemoved()
390 if (mSurface != null) { in remove()
391 mTransactionFactory.get().remove(mSurface).apply(); in remove()
392 mSurface = null; in remove()
415 if (mSurface == null) { in applySurfaceChanges()
421 t.setColor(mSurface, getRgbColorArray()); in applySurfaceChanges()
[all …]
DEmulatorDisplayOverlay.java44 private final Surface mSurface; field in EmulatorDisplayOverlay
82 mSurface = mBlastBufferQueue.createSurface(); in EmulatorDisplayOverlay()
93 c = mSurface.lockCanvas(null); in drawIfNeeded()
105 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
/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.java51 private final Surface mSurface; field in VirtualDisplayConfig
75 mSurface = surface; in VirtualDisplayConfig()
128 return mSurface; in getSurface()
185 dest.writeTypedObject(mSurface, flags); in writeToParcel()
210 && Objects.equals(mSurface, that.mSurface) in equals()
221 mName, mWidth, mHeight, mDensityDpi, mFlags, mSurface, mUniqueId, in hashCode()
236 + " mSurface=" + mSurface in toString()
251 mSurface = in.readTypedObject(Surface.CREATOR); in VirtualDisplayConfig()
282 private Surface mSurface = null; field in VirtualDisplayConfig.Builder
342 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/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/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/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/native/libs/renderengine/skia/
DAutoBackendTexture.cpp63 mSurface = nullptr; in unref()
158 if (!mSurface.get() || mDataspace != dataspace) { in getOrCreateSurface()
168 mSurface = surface; in getOrCreateSurface()
172 if (!mSurface) { in getOrCreateSurface()
175 return mSurface; in getOrCreateSurface()
/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/base/packages/WallpaperCropper/src/com/android/photos/views/
DBlockingGLTextureView.java318 private SurfaceTexture mSurface; field in BlockingGLTextureView.RenderThread
338 if (mSurface == null) { in checkSurface()
349 mSurface = surface; in setSurface()
363 if (mSurface != null) { in render()
365 mSurface.updateTexImage(); in render()
370 mSurface = null; in finish()
398 if (mEglHelper.createSurface(mSurface)) { in handleMessageLocked()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java67 private EGLSurface mSurface; field in RenderTarget
195 if (currentSurface != null && !currentSurface.equals(mSurface)) { in registerAsDisplaySurface()
198 mDisplaySurfaces.put(mContext, mSurface); in registerAsDisplaySurface()
253 if (removeReferenceTo(mSurface)) { in release()
254 mEgl.eglDestroySurface(mDisplay, mSurface); in release()
255 mSurface = EGL10.EGL_NO_SURFACE; in release()
291 return "RenderTarget(" + mDisplay + ", " + mContext + ", " + mSurface + ", " + mFbo + ")"; in toString()
353 mSurface = surface; in RenderTarget()
361 return mSurface; in surface()
364 return displaySurface != null ? displaySurface : mSurface; in surface()

12345