/packages/apps/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument 71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage() 77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l, in addImage() argument 85 width, height, orientation, mimeType, exif, mContentResolver, l); in addImage() 95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage() 104 int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument 105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, in addImage() 143 private final int orientation; field in MediaSaverImpl.ImageSaveTask 150 int width, int height, int orientation, String mimeType, in ImageSaveTask() argument [all …]
|
D | PhotoUI.java | 164 public DecodeTask(byte[] data, int orientation, boolean mirror) { in DecodeTask() argument 166 mOrientation = orientation; in DecodeTask() 178 public DecodeImageForReview(byte[] data, int orientation, boolean mirror) { in DecodeImageForReview() argument 179 super(data, orientation, mirror); in DecodeImageForReview() 302 public void animateCapture(final byte[] jpegData, int orientation, boolean mirror) { in animateCapture() argument 304 DecodeTask task = new DecodeTask(jpegData, orientation, mirror); in animateCapture() 353 protected void showCapturedImageForReview(byte[] jpegData, int orientation, boolean mirror) { in showCapturedImageForReview() argument 354 mDecodeTaskForReview = new DecodeImageForReview(jpegData, orientation, mirror); in showCapturedImageForReview() 368 public void setDisplayOrientation(int orientation) { in setDisplayOrientation() argument 370 mFaceView.setDisplayOrientation(orientation); in setDisplayOrientation() [all …]
|
D | Storage.java | 92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument 95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 121 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument 127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, in addImage() 150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument 154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore() 173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData() argument 186 values.put(ImageColumns.ORIENTATION, orientation); in getContentValuesForData() 270 Location location, int orientation, ExifInterface exif, in updateImage() argument 274 … return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, path, in updateImage() [all …]
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { in Thumbnail() argument 61 mBitmap = rotateImage(bitmap, orientation); in Thumbnail() 81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { in rotateImage() argument 82 if (orientation != 0) { in rotateImage() 85 m.setRotate(orientation, bitmap.getWidth() * 0.5f, in rotateImage() 176 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation); in getLastThumbnail() 182 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() argument 184 this.orientation = orientation; in Media() 190 public final int orientation; field in Thumbnail.Media 247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, in createThumbnail() argument [all …]
|
D | Util.java | 345 result = (info.orientation + degrees) % 360; in getDisplayOrientation() 348 result = (info.orientation - degrees + 360) % 360; in getDisplayOrientation() 356 return info.orientation; in getCameraOrientation() 359 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() argument 364 int dist = Math.abs(orientation - orientationHistory); in roundOrientation() 369 return ((orientation + 45) / 90 * 90) % 360; in roundOrientation() 618 public static void setRotationParameter(Parameters parameters, int cameraId, int orientation) { in setRotationParameter() argument 622 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in setRotationParameter() 625 rotation = (info.orientation - orientation + 360) % 360; in setRotationParameter() 627 rotation = (info.orientation + orientation) % 360; in setRotationParameter()
|
/packages/apps/Dialer/java/com/android/incallui/ |
D | AccelerometerListener.java | 117 private void setOrientation(int orientation) { in setOrientation() argument 119 if (mPendingOrientation == orientation) { in setOrientation() 129 if (mOrientation != orientation) { in setOrientation() 132 mPendingOrientation = orientation; in setOrientation() 135 int delay = (orientation == ORIENTATION_VERTICAL ? VERTICAL_DEBOUNCE : HORIZONTAL_DEBOUNCE); in setOrientation() 161 final int orientation = in onSensorEvent() local 164 Log.d(TAG, "angle: " + angle + " orientation: " + orientation); in onSensorEvent() 166 setOrientation(orientation); in onSensorEvent() 171 void orientationChanged(int orientation); in orientationChanged() argument
|
D | InCallOrientationEventListener.java | 115 final int orientation = toScreenOrientation(rotation); in onOrientationChanged() local 117 if (orientation != SCREEN_ORIENTATION_UNKNOWN && sCurrentOrientation != orientation) { in onOrientationChanged() 122 orientation); in onOrientationChanged() 123 sCurrentOrientation = orientation; in onOrientationChanged()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
D | StickyBottomCaptureLayout.java | 57 final int orientation = getResources().getConfiguration().orientation; 58 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 71 final int orientation = getResources().getConfiguration().orientation; 72 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 155 final int orientation = getResources().getConfiguration().orientation; in getRoundedThumbnailPosition() local 159 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in getRoundedThumbnailPosition() 171 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getRoundedThumbnailPosition()
|
D | RotateLayout.java | 116 public void setOrientation(int orientation, boolean animation) { in setOrientation() argument 117 orientation = orientation % 360; in setOrientation() 118 if (mOrientation == orientation) return; in setOrientation() 119 mOrientation = orientation; in setOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | OrientationManager.java | 95 if (mActivity.getResources().getConfiguration().orientation in calculateCurrentScreenOrientation() 121 public void onOrientationChanged(int orientation) { 125 if (orientation == ORIENTATION_UNKNOWN) return; 126 orientation = roundOrientation(orientation, 0); 140 private static int roundOrientation(int orientation, int orientationHistory) { 145 int dist = Math.abs(orientation - orientationHistory); 150 return ((orientation + 45) / 90 * 90) % 360;
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraManager.java | 540 int orientation; in updateCameraOrientation() local 546 orientation = (mCameraInfo.orientation + degrees) % 360; in updateCameraOrientation() 547 rotation = orientation; in updateCameraOrientation() 549 orientation = (360 - orientation) % 360; in updateCameraOrientation() 551 orientation = (mCameraInfo.orientation - degrees + 360) % 360; in updateCameraOrientation() 552 rotation = orientation; in updateCameraOrientation() 556 mCamera.setDisplayOrientation(orientation); in updateCameraOrientation() 607 mCameraPreview.setSize(previewSize, mCameraInfo.orientation); in tryShowPreview() 683 public void onOrientationChanged(final int orientation) { in onOrientationChanged() argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | SharePopup.java | 103 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, in SharePopup() argument 156 setOrientation(orientation); in SharePopup() 162 public void setOrientation(int orientation) { in setOrientation() argument 164 mOrientation = orientation; in setOrientation() 174 if (orientation == 90 || orientation == 270) { in setOrientation() 199 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation); in setOrientation() 205 r.setOrientation(orientation); in setOrientation() 208 mGotoGalleryRotate.setOrientation(orientation); in setOrientation()
|
D | RotateLayout.java | 105 public void setOrientation(int orientation) { in setOrientation() argument 106 orientation = orientation % 360; in setOrientation() 107 if (mOrientation == orientation) return; in setOrientation() 108 mOrientation = orientation; in setOrientation()
|
D | FaceView.java | 66 public void setDisplayOrientation(int orientation) { in setDisplayOrientation() argument 67 mDisplayOrientation = orientation; in setDisplayOrientation() 68 if (LOGV) Log.v(TAG, "mDisplayOrientation=" + orientation); in setDisplayOrientation() 71 public void setOrientation(int orientation) { in setOrientation() argument 72 mOrientation = orientation; in setOrientation()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | OrientationManagerImpl.java | 181 if (mActivity.getResources().getConfiguration().orientation in calculateCurrentScreenOrientation() 207 public void onOrientationChanged(int orientation) { 208 if (orientation == ORIENTATION_UNKNOWN) { 213 roundOrientation(mLastDeviceOrientation, orientation); 278 int orientation = currentDisplay.getRotation(); in isDefaultToPortrait() local 280 if (orientation == Surface.ROTATION_0 || orientation == Surface.ROTATION_180) { in isDefaultToPortrait()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraManager.java | 679 int orientation; in updateCameraOrientation() local 685 orientation = (mCameraInfo.orientation + degrees) % 360; in updateCameraOrientation() 686 rotation = orientation; in updateCameraOrientation() 688 orientation = (360 - orientation) % 360; in updateCameraOrientation() 690 orientation = (mCameraInfo.orientation - degrees + 360) % 360; in updateCameraOrientation() 691 rotation = orientation; in updateCameraOrientation() 696 mCamera.setDisplayOrientation(orientation); in updateCameraOrientation() 746 mCameraPreview.setSize(previewSize, mCameraInfo.orientation); in tryShowPreview() 962 final int displayOrientation = resources.getConfiguration().orientation; in chooseBestPictureSize() 963 int cameraOrientation = mCameraInfo.orientation; in chooseBestPictureSize() [all …]
|
D | CameraPreview.java | 53 public void setSize(final Camera.Size size, final int orientation) { in setSize() argument 54 switch (orientation) { in setSize() 80 final int orientation = getContext().getResources().getConfiguration().orientation; in getHeightMeasureSpec() local 84 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getHeightMeasureSpec()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | Image.java | 110 int orientation = ExifInterface.ORIENTATION_NORMAL; in setExifRotation() local 113 orientation = ExifInterface.ORIENTATION_NORMAL; in setExifRotation() 116 orientation = ExifInterface.ORIENTATION_ROTATE_90; in setExifRotation() 119 orientation = ExifInterface.ORIENTATION_ROTATE_180; in setExifRotation() 122 orientation = ExifInterface.ORIENTATION_ROTATE_270; in setExifRotation() 127 Integer.toString(orientation)); in setExifRotation()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCamera.java | 270 public final int orientation; field in OneCamera.CaptureParameters 278 public CaptureParameters(String title, int orientation, Location location, File in CaptureParameters() argument 281 this.orientation = orientation; in CaptureParameters() 339 public PhotoCaptureParameters(String title, int orientation, Location location, File in PhotoCaptureParameters() argument 342 super(title, orientation, location, debugDataFolder); in PhotoCaptureParameters()
|
/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
D | TaskCompressImageToJpeg.java | 284 img.crop, inputImage.orientation.getDegrees()); in run() 303 img.crop, inputImage.orientation.getDegrees()); in run() 345 resultImage.width, resultImage.height, resultImage.orientation.getDegrees(), exif); in run() 435 DeviceOrientation orientation) { in getImageSizeForOrientation() argument 436 if (orientation == DeviceOrientation.CLOCKWISE_0 in getImageSizeForOrientation() 437 || orientation == DeviceOrientation.CLOCKWISE_180) { in getImageSizeForOrientation() 439 } else if (orientation == DeviceOrientation.CLOCKWISE_90 in getImageSizeForOrientation() 440 || orientation == DeviceOrientation.CLOCKWISE_270) { in getImageSizeForOrientation()
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
D | PanoramaActivity.java | 212 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument 216 if (orientation == ORIENTATION_UNKNOWN) return; in onOrientationChanged() 217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); in onOrientationChanged() 858 int orientation = (mDeviceOrientationAtCapture + mCameraOrientation) % 360; in saveHighResMosaic() 859 Uri uri = savePanorama(jpeg.data, jpeg.width, jpeg.height, orientation); in saveHighResMosaic() 870 jpeg.data, orientation, inSampleSize, uri); in saveHighResMosaic() 947 private Uri savePanorama(byte[] jpegData, int width, int height, int orientation) { in savePanorama() argument 952 orientation, jpegData, width, height); in savePanorama() 953 if (uri != null && orientation != 0) { in savePanorama() 959 getExifOrientation(orientation)); in savePanorama() [all …]
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
D | ImageLoader.java | 165 int orientation = tagval; in parseExif() local 166 switch(orientation) { in parseExif() 175 return orientation; in parseExif() 188 int orientation = getMetadataOrientation(context, uri); in getMetadataRotation() local 189 switch(orientation) { in getMetadataRotation() 404 int orientation, Rect originalBounds) { in loadOrientedConstrainedBitmap() argument 407 bmap = orientBitmap(bmap, orientation); in loadOrientedConstrainedBitmap() 475 int orientation = getMetadataOrientation(context, sourceUri); in loadOrientedBitmapWithBackouts() local 476 bitmap = orientBitmap(bitmap, orientation); in loadOrientedBitmapWithBackouts()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | OrientedBitmapDrawable.java | 41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) { in create() argument 42 if (orientation <= ExifInterface.Orientation.TOP_LEFT) { in create() 47 return new OrientedBitmapDrawable(orientation, res, bitmap); in create() 51 private OrientedBitmapDrawable(final int orientation, Resources res, Bitmap bitmap) { in OrientedBitmapDrawable() argument 53 mOrientationParams = ExifInterface.getOrientationParams(orientation); in OrientedBitmapDrawable()
|
/packages/apps/Gallery2/res/raw/ |
D | backdropper.graph | 38 @external orientation; 57 orientation = $orientation; 64 orientation = $orientation;
|
/packages/apps/Camera2/res/raw/ |
D | backdropper.graph | 38 @external orientation; 57 orientation = $orientation; 64 orientation = $orientation;
|