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

12

/frameworks/base/libs/hwui/tests/common/scenes/
H A DRectGridAnimation.cpp38 for (int xOffset = 0; xOffset < 200; xOffset += 2) {
40 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.h361 : Operation(flags, replaceId, std::numeric_limits<S>::quiet_NaN() /* xOffset */) {
372 Operation(Flag flags, int replaceId, S xOffset) argument
375 , mXOffset(xOffset) {
390 void setXOffset(S xOffset) { argument
391 mXOffset = clamp(xOffset, MIN_CURVE_TIME /* lo */, MAX_CURVE_TIME /* hi */);
398 /* xOffset is the position on the volume curve and may go backwards
405 * If you are reversing, this means the position on the curve, or xOffset,
462 State(T volume, S xOffset) argument
464 , mXOffset(xOffset) {
482 void setXOffset(S xOffset) { argument
615 setDelayXOffset(S xOffset) argument
684 updatePosition(int64_t startFrame, double sampleRate, S xOffset) argument
728 const S xOffset = x; local
871 const S xOffset = operation->getXOffset(); local
[all...]
/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/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/main/java/androidx/appcompat/view/menu/
H A DMenuPopupHelper.java262 private void showPopup(int xOffset, int yOffset, boolean useOffsets, boolean showTitle) { argument
273 xOffset -= mAnchorView.getWidth();
276 popup.setHorizontalOffset(xOffset);
285 final Rect epicenter = new Rect(xOffset - halfSize, yOffset - halfSize,
286 xOffset + halfSize, yOffset + halfSize);
/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.h91 void copyInto(const VertexBuffer& srcBuffer, float xOffset, float yOffset) { argument
98 TYPE::copyWithOffset(&dst[i], src[i], xOffset, yOffset);
/frameworks/base/media/jni/
H A Dandroid_media_VolumeShaper.h186 float xOffset = env->GetFloatField(joperation, fields.opXOffsetId); local
189 new VolumeShaper::Operation(flags, replaceId, xOffset);
208 float xOffset = env->GetFloatField(jstate, fields.stXOffsetId); local
210 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/packages/SystemUI/src/com/android/systemui/
H A DImageWallpaper.java190 public void onOffsetsChanged(float xOffset, float yOffset, argument
194 Log.d(TAG, "onOffsetsChanged: xOffset=" + xOffset + ", yOffset=" + yOffset
199 if (mXOffset != xOffset || mYOffset != yOffset) {
201 Log.d(TAG, "Offsets changed to (" + xOffset + "," + yOffset + ").");
203 mXOffset = xOffset;
/frameworks/base/media/java/android/media/
H A DVolumeShaper.java1176 final float xOffset = p.readFloat();
1181 , xOffset);
1190 private Operation(@Flag int flags, int replaceId, float xOffset) { argument
1193 mXOffset = xOffset;
1293 * Sets the {@code xOffset} to use for the {@code VolumeShaper}.
1295 * The {@code xOffset} is the position on the volume curve,
1298 * @param xOffset a value between (or equal to) 0.f and 1.f, or Float.NaN to ignore.
1300 * @throws IllegalArgumentException if {@code xOffset} is not between 0.f and 1.f,
1303 public @NonNull Builder setXOffset(float xOffset) { argument
1304 if (xOffset <
1400 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;
959 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/base/core/java/android/view/autofill/
H A DAutofillPopupWindow.java248 int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) {
251 outParams.x = xOffset;
258 return super.findDropDownPosition(anchor, outParams, xOffset, yOffset,
247 findDropDownPosition(View anchor, LayoutParams outParams, int xOffset, int yOffset, int width, int height, int gravity, boolean allowScroll) argument
/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/native/libs/input/tests/
H A DStructLayout_test.cpp62 CHECK_OFFSET(InputMessage::Body::Motion, xOffset, 64);
H A DInputPublisherAndConsumer_test.cpp144 const float xOffset = -10; local
171 flags, edgeFlags, metaState, buttonState, xOffset, yOffset, xPrecision, yPrecision,
214 EXPECT_EQ(pointerCoords[i].getAxisValue(AMOTION_EVENT_AXIS_X) + xOffset,
/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.h94 float xOffset; member in struct:android::InputMessage::Body::Motion
243 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.java278 final float xOffset = (width / 2.f) - textBound.centerX();
280 canvas.drawText(index, xOffset, yOffset, paint);
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java535 public void onOffsetsChanged(float xOffset, float yOffset, argument
1102 float xOffset;
1108 xOffset = mPendingXOffset;
1120 + ": " + xOffset + "," + yOffset);
1122 final int xPixels = availw > 0 ? -(int)(availw*xOffset+.5f) : 0;
1125 onOffsetsChanged(xOffset, yOffset, xOffsetStep, yOffsetStep, xPixels, yPixels);

Completed in 556 milliseconds

12