Home
last modified time | relevance | path

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

/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()
118 yOffset += 100; in onDraw()
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.rs60 int xOffset = 0, yOffset = 0;
64 yOffset = textOffsets[fillI * 2 + 1];
68 yPos = top + yOffset;
DRsBenchRS.java244 final float yOffset = (normalizedY - 0.5f) * height; in getMbyNMesh() local
249 tmb.addVertex(xOffset, yOffset); in getMbyNMesh()
274 float yOffset = height/2; in getSingleMesh() local
276 tmb.addVertex(-1.0f * xOffset, -1.0f * yOffset); in getSingleMesh()
278 tmb.addVertex(xOffset, -1.0f * yOffset); in getSingleMesh()
280 tmb.addVertex(xOffset, yOffset); in getSingleMesh()
282 tmb.addVertex(-1.0f * xOffset, yOffset); in getSingleMesh()
Drsbench.rs460 int yOffset = listItemHeight;
468 if (yOffset - listItemHeight > gRenderSurfaceH) {
471 rsgDrawRect(0, yOffset - 1, gRenderSurfaceW, yOffset, 0);
472 rsgDrawText(gListViewText[i].item, 20, yOffset - 10);
473 yOffset += listItemHeight;
/frameworks/base/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/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java226 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
230 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset in onOffsetsChanged()
236 if (mXOffset != xOffset || mYOffset != yOffset) { in onOffsetsChanged()
238 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ")."); in onOffsetsChanged()
241 mYOffset = yOffset; in onOffsetsChanged()
/frameworks/base/include/ui/
DInputTransport.h143 float yOffset; member
227 float yOffset,
DInput.h531 float yOffset,
546 void offsetLocation(float xOffset, float yOffset);
/frameworks/base/libs/ui/
DInputTransport.cpp373 float yOffset, in publishMotionEvent() argument
389 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount); in publishMotionEvent()
409 mSharedMessage->motion.yOffset = yOffset; in publishMotionEvent()
705 mSharedMessage->motion.yOffset, in populateMotionEvent()
DInput.cpp398 float yOffset, in initialize() argument
413 mYOffset = yOffset; in initialize()
510 void MotionEvent::offsetLocation(float xOffset, float yOffset) { in offsetLocation() argument
512 mYOffset += yOffset; in offsetLocation()
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp192 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) { in pointerCoordsToNative() argument
197 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.y) - yOffset); in pointerCoordsToNative()
257 float xOffset, float yOffset, jobject outPointerCoordsObj) { in pointerCoordsFromNative() argument
261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset); in pointerCoordsFromNative()
341 jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, in android_view_MotionEvent_nativeInitialize() argument
372 pointerCoordsToNative(env, pointerCoordsObj, xOffset, yOffset, &rawPointerCoords[i]); in android_view_MotionEvent_nativeInitialize()
377 xOffset, yOffset, xPrecision, yPrecision, in android_view_MotionEvent_nativeInitialize()
/frameworks/base/core/java/android/service/wallpaper/
DWallpaperService.java402 public void onOffsetsChanged(float xOffset, float yOffset, in onOffsetsChanged() argument
783 float yOffset; in doOffsetsChanged() local
789 yOffset = mPendingYOffset; in doOffsetsChanged()
800 + ": " + xOffset + "," + yOffset); in doOffsetsChanged()
804 final int yPixels = availh > 0 ? -(int)(availh*yOffset+.5f) : 0; in doOffsetsChanged()
805 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels); in doOffsetsChanged()
/frameworks/base/libs/ui/tests/
DInputPublisherAndConsumer_test.cpp161 const float yOffset = -20; in PublishAndConsumeMotionEvent() local
195 metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision, in PublishAndConsumeMotionEvent()
271 EXPECT_EQ(samplePointerCoords[offset].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
301 EXPECT_EQ(samplePointerCoords[offset].getAxisValue(AMOTION_EVENT_AXIS_Y) + yOffset, in PublishAndConsumeMotionEvent()
/frameworks/base/core/java/android/widget/
DToast.java193 public void setGravity(int gravity, int xOffset, int yOffset) { in setGravity() argument
196 mTN.mY = yOffset; in setGravity()
DPopupWindow.java1196 public int getMaxAvailableHeight(View anchor, int yOffset) { in getMaxAvailableHeight() argument
1197 return getMaxAvailableHeight(anchor, yOffset, false); in getMaxAvailableHeight()
1217 public int getMaxAvailableHeight(View anchor, int yOffset, boolean ignoreBottomDecorations) { in getMaxAvailableHeight() argument
1229 final int distanceToBottom = bottomEdge - (anchorPos[1] + anchor.getHeight()) - yOffset; in getMaxAvailableHeight()
1230 final int distanceToTop = anchorPos[1] - displayFrame.top + yOffset; in getMaxAvailableHeight()
/frameworks/base/include/media/stagefright/
DYUVImage.h150 int32_t *yOffset, int32_t *uOffset, int32_t *vOffset) const;
/frameworks/base/core/java/android/app/
DWallpaperManager.java621 public void setWallpaperOffsets(IBinder windowToken, float xOffset, float yOffset) { in setWallpaperOffsets() argument
625 windowToken, xOffset, yOffset, mWallpaperXStep, mWallpaperYStep); in setWallpaperOffsets()
/frameworks/base/services/input/
DInputDispatcher.cpp1755 target.yOffset = - windowInfo->frameTop; in addWindowTargetLocked()
1768 target.yOffset = 0; in addMonitoringTargetsLocked()
1882 inputTarget->xOffset, inputTarget->yOffset, in prepareDispatchCycleLocked()
2055 inputTargetFlags, inputTarget->xOffset, inputTarget->yOffset, in enqueueDispatchEntryLocked()
2195 float xOffset, yOffset, scaleFactor; in startDispatchCycleLocked() local
2200 yOffset = dispatchEntry->yOffset * scaleFactor; in startDispatchCycleLocked()
2210 yOffset = 0.0f; in startDispatchCycleLocked()
2227 xOffset, yOffset, in startDispatchCycleLocked()
2505 target.yOffset = -windowInfo->frameTop; in synthesizeCancelationEventsForConnectionLocked()
2509 target.yOffset = 0; in synthesizeCancelationEventsForConnectionLocked()
[all …]
DInputDispatcher.h151 float xOffset, yOffset; member
552 float yOffset; member
576 int32_t targetFlags, float xOffset, float yOffset, float scaleFactor);
/frameworks/base/core/jni/android/graphics/
DHarfbuzzSkia.cpp181 metrics->yOffset = 0; in getGlyphMetrics()
/frameworks/base/libs/hwui/
DFontRenderer.cpp585 uint32_t yOffset = cl->mCurrentRow; in checkTextureUpdate() local
588 void* textureData = mTextTexture + yOffset*width; in checkTextureUpdate()
590 glTexSubImage2D(GL_TEXTURE_2D, 0, xOffset, yOffset, width, height, in checkTextureUpdate()
/frameworks/base/core/java/android/view/
DMotionEvent.java1324 float xOffset, float yOffset, float xPrecision, float yPrecision, in nativeInitialize() argument