Home
last modified time | relevance | path

Searched refs:newX (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDragDetectorTest.kt99 val newX = X + SLOP - 1 in testMoveInSlop_touch_passesDownAndUp() constant
101 dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y))) in testMoveInSlop_touch_passesDownAndUp()
106 assertTrue(dragDetector.onMotionEvent(createMotionEvent(MotionEvent.ACTION_UP, newX, Y))) in testMoveInSlop_touch_passesDownAndUp()
108 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y && in testMoveInSlop_touch_passesDownAndUp()
126 val newX = X + SLOP - 1 in testMoveInSlop_mouse_passesDownMoveAndUp() constant
128 createMotionEvent(MotionEvent.ACTION_MOVE, newX, Y, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
130 return@argThat it.action == MotionEvent.ACTION_MOVE && it.x == newX && it.y == Y && in testMoveInSlop_mouse_passesDownMoveAndUp()
135 createMotionEvent(MotionEvent.ACTION_UP, newX, Y, isTouch = false))) in testMoveInSlop_mouse_passesDownMoveAndUp()
137 return@argThat it.action == MotionEvent.ACTION_UP && it.x == newX && it.y == Y && in testMoveInSlop_mouse_passesDownMoveAndUp()
154 val newX = X + SLOP + 1 in testMoveBeyondSlop_passesDownMoveAndUp() constant
[all …]
DDragPositioningCallbackUtilityTest.kt100 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>() constant
102 val delta = DragPositioningCallbackUtility.calculateDelta(newX, newY, startingPoint) in <lambda>()
120 val newX = STARTING_BOUNDS.right.toFloat() - 95 in <lambda>() constant
122 val delta = DragPositioningCallbackUtility.calculateDelta(newX, newY, startingPoint) in <lambda>()
140 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>() constant
142 val delta = DragPositioningCallbackUtility.calculateDelta(newX, newY, startingPoint) in <lambda>()
160 val newX = STARTING_BOUNDS.right.toFloat() - 80 in <lambda>() constant
162 val delta = DragPositioningCallbackUtility.calculateDelta(newX, newY, startingPoint) in <lambda>()
178 val newX = STARTING_BOUNDS.right.toFloat() - 105 in <lambda>() constant
181 val delta = DragPositioningCallbackUtility.calculateDelta(newX, newY, startingPoint) in <lambda>()
[all …]
DFluidResizeTaskPositionerTest.kt248 val newX = STARTING_BOUNDS.left.toFloat() + 10 in <lambda>() constant
251 newX, in <lambda>()
255 taskPositioner.onDragPositioningEnd(newX, newY) in <lambda>()
282 val newX = STARTING_BOUNDS.right.toFloat() + 10 in <lambda>() constant
285 newX, in <lambda>()
289 taskPositioner.onDragPositioningEnd(newX, newY) in <lambda>()
316 val newX = STARTING_BOUNDS.right.toFloat() - 5 in <lambda>() constant
319 newX, in <lambda>()
323 taskPositioner.onDragPositioningEnd(newX, newY) in <lambda>()
346 val newX = STARTING_BOUNDS.right.toFloat() - 95 in <lambda>() constant
[all …]
DVeiledResizeTaskPositionerTest.kt293 val newX = STARTING_BOUNDS.left.toFloat() + 5 in <lambda>() constant
296 newX, in <lambda>()
300 taskPositioner.onDragPositioningEnd(newX, newY) in <lambda>()
/frameworks/base/services/core/java/com/android/server/wm/
DDragInputEventReceiver.java66 final float newX = motionEvent.getRawX(); in onInputEvent() local
85 Slog.d(TAG_WM, "Button no longer pressed; dropping at " + newX + "," in onInputEvent()
93 Slog.d(TAG_WM, "Got UP on move channel; dropping at " + newX + "," + newY); in onInputEvent()
105 mDragDropController.handleMotionEvent(!mMuteInput /* keepHandling */, newX, newY); in onInputEvent()
DTaskPositioner.java126 final float newX = motionEvent.getRawX(); in onInputEvent() local
132 Slog.w(TAG, "ACTION_DOWN @ {" + newX + ", " + newY + "}"); in onInputEvent()
139 Slog.w(TAG, "ACTION_MOVE @ {" + newX + ", " + newY + "}"); in onInputEvent()
142 mDragEnded = notifyMoveLocked(newX, newY); in onInputEvent()
157 Slog.w(TAG, "ACTION_UP @ {" + newX + ", " + newY + "}"); in onInputEvent()
165 Slog.w(TAG, "ACTION_CANCEL @ {" + newX + ", " + newY + "}"); in onInputEvent()
DDragDropController.java467 void handleMotionEvent(boolean keepHandling, float newX, float newY) { in handleMotionEvent() argument
476 mDragState.updateDragSurfaceLocked(keepHandling, newX, newY); in handleMotionEvent()
/frameworks/native/services/inputflinger/
DInputReaderBase.cpp123 float newX, newY; in applyTo() local
124 newX = x * x_scale + y * x_ymix + x_offset; in applyTo()
127 x = newX; in applyTo()
/frameworks/base/libs/input/
DTouchSpotController.cpp42 void TouchSpotController::Spot::updateSprite(const SpriteIcon* icon, float newX, float newY, in updateSprite() argument
47 sprite->setPosition(newX, newY); in updateSprite()
50 x = newX; in updateSprite()
/frameworks/base/core/java/android/view/
DIWindow.aidl92 void moved(int newX, int newY); in moved() argument
DViewRootImpl.java9978 public void dispatchMoved(int newX, int newY) { in dispatchMoved() argument
9979 if (DEBUG_LAYOUT) Log.v(mTag, "Window moved " + this + ": newX=" + newX + " newY=" + newY); in dispatchMoved()
9981 PointF point = new PointF(newX, newY); in dispatchMoved()
9983 newX = (int) (point.x + 0.5); in dispatchMoved()
9986 Message msg = mHandler.obtainMessage(MSG_WINDOW_MOVED, newX, newY); in dispatchMoved()
11494 public void moved(int newX, int newY) { in moved() argument
11497 viewAncestor.dispatchMoved(newX, newY); in moved()
DView.java17815 final int newX = Math.round((range - extent) in handleScrollBarDragging() local
17817 if (newX != getScrollX()) { in handleScrollBarDragging()
17819 setScrollX(newX); in handleScrollBarDragging()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTestIWindow.java60 public void moved(int newX, int newY) throws RemoteException { in moved() argument
/frameworks/base/core/java/com/android/internal/view/
DBaseIWindow.java81 public void moved(int newX, int newY) { in moved() argument
/frameworks/base/core/java/android/widget/
DScroller.java541 public void setFinalX(int newX) { in setFinalX() argument
542 mFinalX = newX; in setFinalX()
DOverScroller.java266 public void setFinalX(int newX) { in setFinalX() argument
267 mScrollerX.setFinalPosition(newX); in setFinalX()
DStackView.java724 float newX = ev.getX(pointerIndex);
726 float deltaX = newX - mInitialX;
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipAccessibilityInteractionConnection.java145 int newX = arguments.getInt( in performAccessibilityAction() local
151 mTmpBounds.offsetTo(newX, newY); in performAccessibilityAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DHeadsUpTouchHelper.java207 void startExpand(float newX, float newY, boolean startTracking, float expandedHeight);
/frameworks/base/graphics/java/android/graphics/
DMatrix44.java426 float newX = x * mBackingArray[0] + y * mBackingArray[1] in translate() local
435 mBackingArray[3] = newX; in translate()
/frameworks/base/core/tests/coretests/src/android/widget/
DEditorTouchStateTest.java278 float newX = event1.getX() + touchSlop + 1; in testUpdate_drag() local
281 MotionEvent event3 = moveEvent(event3Time, event3Time, newX, newY); in testUpdate_drag()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DSystemWindows.java365 public void moved(int newX, int newY) {} in moved() argument
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/
DQuickSettingsControllerImpl.java1727 final float newX = event.getX(newIndex); in onTouch() local
1731 mInitialTouchX = newX; in onTouch()
DNotificationPanelViewController.java3801 private void startExpandMotion(float newX, float newY, boolean startTracking,
3809 mInitialExpandX = newX;
5257 final float newX = event.getX(newIndex);
5260 startExpandMotion(newX, newY, true /* startTracking */, mExpandedHeight);
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java485 public void moved(int newX, int newY) {
486 Message msg = mCaller.obtainMessageII(MSG_WINDOW_MOVED, newX, newY);

12