/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
Transform3dActivity.java | 57 final float centerX = getWidth() / 2.0f - mBitmap1.getWidth() / 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 | 86 public final int centerX; 96 * @param centerX the x coordinate of the center of the selection handle 100 public SelectionHandle(int centerX, int centerY, Position position) { 102 this.centerX = centerX; 118 return (point.x >= centerX - distance 119 && point.x <= centerX + 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 48 * @param centerX the X center of the 3D rotation 53 float centerX, float centerY, float depthZ, boolean reverse) { 56 mCenterX = centerX; 73 final float centerX = mCenterX; 89 matrix.preTranslate(-centerX, -centerY); 90 matrix.postTranslate(centerX, centerY);
|
Transition3d.java | 89 final float centerX = mContainer.getWidth() / 2.0f; 95 new Rotate3dAnimation(start, end, centerX, centerY, 310.0f, true); 149 final float centerX = mContainer.getWidth() / 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 | 33 public final float centerX; 40 centerX = cx; 62 matrix.postTranslate(centerX, centerY);
|
/development/samples/GlobalTime/src/com/android/globaltime/ |
Annulus.java | 32 * @param centerX the X coordinate of the center point 47 public Annulus(float centerX, float centerY, float Z, 70 vertices[vidx++] = toFixed(centerX + innerRadius * cosTheta); 74 vertices[vidx++] = toFixed(centerX + outerRadius * cosTheta);
|
LatLongSphere.java | 21 public LatLongSphere(float centerX, float centerY, float centerZ, 72 vertices[vidx++] = toFixed(x * radius + centerX);
|
/system/media/mca/filterpacks/imageproc/java/ |
VignetteFilter.java | 96 float centerX = (float) (0.5 * mWidth); 98 float center[] = {centerX, centerY}; 99 float max_dist = (float) Math.sqrt(centerX * centerX + centerY * centerY);
|
DocumentaryFilter.java | 164 float centerX = (float) (0.5 * mWidth); 166 float center[] = {centerX, centerY}; 167 float max_dist = (float) Math.sqrt(centerX * centerX + centerY * centerY);
|
LomoishFilter.java | 154 float centerX = (float) (0.5 * mWidth); 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 | 59 private int centerX; 108 centerX = w / 2; 113 float radius = (float) Math.hypot(centerX, centerY); 114 float delta = radius - centerX; 118 referenceLine.moveTo(centerX, -delta); 119 referenceLine.lineTo(centerX, getHeight() + delta); 145 canvas.rotate(-currentRotatedAngle * RADIAN_TO_DEGREE, centerX, centerY); 153 float x = ev.getX() - centerX;
|
/packages/apps/Settings/src/com/android/settings/widget/ |
PieChartView.java | 127 final float centerX = getWidth() / 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 | 85 float centerX = eyesMP.x * scale; 89 canvas.drawCircle(centerX, centerY, eyesDistance / 2, mPOuterBullsEye); 90 canvas.drawCircle(centerX, centerY, eyesDistance / 6, mPInnerBullsEye);
|
/frameworks/base/include/ui/ |
VirtualKeyMap.h | 36 int32_t centerX;
|
/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); 209 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); 215 mOffsetX = Math.round(width / 2f - centerX * scale); 224 getRange(range[i - fromLevel], centerX, centerY, i, rotation); 311 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { 312 if (mCenterX == centerX 314 mCenterX = centerX; 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) { 153 int inverseX = mImageWidth - centerX; 158 case 0: return t.setPosition(centerX, centerY, scale, 0); 161 case 270: return t.setPosition(inverseY, centerX, scale, 270); 384 int centerX = Math.round( 391 centerX = Math.round( 393 centerX = Utils.clamp(centerX, limitX, mImageWidth - limitX); 395 centerX = mImageWidth / 2; 405 mTargetX = centerX; [all...] |
SlideshowView.java | 148 float centerX = viewWidth / 2 + mMovingVector.x * 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()); 47 SkScalar x = r.centerX();
|
SamplePathClip.cpp | 43 oval.offset(fCenter.fX - oval.centerX(), fCenter.fY - oval.centerY());
|
/frameworks/base/libs/ui/ |
VirtualKeyMap.cpp | 114 && parseNextIntField(&defn.centerX) 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 | 64 * @param centerX center of view X 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 | 97 float centerX = detector.getFocusX(); 99 float diffX = centerX - mPosX;
|
/packages/apps/Contacts/src/com/android/contacts/quickcontact/ |
FloatingChildLayout.java | 116 final int childLeft = target.centerX() - (childWidth / 2); 154 mChild.setPivotX(mTargetScreen.centerX() - mChild.getLeft());
|