Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/view/
DMagnificationSpec.java34 public float offsetX; field in MagnificationSpec
41 public void initialize(float scale, float offsetX, float offsetY) { in initialize() argument
46 this.offsetX = offsetX; in initialize()
51 return scale == 1.0f && offsetX == 0 && offsetY == 0; in isNop()
57 info.offsetX = other.offsetX; in obtain()
74 offsetX = 0.0f; in clear()
86 parcel.writeFloat(offsetX); in writeToParcel()
97 builder.append(offsetX); in toString()
106 offsetX = parcel.readFloat(); in initFromParcel()
DAccessibilityInteractionController.java747 point.x += (int) spec.offsetX; in applyAppScaleAndMagnificationSpecIfNeeded()
776 boundsInScreen.offset((int) spec.offsetX, (int) spec.offsetY); in applyAppScaleAndMagnificationSpecIfNeeded()
790 visibleWinFrame.left = (int) (attachInfo.mWindowLeft * scale + spec.offsetX); in applyAppScaleAndMagnificationSpecIfNeeded()
DViewGroup.java2055 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedGenericPointerEvent() local
2061 transformedEvent.offsetLocation(offsetX, offsetY); in dispatchTransformedGenericPointerEvent()
2066 event.offsetLocation(offsetX, offsetY); in dispatchTransformedGenericPointerEvent()
2068 event.offsetLocation(-offsetX, -offsetY); in dispatchTransformedGenericPointerEvent()
2549 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedTouchEvent() local
2551 event.offsetLocation(offsetX, offsetY); in dispatchTransformedTouchEvent()
2555 event.offsetLocation(-offsetX, -offsetY); in dispatchTransformedTouchEvent()
2568 final float offsetX = mScrollX - child.mLeft; in dispatchTransformedTouchEvent() local
2570 transformedEvent.offsetLocation(offsetX, offsetY); in dispatchTransformedTouchEvent()
/frameworks/av/media/libstagefright/yuv/
DYUVCanvas.cpp67 for (int32_t offsetX = 0; offsetX < srcRect.width(); ++offsetX) { in CopyImageRect() local
68 int32_t srcX = srcStartX + offsetX; in CopyImageRect()
71 int32_t destX = destStartX + offsetX; in CopyImageRect()
/frameworks/base/libs/hwui/
DGlopBuilder.h87 GlopBuilder& setModelViewOffsetRect(float offsetX, float offsetY, const Rect source);
88 GlopBuilder& setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect source);
90 float offsetX, float offsetY, const Rect& source) { in setModelViewOffsetRectOptionalSnap() argument
92 return setModelViewOffsetRectSnap(offsetX, offsetY, source); in setModelViewOffsetRectOptionalSnap()
94 return setModelViewOffsetRect(offsetX, offsetY, source); in setModelViewOffsetRectOptionalSnap()
DGlopBuilder.cpp512 GlopBuilder& GlopBuilder::setModelViewOffsetRect(float offsetX, float offsetY, const Rect source) { in setModelViewOffsetRect() argument
515 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); in setModelViewOffsetRect()
517 mOutGlop->bounds.translate(offsetX, offsetY); in setModelViewOffsetRect()
521 GlopBuilder& GlopBuilder::setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect sourc… in setModelViewOffsetRectSnap() argument
531offsetX = (int) floorf(offsetX + translateX + source.left + 0.5f) - translateX - source.left; in setModelViewOffsetRectSnap()
536 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f); in setModelViewOffsetRectSnap()
538 mOutGlop->bounds.translate(offsetX, offsetY); in setModelViewOffsetRectSnap()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DScreenMagnifier.java234 final float centerX = (-spec.offsetX + magnifiedFrame.width() / 2) / scale; in handleOnMagnifiedBoundsChanged()
314 rect.offset((int) -spec.offsetX, (int) -spec.offsetY); in getMagnifiedFrameInContentCoords()
974 result.offsetX = fromSpec.offsetX + (toSpec.offsetX - fromSpec.offsetX) in MagnificationController()
1012 return mCurrentMagnificationSpec.offsetX; in getOffsetX()
1024 final float oldCenterX = (-spec.offsetX + magnifiedFrame.width() / 2) / oldScale; in setScale()
1026 final float normPivotX = (-spec.offsetX + pivotX) / oldScale; in setScale()
1028 final float offsetX = (oldCenterX - normPivotX) * (oldScale / scale); in setScale() local
1030 final float centerX = normPivotX + offsetX; in setScale()
1040 public void offsetMagnifiedRegionCenter(float offsetX, float offsetY) { in offsetMagnifiedRegionCenter() argument
1041 final float nonNormOffsetX = mCurrentMagnificationSpec.offsetX - offsetX; in offsetMagnifiedRegionCenter()
[all …]
DTouchExplorer.java1028 private MotionEvent offsetEvent(MotionEvent event, int offsetX, int offsetY) { in offsetEvent() argument
1029 if (offsetX == 0 && offsetY == 0) { in offsetEvent()
1040 coords[i].x += offsetX; in offsetEvent()
DAccessibilityManagerService.java3273 boundsInScreen.offset((int) -spec.offsetX, (int) -spec.offsetY); in getAccessibilityFocusClickPointInScreenNotLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DRecentsView.java446 private void postDrawHeaderThumbnailTransitionRunnable(final TaskView tv, final int offsetX, in postDrawHeaderThumbnailTransitionRunnable() argument
477 pts[0] + offsetX, in postDrawHeaderThumbnailTransitionRunnable()
516 int offsetX = 0; in onTaskViewClicked() local
525 offsetX = transform.rect.left; in onTaskViewClicked()
557 postDrawHeaderThumbnailTransitionRunnable(tv, offsetX, offsetY, transform, in onTaskViewClicked()
568 offsetX, offsetY, transform.rect.width(), transform.rect.height(), in onTaskViewClicked()
/frameworks/support/v4/java/android/support/v4/widget/
DExploreByTouchHelper.java437 final int offsetX = mTempGlobalRect[0]; in createNodeForChild() local
440 mTempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBidiRenderer.java255 private static RectF awtRectToAndroidRect(Rectangle2D awtRec, float offsetX, float offsetY) { in awtRectToAndroidRect() argument
261 androidRect.offset(offsetX, offsetY); in awtRectToAndroidRect()
/frameworks/base/core/java/com/android/internal/widget/
DExploreByTouchHelper.java443 final int offsetX = tempGlobalRect[0]; in createNodeForChild() local
446 tempScreenRect.offset(offsetX, offsetY); in createNodeForChild()
/frameworks/base/core/java/android/widget/
DAbsSeekBar.java481 final int offsetX = mPaddingLeft - mThumbOffset;
483 background.setHotspotBounds(left + offsetX, top + offsetY,
484 right + offsetX, bottom + offsetY);
DActionMenuPresenter.java899 final int offsetX = getPaddingLeft() - getPaddingRight(); in setFrame() local
901 final int centerX = (width + offsetX) / 2; in setFrame()
/frameworks/opt/datetimepicker/src/com/android/datetimepicker/date/
DMonthView.java775 final int offsetX = mEdgePadding; in getItemBounds() local
782 final int x = (offsetX + (column * cellWidth)); in getItemBounds()
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DActionMenuPresenter.java683 final int offsetX = getPaddingLeft() - getPaddingRight(); in setFrame() local
685 final int centerX = (width + offsetX) / 2; in setFrame()
/frameworks/base/tools/aapt2/
DPng.cpp843 static uint8_t maxAlphaOverCol(png_bytepp rows, int offsetX, int startY, int endY) { in maxAlphaOverCol() argument
846 uint8_t alpha = (rows[y] + offsetX * 4)[3]; in maxAlphaOverCol()
/frameworks/base/services/core/java/com/android/server/wm/
DAccessibilityController.java449 mMagnificationSpec.initialize(spec.scale, spec.offsetX, spec.offsetY); in updateMagnificationSpecLocked()
594 rect.offset((int) -spec.offsetX, (int) -spec.offsetY); in getMagnifiedFrameInContentCoordsLocked()
DWindowStateAnimator.java1114 tmpMatrix.postTranslate(spec.offsetX, spec.offsetY); in computeShownFrameLocked()
1209 tmpMatrix.postTranslate(spec.offsetX, spec.offsetY); in computeShownFrameLocked()
/frameworks/base/tools/aapt/
DImages.cpp439 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()