Home
last modified time | relevance | path

Searched refs:mRotation (Results 1 – 17 of 17) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterRotateRepresentation.java34 Rotation mRotation; field in FilterRotateRepresentation
86 return mRotation; in getRotation()
90 switch(mRotation) { in rotateCW()
92 mRotation = Rotation.NINETY; in rotateCW()
95 mRotation = Rotation.ONE_EIGHTY; in rotateCW()
98 mRotation = Rotation.TWO_SEVENTY; in rotateCW()
101 mRotation = Rotation.ZERO; in rotateCW()
107 mRotation = r.mRotation; in set()
114 mRotation = rotation; in setRotation()
146 return mRotation == getNil(); in isNil()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DRotateBitmap.java25 private int mRotation; field in RotateBitmap
29 mRotation = 0; in RotateBitmap()
34 mRotation = rotation % 360; in RotateBitmap()
38 mRotation = rotation; in setRotation()
42 return mRotation; in getRotation()
56 if (mRotation != 0) { in getRotateMatrix()
63 matrix.postRotate(mRotation); in getRotateMatrix()
70 return (mRotation / 90) % 2 != 0; in isOrientationChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java592 private int mRotation; field in PhotoView.FullPicture
629 mRotation = getPanoramaRotation(); in updateSize()
631 mRotation = getCameraRotation(); in updateSize()
633 mRotation = mModel.getImageRotation(0); in updateSize()
638 mSize.width = getRotated(mRotation, w, h); in updateSize()
639 mSize.height = getRotated(mRotation, h, w); in updateSize()
758 switch (mRotation) { in setTileViewPosition()
764 throw new RuntimeException(String.valueOf(mRotation)); in setTileViewPosition()
766 mTileView.setPosition(x, y, scale, mRotation); in setTileViewPosition()
772 private int mRotation; field in PhotoView.ScreenNailPicture
[all …]
DTileImageView.java113 protected int mRotation; field in TileImageView
187 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in notifyModelInvalidated()
195 if (changeSize) layoutTiles(mCenterX, mCenterY, mScale, mRotation); in onLayout()
340 if (mRotation % 180 == 0) { in getImageCenter()
356 && mScale == scale && mRotation == rotation) return false; in setPosition()
360 mRotation = rotation; in setPosition()
400 layoutTiles(mCenterX, mCenterY, mScale, mRotation); in prepareTextures()
412 int rotation = mRotation; in render()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java54 private int mRotation = 0; field in CropView
119 || mRotation != rotation) { in initialize()
120 mRotation = rotation; in initialize()
125 mRotation = rotation; in initialize()
192 mRotation = 0; in reset()
233 if (((mRotation < 0) ? -mRotation : mRotation) % 180 == 90) { in applyAspect()
314 mRotation)) { in onDraw()
374 … mScreenCropBounds, mCropObj.isFixedAspect(), decode(mCropObj.getSelectState(), mRotation)); in onDraw()
DCropActivity.java368 int mRotation = 0; field in CropActivity.BitmapIOTask
397 mRotation = (rotation < 0) ? -rotation : rotation; in BitmapIOTask()
398 mRotation %= 360; in BitmapIOTask()
399 mRotation = 90 * (int) (mRotation / 90); // now mRotation is a multiple of 90 in BitmapIOTask()
429 m.setRotate(mRotation); in doInBackground()
449 if (mRotation > 0) { in doInBackground()
451 m.setRotate(mRotation); in doInBackground()
519 if (mRotation > 0) { in doInBackground()
520 m.setRotate(mRotation); in doInBackground()
525 m.preRotate(mRotation); in doInBackground()
[all …]
DCropObject.java29 private float mRotation = 0; field in CropObject
86 mRotation = angle % 360; in rotateOuter()
87 mBoundedRect.setRotation(mRotation); in rotateOuter()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImage.java43 private int mRotation; field in Image
51 mRotation = rotation; in Image()
56 return mRotation; in getDegreesRotated()
60 if (mRotation == degrees) return; in setDegreesRotated()
61 mRotation = degrees; in setDegreesRotated()
63 values.put(ImageColumns.ORIENTATION, mRotation); in setDegreesRotated()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DBitmapCropTask.java58 int mRotation; field in BitmapCropTask
106 mRotation = rotation; in init()
200 if (mRotation > 0) { in cropBitmap()
201 rotateMatrix.setRotate(mRotation); in cropBitmap()
202 inverseRotateMatrix.setRotate(-mRotation); in cropBitmap()
321 if (mOutWidth > 0 && mOutHeight > 0 || mRotation > 0) { in cropBitmap()
336 if (mRotation == 0) { in cropBitmap()
342 m2.setRotate(mRotation); in cropBitmap()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java158 private int mRotation; field in BitmapRegionTileSource.BitmapSource
167 mRotation = ExifInterface.getRotationForOrientationValue(ori.shortValue()); in loadInBackground()
232 return mRotation; in getRotation()
388 private final int mRotation; field in BitmapRegionTileSource
396 mRotation = source.getRotation(); in BitmapRegionTileSource()
446 return mRotation; in getRotation()
/packages/apps/Camera2/src/com/android/camera/
DCaptureLayoutHelper.java53 private int mRotation = 0; field in CaptureLayoutHelper
109 mRotation); in updatePositionConfiguration()
180 if (mRotation >= 180) { in getUncoveredPreviewRect()
193 if (mRotation >= 180) { in getUncoveredPreviewRect()
227 mRotation = rotation; in onNonDecorWindowSizeChanged()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java112 protected int mRotation; field in TiledImageRenderer
197 if (mRotation != rotation) { in setModel()
198 mRotation = rotation; in setModel()
278 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
294 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
298 if (mRotation % 90 != 0) { in layoutTiles()
422 int rotation = mRotation; in draw()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java111 protected int mRotation; field in TiledImageRenderer
196 if (mRotation != rotation) { in setModel()
197 mRotation = rotation; in setModel()
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
293 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
297 if (mRotation % 90 != 0) { in layoutTiles()
421 int rotation = mRotation; in draw()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DUriImage.java57 private int mRotation; field in UriImage
102 mRotation = Exif.getOrientation(is); in openOrDownloadInner()
124 mRotation = Exif.getOrientation(is); in openOrDownloadInner()
296 return mRotation; in getRotation()
/packages/apps/Gallery2/src/com/android/photos/shims/
DBitmapJobDrawable.java43 private int mRotation = 0; field in BitmapJobDrawable
63 mRotation = mItem.getRotation(); in setMediaItem()
90 canvas.rotate(mRotation, bounds.centerX(), bounds.centerY()); in draw()
/packages/apps/Gallery2/src/com/android/photos/
DBitmapRegionTileSource.java59 private final int mRotation; field in BitmapRegionTileSource
69 mRotation = rotation; in BitmapRegionTileSource()
121 return mRotation; in getRotation()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java198 private int mRotation; field in CameraManager
563 if (mRotation == 90 || mRotation == 270) { in takePicture()
693 mRotation = rotation; in updateCameraOrientation()
798 mMediaRecorder = new MmsVideoRecorder(mCamera, mCameraIndex, mRotation, maxMessageSize); in tryInitOrCleanupVideoMode()