/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | RenderSurfaceTest.cpp | 66 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/ |
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 | 179 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 …]
|
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/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 | 345 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 …]
|
D | EmulatorDisplayOverlay.java | 44 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/ |
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 | 51 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/ |
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/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/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/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/native/libs/renderengine/skia/ |
D | AutoBackendTexture.cpp | 63 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/ |
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/base/packages/WallpaperCropper/src/com/android/photos/views/ |
D | BlockingGLTextureView.java | 318 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/ |
D | RenderTarget.java | 67 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()
|