/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 | CutoutSpecification.java | 240 final float offsetX; 242 offsetX = mDisplayWidth; 244 offsetX = 0; 246 offsetX = mDisplayWidth / 2f; 262 mMatrix.postTranslate(offsetX, offsetY);
|
D | WindowCallbacks.java | 71 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); in onContentDrawn() argument
|
/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 …]
|
/frameworks/base/core/tests/coretests/src/android/view/menu/ |
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()
|
/frameworks/base/apct-tests/perftests/core/src/android/view/ |
D | CutoutSpecificationBenchmark.java | 103 final float offsetX; in oldMethodParsingSpec() local 105 offsetX = displayWidth; in oldMethodParsingSpec() 108 offsetX = 0; in oldMethodParsingSpec() 111 offsetX = displayWidth / 2f; in oldMethodParsingSpec() 137 m.postTranslate(offsetX, 0); in oldMethodParsingSpec()
|
/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/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | ZigZagClassifier.java | 169 float offsetX = firstEvent.getX(); in getAtan2LastPoint() local 171 float lastX = lastEvent.getX() - offsetX; in getAtan2LastPoint() 196 float offsetX = firstEvent.getX(); in rotateMotionEvents() local 199 float x = motionEvent.getX() - offsetX; in rotateMotionEvents() 201 double rotatedX = cosAngle * x + sinAngle * y + offsetX; in rotateMotionEvents()
|
/frameworks/native/services/surfaceflinger/tests/utils/ |
D | ScreenshotUtils.h | 127 const int32_t offsetX = filtered ? 2 : 0; variable 129 expectColor(Rect(rect.left, rect.top, centerX - offsetX, centerY - offsetY), topLeft, 131 expectColor(Rect(centerX + offsetX, rect.top, rect.right, centerY - offsetY), topRight, 133 expectColor(Rect(rect.left, centerY + offsetY, centerX - offsetX, rect.bottom), bottomLeft, 135 expectColor(Rect(centerX + offsetX, centerY + offsetY, rect.right, rect.bottom),
|
/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/services/accessibility/java/com/android/server/accessibility/magnification/ |
D | WindowMagnificationConnectionWrapper.java | 86 boolean moveWindowMagnifier(int displayId, float offsetX, float offsetY) { in moveWindowMagnifier() argument 88 mConnection.moveWindowMagnifier(displayId, offsetX, offsetY); in moveWindowMagnifier()
|
/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() 234 showAsDropDown(actualAnchor, offsetX, offsetY); in update() 236 update(actualAnchor, offsetX, offsetY, width, height); in update()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/brightline/ |
D | ClassifierTest.java | 64 void setOffsetX(float offsetX) { in setOffsetX() argument 65 mOffsetX = offsetX; in setOffsetX()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonDrawable.java | 402 final int offsetX = mState.mShadowSize + Math.abs(mState.mShadowOffsetX); in setDrawableBounds() local 404 d.setBounds(offsetX, offsetY, getIntrinsicWidth() - offsetX, in setDrawableBounds() 512 int offsetX = res.getDimensionPixelSize(R.dimen.nav_key_button_shadow_offset_x); in create() local 516 drawable.setShadowProperties(offsetX, offsetY, radius, color); in create()
|
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/ |
D | DotRenderer.java | 113 float offsetX = params.leftAlign in draw() local 119 canvas.translate(dotCenterX + offsetX, dotCenterY + offsetY); in draw()
|
/frameworks/base/core/java/android/view/accessibility/ |
D | IWindowMagnificationConnection.aidl | 66 void moveWindowMagnifier(int displayId, float offsetX, float offsetY); in moveWindowMagnifier() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 928 MagnificationSpec expectedEndSpec = getMagnificationSpec(2.0f, startSpec.offsetX, 0); 1069 interpolatedSpec.offsetX = start.offsetX + fraction * (end.offsetX - start.offsetX); 1078 private MagnificationSpec getMagnificationSpec(float scale, float offsetX, float offsetY) { 1081 spec.offsetX = offsetX; 1112 if (Math.abs(mMagSpec.offsetX - magnificationSpec.offsetX) > mOffsetTolerance) {
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/gestures/ |
D | EventDispatcher.java | 195 private MotionEvent offsetEvent(MotionEvent event, int offsetX, int offsetY) { in offsetEvent() argument 196 if (offsetX == 0 && offsetY == 0) { in offsetEvent() 207 coords[i].x += offsetX; in offsetEvent()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ExploreByTouchHelper.java | 490 final int offsetX = tempGlobalRect[0]; in createNodeForChild() local 493 tempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
|
/frameworks/layoutlib/bridge/src/android/graphics/ |
D | BidiRenderer.java | 303 private static RectF awtRectToAndroidRect(Rectangle2D awtRec, float offsetX, float offsetY, in awtRectToAndroidRect() argument 314 destination.offset(offsetX, offsetY); in awtRectToAndroidRect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | MediaControlPanel.java | 416 float offsetX = (bounds.width() - mAlbumArtSize) / 2.0f; in scaleDrawable() local 418 bounds.offset((int) -offsetX,(int) -offsetY); in scaleDrawable()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskPositioner.java | 475 final int offsetX = Math.round(x - mStartDragX); in updateWindowDragBounds() local 488 Math.min(Math.max(mWindowOriginalBounds.left + offsetX, minLeft), maxLeft), in updateWindowDragBounds()
|
/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);
|