Home
last modified time | relevance | path

Searched refs:mSurfaceControl (Results 1 – 25 of 76) sorted by relevance

1234

/aosp12/frameworks/base/services/core/java/com/android/server/wm/
H A DWindowSurfaceController.java52 SurfaceControl mSurfaceControl; field in WindowSurfaceController
109 mSurfaceControl = b.build(); in WindowSurfaceController()
123 if (mSurfaceControl == null) { in hideSurface()
145 mSurfaceControl = null; in destroy()
182 if (mSurfaceControl == null) { in prepareToShowInTransaction()
194 if (mSurfaceControl == null) { in setOpaque()
210 if (mSurfaceControl == null) { in setSecure()
226 if (mSurfaceControl == null) { in setColorSpaceAgnostic()
253 t.show(mSurfaceControl); in showRobustly()
258 if (mSurfaceControl == null) { in clearWindowContentFrameStats()
[all …]
H A DWindowContainerThumbnail.java55 private SurfaceControl mSurfaceControl; field in WindowContainerThumbnail
101 t.setBuffer(mSurfaceControl, graphicBuffer); in WindowContainerThumbnail()
102 t.setColorSpace(mSurfaceControl, ColorSpace.get(ColorSpace.Named.SRGB)); in WindowContainerThumbnail()
103 t.show(mSurfaceControl); in WindowContainerThumbnail()
107 t.setLayer(mSurfaceControl, Integer.MAX_VALUE); in WindowContainerThumbnail()
138 pendingTransaction.show(mSurfaceControl); in setShowing()
140 pendingTransaction.hide(mSurfaceControl); in setShowing()
146 getPendingTransaction().remove(mSurfaceControl); in destroy()
147 mSurfaceControl = null; in destroy()
189 t.hide(mSurfaceControl); in onAnimationLeashLost()
[all …]
H A DSurfaceFreezer.java215 private SurfaceControl mSurfaceControl; field in SurfaceFreezer.Snapshot
226 mSurfaceControl = mAnimatable.makeAnimationLeash() in Snapshot()
237 t.setBuffer(mSurfaceControl, graphicBuffer); in Snapshot()
238 t.setColorSpace(mSurfaceControl, screenshotBuffer.getColorSpace()); in Snapshot()
239 t.show(mSurfaceControl); in Snapshot()
243 t.setLayer(mSurfaceControl, Integer.MAX_VALUE); in Snapshot()
247 if (mSurfaceControl == null) { in destroy()
250 t.remove(mSurfaceControl); in destroy()
251 mSurfaceControl = null; in destroy()
265 if (mSurfaceControl == null) { in startAnimation()
[all …]
H A DStrictModeFlash.java36 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()
H A DEmulatorDisplayOverlay.java43 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()
H A DSeamlessRotator.java82 transaction.setFixedTransformHint(win.mSurfaceControl, mFixedTransformHint); in unrotate()
105 if (win.mSurfaceControl == null || !win.mSurfaceControl.isValid()) { in finish()
110 t.setMatrix(win.mSurfaceControl, mTransform, mFloat9); in finish()
111 t.setPosition(win.mSurfaceControl, win.mLastSurfacePosition.x, win.mLastSurfacePosition.y); in finish()
113 t.unsetFixedTransformHint(win.mSurfaceControl); in finish()
H A DSimpleSurfaceAnimatable.java40 private final SurfaceControl mSurfaceControl; field in SimpleSurfaceAnimatable
57 mSurfaceControl = builder.mSurfaceControl; in SimpleSurfaceAnimatable()
107 return mSurfaceControl; in getSurfaceControl()
146 private SurfaceControl mSurfaceControl = null; field in SimpleSurfaceAnimatable.Builder
243 mSurfaceControl = surfaceControl; in setSurfaceControl()
302 if (mSurfaceControl == null) { in build()
H A DDragState.java98 SurfaceControl mSurfaceControl; field in DragState
150 mSurfaceControl = surface; in DragState()
251 if (mSurfaceControl != null) { in closeLocked()
253 mTransaction.reparent(mSurfaceControl, null).apply(); in closeLocked()
256 mSurfaceControl, DragDropController.DRAG_TIMEOUT_MS); in closeLocked()
258 mSurfaceControl = null; in closeLocked()
613 ProtoLog.i(WM_SHOW_TRANSACTIONS, "DRAG %s: pos=(%d,%d)", mSurfaceControl, in updateDragSurfaceLocked()
629 includeDragSurface ? mSurfaceControl : null, in obtainDragEvent()
699 mSurfaceControl, in onAnimationUpdate()
703 mSurfaceControl, in onAnimationUpdate()
[all …]
/aosp12/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DTransactionCompat.java39 mTransaction.show(surfaceControl.mSurfaceControl); in show()
44 mTransaction.hide(surfaceControl.mSurfaceControl); in hide()
49 mTransaction.setPosition(surfaceControl.mSurfaceControl, x, y); in setPosition()
54 mTransaction.setBufferSize(surfaceControl.mSurfaceControl, w, h); in setSize()
59 mTransaction.setLayer(surfaceControl.mSurfaceControl, z); in setLayer()
64 mTransaction.setAlpha(surfaceControl.mSurfaceControl, alpha); in setAlpha()
69 mTransaction.setOpaque(surfaceControl.mSurfaceControl, opaque); in setOpaque()
80 mTransaction.setMatrix(surfaceControl.mSurfaceControl, matrix, mTmpValues); in setMatrix()
85 mTransaction.setWindowCrop(surfaceControl.mSurfaceControl, crop); in setWindowCrop()
90 mTransaction.setCornerRadius(surfaceControl.mSurfaceControl, radius); in setCornerRadius()
[all …]
H A DSurfaceControlCompat.java27 final SurfaceControl mSurfaceControl; field in SurfaceControlCompat
30 mSurfaceControl = surfaceControl; in SurfaceControlCompat()
35 mSurfaceControl = viewRootImpl != null in SurfaceControlCompat()
41 return mSurfaceControl != null && mSurfaceControl.isValid(); in isValid()
45 return mSurfaceControl; in getSurfaceControl()
/aosp12/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
H A DWindowThumbnail.java31 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 …]
/aosp12/frameworks/base/core/java/android/view/
H A DSurfaceControlViewHost.java45 private SurfaceControl mSurfaceControl; field in SurfaceControlViewHost
71 private SurfaceControl mSurfaceControl; field in SurfaceControlViewHost.SurfacePackage
77 mSurfaceControl = sc; in SurfacePackage()
103 mSurfaceControl = new SurfaceControl(); in SurfacePackage()
104 mSurfaceControl.readFromParcel(in); in SurfacePackage()
116 return mSurfaceControl; in getSurfaceControl()
136 mSurfaceControl.writeToParcel(out, flags); in writeToParcel()
148 if (mSurfaceControl != null) { in release()
149 mSurfaceControl.release(); in release()
151 mSurfaceControl = null; in release()
[all …]
H A DSurfaceView.java133 SurfaceControl mSurfaceControl; field in SurfaceView
417 if (mSurfaceControl == null) { in updateSurfaceAlpha()
661 if (mSurfaceControl != null) { in setClipBounds()
801 if (mSurfaceControl == null) { in setZOrderedOnTop()
911 if (mSurfaceControl != null) { in releaseSurfaces()
913 mSurfaceControl = null; in releaseSurfaces()
1305 .setParent(mSurfaceControl) in createBackgroundControl()
1316 if (mSurfaceControl == null) { in createBlastSurfaceControls()
1404 if (mSurfaceControl == null) { in requestUpdateSurfacePositionAndScale()
1798 return mSurfaceControl; in getSurfaceControl()
[all …]
/aosp12/frameworks/base/libs/hwui/
H A DWebViewFunctorManager.cpp103 if (mSurfaceControl) { in ~WebViewFunctor()
116 if (mSurfaceControl) { in onRemovedFromTree()
197 if (mSurfaceControl) { in removeOverlays()
200 funcs.releaseFunc(mSurfaceControl); in removeOverlays()
201 mSurfaceControl = nullptr; in removeOverlays()
207 if (mSurfaceControl != nullptr) return mSurfaceControl; in getSurfaceControl()
220 funcs.transactionSetZOrderFunc(transaction, mSurfaceControl, -1); in getSurfaceControl()
221 funcs.transactionSetVisibilityFunc(transaction, mSurfaceControl, in getSurfaceControl()
225 return mSurfaceControl; in getSurfaceControl()
245 if (mSurfaceControl == nullptr) return; in reparentSurfaceControl()
[all …]
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowAnimationSpecTest.java52 private final SurfaceControl mSurfaceControl = mock(SurfaceControl.class); field in WindowAnimationSpecTest
64 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipNone()
65 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipNone()
74 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfter()
75 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfter()
85 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfterOffsetPosition()
86 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfterOffsetPosition()
97 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_setCornerRadius_noClip()
/aosp12/frameworks/base/services/core/java/com/android/server/display/
H A DColorFade.java94 private SurfaceControl mSurfaceControl; field in ColorFade
567 if (mSurfaceControl != null) {
582 mSurfaceControl = builder.build();
591 mSurfaceControl);
598 .setParent(mSurfaceControl)
728 if (mSurfaceControl != null) {
744 mSurfaceControl = null;
754 .show(mSurfaceControl)
834 mSurfaceControl = surfaceControl;
840 mSurfaceControl = null;
[all …]
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/fullscreen/
H A DFullscreenTaskListenerTest.java58 private SurfaceControl mSurfaceControl; field in FullscreenTaskListenerTest
76 mListener.onTaskAppeared(info, mSurfaceControl); in testAnimatableTaskAppeared_notifiesUnfoldController()
86 mListener.onTaskAppeared(animatable1, mSurfaceControl); in testMultipleAnimatableTasksAppeared_notifiesUnfoldController()
87 mListener.onTaskAppeared(animatable2, mSurfaceControl); in testMultipleAnimatableTasksAppeared_notifiesUnfoldController()
98 mListener.onTaskAppeared(info, mSurfaceControl); in testNonAnimatableTaskAppeared_doesNotNotifyUnfoldController()
106 mListener.onTaskAppeared(info, mSurfaceControl); in testNonAnimatableTaskChanged_doesNotNotifyUnfoldController()
116 mListener.onTaskAppeared(info, mSurfaceControl); in testNonAnimatableTaskVanished_doesNotNotifyUnfoldController()
126 mListener.onTaskAppeared(animatableTask, mSurfaceControl); in testAnimatableTaskBecameInactive_notifiesUnfoldController()
137 mListener.onTaskAppeared(taskInfo, mSurfaceControl); in testAnimatableTaskVanished_notifiesUnfoldController()
/aosp12/frameworks/native/libs/gui/
H A DBLASTBufferQueue.cpp131 : mSurfaceControl(nullptr), in BLASTBufferQueue()
196 mSurfaceControl = surface; in update()
197 if (mSurfaceControl != nullptr) { in update()
219 if (mSurfaceControl != nullptr) { in update()
416 if (mSurfaceControl != nullptr) { in releaseBufferCallbackLocked()
478 if (mSurfaceControl == nullptr) { in acquireNextBufferLocked()
552 t->setAcquireFence(mSurfaceControl, in acquireNextBufferLocked()
561 t->setBufferCrop(mSurfaceControl, crop); in acquireNextBufferLocked()
837 scHandle = mSurfaceControl->getHandle(); in getSurface()
990 if (mSurfaceControl != nullptr) { in getLastTransformHint()
[all …]
/aosp12/frameworks/native/cmds/surfacereplayer/replayer/
H A DBufferQueueScheduler.cpp27 : mSurfaceControl(surfaceControl), mColor(color), mSurfaceId(id), mContinueScheduling(true) {} in BufferQueueScheduler()
32 if (mSurfaceControl == nullptr) { in startScheduling()
33 mCondition.wait(lock, [&] { return (mSurfaceControl != nullptr); }); in startScheduling()
70 mSurfaceControl = surfaceControl; in setSurfaceControl()
76 sp<Surface> s = mSurfaceControl->getSurface(); in bufferUpdate()
82 sp<Surface> s = mSurfaceControl->getSurface(); in fillSurface()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
H A DStageTaskListenerTests.java80 private SurfaceControl mSurfaceControl; field in StageTaskListenerTests
99 mSurfaceControl = new SurfaceControl.Builder(mSurfaceSession).setName("test").build(); in setup()
100 mStageTaskListener.onTaskAppeared(mRootTask, mSurfaceControl); in setup()
127 mStageTaskListener.onTaskAppeared(childTask, mSurfaceControl); in testChildTaskAppeared()
138 mStageTaskListener.onTaskAppeared(task, mSurfaceControl); in testTaskAppeared_notifiesUnfoldListener()
140 verify(mStageTaskUnfoldController).onTaskAppeared(eq(task), eq(mSurfaceControl)); in testTaskAppeared_notifiesUnfoldListener()
147 mStageTaskListener.onTaskAppeared(task, mSurfaceControl); in testTaskVanished_notifiesUnfoldListener()
195 mStageTaskListener.onTaskAppeared(childTask, mSurfaceControl); in testEvictAllChildren()
/aosp12/frameworks/native/libs/gui/tests/
H A DEndToEndNativeInputTest.cpp78 mSurfaceControl = sc; in InputSurface()
208 transactionBody(t, mSurfaceControl); in doTransaction()
214 t.show(mSurfaceControl); in showAt()
216 t.setLayer(mSurfaceControl, LAYER_BASE); in showAt()
217 t.setPosition(mSurfaceControl, x, y); in showAt()
218 t.setCrop(mSurfaceControl, crop); in showAt()
219 t.setAlpha(mSurfaceControl, 1); in showAt()
272 sp<SurfaceControl> mSurfaceControl; member in android::test::InputSurface
322 t.show(mSurfaceControl); in showAt()
324 t.setCrop(mSurfaceControl, crop); in showAt()
[all …]
H A DBLASTBufferQueue_test.cpp95 return mBlastBufferQueueAdapter->mSurfaceControl; in getSurfaceControl()
169 t.setLayerStack(mSurfaceControl, 0) in SetUp()
170 .setLayer(mSurfaceControl, std::numeric_limits<int32_t>::max()) in SetUp()
171 .show(mSurfaceControl) in SetUp()
172 .setDataspace(mSurfaceControl, ui::Dataspace::V0_SRGB) in SetUp()
308 sp<SurfaceControl> mSurfaceControl; member in android::BLASTBufferQueueTest
321 ASSERT_EQ(mSurfaceControl, adapter.getSurfaceControl()); in TEST_F()
743 adapter.update(mSurfaceControl, mDisplayWidth, mDisplayHeight / 2); in TEST_F()
1104 mSurfaceControl->setTransformHint(ui::Transform::ROT_90); in TEST_F()
1128 mSurfaceControl->setTransformHint(ui::Transform::ROT_0); in TEST_F()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DIPC_test.cpp149 mSurfaceControl = mClient->createSurface(String8("parentProcessSurface"), 0, 0, in createTransaction()
162 transaction->setLayerStack(mSurfaceControl, 0) in createTransaction()
163 .setLayer(mSurfaceControl, std::numeric_limits<int32_t>::max()) in createTransaction()
164 .setBuffer(mSurfaceControl, gb) in createTransaction()
165 .setAcquireFence(mSurfaceControl, fence) in createTransaction()
166 .show(mSurfaceControl) in createTransaction()
179 expected.addSurface(ExpectedResult::Transaction::PRESENTED, mSurfaceControl); in verifyCallbacks()
186 mSurfaceControl = nullptr; in cleanUp()
215 sp<SurfaceControl> mSurfaceControl; member in android::test::BnIPCTest
/aosp12/frameworks/base/libs/hwui/tests/common/
H A DTestContext.cpp90 mSurfaceControl = in createWindowSurface()
95 t.setLayer(mSurfaceControl, 0x7FFFFFF).show(mSurfaceControl).apply(); in createWindowSurface()
96 mSurface = mSurfaceControl->getSurface(); in createWindowSurface()
/aosp12/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/
H A DMirrorSurfaceActivity.java56 private SurfaceControl mSurfaceControl = new SurfaceControl(); field in MirrorSurfaceActivity
221 if (mSurfaceControl.isValid()) { in removeMirror()
222 mTransaction.remove(mSurfaceControl).apply(); in removeMirror()
264 success = mIWm.mirrorDisplay(mDisplayId, mSurfaceControl); in createMirror()
272 if (!mSurfaceControl.isValid()) { in createMirror()
287 .show(mSurfaceControl) in createMirror()
288 .reparent(mSurfaceControl, mOverlayView.getViewRootImpl().getSurfaceControl()) in createMirror()
291 .reparent(mBorderSc, mSurfaceControl) in createMirror()
315 mTransaction.setGeometry(mSurfaceControl, sourceBounds, displayFrame, Surface.ROTATION_0) in updateMirror()

1234