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

12345

/packages/apps/Camera/src/com/android/camera/ui/
H A DRotatable.java21 public void setOrientation(int orientation, boolean animation); argument
H A DRotateTextToast.java35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument
42 mToast.setOrientation(orientation, false);
H A DRotateLayout.java45 // happened when the view is rotated as the device's orientation
181 public void setOrientation(int orientation, boolean animation) { argument
182 orientation = orientation % 360;
183 if (mOrientation == orientation) return;
184 mOrientation = orientation;
/packages/apps/Gallery2/src/com/android/camera/ui/
H A DRotatable.java21 public void setOrientation(int orientation, boolean animation); argument
H A DCameraRootView.java66 // all the layout code assumes camera device orientation to be portrait
68 int orientation = getResources().getConfiguration().orientation;
71 if (camOrientation != orientation) {
111 int orientation = getResources().getConfiguration().orientation;
120 if (orientation == Configuration.ORIENTATION_PORTRAIT) {
H A DRotateTextToast.java35 public RotateTextToast(Activity activity, int textResourceId, int orientation) { argument
42 mToast.setOrientation(orientation, false);
H A DRotateLayout.java45 // happened when the view is rotated as the device's orientation
181 public void setOrientation(int orientation, boolean animation) { argument
182 orientation = orientation % 360;
183 if (mOrientation == orientation) return;
184 mOrientation = orientation;
/packages/apps/LegacyCamera/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 DSharePopup.java103 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, argument
156 setOrientation(orientation);
162 public void setOrientation(int orientation) { argument
164 mOrientation = orientation;
174 if (orientation == 90 || orientation == 270) {
199 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation);
205 r.setOrientation(orientation);
208 mGotoGalleryRotate.setOrientation(orientation);
H A DZoomControlBar.java118 public void setOrientation(int orientation) { argument
120 if ((orientation == 90) || (mOrientation == 90)) requestLayout();
121 super.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/Gallery2/src/com/android/gallery3d/app/
H A DOrientationManager.java39 // If the framework orientation is locked.
43 // don't allow the orientation to be unlocked if the value is true.
65 // We can choose to lock the framework orientation or not. If we lock the
66 // framework orientation, we calculate a a compensation value according to
67 // current device orientation and send it to listeners. If we don't lock
68 // the framework orientation, we always set the compensation value to 0.
71 // Lock the framework orientation to the current device orientation
82 // Unlock the framework orientation, so it can change when the device
87 Log.d(TAG, "unlock orientation");
121 onOrientationChanged(int orientation) argument
140 roundOrientation(int orientation, int orientationHistory) argument
[all...]
/packages/apps/Dialer/src/com/android/dialer/util/
H A DOrientationUtil.java23 * Static methods related to device orientation.
28 * @return if the context is in landscape orientation.
31 return context.getResources().getConfiguration().orientation
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherAppWidgetHostView.java52 // Store the orientation in which the widget was inflated
53 mPreviousOrientation = mContext.getResources().getConfiguration().orientation;
58 int orientation = mContext.getResources().getConfiguration().orientation;
59 if (mPreviousOrientation != orientation) {
H A DInfoDropTarget.java59 int orientation = getResources().getConfiguration().orientation;
60 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
/packages/apps/Camera/src/com/android/camera/
H A DMediaSaver.java66 int width, int height, int orientation, OnMediaSavedListener l) {
74 r.orientation = orientation;
114 r.orientation);
133 Location loc, int width, int height, int orientation) {
135 orientation, data, width, height);
146 int orientation; field in class:MediaSaver.SaveRequest
65 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, OnMediaSavedListener l) argument
132 storeImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation) argument
H A DCameraModule.java71 public void onOrientationChanged(int orientation); argument
/packages/apps/Gallery/src/com/android/camera/
H A DMovieView.java57 int orientation = intent.getIntExtra(
60 if (orientation != getRequestedOrientation()) {
61 setRequestedOrientation(orientation);
/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/LegacyCamera/src/com/android/camera/
H A DThumbnail.java59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { argument
61 mBitmap = rotateImage(bitmap, orientation);
81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { argument
82 if (orientation != 0) {
85 m.setRotate(orientation, bitmap.getWidth() * 0.5f,
176 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation);
182 public Media(long id, int orientation, long dateTaken, Uri uri) { argument
184 this.orientation = orientation;
190 public final int orientation; field in class:Thumbnail.Media
247 createThumbnail(byte[] jpeg, int orientation, int inSampleSize, Uri uri) argument
299 createThumbnail(Uri uri, Bitmap bitmap, int orientation) argument
[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 "
/packages/apps/Gallery2/src/com/android/camera/
H A DMediaSaveService.java86 int width, int height, int orientation, ExifInterface exif,
94 width, height, orientation, exif, resolver, l);
130 private int orientation; field in class:MediaSaveService.ImageSaveTask
136 int width, int height, int orientation, ExifInterface exif,
144 this.orientation = orientation;
158 resolver, title, date, loc, orientation, exif, data, width, height);
85 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver) argument
135 ImageSaveTask(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, ContentResolver resolver, OnMediaSavedListener listener) argument

Completed in 422 milliseconds

12345