/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | FixedAspectRatioTaskPositionerDecoratorTests.kt | 91 testCase.ctrlType, DISPLAY_ID, originalX, originalY) in testOnDragPositioningStart_noAdjustment() 94 assertThat(capturedValues.ctrlType).isEqualTo(testCase.ctrlType) in testOnDragPositioningStart_noAdjustment() 107 testCase.ctrlType, DISPLAY_ID, originalX, originalY) in testOnDragPositioningStart_cornerResize_noAdjustment() 110 assertThat(capturedValues.ctrlType).isEqualTo(testCase.ctrlType) in testOnDragPositioningStart_cornerResize_noAdjustment() 121 testCase.ctrlType, testCase.additionalEdgeCtrlType, startingBounds) in testOnDragPositioningStart_edgeResize_ctrlTypeAdjusted() 124 testCase.ctrlType, DISPLAY_ID, startingPoint.x, startingPoint.y) in testOnDragPositioningStart_edgeResize_ctrlTypeAdjusted() 126 val adjustedCtrlType = testCase.ctrlType + testCase.additionalEdgeCtrlType in testOnDragPositioningStart_edgeResize_ctrlTypeAdjusted() 128 assertThat(capturedValues.ctrlType).isEqualTo(adjustedCtrlType) in testOnDragPositioningStart_edgeResize_ctrlTypeAdjusted() 140 testCase.ctrlType, DISPLAY_ID, originalX, originalX) in testOnDragPositioningMove_noAdjustment() 159 val startingPoint = getCornerStartingPoint(testCase.ctrlType, startingBounds) in testOnDragPositioningMove_cornerResize_invalidRegion_noResize() [all …]
|
D | VeiledResizeTaskPositionerTest.kt | 519 ctrlType: Int in <lambda>() 522 ctrlType, in <lambda>()
|
D | MultiDisplayVeiledResizeTaskPositionerTest.kt | 660 private fun performDrag(startX: Float, startY: Float, endX: Float, endY: Float, ctrlType: Int) { in <lambda>() 661 taskPositioner.onDragPositioningStart(ctrlType, DISPLAY_ID_0, startX, startY) in <lambda>()
|
D | FluidResizeTaskPositionerTest.kt | 822 ctrlType: Int in <lambda>() 825 ctrlType, in <lambda>()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/windowdecor/ |
D | DragResizeWindowGeometry.java | 208 int ctrlType = isTouchscreen in calculateCtrlType() local 214 if (ctrlType == CTRL_TYPE_UNDEFINED && isEdgeResizePermitted) { in calculateCtrlType() 215 ctrlType = calculateEdgeResizeCtrlType(x, y); in calculateCtrlType() 217 return ctrlType; in calculateCtrlType() 228 int ctrlType = CTRL_TYPE_UNDEFINED; in calculateEdgeResizeCtrlType() local 232 ctrlType |= CTRL_TYPE_LEFT; in calculateEdgeResizeCtrlType() 235 ctrlType |= CTRL_TYPE_RIGHT; in calculateEdgeResizeCtrlType() 238 ctrlType |= CTRL_TYPE_TOP; in calculateEdgeResizeCtrlType() 241 ctrlType |= CTRL_TYPE_BOTTOM; in calculateEdgeResizeCtrlType() 245 if ((ctrlType & (CTRL_TYPE_LEFT | CTRL_TYPE_RIGHT)) != 0 in calculateEdgeResizeCtrlType() [all …]
|
D | MultiDisplayVeiledResizeTaskPositioner.kt | 67 (ctrlType and DragPositioningCallback.CTRL_TYPE_TOP) != 0 || 68 (ctrlType and DragPositioningCallback.CTRL_TYPE_BOTTOM) != 0 || 69 (ctrlType and DragPositioningCallback.CTRL_TYPE_LEFT) != 0 || 70 (ctrlType and DragPositioningCallback.CTRL_TYPE_RIGHT) != 0 72 @DragPositioningCallback.CtrlType private var ctrlType = 0 variable 104 override fun onDragPositioningStart(ctrlType: Int, displayId: Int, x: Float, y: Float): Rect { in onDragPositioningStart() 105 this.ctrlType = ctrlType in onDragPositioningStart() 149 ctrlType, in onDragPositioningMove() 167 } else if (ctrlType == DragPositioningCallback.CTRL_TYPE_UNDEFINED) { in onDragPositioningMove() 230 ctrlType, in onDragPositioningEnd() [all …]
|
D | DragPositioningCallbackUtility.java | 69 static boolean changeBounds(int ctrlType, Rect repositionTaskBounds, Rect taskBoundsAtDragStart, in changeBounds() argument 74 if (ctrlType == CTRL_TYPE_UNDEFINED) { in changeBounds() 87 if ((ctrlType & CTRL_TYPE_LEFT) != 0) { in changeBounds() 97 if ((ctrlType & CTRL_TYPE_RIGHT) != 0) { in changeBounds() 107 if ((ctrlType & CTRL_TYPE_TOP) != 0) { in changeBounds() 117 if ((ctrlType & CTRL_TYPE_BOTTOM) != 0) { in changeBounds()
|
D | DragResizeInputListener.java | 648 final int ctrlType = mDragResizeWindowGeometry.calculateCtrlType( in handleMotionEvent() local 652 "%s: Handling action down, update ctrlType to %d", TAG, ctrlType); in handleMotionEvent() 653 mDragStartTaskBounds = mCallback.onDragPositioningStart(ctrlType, in handleMotionEvent() 656 mResizeTrigger = (ctrlType == CTRL_TYPE_BOTTOM || ctrlType == CTRL_TYPE_TOP in handleMotionEvent() 657 || ctrlType == CTRL_TYPE_RIGHT || ctrlType == CTRL_TYPE_LEFT) in handleMotionEvent() 756 @DragPositioningCallback.CtrlType int ctrlType = in updateCursorType() local 761 switch (ctrlType) { in updateCursorType()
|
D | DragPositioningCallback.java | 49 Rect onDragPositioningStart(@CtrlType int ctrlType, int displayId, float x, float y); in onDragPositioningStart() argument
|
D | FluidResizeTaskPositioner.java | 94 public Rect onDragPositioningStart(int ctrlType, int displayId, float x, float y) { in onDragPositioningStart() argument 95 mCtrlType = ctrlType; in onDragPositioningStart()
|
D | FixedAspectRatioTaskPositionerDecorator.kt | 50 @CtrlType ctrlType: Int, displayId: Int, x: Float, y: Float): Rect { in onDragPositioningStart() 51 originalCtrlType = ctrlType in onDragPositioningStart()
|
D | VeiledResizeTaskPositioner.java | 112 public Rect onDragPositioningStart(int ctrlType, int displayId, float x, float y) { in onDragPositioningStart() argument 113 mCtrlType = ctrlType; in onDragPositioningStart()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip2/phone/ |
D | PipDragToResizeHandler.java | 183 int ctrlType = mPipResizeGestureHandler.getCtrlType(); in setCtrlType() local 194 ctrlType |= CTRL_LEFT; in setCtrlType() 195 ctrlType |= CTRL_TOP; in setCtrlType() 199 ctrlType |= CTRL_RIGHT; in setCtrlType() 200 ctrlType |= CTRL_TOP; in setCtrlType() 205 ctrlType |= CTRL_RIGHT; in setCtrlType() 206 ctrlType |= CTRL_BOTTOM; in setCtrlType() 211 ctrlType |= CTRL_LEFT; in setCtrlType() 212 ctrlType |= CTRL_BOTTOM; in setCtrlType() 215 mPipResizeGestureHandler.setCtrlType(ctrlType); in setCtrlType()
|
D | PipResizeGestureHandler.java | 234 void setCtrlType(int ctrlType) { in setCtrlType() argument 235 mCtrlType = ctrlType; in setCtrlType()
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | TaskResizingAlgorithm.java | 74 Rect originalBounds, int ctrlType, int minVisibleWidth, int minVisibleHeight, in resizeDrag() argument 91 if ((ctrlType & CTRL_LEFT) != 0) { in resizeDrag() 93 } else if ((ctrlType & CTRL_RIGHT) != 0) { in resizeDrag() 96 if ((ctrlType & CTRL_TOP) != 0) { in resizeDrag() 98 } else if ((ctrlType & CTRL_BOTTOM) != 0) { in resizeDrag() 165 if ((ctrlType & CTRL_LEFT) != 0) { in resizeDrag() 170 if ((ctrlType & CTRL_TOP) != 0) { in resizeDrag()
|