Home
last modified time | relevance | path

Searched refs:yOffset (Results 1 – 25 of 37) sorted by relevance

12

/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/base/tests/RenderScriptTests/PerfTest/src/com/android/perftest/
Dtext_test.rs64 int xOffset = 0, yOffset = 0;
68 yOffset = textOffsets[fillI * 2 + 1];
72 yPos = top + yOffset;
DUiTest.java161 float yOffset = height/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()
Dui_test.rs363 int yOffset = listItemHeight;
371 if (yOffset - listItemHeight > gRenderSurfaceH) {
374 rsgDrawRect(0, yOffset - 1, gRenderSurfaceW, yOffset, 0);
375 rsgDrawText(gListViewText[i].item, 20, yOffset - 10);
376 yOffset += listItemHeight;
DMeshTest.java112 final float yOffset = (normalizedY - 0.5f) * height; in getMbyNMesh() local
117 tmb.addVertex(xOffset, yOffset); in getMbyNMesh()
/frameworks/base/core/java/android/hardware/input/
DTouchCalibration.java62 float yxMix, float yScale, float yOffset) { in TouchCalibration() argument
68 mYOffset = yOffset; in TouchCalibration()
/frameworks/av/media/libstagefright/yuv/
DYUVImage.cpp88 int32_t *yOffset, int32_t *uOffset, int32_t *vOffset) const { in getOffsets() argument
89 *yOffset = y*mWidth + x; in getOffsets()
146 int32_t yOffset; in getYUVAddresses() local
149 if (!getOffsets(x, y, &yOffset, &uOffset, &vOffset)) return false; in getYUVAddresses()
151 *yAddr = getYAddress(yOffset); in getYUVAddresses()
/frameworks/base/libs/hwui/tests/
Dmain.cpp239 for (int yOffset = 0; yOffset < height; yOffset+=2) { in createCard() local
241 rects[index++] = yOffset; in createCard()
243 rects[index++] = yOffset + 1; in createCard()
/frameworks/native/libs/input/
DInput.cpp142 void PointerCoords::applyOffset(float xOffset, float yOffset) { in applyOffset() argument
144 setAxisValue(AMOTION_EVENT_AXIS_Y, getY() + yOffset); in applyOffset()
225 float yOffset, in initialize() argument
241 mYOffset = yOffset; in initialize()
339 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
341 mYOffset += yOffset; in offsetLocation()
/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()
183 mOffsetY = yOffset; 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/support/v7/appcompat/src/android/support/v7/graphics/drawable/
DDrawerArrowDrawable.java384 float yOffset = (remainingSpace / 4) * 2; // making sure it is a multiple of 2. in draw() local
385 yOffset += barThickness * 1.5 + mBarGap; in draw()
387 canvas.translate(bounds.centerX(), yOffset); in draw() local
/frameworks/base/core/java/android/animation/
DPathKeyframes.java144 int yOffset = base + Y_OFFSET; in pointForIndex() local
145 mTempPointF.set(mKeyframeData[xOffset], mKeyframeData[yOffset]); in pointForIndex()
/frameworks/native/libs/input/tests/
DInputPublisherAndConsumer_test.cpp142 const float yOffset = -20; in PublishAndConsumeMotionEvent() local
168 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
212 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
DStructLayout_test.cpp61 CHECK_OFFSET(InputMessage::Body::Motion, yOffset, 60); in TestInputMessageAlignment()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative() argument
200 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.y) - yOffset); in pointerCoordsToNative()
259 float xOffset, float yOffset, jobject outPointerCoordsObj) { in pointerCoordsFromNative() argument
263 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset); 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/base/telephony/java/android/telephony/
DSubscriptionInfo.java227 final float yOffset = (height / 2.f) - textBound.centerY(); in createIconBitmap() local
228 canvas.drawText(index, xOffset, yOffset, paint); in createIconBitmap()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java249 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
253 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset in onOffsetsChanged()
258 if (mXOffset != xOffset || mYOffset != yOffset) { in onOffsetsChanged()
260 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ")."); in onOffsetsChanged()
263 mYOffset = yOffset; in onOffsetsChanged()
/frameworks/native/include/input/
DInput.h222 void applyOffset(float xOffset, float yOffset);
547 float yOffset,
562 void offsetLocation(float xOffset, float yOffset);
DInputTransport.h94 float yOffset; member
242 float yOffset,
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java467 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
937 float yOffset; in doOffsetsChanged() local
943 yOffset = mPendingYOffset; in doOffsetsChanged()
954 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
958 final int yPixels = availh > 0 ? -(int)(availh*yOffset+.5f) : 0; in doOffsetsChanged()
959 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
/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/av/include/media/stagefright/
DYUVImage.h150 int32_t *yOffset, int32_t *uOffset, int32_t *vOffset) const;

12