/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
H A D | ThumbnailLoadTask.java | 102 final int orientation = getOrientation(thumbnailUri); 133 if (originalBitmap != null && orientation != 0) { 135 matrix.postRotate(orientation); 167 LogUtils.i(LOG_TAG, "Unable to get orientation of thumbnail %s: %s %s", thumbnailUri,
|
/packages/apps/Camera2/src/com/android/camera/session/ |
H A D | CaptureSessionManagerImpl.java | 160 public synchronized void saveAndFinish(byte[] data, int width, int height, int orientation, argument 165 orientation, exif, listener, mContentResolver); 176 orientation, exif, data, width, height, LocalData.MIME_TYPE_JPEG); 389 int width, int height, int orientation, ExifInterface exif, 391 mMediaSaver.addImage(data, title, date, loc, width, height, orientation, exif, 388 saveImage(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener listener) argument
|
/packages/apps/Mms/src/com/android/mms/ui/ |
H A D | UriImage.java | 282 int orientation = getOrientation(context, uri); 290 ", orientation=" + orientation); 417 if (!resultTooBig && orientation != 0) { 420 b = UriImage.rotateBitmap(b, orientation); 492 * Returns the number of degrees to rotate the picture, based on the orientation tag in 493 * the exif data or the orientation column in the database. If there's no tag or column, 504 // file for the orientation because there is no column in the db for the orientation. 514 int orientation [all...] |
/packages/apps/Browser/src/com/android/browser/ |
H A D | NavScreen.java | 77 mOrientation = activity.getResources().getConfiguration().orientation; 101 if (newconfig.orientation != mOrientation) { 104 mOrientation = newconfig.orientation;
|
H A D | NavTabScroller.java | 119 public void setOrientation(int orientation) { argument 120 mContentView.setOrientation(orientation); 121 if (orientation == LinearLayout.HORIZONTAL) { 128 super.setOrientation(orientation);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | ResourceUtils.java | 71 final int orientation = res.getConfiguration().orientation; 72 final String key = overrideResId + "-" + orientation;
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherApplication.java | 143 return context.getResources().getConfiguration().orientation ==
|
H A D | DeleteDropTarget.java | 84 int orientation = getResources().getConfiguration().orientation; 85 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
H A D | Hotseat.java | 64 mIsLandscape = context.getResources().getConfiguration().orientation == 81 /* Get the orientation invariant order of the item in the hotseat for persistence. */ 85 /* Get the orientation specific coordinates given an invariant order in the hotseat. */ 139 // Note: We do this to ensure that the hotseat is always laid out in the orientation of 140 // the hotseat in order regardless of which orientation they were added
|
/packages/apps/Camera/src/com/android/camera/ |
H A D | RotateDialogController.java | 82 public void setOrientation(int orientation, boolean animation) { argument 84 mRotateDialog.setOrientation(orientation, animation);
|
H A D | VideoModule.java | 231 // The degrees of the device rotated clockwise from its natural orientation. 552 public void onOrientationChanged(int orientation) { argument 553 // We keep the last known orientation. So if the user first orient 555 // the correct orientation. 556 if (orientation == OrientationEventListener.ORIENTATION_UNKNOWN) return; 557 int newOrientation = Util.roundOrientation(orientation, mOrientation); 563 // compensates the camera orientation (no Display.getRotation). 564 // So the orientation hint here should only consider sensor 565 // orientation. 571 // Show the toast after getting the first orientation change 578 setOrientationIndicator(int orientation, boolean animation) argument [all...] |
H A D | PreviewGestures.java | 92 public void setOrientation(int orientation) { argument 93 mOrientation = orientation;
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | ZoomView.java | 65 // Calculate the rotation matrix to apply orientation on the original image 205 public void loadBitmap(Uri uri, int orientation, RectF imageRect) { argument 209 mOrientation = orientation;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/category/ |
H A D | CategoryAdapter.java | 193 public void setOrientation(int orientation) { argument 194 mOrientation = orientation;
|
H A D | IconView.java | 130 public void setOrientation(int orientation) { argument 131 mOrientation = orientation;
|
/packages/apps/InCallUI/src/com/android/incallui/ |
H A D | InCallActivity.java | 99 * Stores the current orientation of the activity. Used to determine if a change in orientation 137 mCurrentOrientation = getResources().getConfiguration().orientation; 138 mIsLandscape = getResources().getConfiguration().orientation 434 Log.d(this, "onConfigurationChanged "+config.orientation); 436 // Check to see if the orientation changed to prevent triggering orientation change events 438 if (config.orientation != mCurrentOrientation) { 439 mCurrentOrientation = config.orientation;
|
/packages/apps/Camera2/src/com/android/camera/ |
H A D | CaptureModule.java | 200 /** Current orientation of the device. */ 385 params.orientation = getOrientation(); 461 float[] orientation = new float[3]; 463 SensorManager.getOrientation(mR, orientation); 464 mHeading = (int) (orientation[0] * 180f / Math.PI) % 360; 613 public void onOrientationChanged(int orientation) { argument 614 // We keep the last known orientation. So if the user first orient 616 // the correct orientation. 617 if (orientation == OrientationEventListener.ORIENTATION_UNKNOWN) { 621 // TODO: Document orientation comput [all...] |
H A D | PhotoModule.java | 166 // The degrees of the device rotated clockwise from its natural orientation. 331 // Set the display orientation if display rotation has changed. 1102 int orientation = Exif.getOrientation(exif); 1132 if ((mJpegRotation + orientation) % 180 == 0) { 1174 orientation, exif, mOnMediaSavedListener, mContentResolver); 1178 mUI.animateCapture(jpegData, orientation, mMirror); 1182 mUI.showCapturedImageForReview(jpegData, orientation, mMirror); 1304 // Set JPEG orientation. Even if screen UI is locked in portrait, camera orientation should 1305 // still match device orientation ( 1354 onOrientationChanged(int orientation) argument [all...] |
/packages/apps/Gallery/src/com/android/camera/ |
H A D | ImageManager.java | 197 // picture. The degree is a one element array which returns the orientation 258 int orientation = exif.getAttributeInt( 260 if (orientation != -1) { 261 // We only recognize a subset of orientation tag values. 262 switch(orientation) {
|
/packages/apps/Mms/src/com/android/mms/util/ |
H A D | ThumbnailManager.java | 490 int orientation = UriImage.getOrientation(mContext, uri); 492 if (result != null && orientation != 0) { 493 result = UriImage.rotateBitmap(result, orientation);
|
/packages/experimental/CameraPreviewTest/src/com/example/android/videochatcameratest/ |
H A D | VideoChatTestActivity.java | 83 return info.orientation; 290 result = (info.orientation + displayOrientationDegrees) % 360; 293 result = (info.orientation - displayOrientationDegrees + 360) % 360;
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
H A D | WidgetUtils.java | 117 String whichHeight = res.getConfiguration().orientation ==
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/ |
H A D | GeometryMathUtils.java | 240 private static int getRotationForOrientation(int orientation) { argument 241 switch (orientation) { 375 int orientation = MasterImage.getImage().getZoomOrientation(); 376 int rotation = getRotationForOrientation(orientation);
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | DetailsHelper.java | 119 return context.getString(R.string.orientation);
|
/packages/apps/Camera2/src/com/android/camera/util/ |
H A D | CameraUtil.java | 381 * the sensor's orientation \in {0, 90, 180, 270}. 456 * Calculate the default orientation of the device based on the width and 460 * @return whether the default orientation of the device is portrait 467 int orientation = currentDisplay.getRotation(); 469 if (orientation == Surface.ROTATION_0 || orientation == Surface.ROTATION_180) { 479 public static int roundOrientation(int orientation, int orientationHistory) { argument 484 int dist = Math.abs(orientation - orientationHistory); 489 return ((orientation + 45) / 90 * 90) % 360; 525 // layout the viewfinder in the portrait orientation an [all...] |