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

12

/frameworks/base/libs/hwui/tests/common/scenes/
H A DRectGridAnimation.cpp41 for (int xOffset = 0; xOffset < 200; xOffset+=2) {
43 region.op(xOffset, yOffset, xOffset + 1, yOffset + 1, SkRegion::kUnion_Op);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DPointsActivity.java93 private void drawPoints(Canvas canvas, Paint p, float xOffset, float yOffset) { argument
104 float xOffset = 0;
108 canvas.drawPoint(100 + xOffset, 100 + yOffset, p);
109 xOffset += 5;
112 canvas.drawPoint(100 + xOffset, 100 + yOffset, p);
113 xOffset += 15;
116 canvas.drawPoint(100 + xOffset, 100 + yOffset, p);
117 xOffset += 30;
120 canvas.drawPoint(100 + xOffset, 100 + yOffset, p);
H A DLines2Activity.java75 private void drawLines(Canvas canvas, Paint p, float xOffset, float yOffset) { argument
76 canvas.drawLine(10 + xOffset, yOffset, 10 + xOffset, 40 + yOffset, p);
77 canvas.drawLine(30 + xOffset, yOffset, 40 + xOffset, 40 + yOffset, p);
78 canvas.drawLine(40 + xOffset, yOffset, 75 + xOffset, 35 + yOffset, p);
79 canvas.drawLine(50 + xOffset, 5+ yOffset, 100 + xOffset, 15 + yOffset, p);
80 canvas.drawLine(60 + xOffset, yOffse
[all...]
/frameworks/av/include/media/
H A DVolumeShaper.h359 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) {
370 Operation(Flag flags, int replaceId, S xOffset) argument
373 , mXOffset(xOffset) {
388 void setXOffset(S xOffset) { argument
389 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */);
396 /* xOffset is the position on the volume curve and may go backwards
403 * If you are reversing, this means the position on the curve, or xOffset,
460 State(T volume, S xOffset) argument
462 , mXOffset(xOffset) {
480 void setXOffset(S xOffset) { argument
613 setDelayXOffset(S xOffset) argument
682 updatePosition(int64_t startFrame, double sampleRate, S xOffset) argument
726 const S xOffset = x; local
869 const S xOffset = operation->getXOffset(); local
[all...]
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuPopupHelper.java248 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { argument
259 xOffset += mAnchorView.getWidth();
262 popup.setHorizontalOffset(xOffset);
271 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize,
272 xOffset + halfSize, yOffset + halfSize);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DMenuPopupHelper.java260 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { argument
271 xOffset += mAnchorView.getWidth();
274 popup.setHorizontalOffset(xOffset);
283 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize,
284 xOffset + halfSize, yOffset + halfSize);
/frameworks/base/core/java/android/hardware/input/
H A DTouchCalibration.java56 * @param xOffset Constant offset to be applied to output x-axis value.
61 public TouchCalibration(float xScale, float xyMix, float xOffset, argument
65 mXOffset = xOffset;
/frameworks/base/core/java/android/animation/
H A DPathKeyframes.java140 int xOffset = base + X_OFFSET;
142 mTempPointF.set(mKeyframeData[xOffset], mKeyframeData[yOffset]);
/frameworks/base/libs/hwui/
H A DVertexBuffer.h92 void copyInto(const VertexBuffer& srcBuffer, float xOffset, float yOffset) { argument
99 TYPE::copyWithOffset(&dst[i], src[i], xOffset, yOffset);
/frameworks/base/media/jni/
H A Dandroid_media_VolumeShaper.h184 float xOffset = env->GetFloatField(joperation, fields.opXOffsetId); local
187 new VolumeShaper::Operation(flags, replaceId, xOffset);
206 float xOffset = env->GetFloatField(jstate, fields.stXOffsetId); local
208 sp<VolumeShaper::State> state = new VolumeShaper::State(volume, xOffset);
/frameworks/base/tests/WallpaperTest/src/com/example/wallpapertest/
H A DTestWallpaper.java184 public void onOffsetsChanged(float xOffset, float yOffset, argument
186 super.onOffsetsChanged(xOffset, yOffset, xStep, yStep, xPixels, yPixels);
190 mOffsetX = xOffset;
/frameworks/base/media/java/android/media/
H A DVolumeShaper.java1174 final float xOffset = p.readFloat();
1179 , xOffset);
1188 private Operation(@Flag int flags, int replaceId, float xOffset) { argument
1191 mXOffset = xOffset;
1291 * Sets the {@code xOffset} to use for the {@code VolumeShaper}.
1293 * The {@code xOffset} is the position on the volume curve,
1296 * @param xOffset a value between (or equal to) 0.f and 1.f, or Float.NaN to ignore.
1298 * @throws IllegalArgumentException if {@code xOffset} is not between 0.f and 1.f,
1301 public @NonNull Builder setXOffset(float xOffset) { argument
1302 if (xOffset <
1398 State(float volume, float xOffset) argument
[all...]
/frameworks/native/libs/input/
H A DInput.cpp142 void PointerCoords::applyOffset(float xOffset, float yOffset) { argument
143 setAxisValue(AMOTION_EVENT_AXIS_X, getX() + xOffset);
224 float xOffset,
240 mXOffset = xOffset;
339 void MotionEvent::offsetLocation(float xOffset, float yOffset) { argument
340 mXOffset += xOffset;
215 initialize( int32_t deviceId, int32_t source, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, size_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
H A DInputTransport.cpp295 float xOffset,
307 "metaState=0x%x, buttonState=0x%x, xOffset=%f, yOffset=%f, "
312 xOffset, yOffset, xPrecision, yPrecision, downTime, eventTime, pointerCount);
338 msg.body.motion.xOffset = xOffset;
946 msg->body.motion.xOffset,
284 publishMotionEvent( uint32_t seq, int32_t deviceId, int32_t source, int32_t displayId, int32_t action, int32_t actionButton, int32_t flags, int32_t edgeFlags, int32_t metaState, int32_t buttonState, float xOffset, float yOffset, float xPrecision, float yPrecision, nsecs_t downTime, nsecs_t eventTime, uint32_t pointerCount, const PointerProperties* pointerProperties, const PointerCoords* pointerCoords) argument
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp143 const float xOffset = -10; local
170 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision,
213 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset,
H A DStructLayout_test.cpp62 CHECK_OFFSET(InputMessage::Body::Motion, xOffset, 64);
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/glrenderer/
H A DGLCanvas.java170 * @param xOffset Specifies a texel offset in the x direction within the
177 public abstract void texSubImage2D(BasicTexture texture, int xOffset, int yOffset, argument
/frameworks/base/core/jni/
H A Dandroid_view_MotionEvent.cpp195 float xOffset, float yOffset, PointerCoords* outRawPointerCoords) {
198 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.x) - xOffset);
259 float xOffset, float yOffset, jobject outPointerCoordsObj) {
261 rawPointerCoords->getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset);
338 jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision,
371 pointerCoordsToNative(env, pointerCoordsObj, xOffset, yOffset, &rawPointerCoords[i]);
376 xOffset, yOffset, xPrecision, yPrecision,
194 pointerCoordsToNative(JNIEnv* env, jobject pointerCoordsObj, float xOffset, float yOffset, PointerCoords* outRawPointerCoords) argument
258 pointerCoordsFromNative(JNIEnv* env, const PointerCoords* rawPointerCoords, float xOffset, float yOffset, jobject outPointerCoordsObj) argument
334 android_view_MotionEvent_nativeInitialize(JNIEnv* env, jclass clazz, jlong nativePtr, jint deviceId, jint source, jint action, jint flags, jint edgeFlags, jint metaState, jint buttonState, jfloat xOffset, jfloat yOffset, jfloat xPrecision, jfloat yPrecision, jlong downTimeNanos, jlong eventTimeNanos, jint pointerCount, jobjectArray pointerPropertiesObjArray, jobjectArray pointerCoordsObjArray) argument
/frameworks/native/include/input/
H A DInput.h241 void applyOffset(float xOffset, float yOffset);
565 float xOffset,
581 void offsetLocation(float xOffset, float yOffset);
H A DInputTransport.h95 float xOffset; member in struct:android::InputMessage::Body::Motion
244 float xOffset,
/frameworks/base/core/java/com/android/internal/policy/
H A DBackdropFrameRenderer.java265 * @param xOffset The x offset where the content is drawn to.
271 public boolean onContentDrawn(int xOffset, int yOffset, int xSize, int ySize) { argument
277 mLastXOffset = xOffset;
/frameworks/base/telephony/java/android/telephony/
H A DSubscriptionInfo.java257 final float xOffset = (width / 2.f) - textBound.centerX();
259 canvas.drawText(index, xOffset, yOffset, paint);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java244 public void onOffsetsChanged(float xOffset, float yOffset, argument
248 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset
253 if (mXOffset != xOffset || mYOffset != yOffset) {
255 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ").");
257 mXOffset = xOffset;
373 // Adjust the image for xOffset/yOffset values. If window manager is handling offsets,
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java519 public void onOffsetsChanged(float xOffset, float yOffset, argument
1036 float xOffset;
1042 xOffset = mPendingXOffset;
1054 + ": " + xOffset + "," + yOffset);
1056 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0;
1059 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels);
/frameworks/base/core/java/android/widget/
H A DToast.java219 public void setGravity(int gravity, int xOffset, int yOffset) { argument
221 mTN.mX = xOffset;

Completed in 1192 milliseconds

12