Home
last modified time | relevance | path

Searched refs:mRotation (Results 1 – 19 of 19) 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/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 mDisplayMatrix, mImageBounds, mScreenBounds, mRotation)) { in onDraw()
375 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/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/WallpaperPicker2/src/com/android/wallpaper/widget/
DMaterialProgressDrawable.java126 private float mRotation; field in MaterialProgressDrawable
244 c.rotate(mRotation, bounds.exactCenterX(), bounds.exactCenterY()); in draw()
265 return mRotation; in getRotation()
270 mRotation = rotation; in setRotation()
482 private float mRotation = 0.0f; field in MaterialProgressDrawable.Ring
537 final float startAngle = (mStartTrim + mRotation) * 360; in draw()
538 final float endAngle = (mEndTrim + mRotation) * 360; in draw()
706 return mRotation; in getRotation()
711 mRotation = rotation; in setRotation()
777 mStartingRotation = mRotation; in storeOriginals()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DOrientationTouchTransformer.java392 mActiveTouchRotation = rect.mRotation; in transform()
397 mQuickStepStartingRotation = mLastRectTouched.mRotation; in transform()
429 private int mRotation; field in OrientationTouchTransformer.OrientationRectF
435 this.mRotation = rotation; in OrientationRectF()
443 s += " rotation: " + mRotation; in toString()
456 postDisplayRotation(deltaRotation(mCurrentDisplay.rotation, mRotation), in applyTransform()
462 + "mRotation: " + mRotation in applyTransform()
/packages/apps/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java138 private int mRotation; field in BitmapRegionTileSource.BitmapSource
144 mRotation = getExifRotation(); in loadInBackground()
211 return mRotation; in getRotation()
296 private final int mRotation; field in BitmapRegionTileSource
304 mRotation = source.getRotation(); in BitmapRegionTileSource()
355 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/WallpaperPicker/src/com/android/wallpaperpicker/common/
DCropAndSetWallpaperTask.java50 private int mRotation; field in CropAndSetWallpaperTask
61 mRotation = rotation; in CropAndSetWallpaperTask()
73 mCropBounds, mOutWidth, mOutHeight, mRotation); in cropBitmap()
/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/WallpaperPicker/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/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/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()
694 mRotation = rotation; in updateCameraOrientation()
799 mMediaRecorder = new MmsVideoRecorder(mCamera, mCameraIndex, mRotation, maxMessageSize); in tryInitOrCleanupVideoMode()