Home
last modified time | relevance | path

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

1234

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DRenderSurfaceTest.cpp63 impl::RenderSurface mSurface{mCompositionEngine, mDisplay, member in android::compositionengine::__anon2f9684cc0111::RenderSurfaceTest
74 EXPECT_TRUE(mSurface.isValid()); in TEST_F()
87 mSurface.initialize(); in TEST_F()
97 EXPECT_EQ(expected, mSurface.getSize()); in TEST_F()
109 EXPECT_EQ(fence.get(), mSurface.getClientTargetAcquireFence().get()); in TEST_F()
119 mSurface.setDisplaySize(ui::Size(640, 480)); in TEST_F()
130 mSurface.setBufferDataspace(ui::Dataspace::DISPLAY_P3); in TEST_F()
138 EXPECT_FALSE(mSurface.isProtected()); in TEST_F()
142 mSurface.setProtected(true); in TEST_F()
143 EXPECT_TRUE(mSurface.isProtected()); in TEST_F()
[all …]
/frameworks/base/core/java/android/view/
DTextureView.java115 private SurfaceTexture mSurface; field in TextureView
257 if (mSurface != null) { in releaseSurfaceTexture()
261 shouldRelease = mListener.onSurfaceTextureDestroyed(mSurface); in releaseSurfaceTexture()
269 mSurface.release(); in releaseSurfaceTexture()
271 mSurface = null; in releaseSurfaceTexture()
375 if (mSurface != null) { in onSizeChanged()
376 mSurface.setDefaultBufferSize(getWidth(), getHeight()); in onSizeChanged()
379 mListener.onSurfaceTextureSizeChanged(mSurface, getWidth(), getHeight()); in onSizeChanged()
391 boolean createNewSurface = (mSurface == null); in getTextureLayer()
394 mSurface = new SurfaceTexture(false); in getTextureLayer()
[all …]
DScrollCaptureSession.java34 private final Surface mSurface; field in ScrollCaptureSession
44 mSurface = surface; in ScrollCaptureSession()
60 return mSurface; in getSurface()
101 if (mSurface.isValid()) { in disconnect()
102 mSurface.release(); in disconnect()
DSurfaceView.java120 final Surface mSurface = new Surface(); // Current surface in use field in SurfaceView
404 final Surface parent = viewRoot.mSurface; in updateSurfaceAlpha()
783 final Surface parent = viewRoot.mSurface; in setZOrderedOnTop()
875 mSurface.release(); in releaseSurfaces()
908 if (viewRoot.mSurface == null || !viewRoot.mSurface.isValid()) { in updateSurface()
916 mSurface.setCompatibilityTranslator(translator); in updateSurface()
1025 + "Cur surface: " + mSurface); in updateSurface()
1033 == viewRoot.mSurface.getGenerationId())) { in updateSurface()
1036 mParentSurfaceGenerationId = viewRoot.mSurface.getGenerationId(); in updateSurface()
1130 mSurface.copyFrom(mSurfaceControl); in updateSurface()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotSurfaceTest.java66 private TaskSnapshotSurface mSurface; field in TaskSnapshotSurfaceTest
89mSurface = new TaskSnapshotSurface(mWm, new Window(), new SurfaceControl(), snapshot, "Test", in setupSurface()
114 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 200)); in fillEmptyBackground_fillHorizontally()
124 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 100)); in fillEmptyBackground_fillVertically()
134 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); in fillEmptyBackground_fillBoth()
145 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 100, 100)); in fillEmptyBackground_dontFill_sameSize()
155 mSurface.drawBackgroundAndBars(mockCanvas, new Rect(0, 0, 200, 200)); in fillEmptyBackground_dontFill_bitmapLarger()
162 assertEquals(new Rect(0, 0, 100, 90), mSurface.calculateSnapshotCrop()); in testCalculateSnapshotCrop()
168 assertEquals(new Rect(0, 10, 100, 90), mSurface.calculateSnapshotCrop()); in testCalculateSnapshotCrop_taskNotOnTop()
174 assertEquals(new Rect(10, 0, 100, 100), mSurface.calculateSnapshotCrop()); in testCalculateSnapshotCrop_navBarLeft()
[all …]
/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/services/core/java/com/android/server/wm/
DLetterbox.java258 private SurfaceControl mSurface; field in Letterbox.LetterboxSurface
277 mSurface = mSurfaceControlFactory.get() in createSurface()
283 t.setLayer(mSurface, -1) in createSurface()
284 .setColor(mSurface, new float[]{0, 0, 0}) in createSurface()
285 .setColorSpaceAgnostic(mSurface, true); in createSurface()
296 if (mSurface != null) { in remove()
297 mTransactionFactory.get().remove(mSurface).apply(); in remove()
298 mSurface = null; in remove()
332 if (mSurface == null) { in applySurfaceChanges()
335 t.setPosition(mSurface, mSurfaceFrameRelative.left, mSurfaceFrameRelative.top); in applySurfaceChanges()
[all …]
DStrictModeFlash.java36 private final Surface mSurface; field in StrictModeFlash
44 mSurface = surfaceFactory.get(); in StrictModeFlash()
62 mSurface.copyFrom(ctrl); in StrictModeFlash()
80 c = mSurface.lockCanvas(dirty); in drawIfNeeded()
109 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
DEmulatorDisplayOverlay.java44 private final Surface mSurface; field in EmulatorDisplayOverlay
54 mSurface = surfaceFactory.get(); in EmulatorDisplayOverlay()
73 mSurface.copyFrom(ctrl); in EmulatorDisplayOverlay()
91 c = mSurface.lockCanvas(dirty); in drawIfNeeded()
104 mSurface.unlockCanvasAndPost(c); in drawIfNeeded()
/frameworks/base/core/java/android/hardware/display/
DVirtualDisplay.java38 private Surface mSurface; field in VirtualDisplay
45 mSurface = surface; in VirtualDisplay()
59 return mSurface; in getSurface()
75 if (mSurface != surface) { in setSurface()
77 mSurface = surface; in setSurface()
122 + ", surface=" + mSurface + "}"; in toString()
DVirtualDisplayConfig.java79 private Surface mSurface = null; field in VirtualDisplayConfig
135 this.mSurface = surface; in VirtualDisplayConfig()
193 return mSurface; in getSurface()
222 if (mSurface != null) flg |= 0x20; in writeToParcel()
230 if (mSurface != null) dest.writeTypedObject(mSurface, flags); in writeToParcel()
272 this.mSurface = surface; in VirtualDisplayConfig()
305 private @Nullable Surface mSurface; field in VirtualDisplayConfig.Builder
413 mSurface = value; in setSurface()
451 mSurface = null; in build()
465 mSurface, in build()
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
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/native/services/surfaceflinger/
DNativeWindowSurface.cpp33 : mSurface(new Surface(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/native/cmds/flatland/
DMain.cpp288 mSurface(EGL_NO_SURFACE) { in Layer()
298 &mGLConsumer, &mSurface, &mTexName); in setUp()
331 if (mSurface != EGL_NO_SURFACE) { in tearDown()
332 mGLHelper->destroySurface(&mSurface); in tearDown()
340 return mRenderer->render(mSurface); in render()
366 EGLSurface mSurface; member in Layer
381 mSurface(EGL_NO_SURFACE), in BenchmarkRunner()
402 result = mGLHelper->createSurfaceTexture(w, h, &mGLConsumer, &mSurface, in setUp()
450 mGLHelper->destroySurface(&mSurface); in tearDown()
469 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/
Dcom_android_server_tv_TvInputHal.cpp105 sp<Surface> mSurface; member in android::BufferProducerThread
136 sp<ANativeWindow> anw(mSurface); in readyToRun()
159 if (surface == mSurface) { in setSurfaceLocked()
176 mSurface = surface; in setSurfaceLocked()
208 if (mSurface == NULL) { in threadLoop()
217 sp<ANativeWindow> anw(mSurface); in threadLoop()
273 sp<Surface> mSurface; member in android::JTvInputHal::Connection
348 if (connection.mSurface == surface) { in addOrUpdateStream()
353 if (connection.mSurface != NULL) { in addOrUpdateStream()
355 if (Surface::isValid(connection.mSurface)) { in addOrUpdateStream()
[all …]
/frameworks/base/libs/hwui/tests/common/
DTestContext.cpp74 if (!mSurface.get()) { in surface()
77 return mSurface; in surface()
96 mSurface = mSurfaceControl->getSurface(); in createWindowSurface()
108 mSurface = new Surface(producer); in createOffscreenSurface()
/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/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()
/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/services/core/java/com/android/server/display/
DVirtualDisplayAdapter.java223 private Surface mSurface; field in VirtualDisplayAdapter.VirtualDisplayDevice
246 mSurface = surface; in VirtualDisplayDevice()
268 if (mSurface != null) { in destroyLocked()
269 mSurface.release(); in destroyLocked()
270 mSurface = null; in destroyLocked()
285 return mSurface; in getSurfaceLocked()
312 setSurfaceLocked(t, mSurface); in performTraversalLocked()
318 if (!mStopped && mSurface != surface) { in setSurfaceLocked()
319 if ((mSurface != null) != (surface != null)) { in setSurfaceLocked()
323 mSurface = surface; in setSurfaceLocked()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DDisplaySinkService.java48 private Surface mSurface; field in DisplaySinkService
136 if (mSurface == surface && mSurfaceWidth == width && mSurfaceHeight == height) { in updateSurfaceFromUi()
140 mSurface = surface; in updateSurfaceFromUi()
151 if (mSurface != null) { in updateSurfaceFromUi()
160 mCodec.configure(format, mSurface, null, 0); in updateSurfaceFromUi()

1234