/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
D | GeometryMathUtils.java | 49 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/java/com/android/incallui/ |
D | InCallOrientationEventListener.java | 110 public void onOrientationChanged(int rotation) { in onOrientationChanged() argument 111 if (rotation == OrientationEventListener.ORIENTATION_UNKNOWN) { in onOrientationChanged() 115 final int orientation = toScreenOrientation(rotation); in onOrientationChanged() 179 private int toScreenOrientation(int rotation) { in toScreenOrientation() argument 183 if (isInLeftRange(rotation, SCREEN_ORIENTATION_360, ROTATION_THRESHOLD) in toScreenOrientation() 184 || isInRightRange(rotation, SCREEN_ORIENTATION_0, ROTATION_THRESHOLD)) { in toScreenOrientation() 186 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_90, ROTATION_THRESHOLD)) { in toScreenOrientation() 188 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_180, ROTATION_THRESHOLD)) { in toScreenOrientation() 190 } else if (isWithinThreshold(rotation, SCREEN_ORIENTATION_270, ROTATION_THRESHOLD)) { in toScreenOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
D | LocalImage.java | 103 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/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 137 private int rotation; field in CameraManager 461 if (rotation == 90 || rotation == 270) { in takePicture() 548 int rotation = screenRotationToDegress(screenRotation); in updateCameraRotation() local 549 boolean portrait = rotation == 0 || rotation == 180; in updateCameraRotation() 552 rotation += 180; in updateCameraRotation() 554 rotation += cameraOrientation; in updateCameraRotation() 555 rotation %= 360; in updateCameraRotation() 559 camera.setDisplayOrientation((rotation + 180) % 360); in updateCameraRotation() 561 camera.setDisplayOrientation(rotation); in updateCameraRotation() 566 params.setRotation(rotation); in updateCameraRotation() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | TileImageView.java | 205 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 …]
|
/packages/apps/Gallery2/src/com/android/photos/views/ |
D | TiledImageView.java | 66 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()
|
D | TiledImageRenderer.java | 191 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/filtershow/crop/ |
D | BoundedRect.java | 36 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()
|
D | CropView.java | 113 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/WallpaperPicker2/src/com/android/wallpaper/widget/ |
D | MaterialProgressDrawable.java | 207 public void setProgressRotation(float rotation) { in setProgressRotation() argument 208 mRing.setRotation(rotation); in setProgressRotation() 269 void setRotation(float rotation) { in setRotation() argument 270 mRotation = rotation; in setRotation() 372 final float rotation = ring.getStartingRotation() in applyFinishTranslation() local 374 ring.setRotation(rotation); in applyFinishTranslation() 422 final float rotation = startingRotation + (0.25f * interpolatedTime); in setupAnimators() 423 ring.setRotation(rotation); in setupAnimators() 710 public void setRotation(float rotation) { in setRotation() argument 711 mRotation = rotation; in setRotation()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CaptureModuleUtil.java | 38 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()
|
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/common/ |
D | InputStreamProvider.java | 66 public Bitmap readCroppedBitmap(RectF cropBounds, int outWidth, int outHeight, int rotation) { in readCroppedBitmap() argument 76 if (rotation > 0) { in readCroppedBitmap() 77 rotateMatrix.setRotate(rotation); in readCroppedBitmap() 80 inverseRotateMatrix.setRotate(-rotation); in readCroppedBitmap() 176 if (outWidth > 0 && outHeight > 0 || rotation > 0) { in readCroppedBitmap() 191 if (rotation == 0) { in readCroppedBitmap() 197 m2.setRotate(rotation); in readCroppedBitmap()
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | plugin_pcl.c | 325 wprint_rotation_t rotation = ROT_0; in _print_page() local 329 rotation = ROT_0; in _print_page() 332 rotation = ROT_90; in _print_page() 336 rotation = ROT_90; in _print_page() 342 job_params->render_flags |= ((rotation == ROT_0) ? RENDER_FLAG_CENTER_HORIZONTAL in _print_page() 350 rotation = ((rotation == ROT_0) ? ROT_180 : ROT_270); in _print_page() 352 LOGI("_print_page(): rotation = %d", rotation); in _print_page() 354 wprint_image_set_output_properties(image_info, rotation, in _print_page()
|
D | wprint_image.c | 45 image_info->rotation = ROT_0; in wprint_image_get_info() 85 wprint_rotation_t rotation, unsigned int printable_width, unsigned int printable_height, in wprint_image_set_output_properties() argument 90 switch (rotation) { in wprint_image_set_output_properties() 92 rotation = ROT_0; in wprint_image_set_output_properties() 101 switch (rotation) { in wprint_image_set_output_properties() 152 image_info->rotation = rotation; in wprint_image_set_output_properties() 158 switch (image_info->rotation) { in wprint_image_set_output_properties() 177 switch (image_info->rotation) { in wprint_image_set_output_properties() 405 switch (image_info->rotation) { in wprint_image_set_output_properties() 635 switch (image_info->rotation) { in _decode_stripe() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
D | FilterRotateRepresentation.java | 64 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/WallpaperPicker/src/com/android/photos/views/ |
D | TiledImageRenderer.java | 191 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 …]
|
D | TiledImageView.java | 47 public int rotation; field in TiledImageView.ImageRendererWrapper 113 mRenderer.rotation = source != null ? source.getRotation() : 0; in setTileSource() 172 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onSurfaceCreated() 187 mRenderer.image.setModel(mRenderer.source, mRenderer.rotation); in onDrawFrame()
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/exif/ |
D | ExifInterface.java | 289 public int rotation = 0; field in ExifInterface.OrientationParams 305 params.rotation = 180; in getOrientationParams() 308 params.rotation = 270; in getOrientationParams() 312 params.rotation = 90; in getOrientationParams() 316 params.rotation = 90; in getOrientationParams() 321 params.rotation = 270; in getOrientationParams()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | RotateBitmap.java | 32 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/Launcher3/src/com/android/launcher3/util/ |
D | DefaultDisplay.java | 82 if (oldInfo.rotation != info.rotation) { in onDisplayChanged() 121 public final int rotation; field in DefaultDisplay.Info 134 rotation = display.getRotation(); in Info()
|
/packages/apps/Gallery2/res/raw/ |
D | goofy_face.graph | 87 // Orientation rotation filter 89 rotation = 0; 92 // Orientation rotation filter for facemeta data 94 rotation = 0;
|
/packages/apps/LegacyCamera/res/raw/ |
D | goofy_face.graph | 86 // Orientation rotation filter 88 rotation = 0; 91 // Orientation rotation filter for facemeta data 93 rotation = 0;
|
/packages/apps/Camera2/res/raw/ |
D | goofy_face.graph | 87 // Orientation rotation filter 89 rotation = 0; 92 // Orientation rotation filter for facemeta data 94 rotation = 0;
|
/packages/apps/Launcher3/src/com/android/launcher3/views/ |
D | FloatingIconView.java | 317 float rotation = getLocationBoundsForView(launcher, v, isOpening, positionOut); in matchPositionOf() local 321 updatePosition(rotation, positionOut, lp); in matchPositionOf() 325 private void updatePosition(float rotation, RectF position, LayoutParams lp) { in updatePosition() argument 326 mRotation = rotation; in updatePosition() 374 float[] rotation = new float[] {0}; in getLocationBoundsForView() local 376 false, ignoreTransform, rotation); in getLocationBoundsForView() 382 return rotation[0]; in getLocationBoundsForView() 704 float rotation = getLocationBoundsForView(mLauncher, mOriginalIcon, mIsOpening, in onGlobalLayout() local 706 if (rotation != mRotation || !sTmpRectF.equals(mPositionOut)) { in onGlobalLayout() 707 updatePosition(rotation, sTmpRectF, (LayoutParams) getLayoutParams()); in onGlobalLayout()
|
/packages/apps/Camera2/src/com/android/camera/widget/ |
D | RoundedThumbnailView.java | 421 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()
|