Home
last modified time | relevance | path

Searched refs:rotation (Results 1 – 25 of 76) sorted by relevance

1234

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java49 public Rotation rotation = FilterRotateRepresentation.getNil(); field in GeometryMathUtils.GeometryHolder
55 rotation = h.rotation; in set()
62 rotation = FilterRotateRepresentation.getNil(); in wipe()
69 return rotation == FilterRotateRepresentation.getNil() && in isNil()
84 return rotation == h.rotation && straighten == h.straighten && in equals()
91 return getClass().getSimpleName() + "[" + "rotation:" + rotation.value() in toString()
220 if (holder.rotation.value() == 90 in concatMirrorMatrix()
221 || holder.rotation.value() == 270) { in concatMirrorMatrix()
225 if (holder.rotation.value() == 90 in concatMirrorMatrix()
226 || holder.rotation.value() == 270) { in concatMirrorMatrix()
[all …]
/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DInCallOrientationEventListener.java81 public void onOrientationChanged(int rotation) { in onOrientationChanged() argument
82 if (rotation == OrientationEventListener.ORIENTATION_UNKNOWN) { in onOrientationChanged()
86 final int orientation = toScreenOrientation(rotation); in onOrientationChanged()
119 private int toScreenOrientation(int rotation) { in toScreenOrientation() argument
123 if (isInLeftRange(rotation, SCREEN_ORIENTATION_360, ROTATION_THRESHOLD) || in toScreenOrientation()
124 isInRightRange(rotation, SCREEN_ORIENTATION_0, ROTATION_THRESHOLD)) { in toScreenOrientation()
126 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_90, ROTATION_THRESHOLD)) { in toScreenOrientation()
128 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_180, ROTATION_THRESHOLD)) { in toScreenOrientation()
130 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_270, ROTATION_THRESHOLD)) { in toScreenOrientation()
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DLocalImage.java103 public int rotation; field in LocalImage
143 rotation = cursor.getInt(INDEX_ORIENTATION); in loadFromCursor()
165 rotation = uh.update(rotation, cursor.getInt(INDEX_ORIENTATION)); in updateFromCursor()
280 int rotation = (this.rotation + degrees) % 360; in rotate() local
281 if (rotation < 0) rotation += 360; in rotate()
286 ExifInterface.getOrientationValueForRotation(rotation)); in rotate()
303 values.put(Images.Media.ORIENTATION, rotation); in rotate()
322 details.addDetail(MediaDetails.INDEX_ORIENTATION, Integer.valueOf(rotation)); in getDetails()
333 return rotation; in getRotation()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/views/
DTiledImageView.java55 public int rotation; field in TiledImageView.ImageRendererWrapper
122 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource()
176 final int rotation = mRenderer.source.getRotation(); in positionFromMatrix() local
177 final boolean swap = !(rotation % 180 == 0); in positionFromMatrix()
190 if (rotation == 90 || rotation == 180) { in positionFromMatrix()
195 if (rotation == 180 || rotation == 270) { in positionFromMatrix()
215 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated()
230 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
DTiledImageRenderer.java192 public void setModel(TileSource model, int rotation) { in setModel() argument
197 if (mRotation != rotation) { in setModel()
198 mRotation = rotation; in setModel()
350 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument
351 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange()
361 int cX, int cY, int level, float scale, int rotation) { in getRange() argument
363 double radians = Math.toRadians(-rotation); in getRange()
422 int rotation = mRotation; in draw() local
424 if (rotation != 0) { in draw()
430 if (rotation != 0) { in draw()
[all …]
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageView.java66 int rotation; field in TiledImageView.ImageRendererWrapper
161 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource()
250 final int rotation = mRenderer.source.getRotation(); in positionFromMatrix() local
251 final boolean swap = !(rotation % 180 == 0); in positionFromMatrix()
264 if (rotation == 90 || rotation == 180) { in positionFromMatrix()
269 if (rotation == 180 || rotation == 270) { in positionFromMatrix()
289 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated()
304 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
DTiledImageRenderer.java191 public void setModel(TileSource model, int rotation) { in setModel() argument
196 if (mRotation != rotation) { in setModel()
197 mRotation = rotation; in setModel()
349 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument
350 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange()
360 int cX, int cY, int level, float scale, int rotation) { in getRange() argument
362 double radians = Math.toRadians(-rotation); in getRange()
421 int rotation = mRotation; in draw() local
423 if (rotation != 0) { in draw()
429 if (rotation != 0) { in draw()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DTileImageView.java205 private void layoutTiles(int centerX, int centerY, float scale, int rotation) { in layoutTiles() argument
223 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles()
239 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles()
243 if (rotation % 90 != 0) return; in layoutTiles()
291 private void getRange(Rect out, int cX, int cY, int level, int rotation) { in getRange() argument
292 getRange(out, cX, cY, level, 1f / (1 << (level + 1)), rotation); in getRange()
302 int cX, int cY, int level, float scale, int rotation) { in getRange() argument
304 double radians = Math.toRadians(-rotation); in getRange()
354 public boolean setPosition(int centerX, int centerY, float scale, int rotation) { in setPosition() argument
356 && mScale == scale && mRotation == rotation) return false; in setPosition()
[all …]
DSlideshowView.java52 public void next(Bitmap bitmap, int rotation) { in next() argument
65 mCurrentRotation = rotation; in next()
67 if (((rotation / 90) & 0x01) == 0) { in next()
DAbstractSlotRenderer.java47 Texture content, int width, int height, int rotation) { in drawContent() argument
53 if (rotation != 0) { in drawContent()
55 canvas.rotate(rotation, 0, 0, 1); in drawContent()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModuleUtil.java38 int rotation = CameraUtil.getDisplayRotation(); in getDeviceNaturalOrientation() local
40 if (((rotation == Surface.ROTATION_0 || rotation == Surface.ROTATION_180) && in getDeviceNaturalOrientation()
42 ((rotation == Surface.ROTATION_90 || rotation == Surface.ROTATION_270) && in getDeviceNaturalOrientation()
DCaptureLayoutHelper.java224 public void onNonDecorWindowSizeChanged(int width, int height, int rotation) { in onNonDecorWindowSizeChanged() argument
227 mRotation = rotation; in onNonDecorWindowSizeChanged()
245 float previewAspectRatio, int rotation) { in getPositionConfiguration() argument
349 if (rotation >= 180) { in getPositionConfiguration()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DBoundedRect.java36 public BoundedRect(float rotation, Rect outerRect, Rect innerRect) { in BoundedRect() argument
37 rot = rotation; in BoundedRect()
46 public BoundedRect(float rotation, RectF outerRect, RectF innerRect) { in BoundedRect() argument
47 rot = rotation; in BoundedRect()
56 public void resetTo(float rotation, RectF outerRect, RectF innerRect) { in resetTo() argument
57 rot = rotation; in resetTo()
82 public void setRotation(float rotation) { in setRotation() argument
83 if (rotation == rot) in setRotation()
85 rot = rotation; in setRotation()
DCropView.java113 public void initialize(Bitmap image, RectF newCropBounds, RectF newPhotoBounds, int rotation) { in initialize() argument
119 || mRotation != rotation) { in initialize()
120 mRotation = rotation; in initialize()
125 mRotation = rotation; in initialize()
274 private int decode(int movingEdges, float rotation) { in decode() argument
275 int rot = CropMath.constrainedRotation(rotation); in decode()
/packages/apps/Gallery/src/com/android/camera/
DRotateBitmap.java32 public RotateBitmap(Bitmap bitmap, int rotation) { in RotateBitmap() argument
34 mRotation = rotation % 360; in RotateBitmap()
37 public void setRotation(int rotation) { in setRotation() argument
38 mRotation = rotation; in setRotation()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DFilterRotateRepresentation.java64 public FilterRotateRepresentation(Rotation rotation) { in FilterRotateRepresentation() argument
73 setRotation(rotation); in FilterRotateRepresentation()
110 public void setRotation(Rotation rotation) { in setRotation() argument
111 if (rotation == null) { in setRotation()
114 mRotation = rotation; in setRotation()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/gallery3d/common/
DBitmapCropTask.java77 RectF cropBounds, int rotation, int outWidth, int outHeight, in BitmapCropTask() argument
80 init(cropBounds, rotation, in BitmapCropTask()
85 RectF cropBounds, int rotation, int outWidth, int outHeight, in BitmapCropTask() argument
89 init(cropBounds, rotation, in BitmapCropTask()
94 RectF cropBounds, int rotation, int outWidth, int outHeight, in BitmapCropTask() argument
99 init(cropBounds, rotation, in BitmapCropTask()
103 private void init(RectF cropBounds, int rotation, int outWidth, int outHeight, in init() argument
106 mRotation = rotation; in init()
/packages/apps/Camera2/src/com/android/camera/data/
DVideoRotationMetadataLoader.java30 final String rotation = filmstripItem.getMetadata().getVideoOrientation(); in isRotated() local
31 return ROTATE_90.equals(rotation) || ROTATE_270.equals(rotation); in isRotated()
/packages/apps/LegacyCamera/res/raw/
Dgoofy_face.graph86 // Orientation rotation filter
88 rotation = 0;
91 // Orientation rotation filter for facemeta data
93 rotation = 0;
/packages/apps/Gallery2/res/raw/
Dgoofy_face.graph87 // Orientation rotation filter
89 rotation = 0;
92 // Orientation rotation filter for facemeta data
94 rotation = 0;
/packages/apps/Camera2/res/raw/
Dgoofy_face.graph87 // Orientation rotation filter
89 rotation = 0;
92 // Orientation rotation filter for facemeta data
94 rotation = 0;
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/
DVideoChatTestActivity.java117 int rotation = getWindowManager().getDefaultDisplay().getRotation(); in getDisplayOrientation() local
119 switch (rotation) { in getDisplayOrientation()
401 int rotation = setDisplayOrentationAngles.get(i); in TestCamera() local
402 if (rotation == -1) { in TestCamera()
403 rotation = getAutoDisplayOrientation(mDisplayOrientation, in TestCamera()
406 publishProgress("setDisplayOrientation to " + rotation); in TestCamera()
408 camera.setDisplayOrientation(rotation); in TestCamera()
/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetUtils.java57 public static Bitmap createWidgetBitmap(Bitmap bitmap, int rotation) { in createWidgetBitmap() argument
62 if (((rotation / 90) & 1) == 0) { in createWidgetBitmap()
74 canvas.rotate(rotation); in createWidgetBitmap()
/packages/apps/Camera2/src/com/android/camera/widget/
DRoundedThumbnailView.java421 public void setThumbnail(final Bitmap thumbnailBitmap, final int rotation) { in setThumbnail() argument
425 mPendingRequest.setThumbnailBitmap(thumbnailBitmap, rotation); in setThumbnail()
654 private void precomputeThumbnailPaint(Bitmap srcBitmap, int rotation) { in precomputeThumbnailPaint() argument
682 shaderMatrix.preRotate(rotation, in precomputeThumbnailPaint()
725 public void setThumbnailBitmap(Bitmap thumbnailBitmap, int rotation) { in setThumbnailBitmap() argument
732 precomputeThumbnailPaint(originalBitmap, rotation); in setThumbnailBitmap()
/packages/services/Car/car-support-lib/src/android/support/car/ui/
DDrawerArrowDrawable.java122 final float rotation = lerp(0, ARROW_HEAD_ANGLE, mProgress); in draw() local
126 final float arrowWidth = Math.round(arrowSize * Math.cos(rotation)); in draw()
127 final float arrowHeight = Math.round(arrowSize * Math.sin(rotation)); in draw()

1234