Home
last modified time | relevance | path

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

12

/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.cpp41 for (int xOffset = 0; xOffset < 200; xOffset+=2) { in createContent() local
43 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op); in createContent()
/frameworks/av/include/media/
DVolumeShaper.h373 Operation(Flag flags, int replaceId, S xOffset) in Operation() argument
376 , mXOffset(xOffset) { in Operation()
391 void setXOffset(S xOffset) { in setXOffset() argument
392 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); in setXOffset()
463 State(T volume, S xOffset) in State() argument
465 , mXOffset(xOffset) { in State()
483 void setXOffset(S xOffset) { in setXOffset() argument
484 mXOffset = xOffset; in setXOffset()
616 void setDelayXOffset(S xOffset) { in setDelayXOffset() argument
617 mDelayXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */); in setDelayXOffset()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DMenuPopupHelper.java260 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { in showPopup() argument
271 xOffset += mAnchorView.getWidth(); in showPopup()
274 popup.setHorizontalOffset(xOffset); 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/com/android/internal/view/menu/
DMenuPopupHelper.java248 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { in showPopup() argument
259 xOffset += mAnchorView.getWidth(); in showPopup()
262 popup.setHorizontalOffset(xOffset); in showPopup()
271 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize, in showPopup()
272 xOffset + halfSize, yOffset + halfSize); in showPopup()
/frameworks/base/media/java/android/media/
DVolumeShaper.java1174 final float xOffset = p.readFloat();
1179 , xOffset);
1188 private Operation(@Flag int flags, int replaceId, float xOffset) { in Operation() argument
1191 mXOffset = xOffset; in Operation()
1301 public @NonNull Builder setXOffset(float xOffset) { in setXOffset() argument
1302 if (xOffset < -0.f) { in setXOffset()
1304 } else if (xOffset > 1.f) { in setXOffset()
1308 mXOffset = xOffset; in setXOffset()
1398 /* package */ State(float volume, float xOffset) { in State() argument
1400 mXOffset = xOffset; in State()
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java61 public TouchCalibration(float xScale, float xyMix, float xOffset, in TouchCalibration() argument
65 mXOffset = xOffset; in TouchCalibration()
/frameworks/base/media/jni/
Dandroid_media_VolumeShaper.h184 float xOffset = env->GetFloatField(joperation, fields.opXOffsetId); in convertJobjectToOperation() local
187 new VolumeShaper::Operation(flags, replaceId, xOffset); in convertJobjectToOperation()
206 float xOffset = env->GetFloatField(jstate, fields.stXOffsetId); in convertJobjectToState() local
208 sp<VolumeShaper::State> state = new VolumeShaper::State(volume, xOffset); in convertJobjectToState()
/frameworks/native/libs/input/
DInput.cpp142 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset() argument
143 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset); in applyOffset()
224 float xOffset, in initialize() argument
240 mXOffset = xOffset; in initialize()
339 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
340 mXOffset += xOffset; 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()
190 mOffsetX = xOffset; in onOffsetsChanged()
/frameworks/base/libs/hwui/
DVertexBuffer.h92 void copyInto(const VertexBuffer& srcBuffer, float xOffset, float yOffset) { in copyInto() argument
99 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/jni/
Dandroid_view_MotionEvent.cpp195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative() argument
198 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.x) - xOffset); in pointerCoordsToNative()
259 float xOffset, float yOffset, jobject outPointerCoordsObj) { in pointerCoordsFromNative() argument
261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset); in pointerCoordsFromNative()
338 jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, in android_view_MotionEvent_nativeInitialize() argument
369 pointerCoordsToNative(env, pointerCoordsObj, xOffset, yOffset, &rawPointerCoords[i]); in android_view_MotionEvent_nativeInitialize()
374 xOffset, yOffset, xPrecision, yPrecision, in android_view_MotionEvent_nativeInitialize()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp141 const float xOffset = -10; in PublishAndConsumeMotionEvent() local
168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
210 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp60 CHECK_OFFSET(InputMessage::Body::Motion, xOffset, 56); in TestInputMessageAlignment()
/frameworks/base/telephony/java/android/telephony/
DSubscriptionInfo.java227 final float xOffset = (width / 2.f) - textBound.centerX(); in createIconBitmap() local
229 canvas.drawText(index, xOffset, yOffset, paint); in createIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java244 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
248 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset in onOffsetsChanged()
253 if (mXOffset != xOffset || mYOffset != yOffset) { in onOffsetsChanged()
255 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ")."); in onOffsetsChanged()
257 mXOffset = xOffset; in onOffsetsChanged()
/frameworks/native/include/input/
DInput.h241 void applyOffset(float xOffset, float yOffset);
565 float xOffset,
581 void offsetLocation(float xOffset, float yOffset);
DInputTransport.h93 float xOffset; member
241 float xOffset,
/frameworks/base/core/java/com/android/internal/policy/
DBackdropFrameRenderer.java271 public boolean onContentDrawn(int xOffset, int yOffset, int xSize, int ySize) { in onContentDrawn() argument
277 mLastXOffset = xOffset; in onContentDrawn()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
DGLCanvas.java177 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, in texSubImage2D() argument
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java484 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
954 float xOffset; in doOffsetsChanged() local
960 xOffset = mPendingXOffset; in doOffsetsChanged()
972 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
974 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0; in doOffsetsChanged()
977 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
/frameworks/base/core/java/android/widget/
DPopupWindow.java1582 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) { in findDropDownPosition() argument
1600 outParams.x = drawingLocation[0] + xOffset; in findDropDownPosition()
1631 final boolean fitsHorizontal = tryFitHorizontal(outParams, xOffset, width, in findDropDownPosition()
1639 final Rect r = new Rect(scrollX, scrollY, scrollX + width + xOffset, in findDropDownPosition()
1646 outParams.x = drawingLocation[0] + xOffset; in findDropDownPosition()
1658 tryFitHorizontal(outParams, xOffset, width, anchorWidth, drawingLocation[0], in findDropDownPosition()
1728 private boolean tryFitHorizontal(@NonNull LayoutParams outParams, int xOffset, int width, in tryFitHorizontal() argument
DToast.java219 public void setGravity(int gravity, int xOffset, int yOffset) { in setGravity() argument
221 mTN.mX = xOffset; in setGravity()

12