/packages/apps/Dialer/java/com/android/incallui/ |
D | AccelerometerListener.java | 48 private int orientation; field in AccelerometerListener 61 orientation = pendingOrientation; 66 + (orientation == ORIENTATION_HORIZONTAL 68 : (orientation == ORIENTATION_VERTICAL ? "vertical" : "unknown"))); 71 listener.orientationChanged(orientation); 106 orientation = ORIENTATION_UNKNOWN; in enable() 116 private void setOrientation(int orientation) { in setOrientation() argument 118 if (pendingOrientation == orientation) { in setOrientation() 128 if (this.orientation != orientation) { in setOrientation() 131 pendingOrientation = orientation; in setOrientation() [all …]
|
D | ProximitySensor.java | 52 private int orientation = AccelerometerListener.ORIENTATION_UNKNOWN; field in ProximitySensor 97 public void orientationChanged(int orientation) { in orientationChanged() argument 98 this.orientation = orientation; in orientationChanged() 125 orientation = AccelerometerListener.ORIENTATION_UNKNOWN; in onStateChange() 231 final boolean horizontal = (orientation == AccelerometerListener.ORIENTATION_HORIZONTAL); in updateProximitySensorMode() 247 orientation == AccelerometerListener.ORIENTATION_HORIZONTAL, in updateProximitySensorMode()
|
D | InCallOrientationEventListener.java | 115 final int orientation = toScreenOrientation(rotation); in onOrientationChanged() local 117 if (orientation != SCREEN_ORIENTATION_UNKNOWN && currentOrientation != orientation) { in onOrientationChanged() 122 orientation); in onOrientationChanged() 123 currentOrientation = orientation; in onOrientationChanged()
|
/packages/apps/Camera2/src/com/android/camera/ |
D | MediaSaverImpl.java | 70 int height, int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument 71 addImage(data, title, date, loc, width, height, orientation, exif, l, in addImage() 77 int height, int orientation, ExifInterface exif, OnMediaSavedListener l, in addImage() argument 85 width, height, orientation, mimeType, exif, mContentResolver, l); in addImage() 95 public void addImage(final byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 99 addImage(data, title, date, loc, 0, 0, orientation, exif, l, in addImage() 104 int orientation, ExifInterface exif, OnMediaSavedListener l) { in addImage() argument 105 addImage(data, title, System.currentTimeMillis(), loc, width, height, orientation, exif, l, in addImage() 142 private final int orientation; field in MediaSaverImpl.ImageSaveTask 149 int width, int height, int orientation, String mimeType, in ImageSaveTask() argument [all …]
|
D | PhotoUI.java | 164 public DecodeTask(byte[] data, int orientation, boolean mirror) { in DecodeTask() argument 166 mOrientation = orientation; in DecodeTask() 178 public DecodeImageForReview(byte[] data, int orientation, boolean mirror) { in DecodeImageForReview() argument 179 super(data, orientation, mirror); in DecodeImageForReview() 302 public void animateCapture(final byte[] jpegData, int orientation, boolean mirror) { in animateCapture() argument 304 DecodeTask task = new DecodeTask(jpegData, orientation, mirror); in animateCapture() 353 protected void showCapturedImageForReview(byte[] jpegData, int orientation, boolean mirror) { in showCapturedImageForReview() argument 354 mDecodeTaskForReview = new DecodeImageForReview(jpegData, orientation, mirror); in showCapturedImageForReview() 368 public void setDisplayOrientation(int orientation) { in setDisplayOrientation() argument 370 mFaceView.setDisplayOrientation(orientation); in setDisplayOrientation() [all …]
|
D | Storage.java | 101 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument 104 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage() 130 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument 135 return addImageToMediaStore(resolver, title, date, location, orientation, data.length, in addImage() 160 Location location, int orientation, long jpegLength, Bitmap bitmap, int width, in addImageToMediaStore() argument 293 Location location, int orientation, ExifInterface exif, in updateImage() argument 296 return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, in updateImage() 359 long date, Location location, int orientation, int jpegLength, in updateImage() argument 365 resultUri = addImageToMediaStore(resolver, title, date, location, orientation, in updateImage()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Thumbnail.java | 59 public Thumbnail(Uri uri, Bitmap bitmap, int orientation) { in Thumbnail() argument 61 mBitmap = rotateImage(bitmap, orientation); in Thumbnail() 81 private static Bitmap rotateImage(Bitmap bitmap, int orientation) { in rotateImage() argument 82 if (orientation != 0) { in rotateImage() 85 m.setRotate(orientation, bitmap.getWidth() * 0.5f, in rotateImage() 176 return createThumbnail(lastMedia.uri, bitmap, lastMedia.orientation); in getLastThumbnail() 182 public Media(long id, int orientation, long dateTaken, Uri uri) { in Media() argument 184 this.orientation = orientation; in Media() 190 public final int orientation; field in Thumbnail.Media 247 public static Thumbnail createThumbnail(byte[] jpeg, int orientation, int inSampleSize, in createThumbnail() argument [all …]
|
D | Util.java | 345 result = (info.orientation + degrees) % 360; in getDisplayOrientation() 348 result = (info.orientation - degrees + 360) % 360; in getDisplayOrientation() 356 return info.orientation; in getCameraOrientation() 359 public static int roundOrientation(int orientation, int orientationHistory) { in roundOrientation() argument 364 int dist = Math.abs(orientation - orientationHistory); in roundOrientation() 369 return ((orientation + 45) / 90 * 90) % 360; in roundOrientation() 618 public static void setRotationParameter(Parameters parameters, int cameraId, int orientation) { in setRotationParameter() argument 622 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) { in setRotationParameter() 625 rotation = (info.orientation - orientation + 360) % 360; in setRotationParameter() 627 rotation = (info.orientation + orientation) % 360; in setRotationParameter()
|
/packages/apps/Camera2/src/com/android/camera/ui/ |
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; in getRoundedThumbnailPosition() local 159 if (orientation == Configuration.ORIENTATION_PORTRAIT) { in getRoundedThumbnailPosition() 171 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getRoundedThumbnailPosition()
|
D | RotateLayout.java | 116 public void setOrientation(int orientation, boolean animation) { in setOrientation() argument 117 orientation = orientation % 360; in setOrientation() 118 if (mOrientation == orientation) return; in setOrientation() 119 mOrientation = orientation; in setOrientation()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | OrientationManager.java | 95 if (mActivity.getResources().getConfiguration().orientation in calculateCurrentScreenOrientation() 121 public void onOrientationChanged(int orientation) { 125 if (orientation == ORIENTATION_UNKNOWN) return; 126 orientation = roundOrientation(orientation, 0); 140 private static int roundOrientation(int orientation, int orientationHistory) { 145 int dist = Math.abs(orientation - orientationHistory); 150 return ((orientation + 45) / 90 * 90) % 360;
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/ |
D | OtherFragment.java | 176 int orientation = getOrientation(current); in recalculateSpans() local 177 if (orientation == Orientation.LANDSCAPE) { in recalculateSpans() 178 orientation = getOrientation(current + 1); in recalculateSpans() 179 if (orientation == Orientation.LANDSCAPE) { in recalculateSpans() 183 } else if (orientation == Orientation.PORTRAIT) { in recalculateSpans() 191 } else if (orientation == Orientation.PORTRAIT) { in recalculateSpans() 192 orientation = getOrientation(current + 1); in recalculateSpans() 193 if (orientation == Orientation.LANDSCAPE) { in recalculateSpans() 197 } else if (orientation == Orientation.PORTRAIT && in recalculateSpans()
|
/packages/apps/Gallery/src/com/android/camera/gallery/ |
D | Image.java | 110 int orientation = ExifInterface.ORIENTATION_NORMAL; in setExifRotation() local 113 orientation = ExifInterface.ORIENTATION_NORMAL; in setExifRotation() 116 orientation = ExifInterface.ORIENTATION_ROTATE_90; in setExifRotation() 119 orientation = ExifInterface.ORIENTATION_ROTATE_180; in setExifRotation() 122 orientation = ExifInterface.ORIENTATION_ROTATE_270; in setExifRotation() 127 Integer.toString(orientation)); in setExifRotation()
|
/packages/apps/Camera2/src/com/android/camera/app/ |
D | OrientationManagerImpl.java | 181 if (mActivity.getResources().getConfiguration().orientation in calculateCurrentScreenOrientation() 207 public void onOrientationChanged(int orientation) { 208 if (orientation == ORIENTATION_UNKNOWN) { 213 roundOrientation(mLastDeviceOrientation, orientation); 278 int orientation = currentDisplay.getRotation(); in isDefaultToPortrait() local 280 if (orientation == Surface.ROTATION_0 || orientation == Surface.ROTATION_180) { in isDefaultToPortrait()
|
D | MediaSaver.java | 87 int orientation, ExifInterface exif, OnMediaSavedListener l); in addImage() argument 109 int orientation, ExifInterface exif, OnMediaSavedListener l, String mimeType); in addImage() argument 126 void addImage(byte[] data, String title, long date, Location loc, int orientation, in addImage() argument 146 void addImage(byte[] data, String title, Location loc, int width, int height, int orientation, in addImage() argument
|
/packages/apps/LegacyCamera/src/com/android/camera/ui/ |
D | SharePopup.java | 103 public SharePopup(Activity activity, Uri uri, Bitmap bitmap, int orientation, in SharePopup() argument 156 setOrientation(orientation); in SharePopup() 162 public void setOrientation(int orientation) { in setOrientation() argument 164 mOrientation = orientation; in setOrientation() 174 if (orientation == 90 || orientation == 270) { in setOrientation() 199 if (mThumbnailRotateLayout != null) mThumbnailRotateLayout.setOrientation(orientation); in setOrientation() 205 r.setOrientation(orientation); in setOrientation() 208 mGotoGalleryRotate.setOrientation(orientation); in setOrientation()
|
D | RotateLayout.java | 105 public void setOrientation(int orientation) { in setOrientation() argument 106 orientation = orientation % 360; in setOrientation() 107 if (mOrientation == orientation) return; in setOrientation() 108 mOrientation = orientation; in setOrientation()
|
D | FaceView.java | 66 public void setDisplayOrientation(int orientation) { in setDisplayOrientation() argument 67 mDisplayOrientation = orientation; in setDisplayOrientation() 68 if (LOGV) Log.v(TAG, "mDisplayOrientation=" + orientation); in setDisplayOrientation() 71 public void setOrientation(int orientation) { in setOrientation() argument 72 mOrientation = orientation; in setOrientation()
|
/packages/apps/Camera2/src/com/android/camera/one/ |
D | OneCamera.java | 270 public final int orientation; field in OneCamera.CaptureParameters 278 public CaptureParameters(String title, int orientation, Location location, File in CaptureParameters() argument 281 this.orientation = orientation; in CaptureParameters() 339 public PhotoCaptureParameters(String title, int orientation, Location location, File in PhotoCaptureParameters() argument 342 super(title, orientation, location, debugDataFolder); in PhotoCaptureParameters()
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | OrientedBitmapDrawable.java | 41 public static BitmapDrawable create(final int orientation, Resources res, Bitmap bitmap) { in create() argument 42 if (orientation <= ExifInterface.Orientation.TOP_LEFT) { in create() 47 return new OrientedBitmapDrawable(orientation, res, bitmap); in create() 51 private OrientedBitmapDrawable(final int orientation, Resources res, Bitmap bitmap) { in OrientedBitmapDrawable() argument 53 mOrientationParams = ExifInterface.getOrientationParams(orientation); in OrientedBitmapDrawable()
|
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/ |
D | CameraPreview.java | 53 public void setSize(final Camera.Size size, final int orientation) { in setSize() argument 54 switch (orientation) { in setSize() 80 final int orientation = getContext().getResources().getConfiguration().orientation; in getHeightMeasureSpec() local 84 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getHeightMeasureSpec()
|
/packages/apps/LegacyCamera/res/raw/ |
D | backdropper.graph | 38 @external orientation; 57 orientation = $orientation; 64 orientation = $orientation;
|
/packages/apps/Camera2/res/raw/ |
D | backdropper.graph | 38 @external orientation; 57 orientation = $orientation; 64 orientation = $orientation;
|
/packages/apps/Gallery2/res/raw/ |
D | backdropper.graph | 38 @external orientation; 57 orientation = $orientation; 64 orientation = $orientation;
|
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/ |
D | CameraPreview.java | 76 public void setSize(final Camera.Size size, final int orientation) { in setSize() argument 77 switch (orientation) { in setSize() 103 final int orientation = getContext().getResources().getConfiguration().orientation; in getHeightMeasureSpec() local 107 if (orientation == Configuration.ORIENTATION_LANDSCAPE) { in getHeightMeasureSpec()
|