Searched refs:orientation (Results 76 - 100 of 165) sorted by relevance

1234567

/packages/apps/UnifiedEmail/src/com/android/mail/ui/
H A DThumbnailLoadTask.java102 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 DCaptureSessionManagerImpl.java160 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 DUriImage.java282 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 DNavScreen.java77 mOrientation = activity.getResources().getConfiguration().orientation;
101 if (newconfig.orientation != mOrientation) {
104 mOrientation = newconfig.orientation;
H A DNavTabScroller.java119 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 DResourceUtils.java71 final int orientation = res.getConfiguration().orientation;
72 final String key = overrideResId + "-" + orientation;
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherApplication.java143 return context.getResources().getConfiguration().orientation ==
H A DDeleteDropTarget.java84 int orientation = getResources().getConfiguration().orientation;
85 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
H A DHotseat.java64 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 DRotateDialogController.java82 public void setOrientation(int orientation, boolean animation) { argument
84 mRotateDialog.setOrientation(orientation, animation);
H A DVideoModule.java231 // 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 DPreviewGestures.java92 public void setOrientation(int orientation) { argument
93 mOrientation = orientation;
/packages/apps/Camera2/src/com/android/camera/ui/
H A DZoomView.java65 // 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 DCategoryAdapter.java193 public void setOrientation(int orientation) { argument
194 mOrientation = orientation;
H A DIconView.java130 public void setOrientation(int orientation) { argument
131 mOrientation = orientation;
/packages/apps/InCallUI/src/com/android/incallui/
H A DInCallActivity.java99 * 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 DCaptureModule.java200 /** 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 DPhotoModule.java166 // 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 DImageManager.java197 // 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 DThumbnailManager.java490 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 DVideoChatTestActivity.java83 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 DWidgetUtils.java117 String whichHeight = res.getConfiguration().orientation ==
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DGeometryMathUtils.java240 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 DDetailsHelper.java119 return context.getString(R.string.orientation);
/packages/apps/Camera2/src/com/android/camera/util/
H A DCameraUtil.java381 * 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...]

Completed in 2320 milliseconds

1234567