Home
last modified time | relevance | path

Searched refs:SurfaceControl (Results 1 – 25 of 434) sorted by relevance

12345678910>>...18

/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/util/
H A DStubTransaction.java68 public SurfaceControl.Transaction show(SurfaceControl sc) { in show()
73 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide()
83 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize()
89 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer()
94 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer()
111 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo()
123 public SurfaceControl.Transaction setMatrix(SurfaceControl sc, in setMatrix()
171 public SurfaceControl.Transaction reparent(SurfaceControl sc, SurfaceControl newParent) { in reparent()
237 public SurfaceControl.Transaction remove(SurfaceControl sc) { in remove()
265 public SurfaceControl.Transaction unsetColor(SurfaceControl sc) { in unsetColor()
[all …]
/aosp14/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/
H A DStubTransaction.java68 public SurfaceControl.Transaction show(SurfaceControl sc) { in show()
73 public SurfaceControl.Transaction hide(SurfaceControl sc) { in hide()
83 public SurfaceControl.Transaction setBufferSize(SurfaceControl sc, in setBufferSize()
89 public SurfaceControl.Transaction setLayer(SurfaceControl sc, int z) { in setLayer()
94 public SurfaceControl.Transaction setRelativeLayer(SurfaceControl sc, SurfaceControl relativeTo, in setRelativeLayer()
111 public SurfaceControl.Transaction setInputWindowInfo(SurfaceControl sc, in setInputWindowInfo()
123 public SurfaceControl.Transaction setMatrix(SurfaceControl sc, in setMatrix()
171 public SurfaceControl.Transaction reparent(SurfaceControl sc, SurfaceControl newParent) { in reparent()
237 public SurfaceControl.Transaction remove(SurfaceControl sc) { in remove()
265 public SurfaceControl.Transaction unsetColor(SurfaceControl sc) { in unsetColor()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DSimpleSurfaceAnimatable.java21 import android.view.SurfaceControl;
39 private final SurfaceControl mAnimationLeashParent;
40 private final SurfaceControl mSurfaceControl;
41 private final SurfaceControl mParentSurfaceControl;
46 private final BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated;
86 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated()
107 public SurfaceControl getAnimationLeashParent() { in getAnimationLeashParent()
113 public SurfaceControl getSurfaceControl() { in getSurfaceControl()
118 public SurfaceControl getParentSurfaceControl() { in getParentSurfaceControl()
160 private BiConsumer<SurfaceControl.Transaction, SurfaceControl> mOnAnimationLeashCreated =
[all …]
H A DSurfaceFreezer.java30 import android.view.SurfaceControl;
59 SurfaceControl mLeash;
81 @Nullable SurfaceControl freezeTarget) { in freeze()
111 SurfaceControl takeLeashForAnimation() { in takeLeashForAnimation()
112 SurfaceControl out = mLeash; in takeLeashForAnimation()
133 void unfreeze(SurfaceControl.Transaction t) { in unfreeze()
146 SurfaceControl leash = mLeash; in unfreezeInner()
177 void setRelativeLayer(SurfaceControl.Transaction t, SurfaceControl relativeTo, int layer) { in setRelativeLayer()
205 SurfaceControl target, Rect bounds) { in createSnapshotBufferInner()
216 private SurfaceControl mSurfaceControl;
[all …]
H A DDimmer.java29 import android.view.SurfaceControl;
46 private SurfaceControl mDimLayer;
48 private DimAnimatable(SurfaceControl dimLayer) { in DimAnimatable()
68 public void onAnimationLeashCreated(SurfaceControl.Transaction t, SurfaceControl leash) { in onAnimationLeashCreated()
86 public SurfaceControl getSurfaceControl() { in getSurfaceControl()
124 SurfaceControl mDimLayer;
143 DimState(SurfaceControl dimLayer) { in DimState()
185 private SurfaceControl makeDimLayer() { in makeDimLayer()
326 SurfaceControl.Transaction t) { in startDimEnter()
331 SurfaceControl.Transaction t) { in startDimExit()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DScreenshotUtils.java21 import android.view.SurfaceControl;
38 public static void captureLayer(SurfaceControl sc, Rect crop, in captureLayer()
50 SurfaceControl mScreenshot = null;
51 SurfaceControl.Transaction mTransaction;
52 SurfaceControl mSurfaceControl;
53 SurfaceControl mParentSurfaceControl;
56 BufferConsumer(SurfaceControl.Transaction t, SurfaceControl sc, SurfaceControl parentSc, in BufferConsumer()
69 mScreenshot = new SurfaceControl.Builder() in accept()
96 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot()
112 public static SurfaceControl takeScreenshot(SurfaceControl.Transaction t, SurfaceControl sc, in takeScreenshot()
[all …]
H A DSurfaceUtils.java19 import android.view.SurfaceControl;
27 public static SurfaceControl makeDimLayer(SurfaceControl.Transaction t, SurfaceControl host, in makeDimLayer()
29 final SurfaceControl dimLayer = makeColorLayer(host, name, surfaceSession); in makeDimLayer()
35 public static SurfaceControl makeColorLayer(SurfaceControl host, String name, in makeColorLayer()
37 return new SurfaceControl.Builder(surfaceSession) in makeColorLayer()
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/freeform/
H A DFreeformTaskTransitionObserverTest.java102 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testCreatesWindowDecorOnOpenTransition_freeform()
103 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testCreatesWindowDecorOnOpenTransition_freeform()
119 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testPreparesWindowDecorOnCloseTransition_freeform()
120 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testPreparesWindowDecorOnCloseTransition_freeform()
136 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testDoesntCloseWindowDecorDuringCloseTransition()
137 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testDoesntCloseWindowDecorDuringCloseTransition()
154 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testClosesWindowDecorAfterCloseTransition()
155 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testClosesWindowDecorAfterCloseTransition()
172 final SurfaceControl.Transaction startT1 = mock(SurfaceControl.Transaction.class); in testClosesMergedWindowDecorationAfterTransitionFinishes()
184 final SurfaceControl.Transaction startT2 = mock(SurfaceControl.Transaction.class); in testClosesMergedWindowDecorationAfterTransitionFinishes()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
H A DWindowDecorationTests.java149 final SurfaceControl decorContainerSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_invisibleTask()
153 final SurfaceControl taskBackgroundSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_invisibleTask()
157 final SurfaceControl captionContainerSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_invisibleTask()
176 final SurfaceControl taskSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_invisibleTask()
197 final SurfaceControl decorContainerSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_visibleFocusedTask()
220 final SurfaceControl taskSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_visibleFocusedTask()
274 final SurfaceControl decorContainerSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
300 final SurfaceControl taskSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_visibleFocusedTaskToInvisible()
397 final SurfaceControl taskSurface = mock(SurfaceControl.class); in testAddWindow()
467 final SurfaceControl taskSurface = mock(SurfaceControl.class); in testLayoutResultCalculation_fullWidthCaption()
[all …]
H A DDesktopModeWindowDecorViewModelTests.java46 import android.view.SurfaceControl;
153 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testDeleteCaptionOnChangeTransitionWhenNecessary()
155 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testDeleteCaptionOnChangeTransitionWhenNecessary()
156 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testDeleteCaptionOnChangeTransitionWhenNecessary()
184 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testCreateCaptionOnChangeTransitionWhenNecessary()
186 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testCreateCaptionOnChangeTransitionWhenNecessary()
187 final SurfaceControl.Transaction finishT = mock(SurfaceControl.Transaction.class); in testCreateCaptionOnChangeTransitionWhenNecessary()
218 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testCreateAndDisposeEventReceiver()
219 final SurfaceControl.Transaction startT = mock(SurfaceControl.Transaction.class); in testCreateAndDisposeEventReceiver()
251 SurfaceControl surfaceControl = mock(SurfaceControl.class); in testEventReceiversOnMultipleDisplays()
[all …]
/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DDimmerTests.java35 import android.view.SurfaceControl;
54 final SurfaceControl mControl = mock(SurfaceControl.class);
80 final SurfaceControl mHostControl = mock(SurfaceControl.class);
93 public SurfaceControl build() { in build()
94 SurfaceControl mSc = mock(SurfaceControl.class); in build()
166 SurfaceControl dimLayer = getDimLayer(); in testDimAboveWithChildCreatesSurfaceAboveChild()
181 SurfaceControl dimLayer = getDimLayer(); in testDimBelowWithChildSurfaceCreatesSurfaceBelowChild()
196 SurfaceControl dimLayer = getDimLayer(); in testDimBelowWithChildSurfaceDestroyedWhenReset()
213 SurfaceControl dimLayer = getDimLayer(); in testDimBelowWithChildSurfaceNotDestroyedWhenPersisted()
231 SurfaceControl dimLayer = getDimLayer(); in testDimUpdateWhileDimming()
[all …]
H A DSurfaceControlTests.java34 import android.view.SurfaceControl;
60 SurfaceControl sc = buildTestSurface(); in testUseValidSurface()
61 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseValidSurface()
69 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface()
70 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseInvalidSurface()
83 SurfaceControl sc = buildTestSurface(); in testUseInvalidSurface_debugEnabled()
84 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testUseInvalidSurface_debugEnabled()
104 SurfaceControl sc = buildTestSurface(); in testWriteInvalidSurface_debugEnabled()
105 SurfaceControl.Transaction t = new SurfaceControl.Transaction(); in testWriteInvalidSurface_debugEnabled()
184 private SurfaceControl buildTestSurface() { in buildTestSurface()
[all …]
H A DLetterboxTest.java36 import android.view.SurfaceControl;
54 SurfaceControl.Transaction mTransaction;
61 private SurfaceControl mParentSurface = mock(SurfaceControl.class);
275 public SurfaceControl left;
277 public SurfaceControl top;
279 public SurfaceControl right;
281 public SurfaceControl bottom;
283 public SurfaceControl fullWindowSurface;
286 public SurfaceControl.Builder get() { in get()
287 final SurfaceControl.Builder builder = mock(SurfaceControl.Builder.class, in get()
[all …]
H A DMockSurfaceControlBuilder.java21 import android.view.SurfaceControl;
29 class MockSurfaceControlBuilder extends SurfaceControl.Builder {
31 public SurfaceControl.Builder setParent(SurfaceControl sc) { in setParent()
36 public SurfaceControl build() { in build()
37 SurfaceControl mockSurfaceControl = mock(SurfaceControl.class); in build()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A DSurfaceControlRegistryTests.java82 SurfaceControl sc = buildTestSurface(); in testCreateReleaseSurfaceControl()
91 SurfaceControl sc1 = buildTestSurface(); in testCreateReleaseMultipleSurfaceControls()
94 SurfaceControl sc2 = buildTestSurface(); in testCreateReleaseMultipleSurfaceControls()
110 SurfaceControl sc0 = new SurfaceControl(); in testInvalidSurfaceControlNotAddedToRegistry()
111 SurfaceControl sc1 = new SurfaceControl(sc0, "test"); in testInvalidSurfaceControlNotAddedToRegistry()
125 SurfaceControl sc1 = buildTestSurface(); in testThresholds()
126 SurfaceControl sc2 = buildTestSurface(); in testThresholds()
127 SurfaceControl sc3 = buildTestSurface(); in testThresholds()
128 SurfaceControl sc4 = buildTestSurface(); in testThresholds()
151 private SurfaceControl buildTestSurface() { in buildTestSurface()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
H A DPipSurfaceTransactionHelper.java24 import android.view.SurfaceControl;
61 public PipSurfaceTransactionHelper alpha(SurfaceControl.Transaction tx, SurfaceControl leash, in alpha()
71 public PipSurfaceTransactionHelper crop(SurfaceControl.Transaction tx, SurfaceControl leash, in crop()
82 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale()
91 public PipSurfaceTransactionHelper scale(SurfaceControl.Transaction tx, SurfaceControl leash, in scale()
195 SurfaceControl leash, in resetScale()
206 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round()
216 public PipSurfaceTransactionHelper round(SurfaceControl.Transaction tx, SurfaceControl leash, in round()
228 public PipSurfaceTransactionHelper shadow(SurfaceControl.Transaction tx, SurfaceControl leash, in shadow()
235 SurfaceControl.Transaction getTransaction(); in getTransaction()
[all …]
H A DPipContentOverlay.java31 import android.view.SurfaceControl;
42 protected SurfaceControl mLeash;
45 public abstract void attach(SurfaceControl.Transaction tx, SurfaceControl parentLeash); in attach()
48 public void detach(SurfaceControl.Transaction tx) { in detach()
56 public SurfaceControl getLeash() { in getLeash()
87 mLeash = new SurfaceControl.Builder(new SurfaceSession()) in PipColorOverlay()
95 public void attach(SurfaceControl.Transaction tx, SurfaceControl parentLeash) { in attach()
140 mLeash = new SurfaceControl.Builder(new SurfaceSession()) in PipSnapshotOverlay()
147 public void attach(SurfaceControl.Transaction tx, SurfaceControl parentLeash) { in attach()
205 public void attach(SurfaceControl.Transaction tx, SurfaceControl parentLeash) { in attach()
[all …]
/aosp14/frameworks/base/tests/ChoreographerTests/src/main/java/android/view/choreographertests/
H A DAttachedChoreographerTest.java34 import android.view.SurfaceControl;
141 SurfaceControl sc1 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
151 SurfaceControl sc2 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
161 SurfaceControl sc3 = new SurfaceControl(sc, "AttachedChoreographerTests"); in testCreateChoreographer()
209 SurfaceControl copyFromSc = new SurfaceControl(); in testCopySurfaceControl()
235 SurfaceControl mirrorSc = SurfaceControl.mirrorSurface(sc); in testMirrorSurfaceControl()
264 SurfaceControl copySc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testPostFrameCallback()
290 SurfaceControl copySc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testPostFrameCallbackDelayed()
316 SurfaceControl copySc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testPostCallback()
342 SurfaceControl copySc = new SurfaceControl(sc, "AttachedChoreographerTests"); in testPostCallbackDelayed()
[all …]
/aosp14/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/color/
H A DDisplayWhiteBalanceTintControllerTest.java34 import android.view.SurfaceControl;
73 .mockStatic(SurfaceControl.class) in setUp()
177 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_setupWithSurfaceControl()
178 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl()
186 displayPrimaries.blue = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithSurfaceControl()
209 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_setupWithInvalidSurfaceControlData()
210 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_setupWithInvalidSurfaceControlData()
271 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
272 displayPrimaries.red = new SurfaceControl.CieXyz(); in displayWhiteBalance_getAndSetMatrix_validateTransformMatrix()
320 SurfaceControl.DisplayPrimaries displayPrimaries = new SurfaceControl.DisplayPrimaries(); in displayWhiteBalance_targetApplied_validateTransformMatrix()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/
H A DWindowDecorViewModel.java21 import android.view.SurfaceControl;
59 SurfaceControl taskSurface, in onTaskOpening()
60 SurfaceControl.Transaction startT, in onTaskOpening()
61 SurfaceControl.Transaction finishT); in onTaskOpening()
83 SurfaceControl taskSurface, in onTaskChanging()
84 SurfaceControl.Transaction startT, in onTaskChanging()
85 SurfaceControl.Transaction finishT); in onTaskChanging()
97 SurfaceControl.Transaction startT, in onTaskClosing()
98 SurfaceControl.Transaction finishT); in onTaskClosing()
H A DResizeVeil.java31 import android.view.SurfaceControl;
49 private final Supplier<SurfaceControl.Builder> mSurfaceControlBuilderSupplier;
52 private SurfaceControl mParentSurface;
53 private SurfaceControl mVeilSurface;
74 SurfaceControl.Transaction t = mSurfaceControlTransactionSupplier.get(); in setupResizeVeil()
113 public void showVeil(SurfaceControl.Transaction t, SurfaceControl parentSurface, in showVeil()
148 public void showVeil(SurfaceControl parentSurface, Rect taskBounds) { in showVeil()
149 SurfaceControl.Transaction t = mSurfaceControlTransactionSupplier.get(); in showVeil()
157 private void relayout(Rect newBounds, SurfaceControl.Transaction t) { in relayout()
169 SurfaceControl.Transaction t = mSurfaceControlTransactionSupplier.get(); in updateResizeVeil()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/util/
H A DCounterRotator.java21 import android.view.SurfaceControl;
29 private SurfaceControl mSurface = null;
32 public SurfaceControl getSurface() { in getSurface()
42 public void setup(SurfaceControl.Transaction t, SurfaceControl parent, int rotateDelta, in setup()
45 mSurface = new SurfaceControl.Builder() in setup()
70 public void addChild(SurfaceControl.Transaction t, SurfaceControl child) { in addChild()
79 public void cleanUp(SurfaceControl.Transaction finishTransaction) { in cleanUp()
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DRemoteAnimationTargetCompat.java21 import android.view.SurfaceControl;
42 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap) { in wrapApps() argument
55 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap) { in wrapNonApps() argument
61 SurfaceControl.Transaction t, ArrayMap<SurfaceControl, SurfaceControl> leashMap, in wrap() argument
/aosp14/frameworks/base/core/java/android/view/
H A DAttachedSurfaceControl.java52 @Nullable SurfaceControl.Transaction buildReparentTransaction(@NonNull SurfaceControl child); in buildReparentTransaction()
62 boolean applyTransactionOnDraw(@NonNull SurfaceControl.Transaction t); in applyTransactionOnDraw()
97 default @SurfaceControl.BufferTransform int getBufferTransformHint() { in getBufferTransformHint()
98 return SurfaceControl.BUFFER_TRANSFORM_IDENTITY; in getBufferTransformHint()
111 void onBufferTransformHintChanged(@SurfaceControl.BufferTransform int hint); in onBufferTransformHintChanged()
190 default void addTrustedPresentationCallback(@NonNull SurfaceControl.Transaction t, in addTrustedPresentationCallback()
191 @NonNull SurfaceControl.TrustedPresentationThresholds thresholds, in addTrustedPresentationCallback()
206 default void removeTrustedPresentationCallback(@NonNull SurfaceControl.Transaction t, in removeTrustedPresentationCallback()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DEnterDesktopTaskTransitionHandler.java30 import android.view.SurfaceControl;
148 @NonNull SurfaceControl.Transaction startT, in startAnimation()
149 @NonNull SurfaceControl.Transaction finishT, in startAnimation()
177 @NonNull SurfaceControl.Transaction startT, in startChangeTransition()
214 @NonNull SurfaceControl.Transaction startT, in animateMoveToDesktop()
221 final SurfaceControl leash = change.getLeash(); in animateMoveToDesktop()
253 @NonNull SurfaceControl.Transaction startT, in animateStartDragToDesktopMode()
258 final SurfaceControl sc = change.getLeash(); in animateStartDragToDesktopMode()
282 @NonNull SurfaceControl.Transaction startT, in animateFinalizeDragToDesktopMode()
288 final SurfaceControl sc = change.getLeash(); in animateFinalizeDragToDesktopMode()
[all …]

12345678910>>...18