Home
last modified time | relevance | path

Searched refs:offsetX (Results 1 – 25 of 70) sorted by relevance

123

/frameworks/base/core/java/android/view/
DMagnificationSpec.java37 public float offsetX; field in MagnificationSpec
45 public void initialize(float scale, float offsetX, float offsetY) { in initialize() argument
50 this.offsetX = offsetX; in initialize()
55 return scale == 1.0f && offsetX == 0 && offsetY == 0; in isNop()
60 offsetX = 0.0f; in clear()
66 offsetX = other.offsetX; in setTo()
78 parcel.writeFloat(offsetX); in writeToParcel()
93 return scale == s.scale && offsetX == s.offsetX && offsetY == s.offsetY; in equals()
99 result = 31 * result + (offsetX != +0.0f ? Float.floatToIntBits(offsetX) : 0); in hashCode()
110 builder.append(Float.toString(offsetX)); in toString()
[all …]
DDragEvent.java293 private void init(int action, float x, float y, float offsetX, float offsetY, in init() argument
299 mOffsetX = offsetX; in init()
314 public static DragEvent obtain(int action, float x, float y, float offsetX, float offsetY, in obtain() argument
322 ev.init(action, x, y, offsetX, offsetY, description, data, dragSurface, in obtain()
334 ev.init(action, x, y, offsetX, offsetY, description, data, dragSurface, in obtain()
DCutoutSpecification.java283 final float offsetX;
285 offsetX = mPhysicalDisplayWidth;
287 offsetX = 0;
289 offsetX = mPhysicalDisplayWidth / 2f;
305 mMatrix.postTranslate(offsetX, offsetY);
DWindowCallbacks.java83 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
/frameworks/base/core/tests/coretests/src/android/view/menu/
DContextMenuTest.java57 int offsetX = target.getWidth() / 2; in testMenuPosition() local
60 getInstrumentation().runOnMainSync(() -> target.performLongClick(offsetX, offsetY)); in testMenuPosition()
65 ContextMenuUtils.assertContextMenuAlignment(target, offsetX, offsetY); in testMenuPosition()
75 ContextMenuUtils.assertContextMenuAlignment(target, offsetX, offsetY); in testMenuPosition()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/
DDoubleShadowTextHelper.kt26 val offsetX: Float = 0f, constant in com.android.systemui.shared.shadow.DoubleShadowTextHelper.ShadowInfo
41 ambientShadowInfo.offsetX, in applyShadows()
56 keyShadowInfo.offsetX, in applyShadows()
DDoubleShadowIconDrawable.kt63 mAmbientShadowInfo.offsetX, in createShadowRenderNode()
70 mKeyShadowInfo.offsetX, in createShadowRenderNode()
81 offsetX: Float, in createShadowRenderEffect()
88 offsetX, in createShadowRenderEffect()
/frameworks/base/graphics/java/android/graphics/
DRenderEffect.java48 public static RenderEffect createOffsetEffect(float offsetX, float offsetY) { in createOffsetEffect() argument
49 return new RenderEffect(nativeCreateOffsetEffect(offsetX, offsetY, 0)); in createOffsetEffect()
60 float offsetX, in createOffsetEffect() argument
65 offsetX, in createOffsetEffect()
327 float offsetX, float offsetY, long nativeInput); in nativeCreateOffsetEffect() argument
/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/
DFullScreenMagnificationController.java225 return mCurrentMagnificationSpec.offsetX; in getOffsetX()
263 return mSpecAnimationBridge.mSentMagnificationSpec.offsetX; in getSentOffsetX()
335 mCurrentMagnificationSpec.offsetX, mCurrentMagnificationSpec.offsetY)) { in updateMagnificationRegion()
471 final float offsetX = getSentOffsetX(); in getMagnifiedFrameInContentCoordsLocked() local
474 outFrame.offset((int) -offsetX, (int) -offsetY); in getMagnifiedFrameInContentCoordsLocked()
532 (viewport.width() / 2.0f - spec.offsetX + viewport.left) / oldScale; in setScale()
535 final float normPivotX = (pivotX - spec.offsetX) / oldScale; in setScale()
537 final float offsetX = (oldCenterX - normPivotX) * (oldScale / scale); in setScale() local
539 final float centerX = normPivotX + offsetX; in setScale()
613 void offsetMagnifiedRegion(float offsetX, float offsetY, int id) { in offsetMagnifiedRegion() argument
[all …]
DWindowMagnificationConnectionWrapper.java120 boolean moveWindowMagnifier(int displayId, float offsetX, float offsetY) { in moveWindowMagnifier() argument
123 "displayId=" + displayId + ";offsetX=" + offsetX + ";offsetY=" + offsetY); in moveWindowMagnifier()
126 mConnection.moveWindowMagnifier(displayId, offsetX, offsetY); in moveWindowMagnifier()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DCutoutSpecificationBenchmark.java88 final float offsetX; in oldMethodParsingSpec() local
90 offsetX = displayWidth; in oldMethodParsingSpec()
93 offsetX = 0; in oldMethodParsingSpec()
96 offsetX = displayWidth / 2f; in oldMethodParsingSpec()
122 m.postTranslate(offsetX, 0); in oldMethodParsingSpec()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DZigZagClassifier.java185 float offsetX = firstEvent.getX(); in getAtan2LastPoint() local
187 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint()
212 float offsetX = firstEvent.getX(); in rotateMotionEvents() local
215 float x = motionEvent.getX() - offsetX; in rotateMotionEvents()
217 double rotatedX = cosAngle * x + sinAngle * y + offsetX; in rotateMotionEvents()
/frameworks/base/core/java/com/android/internal/view/
DTooltipPopup.java101 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/packages/SystemUI/src/com/android/systemui/accessibility/
DMagnificationGestureDetector.java55 boolean onDrag(float offsetX, float offsetY); in onDrag() argument
173 final float offsetX = x - mPointerLocation.x; in notifyDraggingGestureIfNeeded() local
176 return mOnGestureListener.onDrag(offsetX, offsetY); in notifyDraggingGestureIfNeeded()
DWindowMagnificationConnectionImpl.java74 public void moveWindowMagnifier(int displayId, float offsetX, float offsetY) { in moveWindowMagnifier() argument
76 () -> mWindowMagnification.moveWindowMagnifier(displayId, offsetX, offsetY)); in moveWindowMagnifier()
/frameworks/native/services/surfaceflinger/tests/utils/
DScreenshotUtils.h144 const int32_t offsetX = filtered ? 2 : 0; variable
146 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft,
148 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight,
150 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft,
152 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
DContextMenuUtils.java133 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/
DClockLayout.java93 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/
DAutofillPopupWindow.java107 public void update(View anchor, int offsetX, int offsetY, int width, int height, in update() argument
125 offsetX = 0; in update()
234 showAsDropDown(actualAnchor, offsetX, offsetY); in update()
236 update(actualAnchor, offsetX, offsetY, width, height); in update()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenWallpaper.java319 int offsetX = 0; in onBoundsChange() local
323 offsetX = bounds.centerX() - (Math.round(dwidth * scale) / 2); in onBoundsChange()
327 bounds.left + offsetX, in onBoundsChange()
329 bounds.left + Math.round(dwidth * scale) + offsetX, in onBoundsChange()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/
DClassifierTest.java65 protected void setOffsetX(float offsetX) { in setOffsetX() argument
66 mOffsetX = offsetX; in setOffsetX()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/
DKeyButtonDrawable.java401 final int offsetX = mState.mShadowSize + Math.abs(mState.mShadowOffsetX); in setDrawableBounds() local
403 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
483 int offsetX = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_x); in create() local
487 drawable.setShadowProperties(offsetX, offsetY, radius, color); in create()
/frameworks/base/core/java/android/inputmethodservice/navigationbar/
DKeyButtonDrawable.java405 final int offsetX = mState.mShadowSize + Math.abs(mState.mShadowOffsetX); in setDrawableBounds() local
407 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds()
475 int offsetX = dpToPx(NAV_KEY_BUTTON_SHADOW_OFFSET_X, res); in create() local
479 drawable.setShadowProperties(offsetX, offsetY, radius, color); in create()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DDotRenderer.java117 float offsetX = params.leftAlign in draw() local
123 canvas.translate(dotCenterX + offsetX, dotCenterY + offsetY); in draw()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/
DTouchEventGenerator.java131 float offsetX, float offsetY) { in movePointer() argument
159 pc[pointerIndex].x += offsetX; in movePointer()

123