/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 | 70 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
|
D | ViewGroup.java | 1954 final float offsetY = mScrollY - child.mTop; in dispatchResolvePointerIcon() local 1955 event.offsetLocation(offsetX, offsetY); in dispatchResolvePointerIcon() 1957 event.offsetLocation(-offsetX, -offsetY); in dispatchResolvePointerIcon() 2284 final float offsetY = mScrollY - child.mTop; in dispatchTooltipHoverEvent() local 2285 event.offsetLocation(offsetX, offsetY); in dispatchTooltipHoverEvent() 2287 event.offsetLocation(-offsetX, -offsetY); in dispatchTooltipHoverEvent() 2451 final float offsetY = mScrollY - child.mTop; in dispatchTransformedGenericPointerEvent() local 2452 event.offsetLocation(offsetX, offsetY); in dispatchTransformedGenericPointerEvent() 2454 event.offsetLocation(-offsetX, -offsetY); in dispatchTransformedGenericPointerEvent() 2470 final float offsetY = mScrollY - child.mTop; in getTransformedMotionEvent() local [all …]
|
D | AccessibilityInteractionController.java | 800 boundsInScreen.offset((int) spec.offsetX, (int) spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded() 818 textLocation.offset(spec.offsetX, spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded() 834 visibleWinFrame.top = (int) (attachInfo.mWindowTop * scale + spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 246 mCurrentMagnificationSpec.offsetX, mCurrentMagnificationSpec.offsetY)) { in onMagnificationRegionChanged() 337 return mCurrentMagnificationSpec.offsetY; in getOffsetY() 383 return mSpecAnimationBridge.mSentMagnificationSpec.offsetY; in getSentOffsetY() 443 final float oldCenterY = (viewport.height() / 2.0f - spec.offsetY) / oldScale; in setScale() 445 final float normPivotY = (pivotY - spec.offsetY) / oldScale; in setScale() 447 final float offsetY = (oldCenterY - normPivotY) * (oldScale / scale); in setScale() local 449 final float centerY = normPivotY + offsetY; in setScale() 524 public void offsetMagnifiedRegion(float offsetX, float offsetY, int id) { in offsetMagnifiedRegion() argument 531 final float nonNormOffsetY = mCurrentMagnificationSpec.offsetY - offsetY; in offsetMagnifiedRegion() 636 final float offsetY = MathUtils.constrain(nonNormOffsetY, getMinOffsetYLocked(), 0); in updateCurrentSpecWithOffsetsLocked() local [all …]
|
D | TouchExplorer.java | 996 private MotionEvent offsetEvent(MotionEvent event, int offsetX, int offsetY) { in offsetEvent() argument 997 if (offsetX == 0 && offsetY == 0) { in offsetEvent() 1009 coords[i].y += offsetY; in offsetEvent()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | SurfaceControlWithBackground.java | 125 final float offsetY = (mTmpContainerRect.top - winFrame.top) * mLastDsDy; in updateBgPosition() local 126 mBackgroundControl.setPosition(mLastX + offsetX, mLastY + offsetY); in updateBgPosition() 194 offsetY = (int) ((winFrame.top - mTmpContainerRect.top) * mLastDsDy); in calculateBgCrop() 204 offsetY += crop.top; in calculateBgCrop() 210 offsetY += crop.top; in calculateBgCrop() 217 offsetY += crop.bottom; in calculateBgCrop() 220 mTmpContainerRect.set(offsetX, offsetY, offsetX + backgroundWidth, in calculateBgCrop() 221 offsetY + backgroundHeight); in calculateBgCrop()
|
D | Task.java | 413 int offsetY = adjustedBounds.bottom - mTmpRect2.bottom; in alignToAdjustedBounds() local 414 mTmpRect2.offset(0, offsetY); in alignToAdjustedBounds()
|
D | TaskPositioner.java | 606 final int offsetY = Math.round(y - mStartDragY); in updateWindowDragBounds() local 619 Math.min(Math.max(mWindowOriginalBounds.top + offsetY, minTop), maxTop)); in updateWindowDragBounds()
|
D | AccessibilityController.java | 506 mMagnificationSpec.initialize(spec.scale, spec.offsetX, spec.offsetY); in updateMagnificationSpecLocked() 655 rect.offset((int) -spec.offsetX, (int) -spec.offsetY); in getMagnifiedFrameInContentCoordsLocked()
|
/frameworks/base/libs/hwui/ |
D | GlopBuilder.h | 92 GlopBuilder& setModelViewOffsetRect(float offsetX, float offsetY, const Rect source); 93 GlopBuilder& setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect source); 95 float offsetX, float offsetY, const Rect& source) { in setModelViewOffsetRectOptionalSnap() argument 97 return setModelViewOffsetRectSnap(offsetX, offsetY, source); in setModelViewOffsetRectOptionalSnap() 99 return setModelViewOffsetRect(offsetX, offsetY, source); in setModelViewOffsetRectOptionalSnap()
|
D | GlopBuilder.cpp | 530 GlopBuilder& GlopBuilder::setModelViewOffsetRect(float offsetX, float offsetY, const Rect source) { in setModelViewOffsetRect() argument 533 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); in setModelViewOffsetRect() 537 GlopBuilder& GlopBuilder::setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect sourc… in setModelViewOffsetRectSnap() argument 548 offsetY = (int) floorf(offsetY + translateY + source.top + 0.5f) - translateY - source.top; in setModelViewOffsetRectSnap() 552 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); in setModelViewOffsetRectSnap()
|
/frameworks/support/v13/tests/java/android/support/v13/view/ |
D | DragStartHelperTest.java | 98 int action, View anchor, int offsetX, int offsetY) { 102 eventTime, eventTime, action, xy[0] + offsetX, xy[1] + offsetY, 0); 105 private void sendTouchEvent(int action, View anchor, int offsetX, int offsetY) { 106 mInstrumentation.sendPointerSync(obtainTouchEvent(action, anchor, offsetX, offsetY)); 110 int action, int buttonState, View anchor, int offsetX, int offsetY) { 125 coords[0].y = xy[1] + offsetY; 132 int action, int buttonState, View anchor, int offsetX, int offsetY) { 134 action, buttonState, anchor, offsetX, offsetY));
|
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/ |
D | TestUtils.java | 72 int offsetY = 0; in getCombinedBackgroundBitmap() local 77 ancestorOffsets.add(Pair.create(offsetX, offsetY)); in getCombinedBackgroundBitmap() 88 offsetY += view.getTop(); in getCombinedBackgroundBitmap() 297 int offsetX, int offsetY) { in emulateTapOnView() argument 303 int yOnScreen = viewOnScreenXY[1] + offsetY; in emulateTapOnView()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 652 MagnificationSpec expectedEndSpec = getMagnificationSpec(2.0f, 0, startSpec.offsetY); 662 expectedEndSpec = getMagnificationSpec(2.0f, -100, startSpec.offsetY); 775 interpolatedSpec.offsetY = start.offsetY + fraction * (end.offsetY - start.offsetY); 783 private MagnificationSpec getMagnificationSpec(float scale, float offsetX, float offsetY) { 787 spec.offsetY = offsetY; 819 if (Math.abs(mMagSpec.offsetY - magnificationSpec.offsetY) > mOffsetTolerance) {
|
/frameworks/base/core/java/android/view/autofill/ |
D | AutofillPopupWindow.java | 103 public void update(View anchor, int offsetX, int offsetY, int width, int height, in update() argument 188 showAsDropDown(actualAnchor, offsetX, offsetY); in update() 190 update(actualAnchor, offsetX, offsetY, width, height); in update()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 253 private static RectF awtRectToAndroidRect(Rectangle2D awtRec, float offsetX, float offsetY, in awtRectToAndroidRect() argument 264 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 | 655 final int offsetY = mPaddingTop; 656 background.setHotspotBounds(left + offsetX, top + offsetY, 657 right + offsetX, bottom + offsetY);
|
D | TimePickerClockDelegate.java | 1056 final float offsetY = view.getScrollY() - child.getTop(); 1057 motionEvent.offsetLocation(offsetX, offsetY); 1059 motionEvent.offsetLocation(-offsetX, -offsetY);
|
D | ActionMenuPresenter.java | 920 final int offsetY = getPaddingTop() - getPaddingBottom(); in setFrame() local 922 final int centerY = (height + offsetY) / 2; in setFrame()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | FastScroller.java | 342 void updateScrollPosition(int offsetX, int offsetY) { in updateScrollPosition() argument 361 float middleScreenPos = offsetY + verticalVisibleLength / 2.0f; in updateScrollPosition()
|
/frameworks/support/design/src/android/support/design/widget/ |
D | CoordinatorLayout.java | 1398 boolean offsetY = false; in offsetChildByInset() 1403 offsetY = true; in offsetChildByInset() 1410 offsetY = true; in offsetChildByInset() 1413 if (!offsetY) { in offsetChildByInset() 1448 private void setInsetOffsetY(View child, int offsetY) { in setInsetOffsetY() argument 1450 if (lp.mInsetOffsetY != offsetY) { in setInsetOffsetY() 1451 final int dy = offsetY - lp.mInsetOffsetY; in setInsetOffsetY() 1453 lp.mInsetOffsetY = offsetY; in setInsetOffsetY()
|
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/ |
D | MonthView.java | 776 final int offsetY = getMonthHeaderSize(); in getItemBounds() local 783 final int y = (offsetY + (row * cellHeight)); in getItemBounds()
|
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
D | ActionMenuPresenter.java | 715 final int offsetY = getPaddingTop() - getPaddingBottom(); in setFrame() local 717 final int centerY = (height + offsetY) / 2; in setFrame()
|