Searched defs:offsetY (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/java/android/view/
H A DMagnificationSpec.java46 public float offsetY; field in class:MagnificationSpec
52 public void initialize(float scale, float offsetX, float offsetY) { argument
58 this.offsetY = offsetY;
62 return scale == 1.0f && offsetX == 0 && offsetY == 0;
69 info.offsetY = other.offsetY;
86 offsetY = 0.0f;
92 offsetY = other.offsetY;
[all...]
H A DWindowCallbacks.java70 boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY); argument
/frameworks/base/libs/hwui/
H A DGlopBuilder.h92 GlopBuilder& setModelViewOffsetRect(float offsetX, float offsetY, const Rect source);
93 GlopBuilder& setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect source);
95 float offsetX, float offsetY, const Rect& source) {
97 return setModelViewOffsetRectSnap(offsetX, offsetY, source);
99 return setModelViewOffsetRect(offsetX, offsetY, source);
94 setModelViewOffsetRectOptionalSnap(bool snap, float offsetX, float offsetY, const Rect& source) argument
H A DGlopBuilder.cpp529 GlopBuilder& GlopBuilder::setModelViewOffsetRect(float offsetX, float offsetY, const Rect source) { argument
532 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f);
536 GlopBuilder& GlopBuilder::setModelViewOffsetRectSnap(float offsetX, float offsetY, const Rect source) { argument
547 offsetY = (int) floorf(offsetY + translateY + source.top + 0.5f) - translateY - source.top;
551 mOutGlop->transform.modelView.loadTranslate(offsetX, offsetY, 0.0f);
/frameworks/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java90 public void update(View anchor, int offsetX, int offsetY, int width, int height, argument
175 showAsDropDown(actualAnchor, offsetX, offsetY);
177 update(actualAnchor, offsetX, offsetY, width, height);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java264 private static RectF awtRectToAndroidRect(Rectangle2D awtRec, float offsetX, float offsetY) { argument
270 androidRect.offset(offsetX, offsetY);
/frameworks/support/v13/tests/java/android/support/v13/view/
H A DDragStartHelperTest.java99 int action, View anchor, int offsetX, int offsetY) {
103 eventTime, eventTime, action, xy[0] + offsetX, xy[1] + offsetY, 0);
106 private void sendTouchEvent(int action, View anchor, int offsetX, int offsetY) { argument
107 mInstrumentation.sendPointerSync(obtainTouchEvent(action, anchor, offsetX, offsetY));
111 int action, int buttonState, View anchor, int offsetX, int offsetY) {
126 coords[0].y = xy[1] + offsetY;
133 int action, int buttonState, View anchor, int offsetX, int offsetY) {
135 action, buttonState, anchor, offsetX, offsetY));
98 obtainTouchEvent( int action, View anchor, int offsetX, int offsetY) argument
110 obtainMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument
132 sendMouseEvent( int action, int buttonState, View anchor, int offsetX, int offsetY) argument
/frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
H A DTestUtils.java72 int offsetY = 0;
77 ancestorOffsets.add(Pair.create(offsetX, offsetY));
88 offsetY += view.getTop();
294 * @param offsetY extra Y offset for the tap
297 int offsetX, int offsetY) {
303 int yOnScreen = viewOnScreenXY[1] + offsetY;
296 emulateTapOnView(Instrumentation instrumentation, View anchorView, int offsetX, int offsetY) argument
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DMagnificationControllerTest.java652 MagnificationSpec expectedEndSpec = getMagnificationSpec(2.0f, 0, startSpec.offsetY);
662 expectedEndSpec = getMagnificationSpec(2.0f, -100, startSpec.offsetY);
775 interpolatedSpec.offsetY = start.offsetY + fraction * (end.offsetY - start.offsetY);
783 private MagnificationSpec getMagnificationSpec(float scale, float offsetX, float offsetY) { argument
787 spec.offsetY = offsetY;
819 if (Math.abs(mMagSpec.offsetY
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMagnificationController.java246 mCurrentMagnificationSpec.offsetX, mCurrentMagnificationSpec.offsetY)) {
337 return mCurrentMagnificationSpec.offsetY;
383 return mSpecAnimationBridge.mSentMagnificationSpec.offsetY;
443 final float oldCenterY = (viewport.height() / 2.0f - spec.offsetY) / oldScale;
445 final float normPivotY = (pivotY - spec.offsetY) / oldScale;
447 final float offsetY = (oldCenterY - normPivotY) * (oldScale / scale);
449 final float centerY = normPivotY + offsetY;
515 * Offsets the magnified region. Note that the offsetX and offsetY values actually move in the
520 * @param offsetY the amount in pixels to offset the region in the Y direction, in current
524 public void offsetMagnifiedRegion(float offsetX, float offsetY, in argument
[all...]
H A DTouchExplorer.java992 * @param offsetY The Y offset.
996 private MotionEvent offsetEvent(MotionEvent event, int offsetX, int offsetY) { argument
997 if (offsetX == 0 && offsetY == 0) {
1009 coords[i].y += offsetY;
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DFastScroller.java340 * @param offsetY The new scroll Y offset.
342 void updateScrollPosition(int offsetX, int offsetY) { argument
361 float middleScreenPos = offsetY + verticalVisibleLength / 2.0f;
/frameworks/base/core/java/com/android/internal/policy/
H A DDecorView.java2153 public boolean onContentDrawn(int offsetX, int offsetY, int sizeX, int sizeY) { argument
2157 return mBackdropFrameRenderer.onContentDrawn(offsetX, offsetY, sizeX, sizeY);
/frameworks/support/design/src/android/support/design/widget/
H A DCoordinatorLayout.java1393 boolean offsetY = false;
1398 offsetY = true;
1405 offsetY = true;
1408 if (!offsetY) {
1443 private void setInsetOffsetY(View child, int offsetY) { argument
1445 if (lp.mInsetOffsetY != offsetY) {
1446 final int dy = offsetY - lp.mInsetOffsetY;
1448 lp.mInsetOffsetY = offsetY;

Completed in 396 milliseconds