/aosp14/frameworks/base/core/java/android/view/ |
H A D | MagnificationSpec.java | 37 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 …]
|
H A D | DisplayShape.java | 72 float physicalPixelDisplaySizeRatio, int rotation, int offsetX, int offsetY, in DisplayShape() argument 79 mOffsetX = offsetX; in DisplayShape() 183 public DisplayShape setOffset(int offsetX, int offsetY) { in setOffset() argument 185 mPhysicalPixelDisplaySizeRatio, mRotation, offsetX, offsetY, mScale); in setOffset() 266 final int offsetX = in.readInt(); 269 return new DisplayShape(spec, displayWidth, displayHeight, ratio, rotation, offsetX,
|
H A D | DragEvent.java | 293 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()
|
H A D | CutoutSpecification.java | 283 final float offsetX; 285 offsetX = mPhysicalDisplayWidth; 287 offsetX = 0; 289 offsetX = mPhysicalDisplayWidth / 2f; 305 mMatrix.postTranslate(offsetX, offsetY);
|
H A D | WindowCallbacks.java | 67 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/menu/ |
H A D | ContextMenuTest.java | 57 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()
|
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/shadow/ |
H A D | DoubleShadowTextHelper.kt | 26 val offsetX: Float = 0f, 41 ambientShadowInfo.offsetX, 56 keyShadowInfo.offsetX,
|
H A D | DoubleShadowIconDrawable.kt | 64 mAmbientShadowInfo.offsetX, 71 mKeyShadowInfo.offsetX, 82 offsetX: Float, 89 offsetX,
|
/aosp14/frameworks/base/graphics/java/android/graphics/ |
H A D | RenderEffect.java | 48 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
|
/aosp14/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
H A D | FullScreenMagnificationController.java | 242 return mCurrentMagnificationSpec.offsetX; in getOffsetX() 496 final float offsetX = getSentOffsetX(); in getMagnifiedFrameInContentCoordsLocked() local 499 outFrame.offset((int) -offsetX, (int) -offsetY); in getMagnifiedFrameInContentCoordsLocked() 570 final float centerX = normPivotX + offsetX; in setScale() 704 final float nonNormOffsetX = mCurrentMagnificationSpec.offsetX - offsetX; in offsetMagnifiedRegion() 722 final float offsetX = MathUtils.constrain( in updateCurrentSpecWithOffsetsLocked() local 724 if (Float.compare(mCurrentMagnificationSpec.offsetX, offsetX) != 0) { in updateCurrentSpecWithOffsetsLocked() 725 mCurrentMagnificationSpec.offsetX = offsetX; in updateCurrentSpecWithOffsetsLocked() 1309 display.offsetMagnifiedRegion(offsetX, offsetY, id); in offsetMagnifiedRegion() 1647 magnificationSpec.offsetX = mStartMagnificationSpec.offsetX in onAnimationUpdate() [all …]
|
H A D | WindowMagnificationConnectionWrapper.java | 120 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()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/view/ |
H A D | CutoutSpecificationBenchmark.java | 88 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/ |
H A D | WindowMagnificationAnimationControllerTest.java | 755 final float offsetX = 50.0f; in moveWindowMagnifier_enabled_vertical_only_expectedValue() local 760 () -> mController.moveWindowMagnifier(offsetX, offsetY)); in moveWindowMagnifier_enabled_vertical_only_expectedValue() 762 verify(mSpyController).moveWindowMagnifier(offsetX, offsetY); in moveWindowMagnifier_enabled_vertical_only_expectedValue() 771 final float offsetX = 50.0f; in moveWindowMagnifier_enabled_horinzontal_only_expectedValue() local 778 verify(mSpyController).moveWindowMagnifier(offsetX, offsetY); in moveWindowMagnifier_enabled_horinzontal_only_expectedValue() 786 final float offsetX = 50.0f; in moveWindowMagnifier_enabled_setDiagonalEnabled_expectedValues() local 794 mController.moveWindowMagnifier(offsetX, offsetY); in moveWindowMagnifier_enabled_setDiagonalEnabled_expectedValues() 797 verify(mSpyController).moveWindowMagnifier(offsetX, offsetY); in moveWindowMagnifier_enabled_setDiagonalEnabled_expectedValues() 913 void moveWindowMagnifier(float offsetX, float offsetY) { in moveWindowMagnifier() argument 914 super.moveWindowMagnifier(offsetX, offsetY); in moveWindowMagnifier() [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
H A D | ZigZagClassifier.java | 183 float offsetX = firstEvent.getX(); in getAtan2LastPoint() local 185 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() 210 float offsetX = firstEvent.getX(); in rotateMotionEvents() local 213 float x = motionEvent.getX() - offsetX; in rotateMotionEvents() 215 double rotatedX = cosAngle * x + sinAngle * y + offsetX; in rotateMotionEvents()
|
/aosp14/frameworks/base/core/java/com/android/internal/view/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
H A D | MagnificationGestureDetector.java | 56 boolean onDrag(View view, float offsetX, float offsetY); in onDrag() argument 174 final float offsetX = x - mPointerLocation.x; in notifyDraggingGestureIfNeeded() local 177 return mOnGestureListener.onDrag(view, offsetX, offsetY); in notifyDraggingGestureIfNeeded()
|
H A D | WindowMagnificationController.java | 1128 final float offsetX = Float.isNaN(centerX) ? 0 in enableWindowMagnificationInternal() local 1174 void moveWindowMagnifier(float offsetX, float offsetY) { in moveWindowMagnifier() argument 1185 offsetX = 0; in moveWindowMagnifier() 1262 return changeWindowSize(view, offsetX, offsetY); in onDrag() 1264 move((int) offsetX, (int) offsetY); in onDrag() 1313 changeMagnificationFrameSize(offsetX, 0, 0, 0); in changeWindowSize() 1315 changeMagnificationFrameSize(0, 0, offsetX, 0); in changeWindowSize() 1321 changeMagnificationFrameSize(offsetX, offsetY, 0, 0); in changeWindowSize() 1323 changeMagnificationFrameSize(0, offsetY, offsetX, 0); in changeWindowSize() 1325 changeMagnificationFrameSize(offsetX, 0, 0, offsetY); in changeWindowSize() [all …]
|
H A D | WindowMagnificationConnectionImpl.java | 72 public void moveWindowMagnifier(int displayId, float offsetX, float offsetY) { in moveWindowMagnifier() argument 74 () -> mWindowMagnification.moveWindowMagnifier(displayId, offsetX, offsetY)); in moveWindowMagnifier()
|
H A D | MagnificationModeSwitch.java | 225 public boolean onDrag(View v, float offsetX, float offsetY) { in onDrag() argument 226 moveButton(offsetX, offsetY); in onDrag() 257 private void moveButton(float offsetX, float offsetY) { in moveButton() argument 259 mParams.x += offsetX; in moveButton()
|
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/espresso/ |
H A 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()
|
/aosp14/frameworks/base/core/java/android/view/autofill/ |
H A 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() 234 showAsDropDown(actualAnchor, offsetX, offsetY); in update() 236 update(actualAnchor, offsetX, offsetY, width, height); in update()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | LockscreenWallpaper.java | 366 int offsetX = 0; in onBoundsChange() local 370 offsetX = bounds.centerX() - (Math.round(dwidth * scale) / 2); in onBoundsChange() 374 bounds.left + offsetX, in onBoundsChange() 376 bounds.left + Math.round(dwidth * scale) + offsetX, in onBoundsChange()
|
/aosp14/frameworks/base/core/java/android/inputmethodservice/navigationbar/ |
H A D | KeyButtonDrawable.java | 405 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()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/buttons/ |
H A D | KeyButtonDrawable.java | 401 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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
H A D | TouchEventGenerator.java | 131 float offsetX, float offsetY) { in movePointer() argument 159 pc[pointerIndex].x += offsetX; in movePointer()
|