Home
last modified time | relevance | path

Searched refs:xOffset (Results 1 – 25 of 31) 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/core/java/com/android/internal/widget/
DRotarySelector.java366 final int xOffset = mLeftHandleX + mRotaryOffsetX; in onDraw() local
371 xOffset); in onDraw()
372 final int x = isHoriz() ? xOffset : drawableY + bgTop; in onDraw()
373 final int y = isHoriz() ? drawableY + bgTop : height - xOffset; in onDraw()
384 final int xOffset = isHoriz() ? in onDraw() local
391 xOffset); in onDraw()
394 drawCentered(mDimpleDim, canvas, xOffset, drawableY + bgTop); in onDraw()
397 drawCentered(mDimpleDim, canvas, drawableY + bgTop, height - xOffset); in onDraw()
403 final int xOffset = mRightHandleX + mRotaryOffsetX; in onDraw() local
408 xOffset); in onDraw()
[all …]
/frameworks/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
Dtext_test.rs65 int xOffset = 0, yOffset = 0;
68 xOffset = textOffsets[fillI * 2];
75 rsgDrawText(sampleText, xOffset + textWidth * h, yPos);
DUiTest.java160 float xOffset = width/2; in getSingleMesh() local
163 tmb.addVertex(-1.0f * xOffset, -1.0f * yOffset); in getSingleMesh()
165 tmb.addVertex(xOffset, -1.0f * yOffset); in getSingleMesh()
167 tmb.addVertex(xOffset, yOffset); in getSingleMesh()
169 tmb.addVertex(-1.0f * xOffset, yOffset); in getSingleMesh()
DMeshTest.java115 float xOffset = (normalizedX - 0.5f) * width; in getMbyNMesh() local
117 tmb.addVertex(xOffset, yOffset); in getMbyNMesh()
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardGlowStripView.java84 int xOffset = getPaddingLeft(); in dispatchDraw() local
98 canvas.translate(xOffset, mDotStripTop); in dispatchDraw()
102 xOffset += mDotSize + mHorizontalDotGap; in dispatchDraw()
/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/tests/WallpaperTest/src/com/example/wallpapertest/
DTestWallpaper.java176 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
178 super.onOffsetsChanged(xOffset, yOffset, xStep, yStep, xPixels, yPixels); in onOffsetsChanged()
182 mOffsetX = xOffset; in onOffsetsChanged()
/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()
223 float xOffset, in initialize() argument
238 mXOffset = xOffset; in initialize()
336 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
337 mXOffset += xOffset; in offsetLocation()
DInputTransport.cpp290 float xOffset, in publishMotionEvent() argument
307 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
331 msg.body.motion.xOffset = xOffset; in publishMotionEvent()
914 msg->body.motion.xOffset, in initializeMotionEvent()
/frameworks/base/libs/hwui/
DVertexBuffer.h93 void copyInto(const VertexBuffer& srcBuffer, float xOffset, float yOffset) { in copyInto() argument
100 TYPE::copyWithOffset(&dst[i], src[i], xOffset, yOffset); in copyInto()
/frameworks/base/core/java/android/animation/
DPathKeyframes.java143 int xOffset = base + X_OFFSET; in pointForIndex() local
145 mTempPointF.set(mKeyframeData[xOffset], mKeyframeData[yOffset]); in pointForIndex()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp140 const float xOffset = -10; in PublishAndConsumeMotionEvent() local
167 metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
209 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset, in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp59 CHECK_OFFSET(InputMessage::Body::Motion, xOffset, 56); in TestInputMessageAlignment()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp193 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative() argument
196 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.x) - xOffset); in pointerCoordsToNative()
257 float xOffset, float yOffset, jobject outPointerCoordsObj) { in pointerCoordsFromNative() argument
259 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset); in pointerCoordsFromNative()
337 jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, in android_view_MotionEvent_nativeInitialize() argument
368 pointerCoordsToNative(env, pointerCoordsObj, xOffset, yOffset, &rawPointerCoords[i]); in android_view_MotionEvent_nativeInitialize()
373 xOffset, yOffset, xPrecision, yPrecision, in android_view_MotionEvent_nativeInitialize()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java277 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
281 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset in onOffsetsChanged()
286 if (mXOffset != xOffset || mYOffset != yOffset) { in onOffsetsChanged()
288 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ")."); in onOffsetsChanged()
290 mXOffset = xOffset; in onOffsetsChanged()
/frameworks/native/include/input/
DInput.h210 void applyOffset(float xOffset, float yOffset);
527 float xOffset,
543 void offsetLocation(float xOffset, float yOffset);
DInputTransport.h92 float xOffset; member
239 float xOffset,
/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/widget/
DToast.java210 public void setGravity(int gravity, int xOffset, int yOffset) { in setGravity() argument
212 mTN.mX = xOffset; in setGravity()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java473 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
949 float xOffset; in doOffsetsChanged() local
955 xOffset = mPendingXOffset; in doOffsetsChanged()
967 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
969 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0; in doOffsetsChanged()
972 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
/frameworks/base/media/java/android/media/
DMediaCodec.java1775 long timestamp, int xOffset, int yOffset, Rect cropRect) { in MediaImage() argument
1782 cropRect.offset(-xOffset, -yOffset); in MediaImage()
1787 mXOffset = xOffset; in MediaImage()
1827 + (xOffset / horiz) * colInc + (yOffset / vert) * rowInc); in MediaImage()
/frameworks/native/services/inputflinger/
DInputDispatcher.h152 float xOffset, yOffset; member
526 float xOffset, float yOffset);
539 float xOffset; member
549 int32_t targetFlags, float xOffset, float yOffset, float scaleFactor);
DInputDispatcher.cpp1584 target.xOffset = - windowInfo->frameLeft; in addWindowTargetLocked()
1597 target.xOffset = 0; in addMonitoringTargetsLocked()
1791 inputTarget->xOffset, inputTarget->yOffset, in prepareDispatchCycleLocked()
1868 inputTargetFlags, inputTarget->xOffset, inputTarget->yOffset, in enqueueDispatchEntryLocked()
1979 float xOffset, yOffset, scaleFactor; in startDispatchCycleLocked() local
1983 xOffset = dispatchEntry->xOffset * scaleFactor; in startDispatchCycleLocked()
1993 xOffset = 0.0f; in startDispatchCycleLocked()
2011 xOffset, yOffset, in startDispatchCycleLocked()
2233 target.xOffset = -windowInfo->frameLeft; in synthesizeCancelationEventsForConnectionLocked()
2237 target.xOffset = 0; in synthesizeCancelationEventsForConnectionLocked()
[all …]

12