/frameworks/base/core/java/android/view/ |
D | MagnificationSpec.java | 46 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 …]
|
D | WindowCallbacks.java | 71 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
|
D | ViewGroup.java | 2042 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 …]
|
D | AccessibilityInteractionController.java | 883 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/ |
D | MagnificationController.java | 193 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 …]
|
D | TouchExplorer.java | 1013 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/ |
D | ContextMenuTest.java | 60 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/ |
D | ZigZagClassifier.java | 149 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/ |
D | WindowCallbacksCompat.java | 48 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/ |
D | AutofillPopupWindow.java | 107 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/ |
D | ContextMenuUtils.java | 133 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/ |
D | ClockLayout.java | 96 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/ |
D | ClassifierTest.java | 63 void setOffsetY(float offsetY) { in setOffsetY() argument 64 mOffsetY = offsetY; in setOffsetY()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonDrawable.java | 368 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/ |
D | MagnificationControllerTest.java | 891 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/ |
D | BidiRenderer.java | 302 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/ |
D | ExploreByTouchHelper.java | 490 final int offsetY = tempGlobalRect[1]; in createNodeForChild() local 492 tempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 744 final int offsetY = mPaddingTop; 745 background.setHotspotBounds(left + offsetX, top + offsetY, 746 right + offsetX, bottom + offsetY);
|
D | TimePickerClockDelegate.java | 1098 final float offsetY = view.getScrollY() - child.getTop(); 1099 motionEvent.offsetLocation(offsetX, offsetY); 1101 motionEvent.offsetLocation(-offsetX, -offsetY);
|
D | ActionMenuPresenter.java | 925 final int offsetY = getPaddingTop() - getPaddingBottom(); in setFrame() local 927 final int centerY = (height + offsetY) / 2; in setFrame()
|
D | PopupWindow.java | 2114 final int offsetY = bounds.top; in getTransitionEpicenter() local 2116 bounds.offset(offsetX, offsetY); in getTransitionEpicenter()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 638 final int offsetY = Math.round(y - mStartDragY); in updateWindowDragBounds() local 651 Math.min(Math.max(mWindowOriginalBounds.top + offsetY, minTop), maxTop)); in updateWindowDragBounds()
|
D | Task.java | 426 int offsetY = adjustedBounds.bottom - mTmpRect2.bottom; in alignToAdjustedBounds() local 427 mTmpRect2.offset(0, offsetY); in alignToAdjustedBounds()
|
D | AccessibilityController.java | 539 mMagnificationSpec.initialize(spec.scale, spec.offsetX, spec.offsetY); in updateMagnificationSpecLocked() 715 rect.offset((int) -spec.offsetX, (int) -spec.offsetY); in getMagnifiedFrameInContentCoordsLocked()
|
D | WindowContainer.java | 1190 .setPosition(mSurfaceControl, spec.offsetX, spec.offsetY); in applyMagnificationSpec()
|