/packages/apps/Gallery/src/com/android/camera/ |
H A D | RotateBitmap.java | 32 public RotateBitmap(Bitmap bitmap, int rotation) { argument 34 mRotation = rotation % 360; 37 public void setRotation(int rotation) { argument 38 mRotation = rotation; 57 // We want to do the rotation at origin, but since the bounding 58 // rectangle will be changed after rotation, so the delta values
|
H A D | ImageViewTouchBase.java | 124 private void setImageBitmap(Bitmap bitmap, int rotation) { argument 133 mBitmapDisplayed.setRotation(rotation);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
H A D | LocalImage.java | 83 public int rotation; field in class:LocalImage 119 rotation = cursor.getInt(INDEX_ORIENTATION); 141 rotation = uh.update(rotation, cursor.getInt(INDEX_ORIENTATION)); 257 int rotation = (this.rotation + degrees) % 360; 258 if (rotation < 0) rotation += 360; 264 getExifOrientation(rotation)); 275 values.put(Images.Media.ORIENTATION, rotation); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/ |
H A D | WidgetUtils.java | 57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation) { argument 62 if (((rotation / 90) & 1) == 0) { 74 canvas.rotate(rotation);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | AbstractSlotRenderer.java | 42 Texture content, int width, int height, int rotation) { 45 if (rotation != 0) { 47 canvas.rotate(rotation, 0, 0, 1); 49 if (((rotation % 90) & 1) != 0) { 41 drawContent(GLCanvas canvas, Texture content, int width, int height, int rotation) argument
|
H A D | SlideshowView.java | 52 public void next(Bitmap bitmap, int rotation) { argument 65 mCurrentRotation = rotation; 67 if (((rotation / 90) & 0x01) == 0) {
|
H A D | TileImageView.java | 194 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { argument 212 getRange(range, centerX, centerY, mLevel, scale, rotation); 228 getRange(range[i - fromLevel], centerX, centerY, i, rotation); 231 // If rotation is transient, don't update the tile. 232 if (rotation % 90 != 0) return; 279 private void getRange(Rect out, int cX, int cY, int level, int rotation) { argument 280 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); 290 int cX, int cY, int level, float scale, int rotation) { 292 double radians = Math.toRadians(-rotation); 342 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { argument 289 getRange(Rect out, int cX, int cY, int level, float scale, int rotation) argument [all...] |
H A D | CropView.java | 158 int rotation = mImageRotation; 159 switch (rotation) { 164 default: throw new IllegalArgumentException(String.valueOf(rotation)); 742 public void setDataModel(TileImageView.Model dataModel, int rotation) { argument 743 if (((rotation / 90) & 0x01) != 0) { 751 mImageRotation = rotation; 758 int rotation = mImageRotation; 765 if (((rotation / 90) & 1) == 0) { 770 canvas.rotate(rotation, w / 2, h / 2); 779 canvas.rotate(rotation); [all...] |
H A D | AlbumSlotRenderer.java | 116 drawContent(canvas, content, width, height, entry.rotation);
|
H A D | AlbumSlidingWindow.java | 48 public int rotation; field in class:AlbumSlidingWindow.AlbumEntry 252 entry.rotation = (item == null) ? 0 : item.getRotation();
|
H A D | AlbumSetSlotRenderer.java | 154 drawContent(canvas, content, width, height, entry.rotation);
|
H A D | AlbumSetSlidingWindow.java | 81 public int rotation; field in class:AlbumSetSlidingWindow.AlbumSetEntry 274 entry.rotation = (cover == null) ? 0 : cover.getRotation();
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | DrmImageList.java | 63 String title, int rotation) { 65 mimeType, dateTaken, title, rotation); 60 DrmImage(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, long miniThumbMagic, String mimeType, long dateTaken, String title, int rotation) argument
|
H A D | Image.java | 48 int rotation) { 51 mRotation = rotation; 45 Image(BaseImageList container, ContentResolver cr, long id, int index, Uri uri, String dataPath, String mimeType, long dateTaken, String title, int rotation) argument
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 117 int rotation = getWindowManager().getDefaultDisplay().getRotation(); 119 switch (rotation) { 401 int rotation = setDisplayOrentationAngles.get(i); 402 if (rotation == -1) { 403 rotation = getAutoDisplayOrientation(mDisplayOrientation, 406 publishProgress("setDisplayOrientation to " + rotation); 408 camera.setDisplayOrientation(rotation);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | OrientationManager.java | 200 int rotation = activity.getWindowManager().getDefaultDisplay() 202 switch (rotation) {
|
H A D | CropImage.java | 606 int rotation = mMediaItem.getFullImageRotation(); 608 mCropView.getImageHeight(), 360 - rotation); 609 rotateRectangle(dest, outputX, outputY, 360 - rotation); 619 // 3. No rotation 623 && rotation == 0) { 632 rotateCanvas(canvas, outputX, outputY, rotation); 636 int rotation = mMediaItem.getRotation(); 638 mCropView.getImageHeight(), 360 - rotation); 639 rotateRectangle(dest, outputX, outputY, 360 - rotation); 642 rotateCanvas(canvas, outputX, outputY, rotation); 649 rotateCanvas( Canvas canvas, int width, int height, int rotation) argument 660 rotateRectangle( Rect rect, int width, int height, int rotation) argument [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
H A D | BitmapUtils.java | 179 public static Bitmap rotateBitmap(Bitmap source, int rotation, boolean recycle) { argument 180 if (rotation == 0) return source; 184 m.postRotate(rotation);
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | Util.java | 109 // horizontal flip + rotation = -rotation + horizontal flip 313 int rotation = activity.getWindowManager().getDefaultDisplay() 315 switch (rotation) { 623 int rotation = 0; 627 rotation = (info.orientation - orientation + 360) % 360; 629 rotation = (info.orientation + orientation) % 360; 632 return rotation;
|
H A D | VideoCamera.java | 194 // The display rotation in degrees. This is only valid when mPreviewing is 245 // Restart the preview if display rotation has changed. 248 // take some time and the rotation value we have got may be 489 // When the screen is unlocked, display rotation may change. Always 1153 int rotation = 0; 1157 rotation = (info.orientation - mOrientation + 360) % 360; 1159 rotation = (info.orientation + mOrientation) % 360; 1162 mMediaRecorder.setOrientationHint(rotation); 2366 // Set rotation and gps data. 2367 int rotation [all...] |
H A D | Camera.java | 197 // The display rotation in degrees. This is only valid when mCameraState is 329 // Set the display orientation if display rotation has changed. 332 // take some time and the rotation value we have got may be 1061 long dateTaken, int width, int height, int rotation) { 1062 if (rotation % 180 != 0) { 1164 // Set rotation and gps data. 1339 // When the screen is unlocked, display rotation may change. Always 1060 prepareUri(ContentResolver resolver, long dateTaken, int width, int height, int rotation) argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Util.java | 124 // horizontal flip + rotation = -rotation + horizontal flip 327 int rotation = activity.getWindowManager().getDefaultDisplay() 329 switch (rotation) { 621 int rotation = 0; 625 rotation = (info.orientation - orientation + 360) % 360; 627 rotation = (info.orientation + orientation) % 360; 630 parameters.setRotation(rotation);
|
H A D | VideoCamera.java | 230 // The display rotation in degrees. This is only valid when mPreviewing is 293 // Restart the preview if display rotation has changed. 296 // take some time and the rotation value we have got may be 553 // When the screen is unlocked, display rotation may change. Always 1099 // already started. Also restart the preview if display rotation has 1102 // display rotation in onCreate may not be what we want. 1248 int rotation = 0; 1252 rotation = (info.orientation - mOrientation + 360) % 360; 1254 rotation = (info.orientation + mOrientation) % 360; 1257 mMediaRecorder.setOrientationHint(rotation); [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | Workspace.java | 78 // Y rotation to apply to the workspace screens 1272 float rotation = - WORKSPACE_OVERSCROLL_ROTATION * scrollProgress; 1273 cl.setRotationY(rotation);
|