/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DimmerTests.java | 55 final SurfaceControl.Transaction mTransaction = spy(StubTransaction.class); field in DimmerTests.TestWindowContainer 68 return mTransaction; in getPendingTransaction() 112 private SurfaceControl.Transaction mTransaction; field in DimmerTests 127 mTransaction = spy(StubTransaction.class); in setUp() 134 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildCreatesSurface() 140 verify(mTransaction).setAlpha(dimLayer, alpha); in testDimAboveNoChildCreatesSurface() 141 verify(mTransaction).setLayer(dimLayer, Integer.MAX_VALUE); in testDimAboveNoChildCreatesSurface() 147 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() 151 mDimmer.dimAbove(mTransaction, alpha); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() 154 verify(mTransaction).setAlpha(firstSurface, 0.9f); in testDimAboveNoChildRedundantlyUpdatesAlphaOnExistingSurface() [all …]
|
D | WindowAnimationSpecTest.java | 54 private final SurfaceControl.Transaction mTransaction = spy(StubTransaction.class); field in WindowAnimationSpecTest 65 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipNone() 66 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipNone() 75 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfter() 76 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfter() 86 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipAfterOffsetPosition() 87 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipAfterOffsetPosition() 97 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoAnimationBounds() 98 verify(mTransaction).setWindowCrop(eq(mSurfaceControl), in testApply_clipBeforeNoAnimationBounds() 111 windowAnimationSpec.apply(mTransaction, mSurfaceControl, 0); in testApply_clipBeforeNoStackBounds() [all …]
|
D | AppWindowTokenAnimationTests.java | 68 mActivity.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in clipAfterAnim_boundsLayerIsCreated() 70 verify(mTransaction).reparent(eq(mActivity.getSurfaceControl()), in clipAfterAnim_boundsLayerIsCreated() 72 verify(mTransaction).reparent(eq(mActivity.mSurfaceAnimator.mLeash), in clipAfterAnim_boundsLayerIsCreated() 81 mActivity.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in clipAfterAnim_boundsLayerZBoosted() 83 verify(mTransaction).setLayer(eq(mActivity.mAnimationBoundsLayer), in clipAfterAnim_boundsLayerZBoosted() 90 mActivity.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in clipAfterAnim_boundsLayerIsDestroyed() 102 verify(mTransaction).remove(eq(leash)); in clipAfterAnim_boundsLayerIsDestroyed() 103 verify(mTransaction).remove(eq(animationBoundsLayer)); in clipAfterAnim_boundsLayerIsDestroyed() 110 mActivity.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in clipAfterAnimCancelled_boundsLayerIsDestroyed() 116 verify(mTransaction).remove(eq(leash)); in clipAfterAnimCancelled_boundsLayerIsDestroyed() [all …]
|
D | SurfaceAnimatorTest.java | 71 @Mock Transaction mTransaction; field in SurfaceAnimatorTest 82 mAnimatable = new MyAnimatable(mWm, mSession, mTransaction); in setUp() 83 mAnimatable2 = new MyAnimatable(mWm, mSession, mTransaction); in setUp() 84 mDeferFinishAnimatable = new DeferFinishAnimatable(mWm, mSession, mTransaction); in setUp() 98 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in testRunAnimation() 103 verify(mTransaction).reparent(eq(mAnimatable.mSurface), eq(mAnimatable.mLeash)); in testRunAnimation() 111 verify(mTransaction).remove(eq(mAnimatable.mLeash)); in testRunAnimation() 117 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec, true /* hidden */, in testOverrideAnimation() 120 mAnimatable.mSurfaceAnimator.startAnimation(mTransaction, mSpec2, true /* hidden */, in testOverrideAnimation() 123 verify(mTransaction).remove(eq(firstLeash)); in testOverrideAnimation() [all …]
|
D | LetterboxTest.java | 52 SurfaceControl.Transaction mTransaction; field in LetterboxTest 66 mTransaction = spy(StubTransaction.class); in setUp() 170 mLetterbox.applySurfaceChanges(mTransaction); in testSurfaceOrigin_applied() 171 verify(mTransaction).setPosition(mSurfaces.top, -1000, -2000); in testSurfaceOrigin_applied() 177 mLetterbox.applySurfaceChanges(mTransaction); in testApplySurfaceChanges_setColor() 179 verify(mTransaction).setColor(mSurfaces.top, new float[]{0, 0, 0}); in testApplySurfaceChanges_setColor() 185 mLetterbox.applySurfaceChanges(mTransaction); in testApplySurfaceChanges_setColor() 187 verify(mTransaction).setColor(mSurfaces.top, new float[]{0, 1, 0}); in testApplySurfaceChanges_setColor() 193 mLetterbox.applySurfaceChanges(mTransaction); in testNeedsApplySurfaceChanges_wallpaperBackgroundRequested() 195 verify(mTransaction).setAlpha(mSurfaces.top, 1.0f); in testNeedsApplySurfaceChanges_wallpaperBackgroundRequested() [all …]
|
D | ZOrderingTests.java | 123 private LayerRecordingTransaction mTransaction; field in ZOrderingTests.HierarchyRecorder 128 mTransaction = transaction; in HierarchyRecorder() 140 mTransaction.addParentFor(sc, mPendingParent); in build() 148 private LayerRecordingTransaction mTransaction; field in ZOrderingTests.HierarchyRecordingBuilderFactory 151 mTransaction = transaction; in HierarchyRecordingBuilderFactory() 156 final LayerRecordingTransaction transaction = mTransaction; in apply() 161 private LayerRecordingTransaction mTransaction; field in ZOrderingTests 168 mTransaction = new LayerRecordingTransaction(); in beforeCreateTestDisplay() 169 mWm.mSurfaceControlFactory = new HierarchyRecordingBuilderFactory(mTransaction); in beforeCreateTestDisplay() 170 mWm.mTransactionFactory = () -> mTransaction; in beforeCreateTestDisplay() [all …]
|
D | SystemServicesTestRule.java | 121 SurfaceControl.Transaction mTransaction; field in SystemServicesTestRule 308 mTransaction = spy(StubTransaction.class); 310 mWmService.mTransactionFactory = () -> mTransaction; 312 null, null, mTransaction, mWmService.mPowerManagerInternal);
|
D | WindowContainerTests.java | 143 reset(mTransaction); in testAddChildSetsSurfacePosition() 148 verify(mTransaction, never()).setPosition(any(), anyFloat(), anyFloat()); in testAddChildSetsSurfacePosition() 150 verify(mTransaction, times(1)).setPosition(any(), eq(1.f), eq(1.f)); in testAddChildSetsSurfacePosition() 246 reset(mTransaction); in testRemoveImmediatelyClearsLastSurfacePosition()
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | TransactionCompat.java | 26 final Transaction mTransaction; field in TransactionCompat 31 mTransaction = new Transaction(); in TransactionCompat() 35 mTransaction.apply(); in apply() 39 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() [all …]
|
D | SyncRtSurfaceTransactionApplierCompat.java | 158 params.applyTo(t.mTransaction); in applyParams()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/ |
D | ScreenshotUtils.java | 51 SurfaceControl.Transaction mTransaction; field in ScreenshotUtils.BufferConsumer 56 mTransaction = t; in BufferConsumer() 76 mTransaction.setBuffer(mScreenshot, graphicBuffer); in accept() 77 mTransaction.setColorSpace(mScreenshot, buffer.getColorSpace()); in accept() 78 mTransaction.reparent(mScreenshot, mSurfaceControl); in accept() 79 mTransaction.setLayer(mScreenshot, mLayer); in accept() 80 mTransaction.show(mScreenshot); in accept() 81 mTransaction.apply(); in accept()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioningController.java | 58 final SurfaceControl.Transaction mTransaction; field in TaskPositioningController 70 mTransaction = service.mTransactionFactory.get(); in TaskPositioningController() 76 mTransaction.hide(mInputSurface); in hideInputSurface() 77 mTransaction.syncInputWindows().apply(); in hideInputSurface() 101 mTransaction.show(mInputSurface); in showInputSurface() 102 mTransaction.setInputWindowInfo(mInputSurface, h); in showInputSurface() 103 mTransaction.setLayer(mInputSurface, Integer.MAX_VALUE); in showInputSurface() 110 mTransaction.setWindowCrop(mInputSurface, mTmpClipRect); in showInputSurface() 111 mTransaction.syncInputWindows().apply(); in showInputSurface()
|
D | WindowAnimator.java | 92 private final SurfaceControl.Transaction mTransaction; field in WindowAnimator 98 mTransaction = service.mTransactionFactory.get(); in WindowAnimator() 169 mTransaction); in animate() 209 mTransaction.setEarlyWakeupStart(); in animate() 212 mTransaction.setEarlyWakeupEnd(); in animate() 216 SurfaceControl.mergeToGlobalTransaction(mTransaction); in animate()
|
D | DragState.java | 135 final SurfaceControl.Transaction mTransaction; field in DragState 154 mTransaction = service.mTransactionFactory.get(); in DragState() 177 mTransaction.show(mInputSurface); in showInputSurface() 178 mTransaction.setInputWindowInfo(mInputSurface, h); in showInputSurface() 179 mTransaction.setLayer(mInputSurface, Integer.MAX_VALUE); in showInputSurface() 182 mTransaction.setWindowCrop(mInputSurface, mTmpClipRect); in showInputSurface() 186 mTransaction.syncInputWindows(); in showInputSurface() 187 mTransaction.apply(true); in showInputSurface() 248 mTransaction.remove(mInputSurface).apply(); in closeLocked() 253 mTransaction.reparent(mSurfaceControl, null).apply(); in closeLocked() [all …]
|
D | TaskSnapshotSurface.java | 149 private final SurfaceControl.Transaction mTransaction; field in TaskSnapshotSurface 279 mTransaction = mService.mTransactionFactory.get(); in TaskSnapshotSurface() 339 mTransaction.setBuffer(mSurfaceControl, graphicBuffer) in drawSizeMatchSnapshot() 366 mTransaction.show(childSurfaceControl); in drawSizeMismatchSnapshot() 371 mTransaction.setWindowCrop(childSurfaceControl, crop); in drawSizeMismatchSnapshot() 372 mTransaction.setPosition(childSurfaceControl, frame.left, frame.top); in drawSizeMismatchSnapshot() 384 mTransaction.setMatrix(childSurfaceControl, mSnapshotMatrix, mTmpFloat9); in drawSizeMismatchSnapshot() 388 mTransaction.setColorSpace(childSurfaceControl, mSnapshot.getColorSpace()); in drawSizeMismatchSnapshot() 389 mTransaction.setBuffer(childSurfaceControl, graphicBuffer); in drawSizeMismatchSnapshot() 393 InputMonitor.setTrustedOverlayInputInfo(childSurfaceControl, mTransaction, mDisplayId, in drawSizeMismatchSnapshot() [all …]
|
D | DragDropController.java | 174 final SurfaceControl.Transaction transaction = mDragState.mTransaction; in performDrag()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/ |
D | TaskSnapshotWindow.java | 148 private final SurfaceControl.Transaction mTransaction; field in TaskSnapshotWindow 282 mTransaction = new SurfaceControl.Transaction(); in TaskSnapshotWindow() 370 mTransaction.setBuffer(mSurfaceControl, graphicBuffer) in drawSizeMatchSnapshot() 397 mTransaction.show(childSurfaceControl); in drawSizeMismatchSnapshot() 402 mTransaction.setWindowCrop(childSurfaceControl, crop); in drawSizeMismatchSnapshot() 403 mTransaction.setPosition(childSurfaceControl, frame.left, frame.top); in drawSizeMismatchSnapshot() 415 mTransaction.setMatrix(childSurfaceControl, mSnapshotMatrix, mTmpFloat9); in drawSizeMismatchSnapshot() 418 mTransaction.setColorSpace(childSurfaceControl, mSnapshot.getColorSpace()); in drawSizeMismatchSnapshot() 419 mTransaction.setBuffer(childSurfaceControl, graphicBuffer); in drawSizeMismatchSnapshot() 429 mTransaction.setBuffer(mSurfaceControl, background); in drawSizeMismatchSnapshot() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/ |
D | TaskView.java | 81 private final SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in TaskView 258 mTransaction.reparent(mTaskLeash, getSurfaceControl()) in onTaskAppeared() 295 mTransaction.reparent(mTaskLeash, null).apply(); in onTaskVanished() 352 mTransaction.reparent(mTaskLeash, getSurfaceControl()) in surfaceCreated() 377 mTransaction.reparent(mTaskLeash, null).apply(); in surfaceDestroyed()
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | ColorFade.java | 123 private final Transaction mTransaction = new Transaction(); field in ColorFade 568 mTransaction.setSecure(mSurfaceControl, isSecure).apply(); 588 mTransaction.setLayerStack(mSurfaceControl, mDisplayLayerStack); 589 mTransaction.setWindowCrop(mSurfaceControl, mDisplayWidth, mDisplayHeight); 592 mSurfaceLayout.onDisplayTransaction(mTransaction); 593 mTransaction.apply(); 731 mTransaction.remove(mSurfaceControl).apply(); 752 mTransaction.setLayer(mSurfaceControl, COLOR_FADE_LAYER)
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | WindowMagnificationController.java | 94 private final SurfaceControl.Transaction mTransaction; field in WindowMagnificationController 175 mTransaction = transaction; in WindowMagnificationController() 213 mTransaction.setGeometry(mMirrorSurface, mSourceBounds, mTmpRect, in WindowMagnificationController() 261 mTransaction.remove(mMirrorSurface).apply(); in deleteWindowMagnification() 461 mTransaction.show(mMirrorSurface) in createMirror() 464 modifyWindowMagnification(mTransaction); in createMirror() 653 modifyWindowMagnification(mTransaction); in enableWindowMagnification() 684 modifyWindowMagnification(mTransaction); in moveWindowMagnifier()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/draganddrop/ |
D | DragAndDropController.java | 73 private final SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in DragAndDropController 229 mTransaction.reparent(dragSurface, null); in handleDrop() 230 mTransaction.apply(); in handleDrop()
|
/frameworks/base/tests/MirrorSurfaceTest/src/com/google/android/test/mirrorsurface/ |
D | MirrorSurfaceActivity.java | 59 private SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in MirrorSurfaceActivity 222 mTransaction.remove(mSurfaceControl).apply(); in removeMirror() 286 mTransaction in createMirror() 315 mTransaction.setGeometry(mSurfaceControl, sourceBounds, displayFrame, Surface.ROTATION_0) in updateMirror()
|
/frameworks/base/services/core/java/com/android/server/location/contexthub/ |
D | ContextHubTransactionManager.java | 106 private final String mTransaction; field in ContextHubTransactionManager.TransactionRecord 110 mTransaction = transaction; in TransactionRecord() 118 return DATE_FORMAT.format(new Date(mTimestamp)) + " " + mTransaction; in toString()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
D | WindowMagnificationControllerTest.java | 96 private SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in WindowMagnificationControllerTest 130 mMirrorWindowControl, mTransaction, mWindowMagnifierCallback, mSysUiState); in setUp()
|
/frameworks/base/core/java/android/widget/ |
D | Magnifier.java | 944 private final SurfaceControl.Transaction mTransaction = new SurfaceControl.Transaction(); field in Magnifier.InternalPopupWindow 1352 mTransaction.setPosition(mSurfaceControl, pendingX, pendingY); in doDraw() 1355 mTransaction.setLayer(mSurfaceControl, SURFACE_Z) in doDraw() 1360 mBBQ.mergeWithNextTransaction(mTransaction, frame); in doDraw()
|