Home
last modified time | relevance | path

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

123

/frameworks/base/tests/graphics/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.cpp40 for (int xOffset = 0; xOffset < 200; xOffset += 2) { in createContent() local
42 region.op({xOffset, yOffset, xOffset + 1, yOffset + 1}, SkRegion::kUnion_Op); in createContent()
/frameworks/base/graphics/java/android/graphics/text/
DTextRunShaper.java67 float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) { in shapeTextRun() argument
73 xOffset, yOffset); in shapeTextRun()
97 float xOffset, float yOffset, boolean isRtl, @NonNull Paint paint) { in shapeTextRun() argument
105 xOffset, yOffset); in shapeTextRun()
113 xOffset, yOffset); in shapeTextRun()
DPositionedGlyphs.java246 public PositionedGlyphs(long layoutPtr, float xOffset, float yOffset) { in PositionedGlyphs() argument
250 mXOffset = xOffset; in PositionedGlyphs()
/frameworks/av/include/media/
DVolumeShaper.h478 Operation(Flag flags, int replaceId, S xOffset) in Operation() argument
481 , mXOffset(xOffset) { in Operation()
496 void setXOffset(S xOffset) { in setXOffset() argument
497 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); in setXOffset()
539 op->xOffset = mXOffset; in writeToParcelable()
550 mXOffset = op.xOffset; in readFromParcelable()
620 State(T volume, S xOffset) in State() argument
622 , mXOffset(xOffset) { in State()
640 void setXOffset(S xOffset) { in setXOffset() argument
641 mXOffset = xOffset; in setXOffset()
[all …]
/frameworks/base/core/java/android/widget/
DToastPresenter.java163 int duration, int gravity, int xOffset, int yOffset, float horizontalMargin, in adjustLayoutParams() argument
174 params.x = xOffset; in adjustLayoutParams()
192 public void updateLayoutParams(int xOffset, int yOffset, float horizontalMargin, in updateLayoutParams() argument
197 mParams.x = xOffset; in updateLayoutParams()
235 int xOffset, int yOffset, float horizontalMargin, float verticalMargin, in show() argument
237 show(view, token, windowToken, duration, gravity, xOffset, yOffset, horizontalMargin, in show()
246 int xOffset, int yOffset, float horizontalMargin, float verticalMargin, in show() argument
252 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/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/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.java189 MoveWindowTask(@NonNull MirrorWindowDelegate windowDelegate, Handler handler, int xOffset, in MoveWindowTask() argument
192 mXOffset = xOffset; in MoveWindowTask()
/frameworks/av/aidl/android/media/
DVolumeShaperState.aidl26 float xOffset;
DVolumeShaperOperation.aidl28 float xOffset;
/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/base/tests/TouchLatency/app/src/main/java/com/prefabulated/touchlatency/
DTouchLatencyView.java159 long xOffset = pos % xMax; in drawBall() local
165 left = xMax - xOffset; in drawBall()
167 left = xOffset; in drawBall()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSAnimator.java252 int xOffset, in translateContent() argument
266 int xDiff = qsPosX - qqsPosX - xOffset; in translateContent()
327 int xOffset = mTmpLoc2[0] - mTmpLoc1[0]; in updateAnimators() local
334 translationXBuilder.addFloat(quickTileView, "translationX", 0, xOffset); in updateAnimators()
335 translationXBuilder.addFloat(tileView, "translationX", -xOffset, 0); in updateAnimators()
350 xOffset, in updateAnimators() local
363 xOffset, in updateAnimators() local
376 xOffset, in updateAnimators() local
/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/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/listener/
DLiveWallpaperEventListener.kt42 fun onOffsetChanged(xOffset: Float, xOffsetStep: Float) in onOffsetChanged()
/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/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/libs/systemui/toruslib/torus-core/src/main/java/com/google/android/torus/core/wallpaper/
DLiveWallpaper.kt308 xOffset: Float, in onOffsetsChanged()
316 xOffset, in onOffsetsChanged()
326 xOffset, in onOffsetsChanged()
/frameworks/base/packages/SystemUI/accessibility/accessibilitymenu/src/com/android/systemui/accessibility/accessibilitymenu/view/
DA11yMenuOverlayLayout.java266 int xOffset = max(windowInsets.left, windowInsets.right); in updateLayoutByWindowInsetsIfNeeded() local
269 if (mLayoutParameter.x != xOffset || mLayoutParameter.y != yOffset) { in updateLayoutByWindowInsetsIfNeeded()
270 mLayoutParameter.x = xOffset; in updateLayoutByWindowInsetsIfNeeded()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java800 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
1739 float xOffset; in doOffsetsChanged() local
1745 xOffset = mPendingXOffset; in doOffsetsChanged()
1757 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
1759 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0; in doOffsetsChanged()
1762 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
1809 float xOffset; in processLocalColorsInternal() local
1818 xOffset = mPendingXOffset; in processLocalColorsInternal()
1823 Log.d(TAG, "processLocalColors " + xOffset + " of step " in processLocalColorsInternal()
1826 if (xOffset % xOffsetStep > MIN_PAGE_ALLOWED_MARGIN in processLocalColorsInternal()
[all …]

123