Home
last modified time | relevance | path

Searched refs:yOffset (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DLines2Activity.java75 private void drawLines(Canvas canvas, Paint p, float xOffset, float yOffset) { in drawLines() argument
76 canvas.drawLine(10 + xOffset, yOffset, 10 + xOffset, 40 + yOffset, p); in drawLines()
77 canvas.drawLine(30 + xOffset, yOffset, 40 + xOffset, 40 + yOffset, p); in drawLines()
78 canvas.drawLine(40 + xOffset, yOffset, 75 + xOffset, 35 + yOffset, p); in drawLines()
79 canvas.drawLine(50 + xOffset, 5+ yOffset, 100 + xOffset, 15 + yOffset, p); in drawLines()
80 canvas.drawLine(60 + xOffset, yOffset, 110 + xOffset, 2 + yOffset, p); in drawLines()
81 canvas.drawLine(60 + xOffset, 40 + yOffset, 110 + xOffset, 40 + yOffset, p); in drawLines()
84 copyPoints[i+1] = basePoints[i+1] + yOffset; in drawLines()
102 float yOffset = 10; in onDraw() local
105 drawLines(canvas, p, mOffset, yOffset); in onDraw()
[all …]
DColoredRectsActivity.java76 float yOffset = 10; in onDraw() local
80 canvas.translate(mOffset, yOffset); in onDraw()
83 canvas.translate(0, -yOffset); in onDraw()
85 canvas.translate(60, yOffset/2); in onDraw()
91 yOffset += 100; in onDraw()
95 canvas.translate(mOffset + 10, yOffset); in onDraw()
100 canvas.translate(mOffset + 70, yOffset); in onDraw()
105 canvas.translate(mOffset + 140, yOffset); in onDraw()
111 canvas.translate(mOffset + 210, yOffset); in onDraw()
117 canvas.translate(mOffset + 280, yOffset); in onDraw()
[all …]
DPointsActivity.java93 private void drawPoints(Canvas canvas, Paint p, float xOffset, float yOffset) { in drawPoints() argument
102 float yOffset = 0; in onDraw() local
108 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
112 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
116 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
120 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
123 yOffset += 30; in onDraw()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp39 for (int yOffset = 0; yOffset < 200; yOffset += 2) { in createContent() local
40 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); in createContent()
/frameworks/native/services/inputflinger/dispatcher/
DMonitor.cpp25 TouchedMonitor::TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset) in TouchedMonitor() argument
26 : monitor(monitor), xOffset(xOffset), yOffset(yOffset) {} in TouchedMonitor()
DEntry.cpp166 const PointerCoords* pointerCoords, float xOffset, float yOffset) in MotionEntry() argument
186 if (xOffset || yOffset) { in MotionEntry()
187 this->pointerCoords[i].applyOffset(xOffset, yOffset); in MotionEntry()
224 float yOffset, float globalScaleFactor, float windowXScale, in DispatchEntry() argument
230 yOffset(yOffset), in DispatchEntry()
DMonitor.h34 float yOffset = 0.f; member
36 explicit TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset);
DEntry.h142 float xOffset, float yOffset);
156 float yOffset; member
166 DispatchEntry(EventEntry* eventEntry, int32_t targetFlags, float xOffset, float yOffset,
DInputTarget.h100 float xOffset, yOffset; member
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java260 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { in showPopup() argument
275 popup.setVerticalOffset(yOffset); in showPopup()
283 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize, in showPopup()
284 xOffset + halfSize, yOffset + halfSize); in showPopup()
/frameworks/base/core/java/android/widget/
DPopupWindow.java1731 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) { in findDropDownPosition() argument
1735 yOffset -= anchorHeight; in findDropDownPosition()
1750 outParams.y = drawingLocation[1] + anchorHeight + yOffset; in findDropDownPosition()
1775 final boolean fitsVertical = tryFitVertical(outParams, yOffset, height, in findDropDownPosition()
1789 scrollY + height + anchorHeight + yOffset); in findDropDownPosition()
1796 outParams.y = drawingLocation[1] + anchorHeight + yOffset; in findDropDownPosition()
1805 tryFitVertical(outParams, yOffset, height, anchorHeight, drawingLocation[1], in findDropDownPosition()
1815 private boolean tryFitVertical(@NonNull LayoutParams outParams, int yOffset, int height, in tryFitVertical() argument
1829 yOffset += anchorHeight; in tryFitVertical()
1831 outParams.y = drawingLocationY - height + yOffset; in tryFitVertical()
[all …]
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java62 float yxMix, float yScale, float yOffset) { in TouchCalibration() argument
68 mYOffset = yOffset; in TouchCalibration()
/frameworks/native/libs/input/
DInput.cpp165 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset() argument
167 setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset); in applyOffset()
250 float yOffset, in initialize() argument
267 mYOffset = yOffset; in initialize()
366 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
368 mYOffset += yOffset; in offsetLocation()
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java184 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
186 super.onOffsetsChanged(xOffset, yOffset, xStep, yStep, xPixels, yPixels); in onOffsetsChanged()
191 mOffsetY = yOffset; in onOffsetsChanged()
/frameworks/base/libs/hwui/
DVertexBuffer.h91 void copyInto(const VertexBuffer& srcBuffer, float xOffset, float yOffset) { in copyInto() argument
98 TYPE::copyWithOffset(&dst[i], src[i], xOffset, yOffset); in copyInto()
/frameworks/base/core/java/android/animation/
DPathKeyframes.java141 int yOffset = base + Y_OFFSET; in pointForIndex() local
142 mTempPointF.set(mKeyframeData[xOffset], mKeyframeData[yOffset]); in pointForIndex()
/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DGLWallpaperRenderer.java58 void updateOffsets(float xOffset, float yOffset); in updateOffsets() argument
DImageGLWallpaper.java216 void adjustTextureCoordinates(Rect surface, Rect scissor, float xOffset, float yOffset) { in adjustTextureCoordinates() argument
257 float pixelT = (float) Math.round((surfaceHeight - scissorHeight) * yOffset); in adjustTextureCoordinates()
DImageWallpaperRenderer.java156 public void updateOffsets(float xOffset, float yOffset) { in updateOffsets() argument
158 mYOffset = yOffset; in updateOffsets()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java163 long yOffset = pos % yMax; in drawBall() local
175 top = yMax - yOffset; in drawBall()
177 top = yOffset; in drawBall()
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java248 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) { in findDropDownPosition() argument
252 outParams.y = yOffset; in findDropDownPosition()
258 return super.findDropDownPosition(anchor, outParams, xOffset, yOffset, in findDropDownPosition()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative() argument
200 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.y) - yOffset); in pointerCoordsToNative()
259 float xOffset, float yOffset, jobject outPointerCoordsObj) { in pointerCoordsFromNative() argument
263 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset); in pointerCoordsFromNative()
338 jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, in android_view_MotionEvent_nativeInitialize() argument
371 pointerCoordsToNative(env, pointerCoordsObj, xOffset, yOffset, &rawPointerCoords[i]); in android_view_MotionEvent_nativeInitialize()
377 xOffset, yOffset, xPrecision, yPrecision, in android_view_MotionEvent_nativeInitialize()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp146 constexpr float yOffset = -20; in PublishAndConsumeMotionEvent() local
173 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount, in PublishAndConsumeMotionEvent()
218 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
/frameworks/native/include/input/
DInput.h279 void applyOffset(float xOffset, float yOffset);
615 float yOffset,
630 void offsetLocation(float xOffset, float yOffset);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DNavigationBarEdgePanel.java602 float yOffset = y - mStartY; in handleMoveEvent() local
660 if (Math.abs(yOffset) > Math.abs(x - mStartX) * 2) { in handleMoveEvent()
678 Math.abs(yOffset) / (maxYOffset * RUBBER_BAND_AMOUNT), in handleMoveEvent()
681 * maxYOffset * Math.signum(yOffset); in handleMoveEvent()

123