Home
last modified time | relevance | path

Searched refs:mTransaction (Results 1 – 14 of 14) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDimmerTests.java49 final SurfaceControl.Transaction mTransaction = mock(SurfaceControl.Transaction.class); field in DimmerTests.TestWindowContainer
62 return mTransaction; in getPendingTransaction()
106 private SurfaceControl.Transaction mTransaction; field in DimmerTests
121 mTransaction = mock(SurfaceControl.Transaction.class); in setUp()
128 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildCreatesSurface()
134 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveNoChildCreatesSurface()
135 verify(mTransaction).setLayer(dimLayer, Integer.MAX_VALUE); in testDimAboveNoChildCreatesSurface()
141 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface()
145 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface()
148 verify(mTransaction).setAlpha(firstSurface, 0.9f); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface()
[all …]
DWindowAnimationSpecTest.java53 private final SurfaceControl.Transaction mTransaction = mock(SurfaceControl.Transaction.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()
96 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoAnimationBounds()
97 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipBeforeNoAnimationBounds()
110 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoStackBounds()
[all …]
DSurfaceAnimatorTest.java63 @Mock Transaction mTransaction; field in SurfaceAnimatorTest
74 mAnimatable = new MyAnimatable(mWm, mSession, mTransaction); in setUp()
75 mAnimatable2 = new MyAnimatable(mWm, mSession, mTransaction); in setUp()
76 mDeferFinishAnimatable = new DeferFinishAnimatable(mWm, mSession, mTransaction); in setUp()
90 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in testRunAnimation()
94 verify(mTransaction).reparent(eq(mAnimatable.mSurface), eq(mAnimatable.mLeash)); in testRunAnimation()
100 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testRunAnimation()
106 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in testOverrideAnimation()
108 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec2, true /* hidden */); in testOverrideAnimation()
110 verify(mTransaction).remove(eq(firstLeash)); in testOverrideAnimation()
[all …]
DAppWindowTokenAnimationTests.java73 mToken.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in clipAfterAnim_boundsLayerIsCreated()
74 verify(mTransaction).reparent(eq(mToken.getSurfaceControl()), in clipAfterAnim_boundsLayerIsCreated()
76 verify(mTransaction).reparent(eq(mToken.mSurfaceAnimator.mLeash), in clipAfterAnim_boundsLayerIsCreated()
85 mToken.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in clipAfterAnim_boundsLayerZBoosted()
86 verify(mTransaction).setLayer(eq(mToken.mAnimationBoundsLayer), in clipAfterAnim_boundsLayerZBoosted()
94 mToken.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in clipAfterAnim_boundsLayerIsDestroyed()
103 verify(mTransaction).remove(eq(leash)); in clipAfterAnim_boundsLayerIsDestroyed()
104 verify(mTransaction).remove(eq(animationBoundsLayer)); in clipAfterAnim_boundsLayerIsDestroyed()
111 mToken.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */); in clipAfterAnimCancelled_boundsLayerIsDestroyed()
116 verify(mTransaction).remove(eq(leash)); in clipAfterAnimCancelled_boundsLayerIsDestroyed()
[all …]
DZOrderingTests.java111 private LayerRecordingTransaction mTransaction; field in ZOrderingTests.HierarchyRecorder
116 mTransaction = transaction; in HierarchyRecorder()
128 mTransaction.addParentFor(sc, mPendingParent); in build()
135 private LayerRecordingTransaction mTransaction; field in ZOrderingTests.HierarchyRecordingBuilderFactory
138 mTransaction = transaction; in HierarchyRecordingBuilderFactory()
143 final LayerRecordingTransaction transaction = mTransaction; in make()
148 private LayerRecordingTransaction mTransaction; field in ZOrderingTests
155 mTransaction = new LayerRecordingTransaction(); in beforeCreateDisplay()
156 mWm.mSurfaceBuilderFactory = new HierarchyRecordingBuilderFactory(mTransaction); in beforeCreateDisplay()
157 mWm.mTransactionFactory = () -> mTransaction; in beforeCreateDisplay()
[all …]
DLetterboxTest.java46 SurfaceControl.Transaction mTransaction; field in LetterboxTest
52 mTransaction = mock(SurfaceControl.Transaction.class); in setUp()
64 mLetterbox.applySurfaceChanges(mTransaction); in testSurfaceOrigin_applied()
65 verify(mTransaction).setPosition(mSurfaces.top, -1000, -2000); in testSurfaceOrigin_applied()
71 mLetterbox.applySurfaceChanges(mTransaction); in testSurfaceOrigin_changeCausesReapply()
72 clearInvocations(mTransaction); in testSurfaceOrigin_changeCausesReapply()
75 mLetterbox.applySurfaceChanges(mTransaction); in testSurfaceOrigin_changeCausesReapply()
76 verify(mTransaction).setPosition(mSurfaces.top, 0, 0); in testSurfaceOrigin_changeCausesReapply()
DWindowTestsBase.java107 Transaction mTransaction; field in WindowTestsBase
137 mTransaction = spy(StubTransaction.class); in setUpBase()
146 mWm.mTransactionFactory = () -> mTransaction; in setUpBase()
DWindowContainerTests.java120 verify(mTransaction, never()).setPosition(any(), anyFloat(), anyFloat()); in testAddChildSetsSurfacePosition()
122 verify(mTransaction, times(1)).setPosition(any(), eq(1.f), eq(1.f)); in testAddChildSetsSurfacePosition()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTransactionCompat.java27 final Transaction mTransaction; field in TransactionCompat
32 mTransaction = new Transaction(); in TransactionCompat()
36 mTransaction.apply(); in apply()
40 mTransaction.show(surfaceControl.mSurfaceControl); in show()
45 mTransaction.hide(surfaceControl.mSurfaceControl); in hide()
50 mTransaction.setPosition(surfaceControl.mSurfaceControl, x, y); in setPosition()
55 mTransaction.setBufferSize(surfaceControl.mSurfaceControl, w, h); in setSize()
60 mTransaction.setLayer(surfaceControl.mSurfaceControl, z); in setLayer()
65 mTransaction.setAlpha(surfaceControl.mSurfaceControl, alpha); in setAlpha()
71 mTransaction.setMatrix(surfaceControl.mSurfaceControl, dsdx, dtdx, dtdy, dsdy); in setMatrix()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDragState.java123 final SurfaceControl.Transaction mTransaction; field in DragState
142 mTransaction = service.mTransactionFactory.make(); in DragState()
151 mTransaction.hide(mInputSurface).apply(); in hideInputSurface()
169 mTransaction.show(mInputSurface); in showInputSurface()
170 mTransaction.setInputWindowInfo(mInputSurface, h); in showInputSurface()
171 mTransaction.setLayer(mInputSurface, Integer.MAX_VALUE); in showInputSurface()
174 mTransaction.setWindowCrop(mInputSurface, mTmpClipRect); in showInputSurface()
178 mTransaction.syncInputWindows(); in showInputSurface()
179 mTransaction.apply(); in showInputSurface()
241 mTransaction.reparent(mSurfaceControl, null).apply(); in closeLocked()
[all …]
DWindowAnimator.java86 private final SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in WindowAnimator
195 screenRotationAnimation.updateSurfaces(mTransaction); in animate()
211 SurfaceControl.mergeToGlobalTransaction(mTransaction); in animate()
DDragDropController.java170 final SurfaceControl.Transaction transaction = mDragState.mTransaction; in performDrag()
DWindowManagerService.java882 private final SurfaceControl.Transaction mTransaction; field in WindowManagerService
1042 mTransaction = mTransactionFactory.make(); in WindowManagerService()
5549 if (screenRotationAnimation.dismiss(mTransaction, MAX_ANIMATION_DURATION, in stopFreezingDisplayLocked()
5552 mTransaction.apply(); in stopFreezingDisplayLocked()
/frameworks/base/core/java/android/view/
DViewRootImpl.java490 private final Transaction mTransaction = new Transaction(); field in ViewRootImpl
1605 mTransaction.setLayer(mBoundsSurfaceControl, zOrderLayer) in createBoundsSurface()
1617 mTransaction.setWindowCrop(mBoundsSurfaceControl, mTempBoundsRect); in setBoundsSurfaceCrop()
1627 mTransaction.deferTransactionUntilSurface(mBoundsSurfaceControl, in updateBoundsSurface()
1640 mTransaction.remove(mBoundsSurfaceControl).apply(); in destroySurface()