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/native/services/inputflinger/dispatcher/
DInputTarget.cpp45 void InputTarget::addPointers(BitSet32 newPointerIds, float xOffset, float yOffset, in addPointers() argument
50 setDefaultPointerInfo(xOffset, yOffset, windowXScale, windowYScale); in addPointers()
61 pointerInfos[pointerId].yOffset = yOffset; in addPointers()
67 void InputTarget::setDefaultPointerInfo(float xOffset, float yOffset, float windowXScale, in setDefaultPointerInfo() argument
71 pointerInfos[0].yOffset = yOffset; in setDefaultPointerInfo()
88 pointerInfo.xOffset, pointerInfo.yOffset, pointerInfo.windowXScale, in getPointerInfoString()
99 i, pointerInfos[i].xOffset, pointerInfos[i].yOffset, in getPointerInfoString()
DMonitor.cpp25 TouchedMonitor::TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset) in TouchedMonitor() argument
26 : monitor(monitor), xOffset(xOffset), yOffset(yOffset) {} in TouchedMonitor()
DInputTarget.h35 float yOffset = 0.0f; member
125 void addPointers(BitSet32 pointerIds, float xOffset, float yOffset, float windowXScale,
127 void setDefaultPointerInfo(float xOffset, float yOffset, float windowXScale,
DMonitor.h34 float yOffset = 0.f; member
36 explicit TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset);
DEntry.cpp184 const PointerCoords* pointerCoords, float xOffset, float yOffset) in MotionEntry() argument
206 if (xOffset || yOffset) { in MotionEntry()
207 this->pointerCoords[i].applyOffset(xOffset, yOffset); in MotionEntry()
244 float yOffset, float globalScaleFactor, float windowXScale, in DispatchEntry() argument
250 yOffset(yOffset), in DispatchEntry()
DEntry.h183 float xOffset, float yOffset);
197 float yOffset; member
212 DispatchEntry(EventEntry* eventEntry, int32_t targetFlags, float xOffset, float yOffset,
/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/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java255 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { in showPopup() argument
270 popup.setVerticalOffset(yOffset); in showPopup()
278 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize, in showPopup()
279 xOffset + halfSize, yOffset + halfSize); in showPopup()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DWindowMagnificationController.java315 private void moveMirrorWindow(int xOffset, int yOffset) { in moveMirrorWindow() argument
316 if (updateMagnificationFramePosition(xOffset, yOffset)) { in moveMirrorWindow()
358 private boolean updateMagnificationFramePosition(int xOffset, int yOffset) { in updateMagnificationFramePosition() argument
360 mTmpRect.offset(xOffset, yOffset); in updateMagnificationFramePosition()
397 public void move(int xOffset, int yOffset) { in move() argument
401 mMagnificationFrame.offset(xOffset, yOffset); in move()
DMirrorWindowControl.java59 void move(int xOffset, int yOffset); in move() argument
147 public void move(int xOffset, int yOffset) { in move() argument
154 mTmpPoint.offset(xOffset, yOffset); in move()
DSimpleMirrorWindowControl.java191 int yOffset, long period) { in MoveWindowTask() argument
194 mYOffset = yOffset; in MoveWindowTask()
/frameworks/base/core/java/android/widget/
DToastPresenter.java147 int duration, int gravity, int xOffset, int yOffset, float horizontalMargin, in adjustLayoutParams() argument
159 params.y = yOffset; in adjustLayoutParams()
198 int xOffset, int yOffset, float horizontalMargin, float verticalMargin, in show() argument
204 adjustLayoutParams(mParams, windowToken, duration, gravity, xOffset, yOffset, in show()
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/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/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp161 constexpr float yOffset = -20; in PublishAndConsumeMotionEvent() local
190 classification, xScale, yScale, xOffset, yOffset, in PublishAndConsumeMotionEvent()
224 EXPECT_EQ(yOffset, motionEvent->getYOffset()); in PublishAndConsumeMotionEvent()
230 EXPECT_EQ(yCursorPosition * yScale + yOffset, motionEvent->getYCursorPosition()); in PublishAndConsumeMotionEvent()
247 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) * yScale + yOffset, in PublishAndConsumeMotionEvent()
/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/view/autofill/
DAutofillPopupWindow.java250 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) { in findDropDownPosition() argument
254 outParams.y = yOffset; in findDropDownPosition()
260 return super.findDropDownPosition(anchor, outParams, xOffset, yOffset, in findDropDownPosition()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java167 long yOffset = pos % yMax; in drawBall() local
179 top = yMax - yOffset; in drawBall()
181 top = yOffset; in drawBall()
/frameworks/native/libs/input/
DInput.cpp247 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset() argument
249 setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset); in applyOffset()
324 float yScale, float xOffset, float yOffset, float xPrecision, in initialize() argument
340 mYOffset = yOffset; in initialize()
461 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
463 mYOffset += yOffset; in offsetLocation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DSplitDisplayLayout.java214 final int yOffset = Math.max(0, dl.height() - adjustedTop); in adjustForIME() local
219 mAdjustedPrimary.offset(0, -yOffset + (dividerWidth - currDividerWidth)); in adjustForIME()
223 mAdjustedSecondary.offset(0, -yOffset); in adjustForIME()
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java263 boolean onContentDrawn(int xOffset, int yOffset, int xSize, int ySize) { in onContentDrawn() argument
270 mLastYOffset = yOffset; in onContentDrawn()

123