Searched refs:orientation (Results 1 - 25 of 63) sorted by relevance

123

/packages/apps/Camera/src/com/android/camera/ui/
H A DRotatable.java20 public void setOrientation(int orientation); argument
H A DRotateLayout.java34 // happened when the view is rotated as the device's orientation
105 public void setOrientation(int orientation) { argument
106 orientation = orientation % 360;
107 if (mOrientation == orientation) return;
108 mOrientation = orientation;
H A DRotateTextToast.java35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument
42 mToast.setOrientation(orientation);
H A DFaceView.java37 // The orientation compensation for the face indicator to make it look
66 public void setDisplayOrientation(int orientation) { argument
67 mDisplayOrientation = orientation;
68 if (LOGV) Log.v(TAG, "mDisplayOrientation=" + orientation);
71 public void setOrientation(int orientation) { argument
72 mOrientation = orientation;
H A DZoomControlBar.java118 public void setOrientation(int orientation) { argument
120 if ((orientation == 90) || (mOrientation == 90)) requestLayout();
121 super.setOrientation(orientation);
H A DSharePopup.java105 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, argument
158 setOrientation(orientation);
193 public void setOrientation(int orientation) { argument
194 mOrientation = orientation;
204 if (orientation == 90 || orientation == 270) {
229 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation);
235 r.setOrientation(orientation);
238 mGotoGalleryRotate.setOrientation(orientation);
H A DAbstractIndicatorButton.java108 public void setOrientation(int orientation) { argument
109 super.setOrientation(orientation);
111 mPopup.setOrientation(orientation);
H A DIndicatorControlBarContainer.java78 public void setOrientation(int orientation) { argument
79 mIndicatorControlBar.setOrientation(orientation);
80 mSecondLevelIndicatorControlBar.setOrientation(orientation);
H A DZoomControl.java210 public void setOrientation(int orientation) { argument
211 mOrientation = orientation;
216 ((RotateImageView) view).setOrientation(orientation);
/packages/apps/Phone/src/com/android/phone/
H A DAccelerometerListener.java30 * orientation of the phone. The client of this class is notified when
31 * the orientation changes between horizontal and vertical.
41 // mOrientation is the orientation value most recently reported to the client.
44 // mPendingOrientation is the latest orientation computed based on the sensor value.
51 // Device orientation
63 public void orientationChanged(int orientation); argument
87 private void setOrientation(int orientation) { argument
89 if (mPendingOrientation == orientation) {
90 // Pending orientation has not changed, so do nothing.
96 // if the orientation ha
[all...]
/packages/apps/Gallery/src/com/android/camera/
H A DMovieView.java57 int orientation = intent.getIntExtra(
60 if (orientation != getRequestedOrientation()) {
61 setRequestedOrientation(orientation);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DSuggestTestsBase.java41 protected KeyboardId createKeyboardId(Locale locale, int orientation) { argument
44 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
46 } else if (orientation == Configuration.ORIENTATION_PORTRAIT) {
50 + "orientation=" + orientation);
54 com.android.inputmethod.latin.R.xml.kbd_qwerty, locale, orientation, width,
/packages/inputmethods/PinyinIME/src/com/android/inputmethod/pinyin/
H A DEnvironment.java118 if (mConfig.orientation != newConfig.orientation) {
167 if (Configuration.ORIENTATION_LANDSCAPE == mConfig.orientation) {
186 if (Configuration.ORIENTATION_PORTRAIT == mConfig.orientation) {
188 } else if (Configuration.ORIENTATION_LANDSCAPE == mConfig.orientation) {
/packages/apps/Camera/src/com/android/camera/
H A DThumbnail.java55 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { argument
57 mBitmap = rotateImage(bitmap, orientation);
77 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { argument
78 if (orientation != 0) {
81 m.setRotate(orientation, bitmap.getWidth() * 0.5f,
168 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation);
174 public Media(long id, int orientation, long dateTaken, Uri uri) { argument
176 this.orientation = orientation;
182 public final int orientation; field in class:Thumbnail.Media
239 createThumbnail(byte[] jpeg, int orientation, int inSampleSize, Uri uri) argument
291 createThumbnail(Uri uri, Bitmap bitmap, int orientation) argument
[all...]
H A DExif.java94 // Get the tag and check if it is orientation.
98 int orientation = pack(jpeg, offset + 8, 2, littleEndian);
99 switch (orientation) {
109 Log.i(TAG, "Unsupported orientation");
H A DUtil.java345 result = (info.orientation + degrees) % 360;
348 result = (info.orientation - degrees + 360) % 360;
356 return info.orientation;
359 public static int roundOrientation(int orientation, int orientationHistory) { argument
364 int dist = Math.abs(orientation - orientationHistory);
369 return ((orientation + 45) / 90 * 90) % 360;
384 // layout the viewfinder in the portrait orientation and thus get the
618 public static void setRotationParameter(Parameters parameters, int cameraId, int orientation) { argument
622 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) {
625 rotation = (info.orientation
[all...]
/packages/apps/Gallery/src/com/android/camera/gallery/
H A DImage.java110 int orientation = ExifInterface.ORIENTATION_NORMAL;
113 orientation = ExifInterface.ORIENTATION_NORMAL;
116 orientation = ExifInterface.ORIENTATION_ROTATE_90;
119 orientation = ExifInterface.ORIENTATION_ROTATE_180;
122 orientation = ExifInterface.ORIENTATION_ROTATE_270;
127 Integer.toString(orientation));
130 Log.e(TAG, "unable to save exif data with new orientation "
H A DImageList.java128 int orientation = cursor.getInt(INDEX_ORIENTATION);
136 orientation);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DInfoDropTarget.java62 int orientation = getResources().getConfiguration().orientation;
63 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
/packages/apps/Gallery2/src/com/android/gallery3d/photoeditor/
H A DBitmapUtils.java128 int orientation = 0;
133 orientation = cursor.getInt(INDEX_ORIENTATION);
136 // Ignore error for no orientation column; just use the default orientation value 0.
142 return orientation;
197 * Gets decoded bitmap that keeps orientation as well.
202 // Rotate the decoded bitmap according to its orientation if it's necessary.
204 int orientation = getOrientation(uri);
205 if (orientation != 0) {
207 m.setRotate(orientation);
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DMovieActivity.java73 int orientation = intent.getIntExtra(
76 if (orientation != getRequestedOrientation()) {
77 setRequestedOrientation(orientation);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
H A DKeyboardId.java65 public KeyboardId(String xmlName, int xmlId, Locale locale, int orientation, int width, argument
71 this.mOrientation = orientation;
96 orientation,
/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DExif.java111 // Get the tag and check if it is orientation.
115 int orientation = pack(jpeg, offset + 8, 2, littleEndian);
116 switch (orientation) {
126 Log.i(TAG, "Unsupported orientation");
/packages/apps/Mms/src/com/android/mms/layout/
H A DLayoutManager.java46 configuration.orientation == Configuration.ORIENTATION_PORTRAIT
/packages/apps/Camera/src/com/android/camera/panorama/
H A DPanoramaActivity.java209 public void onOrientationChanged(int orientation) { argument
210 // We keep the last known orientation. So if the user first orient
212 // the correct orientation.
213 if (orientation == ORIENTATION_UNKNOWN) return;
214 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
815 // natural orientation of a camera. We need to set an orientation for the image
817 // The orientation is calculated from compensating the
818 // device orientation at capture and the camera orientation respectiv
909 savePanorama(byte[] jpegData, int width, int height, int orientation) argument
932 getExifOrientation(int orientation) argument
[all...]

Completed in 403 milliseconds

123