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

1234567

/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/Camera2/src/com/android/camera/ui/
H A DRotatable.java21 public void setOrientation(int orientation, boolean animation); argument
H A DRotateLayout.java39 // happened when the view is rotated as the device's orientation
116 public void setOrientation(int orientation, boolean animation) { argument
117 orientation = orientation % 360;
118 if (mOrientation == orientation) return;
119 mOrientation = orientation;
H A DTopRightWeightedLayout.java33 * on an orientation change.
43 checkOrientation(configuration.orientation);
49 checkOrientation(configuration.orientation);
53 * Set the orientation of this layout if it has changed,
54 * and center the elements based on the new orientation.
56 private void checkOrientation(int orientation) { argument
58 final boolean isPortrait = Configuration.ORIENTATION_PORTRAIT == orientation;
60 // Portrait orientation is out of sync, setting to horizontal
67 // Landscape orientation is out of sync, setting to vertical
/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);
/packages/apps/InCallUI/src/com/android/incallui/
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/services/Telephony/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/Camera2/src/com/android/camera/app/
H A DOrientationManager.java7 * An interface which defines the orientation manager.
14 * Called when the orientation changes.
16 * @param orientation The current orientation.
18 public void onOrientationChanged(int orientation); argument
35 * Lock the framework orientation to the current device orientation
41 * Unlock the framework orientation, so it can change when the device
46 /** @return Whether the orientation is locked by the app or the system. */
50 * Returns the display rotation degrees relative to the natural orientation
[all...]
H A DOrientationManagerImpl.java48 // If the framework orientation is locked.
52 // don't allow the orientation to be unlocked if the value is true.
67 public void postOrientationChangeCallback(final int orientation) { argument
71 mListener.onOrientationChanged(orientation);
108 // We can choose to lock the framework orientation or not. If we lock the
109 // framework orientation, we calculate a a compensation value according to
110 // current device orientation and send it to listeners. If we don't lock
111 // the framework orientation, we always set the compensation value to 0.
152 Log.d(TAG, "unlock orientation");
165 if (mActivity.getResources().getConfiguration().orientation
191 onOrientationChanged(int orientation) argument
213 roundOrientation(int orientation, int orientationHistory) argument
[all...]
H A DMediaSaver.java72 * @param width The width of the image data before the orientation is
74 * @param height The height of the image data before the orientation is
76 * @param orientation The orientation of the image. The value should be a
85 int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver);
96 * @param orientation The orientation of the image. The value should be a
104 void addImage(byte[] data, String title, long date, Location loc, int orientation, argument
116 * @param width The width of the image data before the orientation is
118 * @param height The height of the image data before the orientation i
84 addImage(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver) argument
126 addImage(byte[] data, String title, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver) 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) {
/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
/packages/apps/Camera2/src/com/android/camera/widget/
H A DLocationDialogLayout.java43 mLastOrientation = context.getResources().getConfiguration().orientation;
54 // TODO: Extract the orientation checking logic in a super class as it
56 if (config.orientation == mLastOrientation) {
59 mLastOrientation = config.orientation;
H A DAspectRatioDialogLayout.java41 mLastOrientation = getResources().getConfiguration().orientation;
68 if (config.orientation == mLastOrientation) {
71 mLastOrientation = config.orientation;
/packages/apps/Gallery/src/com/android/camera/
H A DMovieView.java57 int orientation = intent.getIntExtra(
60 if (orientation != getRequestedOrientation()) {
61 setRequestedOrientation(orientation);
/packages/apps/Camera2/src/com/android/camera/
H A DMediaSaverImpl.java59 int height, int orientation, ExifInterface exif, OnMediaSavedListener l,
67 width, height, orientation, exif, resolver, l);
77 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, argument
81 addImage(data, title, date, loc, 0, 0, orientation, exif, l, resolver);
85 int orientation, ExifInterface exif, OnMediaSavedListener l,
88 orientation, exif, l, resolver);
126 private final int orientation; field in class:MediaSaverImpl.ImageSaveTask
132 int width, int height, int orientation, ExifInterface exif,
140 this.orientation = orientation;
58 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver) argument
84 addImage(final byte[] data, String title, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, ContentResolver resolver) argument
131 ImageSaveTask(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, ContentResolver resolver, OnMediaSavedListener listener) argument
[all...]
/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/Launcher3/src/com/android/launcher3/
H A DLauncherAppWidgetHostView.java59 // Store the orientation in which the widget was inflated
60 mPreviousOrientation = mContext.getResources().getConfiguration().orientation;
65 // Re-inflate is required if the orientation has changed since last inflated.
66 int orientation = mContext.getResources().getConfiguration().orientation;
67 if (mPreviousOrientation != orientation) {

Completed in 542 milliseconds

1234567