/packages/apps/Camera2/src/com/android/camera/ui/ |
H A D | Rotatable.java | 21 public void setOrientation(int orientation, boolean animation); argument
|
H A D | RotateLayout.java | 39 // 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 D | StickyBottomCaptureLayout.java | 57 final int orientation = getResources().getConfiguration().orientation; 58 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 71 final int orientation = getResources().getConfiguration().orientation; 72 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 155 final int orientation = getResources().getConfiguration().orientation; 159 if (orientation == Configuration.ORIENTATION_PORTRAIT) { 171 if (orientation [all...] |
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
H A D | Rotatable.java | 20 public void setOrientation(int orientation); argument
|
H A D | RotateLayout.java | 34 // 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;
|
/packages/apps/Camera2/src/com/android/camera/captureintent/event/ |
H A D | EventPictureCompressed.java | 25 public EventPictureCompressed(byte[] pictureData, int orientation) { argument 27 mOrientation = orientation;
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
H A D | ImageResource.java | 29 public ImageResource(final String key, int orientation) { argument 31 mOrientation = orientation; 58 * Gets the orientation of the image as one of the ExifInterface.ORIENTATION_* constants
|
/packages/apps/Dialer/InCallUI/src/com/android/incallui/ |
H A D | AccelerometerListener.java | 30 * 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 90 private void setOrientation(int orientation) { argument 92 if (mPendingOrientation == orientation) { 93 // Pending orientation has not changed, so do nothing. 99 // if the orientation ha [all...] |
H A D | InCallOrientationEventListener.java | 28 * invoked when an orientation change occurs. When that happens, we notify InCallUI registrants 34 * Screen orientation angles one of 0, 90, 180, 270, 360 in degrees. 49 * This is to identify dead zones where we won't notify others of orientation changed. 51 * within x degrees right or left of the screen orientation angles. If it's not within those 57 // the above angles, we will notify orientation changed. 72 * Handles changes in device orientation. Notifies InCallPresenter of orientation changes. 75 * one of our screen orientation constants - (one of: {@link SCREEN_ORIENTATION_0}, 87 final int orientation = toScreenOrientation(rotation); 89 if (orientation ! [all...] |
/packages/apps/Camera2/src/com/android/camera/app/ |
H A D | OrientationManager.java | 6 * An interface which defines the orientation manager. 14 private DeviceNaturalOrientation(int orientation) { argument 15 mOrientation = orientation; 41 * value is given, the closest orientation of CLOCKWISE_0, CLOCKWISE_90, 74 * Called when the orientation changes. 76 * @param orientationManager The orientation manager detects the change. 77 * @param orientation The new rounded orientation. 80 DeviceOrientation orientation); 95 * Returns the device natural orientation 79 onOrientationChanged(OrientationManager orientationManager, DeviceOrientation orientation) argument [all...] |
H A D | MediaSaver.java | 76 * @param width The width of the image data before the orientation is 78 * @param height The height of the image data before the orientation is 80 * @param orientation The orientation of the image. The value should be a 87 int orientation, ExifInterface exif, OnMediaSavedListener l); 97 * @param width The width of the image data before the orientation is 99 * @param height The height of the image data before the orientation is 101 * @param orientation The orientation of the image. The value should be a 109 int orientation, ExifInterfac 86 addImage(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument 108 addImage(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType) argument 126 addImage(byte[] data, String title, long date, Location loc, int orientation, ExifInterface exif, OnMediaSavedListener l) argument 146 addImage(byte[] data, String title, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/data/ |
H A D | VideoItemData.java | 33 Size dimensions, long sizeInBytes, int orientation, 36 sizeInBytes, orientation, location); 31 VideoItemData(long contentId, String title, String mimeType, Date creationDate, Date lastModifiedDate, String filePath, Uri uri, Size dimensions, long sizeInBytes, int orientation, Location location, long videoDurationMillis) argument
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
H A D | OrientationManager.java | 39 // 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 D | OrientationUtil.java | 23 * 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 D | LauncherAppWidgetHostView.java | 52 // 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/Camera2/src/com/android/camera/ |
H A D | MediaSaverImpl.java | 70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) { 71 addImage(data, title, date, loc, width, height, orientation, exif, l, 77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l, 85 width, height, orientation, mimeType, exif, mContentResolver, l); 95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, argument 99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, 104 int orientation, ExifInterface exif, OnMediaSavedListener l) { 105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, 143 private final int orientation; field in class:MediaSaverImpl.ImageSaveTask 150 int width, int height, int orientation, Strin 69 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument 76 addImage(final byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType) argument 103 addImage(final byte[] data, String title, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener l) argument 149 ImageSaveTask(byte[] data, String title, long date, Location loc, int width, int height, int orientation, String mimeType, ExifInterface exif, ContentResolver resolver, OnMediaSavedListener listener) argument [all...] |
H A D | PhotoUI.java | 164 public DecodeTask(byte[] data, int orientation, boolean mirror) { argument 166 mOrientation = orientation; 178 public DecodeImageForReview(byte[] data, int orientation, boolean mirror) { argument 179 super(data, orientation, mirror); 302 public void animateCapture(final byte[] jpegData, int orientation, boolean mirror) { argument 304 DecodeTask task = new DecodeTask(jpegData, orientation, mirror); 353 protected void showCapturedImageForReview(byte[] jpegData, int orientation, boolean mirror) { argument 354 mDecodeTaskForReview = new DecodeImageForReview(jpegData, orientation, mirror); 368 public void setDisplayOrientation(int orientation) { argument 370 mFaceView.setDisplayOrientation(orientation); 422 onStartFaceDetection(int orientation, boolean mirror) argument [all...] |
/packages/apps/Camera2/src/com/android/camera/widget/ |
H A D | LocationDialogLayout.java | 54 mLastOrientation = context.getResources().getConfiguration().orientation; 67 if (config.orientation == mLastOrientation) { 70 mLastOrientation = config.orientation;
|
/packages/apps/Gallery/src/com/android/camera/ |
H A D | MovieView.java | 57 int orientation = intent.getIntExtra( 60 if (orientation != getRequestedOrientation()) { 61 setRequestedOrientation(orientation);
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
H A D | OrientedBitmapDrawable.java | 31 * A drawable that draws a bitmap in a flipped or rotated orientation without having to adjust the 41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) { argument 42 if (orientation <= ExifInterface.Orientation.TOP_LEFT) { 47 return new OrientedBitmapDrawable(orientation, res, bitmap); 51 private OrientedBitmapDrawable(final int orientation, Resources res, Bitmap bitmap) { argument 53 mOrientationParams = ExifInterface.getOrientationParams(orientation);
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
H A D | CameraPreview.java | 53 public void setSize(final Camera.Size size, final int orientation) { argument 54 switch (orientation) { 80 final int orientation = getContext().getResources().getConfiguration().orientation; 84 if (orientation == Configuration.ORIENTATION_LANDSCAPE) {
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
H A D | Thumbnail.java | 59 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/Camera2/src/com/android/camera/one/ |
H A D | OneCamera.java | 269 /** The device orientation so we can compute the right JPEG rotation. */ 270 public final int orientation; field in class:OneCamera.CaptureParameters 278 public CaptureParameters(String title, int orientation, Location location, File argument 281 this.orientation = orientation; 339 public PhotoCaptureParameters(String title, int orientation, Location location, File argument 342 super(title, orientation, location, debugDataFolder);
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
H A D | Image.java | 110 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/Camera2/src/com/android/camera/hardware/ |
H A D | HeadingSensor.java | 119 float[] orientation = new float[3]; 121 SensorManager.getOrientation(mRotationMatrix, orientation); 122 mHeading = (int) (orientation[0] * 180f / Math.PI) % 360;
|