/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Transform3dActivity.java | 58 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, float offset [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gle2/ |
SelectionHandle.java | 88 public final int centerY; 97 * @param centerY y coordinate of the center of the selection handle 100 public SelectionHandle(int centerX, int centerY, Position position) { 103 this.centerY = centerY; 120 && point.y >= centerY - distance 121 && point.y <= centerY + distance);
|
/development/samples/ApiDemos/src/com/example/android/apis/animation/ |
Rotate3dAnimation.java | 41 * of X and Y coordinates, called centerX and centerY. When the animation 49 * @param centerY the Y center of the 3D rotation 53 float centerX, float centerY, float depthZ, boolean reverse) { 57 mCenterY = centerY; 74 final float centerY = mCenterY; 89 matrix.preTranslate(-centerX, -centerY); 90 matrix.postTranslate(centerX, centerY);
|
Transition3d.java | 90 final float centerY = mContainer.getHeight() / 2.0f; 95 new Rotate3dAnimation(start, end, centerX, centerY, 310.0f, true); 150 final float centerY = mContainer.getHeight() / 2.0f; 158 rotation = new Rotate3dAnimation(90, 180, centerX, centerY, 310.0f, false); 164 rotation = new Rotate3dAnimation(90, 0, centerX, centerY, 310.0f, false);
|
/frameworks/base/core/java/android/gesture/ |
OrientedBoundingBox.java | 34 public final float centerY; 41 centerY = cy; 62 matrix.postTranslate(centerX, centerY);
|
/development/samples/GlobalTime/src/com/android/globaltime/ |
Annulus.java | 33 * @param centerY the Y coordinate of the center point 47 public Annulus(float centerX, float centerY, float Z, 71 vertices[vidx++] = toFixed(centerY + innerRadius * sinTheta); 75 vertices[vidx++] = toFixed(centerY + outerRadius * sinTheta);
|
LatLongSphere.java | 21 public LatLongSphere(float centerX, float centerY, float centerZ, 73 vertices[vidx++] = toFixed(y * radius + centerY);
|
/system/media/mca/filterpacks/imageproc/java/ |
VignetteFilter.java | 97 float centerY = (float) (0.5 * mHeight); 98 float center[] = {centerX, centerY}; 99 float max_dist = (float) Math.sqrt(centerX * centerX + centerY * centerY);
|
DocumentaryFilter.java | 165 float centerY = (float) (0.5 * mHeight); 166 float center[] = {centerX, centerY}; 167 float max_dist = (float) Math.sqrt(centerX * centerX + centerY * centerY);
|
LomoishFilter.java | 155 float centerY = (float) (0.5 * mHeight); 156 float center[] = {centerX, centerY}; 157 float max_dist = (float) Math.sqrt(centerX * centerX + centerY * centerY);
|
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/actions/ |
RotateView.java | 60 private int centerY; 109 centerY = h / 2; 113 float radius = (float) Math.hypot(centerX, centerY); 115 referenceLine.moveTo(-delta, centerY); 116 referenceLine.lineTo(getWidth() + delta, centerY); 117 delta = radius - centerY; 145 canvas.rotate(-currentRotatedAngle * RADIAN_TO_DEGREE, centerX, centerY); 154 float y = centerY - ev.getY();
|
/packages/apps/Settings/src/com/android/settings/widget/ |
PieChartView.java | 128 final float centerY = getHeight() / 2; 131 mMatrix.postScale(0.665f, 0.95f, centerX, centerY); 132 mMatrix.postRotate(-40, centerX, centerY); 181 slice.path.moveTo(rect.centerX(), rect.centerY()); 183 slice.path.lineTo(rect.centerX(), rect.centerY()); 193 slice.pathSide.moveTo(rect.centerX(), rect.centerY()); 202 slice.pathOutline.moveTo(rect.centerX(), rect.centerY()); 207 slice.pathOutline.moveTo(rect.centerX(), rect.centerY());
|
/cts/tests/src/android/media/cts/ |
FaceView.java | 86 float centerY = eyesMP.y * scale; 89 canvas.drawCircle(centerX, centerY, eyesDistance / 2, mPOuterBullsEye); 90 canvas.drawCircle(centerX, centerY, eyesDistance / 6, mPInnerBullsEye);
|
/frameworks/base/include/ui/ |
VirtualKeyMap.h | 37 int32_t centerY;
|
/external/skia/gm/ |
filltypes.cpp | 33 canvas->translate(r.centerX(), r.centerY()); 35 canvas->translate(-r.centerX(), -r.centerY());
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
TileImageView.java | 190 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { 208 getRange(range, centerX, centerY, mLevel, scale, rotation); 210 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); 216 mOffsetY = Math.round(height / 2f - centerY * scale); 224 getRange(range[i - fromLevel], centerX, centerY, i, rotation); 311 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { 313 && mCenterY == centerY && mScale == scale) return false; 315 mCenterY = centerY; 318 layoutTiles(centerX, centerY, scale, rotation); 371 int centerX = getWidth() / 2, centerY = getHeight() / 2 [all...] |
CropView.java | 152 private boolean setImageViewPosition(int centerX, int centerY, float scale) { 154 int inverseY = mImageHeight - centerY; 158 case 0: return t.setPosition(centerX, centerY, scale, 0); 159 case 90: return t.setPosition(centerY, inverseX, scale, 90); 386 int centerY = Math.round( 399 centerY = Math.round( 401 centerY = Utils.clamp(centerY, limitY, mImageHeight - limitY); 403 centerY = mImageHeight / 2; 406 mTargetY = centerY; [all...] |
SlideshowView.java | 149 float centerY = viewHeight / 2 + mMovingVector.y * mProgress; 151 canvas.translate(centerX, centerY, 0);
|
/external/skia/samplecode/ |
SampleFillType.cpp | 43 canvas->translate(r.centerX(), r.centerY()); 45 canvas->translate(-r.centerX(), -r.centerY());
|
SampleDither.cpp | 30 SkShader* s = SkGradientShader::CreateSweep(r.centerX(), r.centerY(), 36 c->translate(r.centerX(), r.centerY()); 38 c->translate(-r.centerX(), -r.centerY()); 48 SkScalar y = r.centerY();
|
SamplePathClip.cpp | 43 oval.offset(fCenter.fX - oval.centerX(), fCenter.fY - oval.centerY());
|
/frameworks/base/libs/ui/ |
VirtualKeyMap.cpp | 115 && parseNextIntField(&defn.centerY) 125 LOGD("Parsed virtual key: scanCode=%d, centerX=%d, centerY=%d, " 127 defn.scanCode, defn.centerX, defn.centerY, defn.width, defn.height);
|
/frameworks/base/opengl/java/android/opengl/ |
GLU.java | 65 * @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,
|
/frameworks/base/tests/TransformTest/src/com/google/android/test/transform/ |
TransformTestActivity.java | 98 float centerY = detector.getFocusY(); 100 float diffY = centerY - mPosY;
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
FloatingChildLayout.java | 118 final int childTop = target.centerY() - Math.round(childHeight * 0.35f); 155 mChild.setPivotY(mTargetScreen.centerY() - mChild.getTop());
|