/packages/apps/Camera2/src/com/android/camera/processing/imagebackend/ |
H A D | TaskCompressImageToJpeg.java | 53 * that the JPEG is already encoded in the proper orientation. 114 // orientation. 127 // the HAL; the HAL may deliver its orientation in the JPEG 147 // For JPEG, always use the EXIF orientation as ground 148 // truth on orientation, width and height. 284 img.crop, inputImage.orientation.getDegrees()); 303 img.crop, inputImage.orientation.getDegrees()); 345 resultImage.width, resultImage.height, resultImage.orientation.getDegrees(), exif); 431 * @param orientation the rotation to apply, in degrees. 435 DeviceOrientation orientation) { 434 getImageSizeForOrientation(int originalWidth, int originalHeight, DeviceOrientation orientation) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | ImageList.java | 128 int orientation = cursor.getInt(INDEX_ORIENTATION); 136 orientation);
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/state/ |
H A D | StateAdapter.java | 76 public void setOrientation(int orientation) { argument 77 mOrientation = orientation;
|
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/ |
H A D | MtpBitmapFetch.java | 103 int orientation = Exif.getOrientation(imageBytes); 104 return new BitmapWithMetadata(created, orientation);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A D | MmsVideoRecorder.java | 45 public MmsVideoRecorder(final Camera camera, final int cameraIndex, final int orientation, argument 74 setOrientationHint(orientation);
|
H A D | CameraManager.java | 173 /** The helper classs to handle orientation changes */ 197 /** The rotation of the screen relative to the camera's natural orientation */ 660 /** Updates the orientation of the camera to match the orientation of the device */ 678 // The display orientation of the camera (this controls the preview image). 679 int orientation; 681 // The clockwise rotation angle relative to the orientation of the camera. This affects 685 orientation = (mCameraInfo.orientation + degrees) % 360; 686 rotation = orientation; 1030 onOrientationChanged(final int orientation) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | FilmstripItemData.java | 58 int orientation, 69 mOrientation = orientation; 172 sb.append(",orientation:"); 271 public Builder withOrientation(int orientation) { argument 272 mOrientation = orientation; 48 FilmstripItemData( long contentId, String title, String mimeType, Date creationDate, Date lastModifiedDate, String filePath, Uri uri, Size dimensions, long sizeInBytes, int orientation, Location location) argument
|
H A D | PhotoItem.java | 238 int orientation = data.getOrientation(); 243 orientation, 247 // If the orientation is not vertical 248 if (orientation % 180 != 0) {
|
/packages/apps/Camera2/src/com/android/camera/one/v2/imagesaver/ |
H A D | ImageSaver.java | 63 OrientationManager.DeviceOrientation orientation, 61 build( OneCamera.PictureSaverCallback pictureSaverCallback, OrientationManager.DeviceOrientation orientation, CaptureSession session) argument
|
/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | CaptureSessionManager.java | 84 * @param orientation the picture orientation. 86 public void onSessionPictureDataUpdate(byte[] pictureData, int orientation); argument
|
H A D | PlaceholderManager.java | 127 * @param orientation the orientation of the image 135 public Uri finishPlaceholder(Placeholder placeholder, Location location, int orientation, argument 138 placeholder.outputTitle, placeholder.time, location, orientation, exif, jpeg, width,
|
H A D | CaptureSession.java | 226 * @param orientation the orientaiton of the media item, in degrees. 234 int orientation, ExifInterface exif); 233 saveAndFinish(byte[] data, int width, int height, int orientation, ExifInterface exif) argument
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | LauncherAppWidgetHostView.java | 73 mPreviousOrientation = mContext.getResources().getConfiguration().orientation; 78 // Store the orientation in which the widget was inflated 84 // Re-inflate is required if the orientation has changed since last inflated. 85 int orientation = mContext.getResources().getConfiguration().orientation; 86 if (mPreviousOrientation != orientation) {
|
/packages/apps/Messaging/tests/src/com/android/messaging/ui/ |
H A D | FragmentTestCase.java | 87 getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | UiUtils.java | 172 return Factory.get().getApplicationContext().getResources().getConfiguration().orientation 267 final int orientation = activity.getResources().getConfiguration().orientation; 270 // rotation tracks the rotation of the device from its natural orientation 271 // orientation tracks whether the screen is landscape or portrait. 272 // It is possible to have a rotation of 0 (device in its natural orientation) in portrait 276 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 278 } else if (orientation == Configuration.ORIENTATION_LANDSCAPE) { 282 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 284 } else if (orientation [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/ |
H A D | ImageLoader.java | 96 * Returns the image's orientation flag. Defaults to ORI_NORMAL if no valid 97 * orientation was found. 104 // First try to find orientation data in Gallery's ContentProvider. 149 Log.w(LOGTAG, "Failed to read EXIF orientation", e); 165 int orientation = tagval; 166 switch(orientation) { 175 return orientation; 188 int orientation = getMetadataOrientation(context, uri); 189 switch(orientation) { 202 * Takes an orientation an 403 loadOrientedConstrainedBitmap(Uri uri, Context context, int maxSideLength, int orientation, Rect originalBounds) argument [all...] |
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/ |
H A D | PhotoSource.java | 53 public int orientation; field in class:PhotoSource.ImageData 216 if (data.orientation != 0) { 217 log(TAG, "rotated by " + data.orientation + ": fixing"); 219 matrix.setRotate(data.orientation, 225 if (data.orientation == 90 || data.orientation == 270) {
|
H A D | PhotoCarousel.java | 189 int orientation = (width > height ? LANDSCAPE : PORTRAIT); 192 destination.setTag(R.id.photo_orientation, Integer.valueOf(orientation)); 208 int orientation = ((Integer) photo.getTag(R.id.photo_orientation)).intValue(); 215 } else if (orientation == mOrientation) {
|
/packages/apps/LegacyCamera/src/com/android/camera/panorama/ |
H A D | PanoramaActivity.java | 212 public void onOrientationChanged(int orientation) { argument 213 // We keep the last known orientation. So if the user first orient 215 // the correct orientation. 216 if (orientation == ORIENTATION_UNKNOWN) return; 217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation); 853 // natural orientation of a camera. We need to set an orientation for the image 855 // The orientation is calculated from compensating the 856 // device orientation at capture and the camera orientation respectiv 947 savePanorama(byte[] jpegData, int width, int height, int orientation) argument 970 getExifOrientation(int orientation) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/captureintent/ |
H A D | CaptureIntentSession.java | 151 int height, int orientation, ExifInterface exif) { 152 mSessionNotifier.notifySessionPictureDataAvailable(data, orientation); 150 saveAndFinish(byte[] data, int width, int height, int orientation, ExifInterface exif) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
H A D | MotionEventHelper.java | 71 pointerCoords[i].orientation = transformAngle( 72 m, pointerCoords[i].orientation);
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | RotateDialogController.java | 81 public void setOrientation(int orientation) { argument 83 mRotateDialog.setOrientation(orientation);
|
H A D | Storage.java | 53 Location location, int orientation, byte[] jpeg, int width, int height) { 76 values.put(ImageColumns.ORIENTATION, orientation); 52 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | IndicatorControlWheelContainer.java | 169 public void setOrientation(int orientation) { argument 170 mIndicatorControlWheel.setOrientation(orientation);
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
H A D | ContactsUnavailableFragment.java | 81 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { 134 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) { 190 if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {
|