/packages/wallpapers/Basic/res/raw/ |
D | fall.rs | 155 float matrix[16]; 163 matrixLoadIdentity(matrix); 165 matrixTranslate(matrix, x - State->xOffset * 2, y, tz); 167 matrixTranslate(matrix, x, y, tz); 168 matrixRotate(matrix, 90.0f, 0.0f, 0.0f, 1.0f); 173 matrixScale(matrix, s, s, 1.0f); 174 matrixRotate(matrix, r, 0.0f, 0.0f, 1.0f); 175 vpLoadModelMatrix(matrix); 187 matrixLoadIdentity(matrix); 189 matrixTranslate(matrix, x - State->xOffset * 2, y, tz); [all …]
|
D | distort.rs | 326 float matrix[16]; 332 matrixLoadRotate(matrix, 90.0f, 0.0f, 0.0f, 1.0f); 334 matrixLoadIdentity(matrix); 336 matrixTranslate(matrix, x, y, 0.0f); 337 matrixScale(matrix, s, s, 1.0f); 338 matrixRotate(matrix, r, 0.0f, 0.0f, 1.0f); 339 vpLoadModelMatrix(matrix); 354 matrixLoadRotate(matrix, 90.0f, 0.0f, 0.0f, 1.0f); 356 matrixLoadIdentity(matrix); 358 matrixTranslate(matrix, x, y, tz); [all …]
|
D | nexus.rs | 135 float matrix[16]; 148 matrixLoadIdentity(matrix); 150 vpLoadTextureMatrix(matrix); 167 vpLoadTextureMatrix(matrix); 183 vpLoadTextureMatrix(matrix); 200 vpLoadTextureMatrix(matrix); 220 matrixLoadIdentity(matrix); 221 vpLoadTextureMatrix(matrix); 279 float matrix[16]; 280 matrixLoadIdentity(matrix); [all …]
|
D | galaxy.rs | 149 float matrix[16]; 150 matrixLoadTranslate(matrix, 0.0f, 0.0f, 10.0f - 6.0f * absoluteAngle / 50.0f); 152 matrixScale(matrix, 6.6f, 6.0f, 1.0f); 154 matrixScale(matrix, 12.6f, 12.0f, 1.0f); 156 matrixRotate(matrix, absoluteAngle, 1.0f, 0.0f, 0.0f); 157 matrixRotate(matrix, a, 0.0f, 0.4f, 0.1f); 158 vpLoadModelMatrix(matrix);
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
D | RotateBitmap.java | 55 Matrix matrix = new Matrix(); in getRotateMatrix() local 62 matrix.preTranslate(-cx, -cy); in getRotateMatrix() 63 matrix.postRotate(mRotation); in getRotateMatrix() 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix() 66 return matrix; in getRotateMatrix()
|
D | ImageViewTouchBase.java | 229 protected float getValue(Matrix matrix, int whichValue) { in getValue() argument 230 matrix.getValues(mMatrixValues); in getValue() 235 protected float getScale(Matrix matrix) { in getScale() argument 236 return getValue(matrix, Matrix.MSCALE_X); in getScale() 244 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) { in getProperBaseMatrix() argument 250 matrix.reset(); in getProperBaseMatrix() 258 matrix.postConcat(bitmap.getRotateMatrix()); in getProperBaseMatrix() 259 matrix.postScale(scale, scale); in getProperBaseMatrix() 261 matrix.postTranslate((viewWidth - w * scale) / 2F, (viewHeight - h * scale) / 2F); in getProperBaseMatrix()
|
D | GridQuad.java | 228 MatrixStack matrix = mMatrix; in set() local 229 if (matrix != null) { in set() 231 matrix.glLoadIdentity(); in set() 232 matrix.glTranslatef(0.5f, 0.5f, 0.0f); in set() 237 matrix.glRotatef(-orientationId, 0.0f, 0.0f, 1.0f); in set() 238 matrix.glScalef(scale, scale, 1.0f); in set() 239 matrix.glTranslatef(-0.5f + (float) (sini * 0.125f / scale), -0.5f in set() 248 matrix.apply(mCoordsIn, mCoordsOut); in set()
|
D | Util.java | 151 Matrix matrix = new Matrix(); in extractMiniThumb() local 152 matrix.setScale(scale, scale); in extractMiniThumb() 153 Bitmap miniThumbnail = transform(matrix, source, width, height, false); in extractMiniThumb()
|
D | CropImage.java | 625 Matrix matrix = new Matrix(); 626 matrix.setScale(mScale, mScale); 627 …Bitmap = Bitmap.createBitmap(mBitmap, 0, 0, mBitmap.getWidth(), mBitmap.getHeight(), matrix, true);
|
/packages/apps/Gallery/src/com/android/camera/ |
D | RotateBitmap.java | 55 Matrix matrix = new Matrix(); in getRotateMatrix() local 62 matrix.preTranslate(-cx, -cy); in getRotateMatrix() 63 matrix.postRotate(mRotation); in getRotateMatrix() 64 matrix.postTranslate(getWidth() / 2, getHeight() / 2); in getRotateMatrix() 66 return matrix; in getRotateMatrix()
|
D | ImageViewTouchBase.java | 244 protected float getValue(Matrix matrix, int whichValue) { in getValue() argument 245 matrix.getValues(mMatrixValues); in getValue() 250 protected float getScale(Matrix matrix) { in getScale() argument 251 return getValue(matrix, Matrix.MSCALE_X); in getScale() 259 private void getProperBaseMatrix(RotateBitmap bitmap, Matrix matrix) { in getProperBaseMatrix() argument 265 matrix.reset(); in getProperBaseMatrix() 273 matrix.postConcat(bitmap.getRotateMatrix()); in getProperBaseMatrix() 274 matrix.postScale(scale, scale); in getProperBaseMatrix() 276 matrix.postTranslate( in getProperBaseMatrix()
|
D | CropImage.java | 508 Matrix matrix = new Matrix(); 509 matrix.setScale(mScale, mScale); 511 .getWidth(), mBitmap.getHeight(), matrix, true);
|
/packages/apps/Camera/src/com/android/camera/ui/ |
D | GLRootView.java | 299 Matrix matrix = mTransformation.getMatrix(); in onSurfaceChanged() local 300 matrix.reset(); in onSurfaceChanged() 301 matrix.preTranslate(0, getHeight()); in onSurfaceChanged() 302 matrix.preScale(1, -1); in onSurfaceChanged() 321 float matrix[] = mMatrixValues; in drawRect() local 322 mTransformation.getMatrix().getValues(matrix); in drawRect() 323 drawRect(x, y, width, height, matrix); in drawRect() 340 int x, int y, int width, int height, float matrix[]) { in drawRect() argument 343 gl.glMultMatrixf(toGLMatrix(matrix), 0); in drawRect() 374 Matrix matrix = mTransformation.getMatrix(); in drawNinePatch() local [all …]
|
D | RotatePane.java | 78 Matrix matrix = view.getTransformation().getMatrix(); in render() local 83 matrix.preRotate(180, width / 2, height / 2); in render() 86 matrix.preRotate(270, height / 2, height / 2); in render() 89 matrix.preRotate(90, width / 2, width / 2); in render()
|
D | AbstractIndicator.java | 55 Matrix matrix = trans.getMatrix(); in render() local 56 matrix.preTranslate(p.left + width / 2, p.top + height / 2); in render() 57 matrix.preRotate(-mOrientation); in render()
|
D | GLView.java | 209 Matrix matrix = transform.getMatrix(); in renderChild() local 210 matrix.preTranslate(xoffset, yoffset); in renderChild() 226 matrix.preTranslate(-xoffset, -yoffset); in renderChild()
|
/packages/apps/Music/src/com/android/music/ |
D | MusicUtils.java | 1298 Matrix matrix = new Matrix(); in setBackground() local 1299 matrix.setTranslate(-bwidth/2, -bheight/2); // move bitmap center to origin in setBackground() 1300 matrix.postRotate(10); in setBackground() 1301 matrix.postScale(scale, scale); in setBackground() 1302 matrix.postTranslate(vwidth/2, vheight/2); // Move bitmap center to view center in setBackground() 1303 c.drawBitmap(bm, matrix, paint); in setBackground()
|