Home
last modified time | relevance | path

Searched refs:offsetY (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/base/core/java/android/view/
DMagnificationSpec.java46 public float offsetY; field in MagnificationSpec
52 public void initialize(float scale, float offsetX, float offsetY) { in initialize() argument
58 this.offsetY = offsetY; in initialize()
62 return scale == 1.0f && offsetX == 0 && offsetY == 0; in isNop()
69 info.offsetY = other.offsetY; in obtain()
86 offsetY = 0.0f; in clear()
92 offsetY = other.offsetY; in setTo()
104 parcel.writeFloat(offsetY); in writeToParcel()
119 return scale == s.scale && offsetX == s.offsetX && offsetY == s.offsetY; in equals()
126 result = 31 * result + (offsetY != +0.0f ? Float.floatToIntBits(offsetY) : 0); in hashCode()
[all …]
DWindowCallbacks.java71 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
DViewGroup.java2042 final float offsetY = mScrollY - child.mTop; in dispatchResolvePointerIcon() local
2043 event.offsetLocation(offsetX, offsetY); in dispatchResolvePointerIcon()
2045 event.offsetLocation(-offsetX, -offsetY); in dispatchResolvePointerIcon()
2372 final float offsetY = mScrollY - child.mTop; in dispatchTooltipHoverEvent() local
2373 event.offsetLocation(offsetX, offsetY); in dispatchTooltipHoverEvent()
2375 event.offsetLocation(-offsetX, -offsetY); in dispatchTooltipHoverEvent()
2549 final float offsetY = mScrollY - child.mTop; in dispatchTransformedGenericPointerEvent() local
2550 event.offsetLocation(offsetX, offsetY); in dispatchTransformedGenericPointerEvent()
2552 event.offsetLocation(-offsetX, -offsetY); in dispatchTransformedGenericPointerEvent()
2568 final float offsetY = mScrollY - child.mTop; in getTransformedMotionEvent() local
[all …]
DAccessibilityInteractionController.java883 boundsInScreen.offset((int) spec.offsetX, (int) spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded()
901 textLocation.offset(spec.offsetX, spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded()
917 visibleWinFrame.top = (int) (attachInfo.mWindowTop * scale + spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DMagnificationController.java193 return mCurrentMagnificationSpec.offsetY; in getOffsetY()
238 return mSpecAnimationBridge.mSentMagnificationSpec.offsetY; in getSentOffsetY()
289 mCurrentMagnificationSpec.offsetX, mCurrentMagnificationSpec.offsetY)) { in updateMagnificationRegion()
392 final float offsetY = getSentOffsetY(); in getMagnifiedFrameInContentCoordsLocked() local
394 outFrame.offset((int) -offsetX, (int) -offsetY); in getMagnifiedFrameInContentCoordsLocked()
438 (viewport.height() / 2.0f - spec.offsetY + viewport.top) / oldScale; in setScale()
440 final float normPivotY = (pivotY - spec.offsetY) / oldScale; in setScale()
442 final float offsetY = (oldCenterY - normPivotY) * (oldScale / scale); in setScale() local
444 final float centerY = normPivotY + offsetY; in setScale()
516 void offsetMagnifiedRegion(float offsetX, float offsetY, int id) { in offsetMagnifiedRegion() argument
[all …]
DTouchExplorer.java1013 private MotionEvent offsetEvent(MotionEvent event, int offsetX, int offsetY) { in offsetEvent() argument
1014 if (offsetX == 0 && offsetY == 0) { in offsetEvent()
1026 coords[i].y += offsetY; in offsetEvent()
/frameworks/base/core/tests/coretests/src/android/view/menu/
DContextMenuTest.java60 int offsetY = target.getHeight() / 2; in testMenuPosition() local
62 getInstrumentation().runOnMainSync(() -> target.performLongClick(offsetX, offsetY)); in testMenuPosition()
67 ContextMenuUtils.assertContextMenuAlignment(target, offsetX, offsetY); in testMenuPosition()
77 ContextMenuUtils.assertContextMenuAlignment(target, offsetX, offsetY); in testMenuPosition()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/
DZigZagClassifier.java149 float offsetY = firstEvent.getY(); in getAtan2LastPoint() local
151 float lastY = lastEvent.getY() - offsetY; in getAtan2LastPoint()
176 float offsetY = firstEvent.getY(); in rotateMotionEvents() local
179 float y = motionEvent.getY() - offsetY; in rotateMotionEvents()
181 double rotatedY = -sinAngle * x + cosAngle * y + offsetY; in rotateMotionEvents()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DWindowCallbacksCompat.java48 public boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY) {
49 return WindowCallbacksCompat.this.onContentDrawn(offsetX, offsetY, sizeX, sizeY);
77 public boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY) { in onContentDrawn() argument
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java107 public void update(View anchor, int offsetX, int offsetY, int width, int height, in update() argument
126 offsetY = 0; in update()
134 offsetY = outPoint.y - height; in update()
232 showAsDropDown(actualAnchor, offsetX, offsetY); in update()
234 update(actualAnchor, offsetX, offsetY, width, height); in update()
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java133 public static void assertContextMenuAlignment(View anchor, int offsetX, int offsetY) { in assertContextMenuAlignment() argument
137 expectedLocation[1] += offsetY; in assertContextMenuAlignment()
149 description.appendText(Integer.toString(offsetY)); in assertContextMenuAlignment()
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/
DClockLayout.java96 final float offsetY = MathUtils.lerp(0f, in positionChildren() local
106 + ANALOG_CLOCK_SHIFT_FACTOR * offsetY); in positionChildren() local
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/
DClassifierTest.java63 void setOffsetY(float offsetY) { in setOffsetY() argument
64 mOffsetY = offsetY; in setOffsetY()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DKeyButtonDrawable.java368 final int offsetY = mState.mShadowSize + Math.abs(mState.mShadowOffsetY); in setDrawableBounds() local
369 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
370 getIntrinsicHeight() - offsetY); in setDrawableBounds()
478 int offsetY = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_y); in create() local
481 drawable.setShadowProperties(offsetX, offsetY, radius, color); in create()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DMagnificationControllerTest.java891 MagnificationSpec expectedEndSpec = getMagnificationSpec(2.0f, 0, startSpec.offsetY);
902 expectedEndSpec = getMagnificationSpec(2.0f, -100, startSpec.offsetY);
1069 interpolatedSpec.offsetY = start.offsetY + fraction * (end.offsetY - start.offsetY);
1077 private MagnificationSpec getMagnificationSpec(float scale, float offsetX, float offsetY) {
1081 spec.offsetY = offsetY;
1114 if (Math.abs(mMagSpec.offsetY - magnificationSpec.offsetY) > mOffsetTolerance) {
/frameworks/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java302 private static RectF awtRectToAndroidRect(Rectangle2D awtRec, float offsetX, float offsetY, in awtRectToAndroidRect() argument
313 destination.offset(offsetX, offsetY); in awtRectToAndroidRect()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java490 final int offsetY = tempGlobalRect[1]; in createNodeForChild() local
492 tempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java744 final int offsetY = mPaddingTop;
745 background.setHotspotBounds(left + offsetX, top + offsetY,
746 right + offsetX, bottom + offsetY);
DTimePickerClockDelegate.java1098 final float offsetY = view.getScrollY() - child.getTop();
1099 motionEvent.offsetLocation(offsetX, offsetY);
1101 motionEvent.offsetLocation(-offsetX, -offsetY);
DActionMenuPresenter.java925 final int offsetY = getPaddingTop() - getPaddingBottom(); in setFrame() local
927 final int centerY = (height + offsetY) / 2; in setFrame()
DPopupWindow.java2114 final int offsetY = bounds.top; in getTransitionEpicenter() local
2116 bounds.offset(offsetX, offsetY); in getTransitionEpicenter()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskPositioner.java638 final int offsetY = Math.round(y - mStartDragY); in updateWindowDragBounds() local
651 Math.min(Math.max(mWindowOriginalBounds.top + offsetY, minTop), maxTop)); in updateWindowDragBounds()
DTask.java426 int offsetY = adjustedBounds.bottom - mTmpRect2.bottom; in alignToAdjustedBounds() local
427 mTmpRect2.offset(0, offsetY); in alignToAdjustedBounds()
DAccessibilityController.java539 mMagnificationSpec.initialize(spec.scale, spec.offsetX, spec.offsetY); in updateMagnificationSpecLocked()
715 rect.offset((int) -spec.offsetX, (int) -spec.offsetY); in getMagnifiedFrameInContentCoordsLocked()
DWindowContainer.java1190 .setPosition(mSurfaceControl, spec.offsetX, spec.offsetY); in applyMagnificationSpec()

12