/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/ |
D | WindowThumbnail.java | 31 private SurfaceControl mSurfaceControl; field in WindowThumbnail 39 windowThumbnail.mSurfaceControl = new SurfaceControl.Builder(surfaceSession) in createAndAttach() 47 t.setBuffer(windowThumbnail.mSurfaceControl, graphicBuffer); in createAndAttach() 48 t.setColorSpace(windowThumbnail.mSurfaceControl, ColorSpace.get(ColorSpace.Named.SRGB)); in createAndAttach() 49 t.setLayer(windowThumbnail.mSurfaceControl, Integer.MAX_VALUE); in createAndAttach() 50 t.show(windowThumbnail.mSurfaceControl); in createAndAttach() 57 return mSurfaceControl; in getSurface() 62 if (mSurfaceControl == null) { in destroy() 66 t.remove(mSurfaceControl); in destroy() 68 mSurfaceControl.release(); in destroy() [all …]
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | WindowSurfaceController.java | 48 SurfaceControl mSurfaceControl; field in WindowSurfaceController 73 mSurfaceControl = win.makeSurface() in WindowSurfaceController() 96 if (mSurfaceControl == null) { in hideSurface() 101 transaction.hide(mSurfaceControl); in hideSurface() 117 if (mSurfaceControl != null) { in destroy() 124 t.remove(mSurfaceControl); in destroy() 130 mSurfaceControl = null; in destroy() 135 if (mSurfaceControl == null) { in prepareToShowInTransaction() 139 t.setAlpha(mSurfaceControl, alpha); in prepareToShowInTransaction() 146 if (mSurfaceControl == null) { in setOpaque() [all …]
|
D | TrustedOverlayHost.java | 44 SurfaceControl mSurfaceControl; field in TrustedOverlayHost 53 if (mSurfaceControl == null) { in requireOverlaySurfaceControl() 60 mSurfaceControl = b.build(); in requireOverlaySurfaceControl() 62 t.setTrustedOverlay(mSurfaceControl, true).apply(); in requireOverlaySurfaceControl() 67 if (mSurfaceControl == null) { in setParent() 70 t.reparent(mSurfaceControl, newParent); in setParent() 72 t.show(mSurfaceControl); in setParent() 74 t.hide(mSurfaceControl); in setParent() 79 if (mSurfaceControl != null) { in setLayer() 80 t.setLayer(mSurfaceControl, layer); in setLayer() [all …]
|
D | WindowContainerThumbnail.java | 54 private SurfaceControl mSurfaceControl; field in WindowContainerThumbnail 88 mSurfaceControl = mWindowContainer.makeChildSurface(mWindowContainer.getTopChild()) in WindowContainerThumbnail() 97 ProtoLog.i(WM_SHOW_TRANSACTIONS, " THUMBNAIL %s: CREATE", mSurfaceControl); in WindowContainerThumbnail() 100 t.setBuffer(mSurfaceControl, graphicBuffer); in WindowContainerThumbnail() 101 t.setColorSpace(mSurfaceControl, ColorSpace.get(ColorSpace.Named.SRGB)); in WindowContainerThumbnail() 102 t.show(mSurfaceControl); in WindowContainerThumbnail() 106 t.setLayer(mSurfaceControl, Integer.MAX_VALUE); in WindowContainerThumbnail() 137 pendingTransaction.show(mSurfaceControl); in setShowing() 139 pendingTransaction.hide(mSurfaceControl); in setShowing() 145 getPendingTransaction().remove(mSurfaceControl); in destroy() [all …]
|
D | SurfaceFreezer.java | 216 private SurfaceControl mSurfaceControl; field in SurfaceFreezer.Snapshot 227 mSurfaceControl = mAnimatable.makeAnimationLeash() in Snapshot() 236 ProtoLog.i(WM_SHOW_TRANSACTIONS, " THUMBNAIL %s: CREATE", mSurfaceControl); in Snapshot() 238 t.setBuffer(mSurfaceControl, graphicBuffer); in Snapshot() 239 t.setColorSpace(mSurfaceControl, screenshotBuffer.getColorSpace()); in Snapshot() 240 t.show(mSurfaceControl); in Snapshot() 244 t.setLayer(mSurfaceControl, Integer.MAX_VALUE); in Snapshot() 248 if (mSurfaceControl == null) { in destroy() 251 t.remove(mSurfaceControl); in destroy() 252 mSurfaceControl = null; in destroy() [all …]
|
D | StrictModeFlash.java | 36 private final SurfaceControl mSurfaceControl; field in StrictModeFlash 63 mSurfaceControl = ctrl; in StrictModeFlash() 66 mBlastBufferQueue = new BLASTBufferQueue(TITLE, mSurfaceControl, 1 /* width */, in StrictModeFlash() 78 mBlastBufferQueue.update(mSurfaceControl, dw, dh, PixelFormat.RGBA_8888); in drawIfNeeded() 116 if (mSurfaceControl == null) { in setVisibility() 121 t.show(mSurfaceControl); in setVisibility() 123 t.hide(mSurfaceControl); in setVisibility() 133 t.setBufferSize(mSurfaceControl, dw, dh); in positionSurface()
|
D | ActivityRecordInputSink.java | 43 private SurfaceControl mSurfaceControl; field in ActivityRecordInputSink 58 if (mSurfaceControl == null) { in applyChangesToSurfaceIfChanged() 59 mSurfaceControl = createSurface(transaction); in applyChangesToSurfaceIfChanged() 62 inputWindowHandleWrapper.applyChangesToSurface(transaction, mSurfaceControl); in applyChangesToSurfaceIfChanged() 115 if (mSurfaceControl != null) { in releaseSurfaceControl() 116 mSurfaceControl.release(); in releaseSurfaceControl() 117 mSurfaceControl = null; in releaseSurfaceControl()
|
D | EmulatorDisplayOverlay.java | 43 private final SurfaceControl mSurfaceControl; field in EmulatorDisplayOverlay 75 mSurfaceControl = ctrl; in EmulatorDisplayOverlay() 80 mBlastBufferQueue = new BLASTBufferQueue(TITLE, mSurfaceControl, mScreenSize.x, in EmulatorDisplayOverlay() 100 t.setPosition(mSurfaceControl, 0, 0); in drawIfNeeded() 111 if (mSurfaceControl == null) { in setVisibility() 117 t.show(mSurfaceControl); in setVisibility() 119 t.hide(mSurfaceControl); in setVisibility()
|
D | SeamlessRotator.java | 81 transaction.setFixedTransformHint(win.mSurfaceControl, mFixedTransformHint); in unrotate() 108 if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) { in finish() 112 setIdentityMatrix(t, win.mSurfaceControl); in finish() 113 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish() 115 t.unsetFixedTransformHint(win.mSurfaceControl); in finish()
|
D | SimpleSurfaceAnimatable.java | 40 private final SurfaceControl mSurfaceControl; field in SimpleSurfaceAnimatable 58 mSurfaceControl = builder.mSurfaceControl; in SimpleSurfaceAnimatable() 114 return mSurfaceControl; in getSurfaceControl() 153 private SurfaceControl mSurfaceControl = null; field in SimpleSurfaceAnimatable.Builder 262 mSurfaceControl = surfaceControl; in setSurfaceControl() 324 if (mSurfaceControl == null) { in build()
|
/frameworks/native/services/surfaceflinger/ |
D | HdrSdrRatioOverlay.cpp | 111 : mSurfaceControl( in HdrSdrRatioOverlay() 113 if (!mSurfaceControl) { in HdrSdrRatioOverlay() 118 .setLayer(mSurfaceControl->get(), INT32_MAX - 2) in HdrSdrRatioOverlay() 119 .setTrustedOverlay(mSurfaceControl->get(), true) in HdrSdrRatioOverlay() 124 return mSurfaceControl != nullptr; in initCheck() 133 SurfaceComposerClient::Transaction().setLayerStack(mSurfaceControl->get(), stack).apply(); in setLayerStack() 145 .setMatrix(mSurfaceControl->get(), frame.getWidth() / static_cast<float>(kBufferWidth), in setViewport() 147 .setPosition(mSurfaceControl->get(), frame.left, frame.top) in setViewport() 153 if (!mSurfaceControl) return kNoBuffer; in getOrCreateBuffers() 156 static_cast<ui::Transform::RotationFlags>(mSurfaceControl->get()->getTransformHint()); in getOrCreateBuffers() [all …]
|
D | RefreshRateOverlay.cpp | 174 mSurfaceControl( in RefreshRateOverlay() 176 if (!mSurfaceControl) { in RefreshRateOverlay() 182 .setLayer(mSurfaceControl->get(), INT32_MAX - 2) in RefreshRateOverlay() 183 .setTrustedOverlay(mSurfaceControl->get(), true) in RefreshRateOverlay() 188 return mSurfaceControl != nullptr; in initCheck() 194 if (!mSurfaceControl) return kNoBuffers; in getOrCreateBuffers() 202 static_cast<ui::Transform::RotationFlags>(mSurfaceControl->get()->getTransformHint()); in getOrCreateBuffers() 216 createTransaction().setTransform(mSurfaceControl->get(), transform).apply(); in getOrCreateBuffers() 265 .setMatrix(mSurfaceControl->get(), frame.getWidth() / static_cast<float>(kBufferWidth), in setViewport() 267 .setPosition(mSurfaceControl->get(), frame.left, frame.top) in setViewport() [all …]
|
/frameworks/base/core/java/android/view/ |
D | SurfaceControlViewHost.java | 63 private SurfaceControl mSurfaceControl; field in SurfaceControlViewHost 155 private SurfaceControl mSurfaceControl; field in SurfaceControlViewHost.SurfacePackage 164 mSurfaceControl = sc; in SurfacePackage() 181 SurfaceControl otherSurfaceControl = other.mSurfaceControl; in SurfacePackage() 183 mSurfaceControl = new SurfaceControl(otherSurfaceControl, "SurfacePackage"); in SurfacePackage() 191 mSurfaceControl = new SurfaceControl(); in SurfacePackage() 192 mSurfaceControl.readFromParcel(in); in SurfacePackage() 193 mSurfaceControl.setUnreleasedWarningCallSite("SurfacePackage(Parcel)"); in SurfacePackage() 208 return mSurfaceControl; in getSurfaceControl() 274 mSurfaceControl.writeToParcel(out, flags); in writeToParcel() [all …]
|
D | SurfaceView.java | 194 SurfaceControl mSurfaceControl; field in SurfaceView 627 if (!mClipSurfaceToBounds || mSurfaceControl == null) { in setClipBounds() 643 transaction.setWindowCrop(mSurfaceControl, mTmpRect); in setClipBounds() 783 if (mSurfaceControl == null) { in setZOrderedOnTop() 906 if (mSurfaceControl != null) { in releaseSurfaces() 907 transaction.remove(mSurfaceControl); in releaseSurfaces() 908 mSurfaceControl = null; in releaseSurfaces() 981 surfaceUpdateTransaction.show(mSurfaceControl); in performSurfaceTransaction() 983 surfaceUpdateTransaction.hide(mSurfaceControl); in performSurfaceTransaction() 995 surfaceUpdateTransaction.setAlpha(mSurfaceControl, alpha); in performSurfaceTransaction() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowAnimationSpecTest.java | 54 private final SurfaceControl mSurfaceControl = mock(SurfaceControl.class); field in WindowAnimationSpecTest 66 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipNone() 67 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipNone() 76 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfter() 77 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfter() 87 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfterOffsetPosition() 88 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfterOffsetPosition() 99 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_setCornerRadius_noClip()
|
/frameworks/base/tests/SurfaceControlViewHostTest/src/com/android/test/viewembed/ |
D | EmbeddedWindowService.java | 54 private SurfaceControl mSurfaceControl; field in EmbeddedWindowService 128 mSurfaceControl = new SurfaceControl.Builder().setName("Child SurfaceControl") in attachEmbeddedSurfaceControl() 130 new SurfaceControl.Transaction().show(mSurfaceControl).apply(); in attachEmbeddedSurfaceControl() 132 Surface surface = new Surface(mSurfaceControl); in attachEmbeddedSurfaceControl() 139 mSurfaceControl, in attachEmbeddedSurfaceControl() 150 if (mSurfaceControl != null) { in tearDownEmbeddedSurfaceControl() 152 wm.unregisterSurfaceControlInputReceiver(mSurfaceControl); in tearDownEmbeddedSurfaceControl() 153 new SurfaceControl.Transaction().remove(mSurfaceControl).apply(); in tearDownEmbeddedSurfaceControl()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 98 private SurfaceControl mSurfaceControl; field in ColorFade 610 if (mSurfaceControl != null) { 611 mTransaction.setSecure(mSurfaceControl, isSecure).apply(); 625 mSurfaceControl = builder.build(); 631 mTransaction.setLayerStack(mSurfaceControl, mDisplayLayerStack); 632 mTransaction.setWindowCrop(mSurfaceControl, mDisplayWidth, mDisplayHeight); 634 mSurfaceControl); 641 .setParent(mSurfaceControl) 771 if (mSurfaceControl != null) { 774 mTransaction.remove(mSurfaceControl).apply(); [all …]
|
/frameworks/base/libs/hwui/ |
D | WebViewFunctorManager.cpp | 108 if (mSurfaceControl) { in ~WebViewFunctor() 121 if (mSurfaceControl) { in onRemovedFromTree() 211 if (mSurfaceControl) { in removeOverlays() 214 funcs.releaseFunc(mSurfaceControl); in removeOverlays() 215 mSurfaceControl = nullptr; in removeOverlays() 221 if (mSurfaceControl != nullptr) return mSurfaceControl; in getSurfaceControl() 231 mSurfaceControl = funcs.createFunc(rootSurfaceControl, "Webview Overlay SurfaceControl"); in getSurfaceControl() 234 funcs.transactionSetZOrderFunc(transaction, mSurfaceControl, -1); in getSurfaceControl() 235 funcs.transactionSetVisibilityFunc(transaction, mSurfaceControl, in getSurfaceControl() 239 return mSurfaceControl; in getSurfaceControl() [all …]
|
/frameworks/base/apct-tests/perftests/surfaceflinger/src/android/surfaceflinger/ |
D | SurfaceFlingerTestActivity.java | 39 SurfaceControl mSurfaceControl; field in SurfaceFlingerTestActivity 93 mSurfaceControl = getSurfaceControl(); in getChildSurfaceControlHelper() 95 .setFrameRate(mSurfaceControl, 1000, FRAME_RATE_COMPATIBILITY_DEFAULT) in getChildSurfaceControlHelper() 100 .setParent(mSurfaceControl) in getChildSurfaceControlHelper()
|
/frameworks/native/libs/gui/ |
D | BLASTBufferQueue.cpp | 170 : mSurfaceControl(nullptr), in BLASTBufferQueue() 249 const bool surfaceControlChanged = !SurfaceControl::isSameSurface(mSurfaceControl, surface); in update() 250 if (surfaceControlChanged && mSurfaceControl != nullptr) { in update() 257 mSurfaceControl = surface; in update() 260 t.setFlags(mSurfaceControl, layer_state_t::eEnableBackpressure, in update() 264 mTransformHint = mSurfaceControl->getTransformHint(); in update() 278 t.setDestinationFrame(mSurfaceControl, Rect(newSize)); in update() 540 if (mSurfaceControl == nullptr) { in acquireNextBufferLocked() 594 t->notifyProducerDisconnect(mSurfaceControl); in acquireNextBufferLocked() 627 t->setBuffer(mSurfaceControl, buffer, fence, bufferItem.mFrameNumber, mProducerId, in acquireNextBufferLocked() [all …]
|
/frameworks/native/libs/gui/tests/ |
D | BLASTBufferQueue_test.cpp | 160 return mBlastBufferQueueAdapter->mSurfaceControl; in getSurfaceControl() 227 mSurfaceControl = mClient->createSurface(String8("TestSurface"), mDisplayWidth, in SetUp() 351 sp<SurfaceControl> mSurfaceControl; member in android::BLASTBufferQueueTest 364 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() 365 ASSERT_EQ(mSurfaceControl, adapter.getSurfaceControl()); in TEST_F() 372 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() 392 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() 400 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() 432 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() 470 BLASTBufferQueueHelper adapter(mSurfaceControl, mDisplayWidth, mDisplayHeight); in TEST_F() [all …]
|
D | EndToEndNativeInputTest.cpp | 111 mSurfaceControl = sc; in InputSurface() 296 transactionBody(t, mSurfaceControl); in doTransaction() 302 t.show(mSurfaceControl); in showAt() 303 t.setInputWindowInfo(mSurfaceControl, mInputInfo); in showAt() 304 t.setLayer(mSurfaceControl, LAYER_BASE); in showAt() 305 t.setPosition(mSurfaceControl, x, y); in showAt() 306 t.setCrop(mSurfaceControl, crop); in showAt() 307 t.setAlpha(mSurfaceControl, 1); in showAt() 326 sp<SurfaceControl> mSurfaceControl; member in android::test::InputSurface 376 t.show(mSurfaceControl); in showAt() [all …]
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestContext.cpp | 94 mSurfaceControl = in createWindowSurface() 99 t.setLayer(mSurfaceControl, 0x7FFFFFF).show(mSurfaceControl).apply(); in createWindowSurface() 100 mSurface = mSurfaceControl->getSurface(); in createWindowSurface()
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/ |
D | StageTaskListenerTests.java | 82 private SurfaceControl mSurfaceControl; field in StageTaskListenerTests 101 mSurfaceControl = new SurfaceControl.Builder(mSurfaceSession).setName("test").build(); in setup() 102 mStageTaskListener.onTaskAppeared(mRootTask, mSurfaceControl); in setup() 129 mStageTaskListener.onTaskAppeared(childTask, mSurfaceControl); in testChildTaskAppeared() 175 mStageTaskListener.onTaskAppeared(childTask, mSurfaceControl); in testEvictAllChildren()
|
/frameworks/native/services/surfaceflinger/tests/ |
D | IPC_test.cpp | 149 mSurfaceControl = mClient->createSurface(String8("parentProcessSurface"), 0, 0, in createTransaction() 162 transaction->setLayerStack(mSurfaceControl, ui::DEFAULT_LAYER_STACK) in createTransaction() 163 .setLayer(mSurfaceControl, std::numeric_limits<int32_t>::max()) in createTransaction() 164 .setBuffer(mSurfaceControl, gb, fence) in createTransaction() 165 .show(mSurfaceControl) in createTransaction() 178 expected.addSurface(ExpectedResult::Transaction::PRESENTED, mSurfaceControl); in verifyCallbacks() 185 mSurfaceControl = nullptr; in cleanUp() 214 sp<SurfaceControl> mSurfaceControl; member in android::test::BnIPCTest
|