Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
DPointsActivity.java93 private void drawPoints(Canvas canvas, Paint p, float xOffset, float yOffset) { in drawPoints() argument
104 float xOffset = 0; in onDraw() local
108 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
109 xOffset += 5; in onDraw()
112 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
113 xOffset += 15; in onDraw()
116 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
117 xOffset += 30; in onDraw()
120 canvas.drawPoint(100 + xOffset, 100 + yOffset, p); in onDraw()
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()
83 copyPoints[i] = basePoints[i] + xOffset; in drawLines()
/frameworks/base/libs/hwui/tests/common/scenes/
DRectGridAnimation.cpp38 for (int xOffset = 0; xOffset < 200; xOffset += 2) { in createContent() local
40 region.op({xOffset, yOffset, xOffset + 1, yOffset + 1}, SkRegion::kUnion_Op); in createContent()
/frameworks/base/graphics/java/android/graphics/text/
DTextRunShaper.java69 float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) { in shapeTextRun() argument
75 xOffset, yOffset); in shapeTextRun()
99 float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) { in shapeTextRun() argument
107 xOffset, yOffset); in shapeTextRun()
115 xOffset, yOffset); in shapeTextRun()
DPositionedGlyphs.java174 public PositionedGlyphs(long layoutPtr, float xOffset, float yOffset) { in PositionedGlyphs() argument
178 mXOffset = xOffset; in PositionedGlyphs()
/frameworks/av/include/media/
DVolumeShaper.h433 Operation(Flag flags, int replaceId, S xOffset) in Operation() argument
436 , mXOffset(xOffset) { in Operation()
451 void setXOffset(S xOffset) { in setXOffset() argument
452 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); in setXOffset()
494 op->xOffset = mXOffset; in writeToParcelable()
505 mXOffset = op.xOffset; in readFromParcelable()
575 State(T volume, S xOffset) in State() argument
577 , mXOffset(xOffset) { in State()
595 void setXOffset(S xOffset) { in setXOffset() argument
596 mXOffset = xOffset; in setXOffset()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DMonitor.cpp26 TouchedMonitor::TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset) in TouchedMonitor() argument
27 : monitor(monitor), xOffset(xOffset), yOffset(yOffset) {} in TouchedMonitor()
DMonitor.h35 float xOffset = 0.f; member
38 explicit TouchedMonitor(const Monitor& monitor, float xOffset, float yOffset);
DEntry.cpp203 const PointerCoords* pointerCoords, float xOffset, float yOffset) in MotionEntry() argument
224 if (xOffset || yOffset) { in MotionEntry()
225 this->pointerCoords[i].applyOffset(xOffset, yOffset); in MotionEntry()
/frameworks/base/core/java/android/widget/
DToastPresenter.java140 int duration, int gravity, int xOffset, int yOffset, float horizontalMargin, in adjustLayoutParams() argument
151 params.x = xOffset; in adjustLayoutParams()
169 public void updateLayoutParams(int xOffset, int yOffset, float horizontalMargin, in updateLayoutParams() argument
174 mParams.x = xOffset; in updateLayoutParams()
212 int xOffset, int yOffset, float horizontalMargin, float verticalMargin, in show() argument
214 show(view, token, windowToken, duration, gravity, xOffset, yOffset, horizontalMargin, in show()
223 int xOffset, int yOffset, float horizontalMargin, float verticalMargin, in show() argument
229 adjustLayoutParams(mParams, windowToken, duration, gravity, xOffset, yOffset, in show()
/frameworks/base/core/java/com/android/internal/view/menu/
DMenuPopupHelper.java256 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { in showPopup() argument
267 xOffset -= mAnchorView.getWidth(); in showPopup()
270 popup.setHorizontalOffset(xOffset); in showPopup()
279 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize, in showPopup()
280 xOffset + halfSize, yOffset + halfSize); in showPopup()
/frameworks/base/media/java/android/media/
DVolumeShaper.java1281 result.xOffset = mXOffset; in toParcelable()
1290 parcelable.xOffset); in fromParcelable()
1347 private Operation(@Flag int flags, int replaceId, float xOffset) { in Operation() argument
1350 mXOffset = xOffset; in Operation()
1460 public @NonNull Builder setXOffset(float xOffset) { in setXOffset() argument
1461 if (xOffset < -0.f) { in setXOffset()
1463 } else if (xOffset > 1.f) { in setXOffset()
1467 mXOffset = xOffset; in setXOffset()
1547 result.xOffset = mXOffset; in toParcelable()
1553 return new VolumeShaper.State(p.volume, p.xOffset); in fromParcelable()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/
DMirrorWindowControl.java57 void move(int xOffset, int yOffset); in move() argument
143 public void move(int xOffset, int yOffset) { in move() argument
150 mTmpPoint.offset(xOffset, yOffset); in move()
DSimpleMirrorWindowControl.java190 MoveWindowTask(@NonNull MirrorWindowDelegate windowDelegate, Handler handler, int xOffset, in MoveWindowTask() argument
193 mXOffset = xOffset; in MoveWindowTask()
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java62 public TouchCalibration(float xScale, float xyMix, float xOffset, in TouchCalibration() argument
66 mXOffset = xOffset; in TouchCalibration()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java229 int xOffset, in translateContent() argument
242 int xDiff = qsPosX - qqsPosX - xOffset; in translateContent()
303 int xOffset = loc2[0] - loc1[0]; in updateAnimators() local
314 translationXBuilder.addFloat(quickTileView, "translationX", 0, xOffset); in updateAnimators()
315 translationXBuilder.addFloat(tileView, "translationX", -xOffset, 0); in updateAnimators()
330 xOffset, in updateAnimators() local
342 xOffset, in updateAnimators() local
354 xOffset, in updateAnimators() local
/frameworks/base/media/jni/
Dandroid_media_VolumeShaper.h186 float xOffset = env->GetFloatField(joperation, fields.opXOffsetId); in convertJobjectToOperation() local
189 new VolumeShaper::Operation(flags, replaceId, xOffset); in convertJobjectToOperation()
208 float xOffset = env->GetFloatField(jstate, fields.stXOffsetId); in convertJobjectToState() local
210 sp<VolumeShaper::State> state = new VolumeShaper::State(volume, xOffset); in convertJobjectToState()
/frameworks/av/aidl/android/media/
DVolumeShaperState.aidl26 float xOffset;
DVolumeShaperOperation.aidl28 float xOffset;
/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()
190 mOffsetX = xOffset; 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.java140 int xOffset = base + X_OFFSET; in pointForIndex() local
142 mTempPointF.set(mKeyframeData[xOffset], mKeyframeData[yOffset]); in pointForIndex()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java628 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
1386 float xOffset; in doOffsetsChanged() local
1392 xOffset = mPendingXOffset; in doOffsetsChanged()
1404 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
1406 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0; in doOffsetsChanged()
1409 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
1424 processLocalColors(xOffset, xOffsetStep); in doOffsetsChanged()
1427 private void processLocalColors(float xOffset, float xOffsetStep) { in processLocalColors() argument
1431 Log.d(TAG, "processLocalColors " + xOffset + " of step " in processLocalColors()
1435 if (xOffset % xOffsetStep > MIN_PAGE_ALLOWED_MARGIN in processLocalColors()
[all …]
/frameworks/base/core/java/android/view/autofill/
DAutofillPopupWindow.java250 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) { in findDropDownPosition() argument
253 outParams.x = xOffset; in findDropDownPosition()
260 return super.findDropDownPosition(anchor, outParams, xOffset, yOffset, in findDropDownPosition()
/frameworks/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyActivity.java166 long xOffset = pos % xMax; in drawBall() local
172 left = xMax - xOffset; in drawBall()
174 left = xOffset; in drawBall()

123