Searched refs:centerY (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DTransform3dActivity.java58 final float centerY = getHeight() / 2.0f - mBitmap1.getHeight() / 2.0f;
63 rotate(centerX, centerY, camera, matrix, 32.0f);
64 drawBitmap(canvas, centerX, centerY, 0.0f, matrix);
66 rotate(centerX, centerY, camera, matrix, 12.0f);
67 drawBitmap(canvas, centerX, centerY, -mBitmap1.getWidth(), matrix);
69 rotate(centerX, centerY, camera, matrix, 52.0f);
70 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth(), matrix);
72 rotate(centerX, centerY, camera, matrix, 122.0f);
73 drawBitmap(canvas, centerX, centerY, mBitmap1.getWidth() * 2.0f, matrix);
77 private void drawBitmap(Canvas canvas, float centerX, float centerY, floa argument
86 rotate(float centerX, float centerY, Camera camera, Matrix matrix, float angle) argument
[all...]
/frameworks/base/core/java/android/gesture/
H A DOrientedBoundingBox.java34 public final float centerY; field in class:OrientedBoundingBox
41 centerY = cy;
62 matrix.postTranslate(centerX, centerY);
H A DGestureUtils.java131 float preDy = -rect.centerY();
332 float centerY = 0;
337 centerY += points[i];
341 center[1] = 2 * centerY / count;
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiObject.java198 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(),
199 dstRect.centerX(), dstRect.centerY(), steps, true);
217 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY,
299 rect.centerY(), rect.left + SWIPE_MARGIN_LIMIT, rect.centerY(), steps);
326 rect.centerY(), rect.right - SWIPE_MARGIN_LIMIT, rect.centerY(), steps);
395 return getInteractionController().clickAndSync(rect.centerX(), rect.centerY(),
435 return getInteractionController().clickAndWaitForNewWindow(rect.centerX(), rect.centerY(),
504 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY());
[all...]
H A DUiScrollable.java440 downY = rect.centerY();
442 upY = rect.centerY();
521 downY = rect.centerY();
523 upY = rect.centerY();
/frameworks/uiautomator/src/com/android/uiautomator/core/
H A DUiObject.java198 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(),
199 dstRect.centerX(), dstRect.centerY(), steps, true);
217 return getInteractionController().swipe(srcRect.centerX(), srcRect.centerY(), destX, destY,
299 rect.centerY(), rect.left + SWIPE_MARGIN_LIMIT, rect.centerY(), steps);
326 rect.centerY(), rect.right - SWIPE_MARGIN_LIMIT, rect.centerY(), steps);
395 return getInteractionController().clickAndSync(rect.centerX(), rect.centerY(),
435 return getInteractionController().clickAndWaitForNewWindow(rect.centerX(), rect.centerY(),
504 return getInteractionController().longTapNoSync(rect.centerX(), rect.centerY());
[all...]
H A DUiScrollable.java440 downY = rect.centerY();
442 upY = rect.centerY();
521 downY = rect.centerY();
523 upY = rect.centerY();
/frameworks/native/include/input/
H A DVirtualKeyMap.h37 int32_t centerY; member in struct:android::VirtualKeyDefinition
/frameworks/native/libs/input/
H A DVirtualKeyMap.cpp116 && parseNextIntField(&defn.centerY)
126 ALOGD("Parsed virtual key: scanCode=%d, centerX=%d, centerY=%d, "
128 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height);
/frameworks/base/packages/WallpaperCropper/src/com/android/wallpapercropper/
H A DCropView.java103 float centerY = (height / 2f - rendererCenter[1] + (imageHeight - height) / 2f)
107 float topEdge = centerY - imageHeight / 2f * scale;
108 float bottomEdge = centerY + imageHeight / 2f * scale;
140 mCenterY = mRenderer.centerY;
211 mRenderer.centerY = Math.round(mCenterY);
/frameworks/base/opengl/java/android/opengl/
H A DGLU.java65 * @param centerY center of view Y
72 float centerX, float centerY, float centerZ, float upX, float upY,
77 Matrix.setLookAtM(scratch, 0, eyeX, eyeY, eyeZ, centerX, centerY, centerZ,
71 gluLookAt(GL10 gl, float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) argument
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/
H A DTransformTestActivity.java98 float centerY = detector.getFocusY();
100 float diffY = centerY - mPosY;
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
H A DTiledImageView.java65 public int centerX, centerY; field in class:TiledImageView.ImageRendererWrapper
160 mRenderer.centerY = source != null ? source.getImageHeight() / 2 : 0;
276 mRenderer.centerY = swap ? cx : cy;
305 mRenderer.image.setPosition(mRenderer.centerX, mRenderer.centerY,
H A DTiledImageRenderer.java240 public void setPosition(int centerX, int centerY, float scale) { argument
241 if (mCenterX == centerX && mCenterY == centerY
246 mCenterY = centerY;
430 int centerX = mViewWidth / 2, centerY = mViewHeight / 2;
431 canvas.translate(centerX, centerY);
433 canvas.translate(-centerX, -centerY);
/frameworks/base/services/java/com/android/server/accessibility/
H A DScreenMagnifier.java240 final float centerY = (-spec.offsetY + magnifiedFrame.height() / 2) / scale;
242 centerY, false);
1035 final float centerY = normPivotY + offsetY;
1036 setScaleAndMagnifiedRegionCenter(scale, centerX, centerY, animate);
1039 public void setMagnifiedRegionCenter(float centerX, float centerY, boolean animate) { argument
1040 setScaleAndMagnifiedRegionCenter(mCurrentMagnificationSpec.scale, centerX, centerY,
1054 public void setScaleAndMagnifiedRegionCenter(float scale, float centerX, float centerY, argument
1060 centerY) == 0) {
1068 + " offsetY: " + centerY);
1070 updateMagnificationSpec(scale, centerX, centerY);
[all...]
H A DTouchExplorer.java1164 clickLocationY = focusBounds.centerY();
1183 clickLocationY = focusBounds.centerY();
1337 clickLocationY = focusBounds.centerY();
1356 clickLocationY = focusBounds.centerY();
/frameworks/uiautomator/tests/CtsUiAutomatorTest/src/com/android/uiautomator/tests/cts/
H A DCtsUiAutomatorTest.java327 UiDevice.getInstance().swipe(tb.right - 20, tb.centerY(), tb.left + 20, tb.centerY(), 50);
801 assertTrue("Pinch must be in center of target view", p2s.y == screenRect.centerY());
855 assertTrue("Pinch must be in center of target view", p2s.y == screenRect.centerY());
901 withinMarginOfError(0.05f, imageButtonRect.centerY(), p1s.y));
905 withinMarginOfError(0.05f, starsBarRect.centerY(), p1e.y));
922 imageButton.dragTo(starsBarRect.centerX(), starsBarRect.centerY(), 30);
938 withinMarginOfError(0.05f, imageButtonRect.centerY(), p1s.y));
942 withinMarginOfError(0.05f, starsBarRect.centerY(), p1e.y));
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp25 float centerX, float centerY, float centerZ, float upX, float upY,
32 float fy = centerY - eyeY;
24 gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) argument
/frameworks/native/opengl/tests/tritex/
H A Dtritex.cpp36 float centerX, float centerY, float centerZ, float upX, float upY,
43 float fy = centerY - eyeY;
35 gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) argument
/frameworks/base/core/java/com/android/internal/widget/multiwaveview/
H A DGlowPadView.java1149 private void updateTargetPosition(int i, float centerX, float centerY) { argument
1151 updateTargetPosition(i, centerX, centerY, angle);
1154 private void updateTargetPosition(int i, float centerX, float centerY, float angle) { argument
1161 targetIcon.setPositionY(centerY);
1167 private void updateTargetPositions(float centerX, float centerY) { argument
1168 updateTargetPositions(centerX, centerY, false);
1171 private void updateTargetPositions(float centerX, float centerY, boolean skipActive) { argument
1177 updateTargetPosition(i, centerX, centerY, getAngle(alpha, i));
1190 private void updatePointCloudPosition(float centerX, float centerY) { argument
1191 mPointCloud.setCenter(centerX, centerY);
[all...]
H A DMultiWaveView.java1043 private void updateTargetPositions(float centerX, float centerY) { argument
1052 targetIcon.setPositionY(centerY);
1058 private void updateChevronPositions(float centerX, float centerY) { argument
1065 target.setPositionY(centerY);
/frameworks/native/opengl/tests/gl_basic/
H A Dgl_basic.cpp39 float centerX, float centerY, float centerZ, float upX, float upY,
46 float fy = centerY - eyeY;
38 gluLookAt(float eyeX, float eyeY, float eyeZ, float centerX, float centerY, float centerZ, float upX, float upY, float upZ) argument
/frameworks/base/core/java/com/android/internal/widget/
H A DLockPatternView.java833 final float centerY = getCenterYForRow(currentCell.row);
839 (getCenterYForRow(nextCell.row) - centerY);
841 mInProgressY = centerY + dy;
862 //float centerY = mPaddingTop + i * mSquareHeight + (mSquareHeight / 2);
912 float centerY = getCenterYForRow(cell.row);
914 currentPath.moveTo(centerX, centerY);
916 currentPath.lineTo(centerX, centerY);
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
H A DPhotoView.java822 * @param centerY the center vertical point around which to scale
824 private void scale(float newScale, float centerX, float centerY) { argument
836 mMatrix.postScale(factor, factor, centerX, centerY);
1043 public boolean start(float startScale, float targetScale, float centerX, float centerY) { argument
1049 mCenterY = centerY;
/frameworks/base/graphics/java/android/graphics/
H A DRectF.java177 public final float centerY() { method in class:RectF

Completed in 512 milliseconds

12