/frameworks/base/core/java/android/view/ |
D | MagnificationSpec.java | 40 public float offsetX; field in MagnificationSpec 52 public void initialize(float scale, float offsetX, float offsetY) { in initialize() argument 57 this.offsetX = offsetX; in initialize() 62 return scale == 1.0f && offsetX == 0 && offsetY == 0; in isNop() 68 info.offsetX = other.offsetX; in obtain() 85 offsetX = 0.0f; in clear() 91 offsetX = other.offsetX; in setTo() 103 parcel.writeFloat(offsetX); in writeToParcel() 119 return scale == s.scale && offsetX == s.offsetX && offsetY == s.offsetY; in equals() 125 result = 31 * result + (offsetX != +0.0f ? Float.floatToIntBits(offsetX) : 0); in hashCode() [all …]
|
D | WindowCallbacks.java | 71 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
|
D | DisplayCutout.java | 643 final float offsetX; in pathAndDisplayCutoutFromSpec() local 645 offsetX = displayWidth; in pathAndDisplayCutoutFromSpec() 648 offsetX = 0; in pathAndDisplayCutoutFromSpec() 651 offsetX = displayWidth / 2f; in pathAndDisplayCutoutFromSpec() 678 m.postTranslate(offsetX, 0); in pathAndDisplayCutoutFromSpec()
|
D | ViewGroup.java | 2041 final float offsetX = mScrollX - child.mLeft; in dispatchResolvePointerIcon() local 2043 event.offsetLocation(offsetX, offsetY); in dispatchResolvePointerIcon() 2045 event.offsetLocation(-offsetX, -offsetY); in dispatchResolvePointerIcon() 2371 final float offsetX = mScrollX - child.mLeft; in dispatchTooltipHoverEvent() local 2373 event.offsetLocation(offsetX, offsetY); in dispatchTooltipHoverEvent() 2375 event.offsetLocation(-offsetX, -offsetY); in dispatchTooltipHoverEvent() 2548 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedGenericPointerEvent() local 2550 event.offsetLocation(offsetX, offsetY); in dispatchTransformedGenericPointerEvent() 2552 event.offsetLocation(-offsetX, -offsetY); in dispatchTransformedGenericPointerEvent() 2567 final float offsetX = mScrollX - child.mLeft; 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() 916 visibleWinFrame.left = (int) (attachInfo.mWindowLeft * scale + spec.offsetX); in applyAppScaleAndMagnificationSpecIfNeeded()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MagnificationController.java | 189 return mCurrentMagnificationSpec.offsetX; in getOffsetX() 227 return mSpecAnimationBridge.mSentMagnificationSpec.offsetX; in getSentOffsetX() 289 mCurrentMagnificationSpec.offsetX, mCurrentMagnificationSpec.offsetY)) { in updateMagnificationRegion() 391 final float offsetX = getSentOffsetX(); in getMagnifiedFrameInContentCoordsLocked() local 394 outFrame.offset((int) -offsetX, (int) -offsetY); in getMagnifiedFrameInContentCoordsLocked() 436 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale() 439 final float normPivotX = (pivotX - spec.offsetX) / oldScale; in setScale() 441 final float offsetX = (oldCenterX - normPivotX) * (oldScale / scale); in setScale() local 443 final float centerX = normPivotX + offsetX; 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() 1025 coords[i].x += offsetX; in offsetEvent()
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
D | ContextMenuTest.java | 59 int offsetX = target.getWidth() / 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 | 148 float offsetX = firstEvent.getX(); in getAtan2LastPoint() local 150 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() 175 float offsetX = firstEvent.getX(); in rotateMotionEvents() local 178 float x = motionEvent.getX() - offsetX; in rotateMotionEvents() 180 double rotatedX = cosAngle * x + sinAngle * y + offsetX; 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/com/android/internal/view/ |
D | TooltipPopup.java | 101 final int offsetX; in computePosition() local 104 offsetX = anchorX; in computePosition() 107 offsetX = anchorView.getWidth() / 2; // Center on the view horizontally. in computePosition() 145 outParams.x = mTmpAnchorPos[0] + offsetX - appView.getWidth() / 2; in computePosition()
|
/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 136 expectedLocation[0] += offsetX; in assertContextMenuAlignment() 147 description.appendText(Integer.toString(offsetX)); in assertContextMenuAlignment()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/clock/ |
D | ClockLayout.java | 93 final float offsetX = MathUtils.lerp(0f, in positionChildren() local 104 + ANALOG_CLOCK_SHIFT_FACTOR * offsetX); in positionChildren() local
|
/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 125 offsetX = 0; in update() 232 showAsDropDown(actualAnchor, offsetX, offsetY); in update() 234 update(actualAnchor, offsetX, offsetY, width, height); in update()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 59 void setOffsetX(float offsetX) { in setOffsetX() argument 60 mOffsetX = offsetX; in setOffsetX()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonDrawable.java | 367 final int offsetX = mState.mShadowSize + Math.abs(mState.mShadowOffsetX); in setDrawableBounds() local 369 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds() 477 int offsetX = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_x); 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 | 927 MagnificationSpec expectedEndSpec = getMagnificationSpec(2.0f, startSpec.offsetX, 0); 1068 interpolatedSpec.offsetX = start.offsetX + fraction * (end.offsetX - start.offsetX); 1077 private MagnificationSpec getMagnificationSpec(float scale, float offsetX, float offsetY) { 1080 spec.offsetX = offsetX; 1111 if (Math.abs(mMagSpec.offsetX - magnificationSpec.offsetX) > 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 | 489 final int offsetX = tempGlobalRect[0]; in createNodeForChild() local 492 tempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
|
/frameworks/base/core/java/android/widget/ |
D | AbsSeekBar.java | 743 final int offsetX = mPaddingLeft - mThumbOffset; 745 background.setHotspotBounds(left + offsetX, top + offsetY, 746 right + offsetX, bottom + offsetY);
|
D | TimePickerClockDelegate.java | 1097 final float offsetX = view.getScrollX() - child.getLeft(); 1099 motionEvent.offsetLocation(offsetX, offsetY); 1101 motionEvent.offsetLocation(-offsetX, -offsetY);
|
D | ActionMenuPresenter.java | 924 final int offsetX = getPaddingLeft() - getPaddingRight(); in setFrame() local 926 final int centerX = (width + offsetX) / 2; in setFrame()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 637 final int offsetX = Math.round(x - mStartDragX); in updateWindowDragBounds() local 650 Math.min(Math.max(mWindowOriginalBounds.left + offsetX, minLeft), maxLeft), in updateWindowDragBounds()
|
/frameworks/base/tools/aapt2/compile/ |
D | Png.cpp | 877 static uint8_t maxAlphaOverCol(png_bytepp rows, int offsetX, int startY, in maxAlphaOverCol() argument 881 uint8_t alpha = (rows[y] + offsetX * 4)[3]; in maxAlphaOverCol()
|
/frameworks/base/tools/aapt/ |
D | Images.cpp | 439 static uint8_t max_alpha_over_col(png_byte** rows, int offsetX, int startY, int endY) in max_alpha_over_col() argument 443 uint8_t alpha = (rows[y] + offsetX * 4)[3]; in max_alpha_over_col()
|