Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 195) sorted by relevance

12345678

/packages/apps/Camera2/src/com/android/camera/
DMediaSaverImpl.java70 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 …]
DPhotoUI.java164 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 …]
DStorage.java92 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/
DThumbnail.java59 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 …]
DUtil.java345 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/Camera/src/com/android/camera/
DPanoramaModule.java208 public void onOrientationChanged(int orientation) { in onOrientationChanged() argument
212 if (orientation == ORIENTATION_UNKNOWN) return; in onOrientationChanged()
213 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); in onOrientationChanged()
460 …final boolean isLandscape = (mActivity.getResources().getConfiguration().orientation == Configurat… in configMosaicPreview()
575 int orientation = Util.getDisplayOrientation(degrees, cameraId); in setupProgressDirectionMatrix() local
577 mProgressDirectionMatrix.postRotate(orientation); in setupProgressDirectionMatrix()
708 if (mActivity.getResources().getConfiguration().orientation in setViews()
787 int orientation; in getCaptureOrientation() local
791 orientation = (mDeviceOrientationAtCapture - mCameraOrientation + 360) % 360; in getCaptureOrientation()
793 orientation = (mDeviceOrientationAtCapture + mCameraOrientation) % 360; in getCaptureOrientation()
[all …]
DUtil.java395 result = (info.orientation + degrees) % 360; in getDisplayOrientation()
398 result = (info.orientation - degrees + 360) % 360; in getDisplayOrientation()
406 return info.orientation; in getCameraOrientation()
409 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() argument
414 int dist = Math.abs(orientation - orientationHistory); in roundOrientation()
419 return ((orientation + 45) / 90 * 90) % 360; in roundOrientation()
692 public static int getJpegRotation(int cameraId, int orientation) { in getJpegRotation() argument
696 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in getJpegRotation()
699 rotation = (info.orientation - orientation + 360) % 360; in getJpegRotation()
701 rotation = (info.orientation + orientation) % 360; in getJpegRotation()
DMediaSaver.java66 int width, int height, int orientation, OnMediaSavedListener l) { in addImage() argument
74 r.orientation = orientation; in addImage()
114 r.orientation); in run()
133 Location loc, int width, int height, int orientation) { in storeImage() argument
135 orientation, data, width, height); in storeImage()
146 int orientation; field in MediaSaver.SaveRequest
/packages/apps/Camera2/src/com/android/camera/ui/
DStickyBottomCaptureLayout.java57 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()
DRotateLayout.java116 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/InCallUI/src/com/android/incallui/
DAccelerometerListener.java63 public void orientationChanged(int orientation); in orientationChanged() argument
90 private void setOrientation(int orientation) { in setOrientation() argument
92 if (mPendingOrientation == orientation) { in setOrientation()
102 if (mOrientation != orientation) { in setOrientation()
105 mPendingOrientation = orientation; in setOrientation()
108 int delay = (orientation == ORIENTATION_VERTICAL ? VERTICAL_DEBOUNCE in setOrientation()
131 … final int orientation = (angle > VERTICAL_ANGLE ? ORIENTATION_VERTICAL : ORIENTATION_HORIZONTAL); in onSensorEvent() local
132 if (VDEBUG) Log.d(TAG, "angle: " + angle + " orientation: " + orientation); in onSensorEvent()
133 setOrientation(orientation); in onSensorEvent()
DInCallActivity.java167 mIsLandscape = getResources().getConfiguration().orientation == in onCreate()
207 public void onOrientationChanged(int orientation) { in onCreate()
209 if (orientation == OrientationEventListener.ORIENTATION_UNKNOWN) { in onCreate()
217 if (orientation >= 337 || orientation <= 23) { in onCreate()
219 } else if (orientation >= 67 && orientation <= 113) { in onCreate()
223 } else if (orientation >= 157 && orientation <= 203) { in onCreate()
225 } else if (orientation >= 247 && orientation <= 293) { in onCreate()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DOrientationManager.java95 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/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraManager.java679 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 …]
DCameraPreview.java53 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/LegacyCamera/src/com/android/camera/ui/
DSharePopup.java103 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()
DRotateLayout.java105 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()
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
DPanoramaActivity.java212 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/Camera2/src/com/android/camera/app/
DOrientationManagerImpl.java181 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/Gallery2/src/com/android/gallery3d/filtershow/cache/
DImageLoader.java165 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/Camera2/src/com/android/camera/processing/imagebackend/
DTaskCompressImageToJpeg.java284 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/Gallery/src/com/android/camera/gallery/
DImage.java110 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/
DOneCamera.java270 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/Messaging/src/com/android/messaging/util/
DUiUtils.java172 return Factory.get().getApplicationContext().getResources().getConfiguration().orientation in isLandscapeMode()
267 final int orientation = activity.getResources().getConfiguration().orientation; in lockOrientation() local
276 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in lockOrientation()
278 } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in lockOrientation()
282 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in lockOrientation()
284 } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in lockOrientation()
/packages/apps/Messaging/src/com/android/messaging/ui/
DOrientedBitmapDrawable.java41 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()

12345678