Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 183) sorted by relevance

12345678

/packages/apps/Dialer/java/com/android/incallui/
DAccelerometerListener.java117 private void setOrientation(int orientation) { in setOrientation() argument
119 if (mPendingOrientation == orientation) { in setOrientation()
129 if (mOrientation != orientation) { in setOrientation()
132 mPendingOrientation = orientation; in setOrientation()
135 int delay = (orientation == ORIENTATION_VERTICAL ? VERTICAL_DEBOUNCE : HORIZONTAL_DEBOUNCE); in setOrientation()
161 final int orientation = in onSensorEvent() local
164 Log.d(TAG, "angle: " + angle + " orientation: " + orientation); in onSensorEvent()
166 setOrientation(orientation); in onSensorEvent()
171 void orientationChanged(int orientation); in orientationChanged() argument
DInCallOrientationEventListener.java115 final int orientation = toScreenOrientation(rotation); in onOrientationChanged() local
117 if (orientation != SCREEN_ORIENTATION_UNKNOWN && sCurrentOrientation != orientation) { in onOrientationChanged()
122 orientation); in onOrientationChanged()
123 sCurrentOrientation = orientation; in onOrientationChanged()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DOrientationManager.java95 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/Camera2/src/com/android/camera/
DMediaSaverImpl.java70 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()
143 private final int orientation; field in MediaSaverImpl.ImageSaveTask
150 int width, int height, int orientation, String mimeType, in ImageSaveTask() argument
[all …]
DPhotoUI.java164 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 …]
DStorage.java92 Location location, int orientation, ExifInterface exif, byte[] jpeg, int width, in addImage() argument
95 return addImage(resolver, title, date, location, orientation, exif, jpeg, width, height, in addImage()
121 Location location, int orientation, ExifInterface exif, byte[] data, int width, in addImage() argument
127 return addImageToMediaStore(resolver, title, date, location, orientation, fileLength, in addImage()
150 Location location, int orientation, long jpegLength, String path, int width, int height, in addImageToMediaStore() argument
154 getContentValuesForData(title, date, location, orientation, jpegLength, path, width, in addImageToMediaStore()
173 long date, Location location, int orientation, long jpegLength, in getContentValuesForData() argument
186 values.put(ImageColumns.ORIENTATION, orientation); in getContentValuesForData()
270 Location location, int orientation, ExifInterface exif, in updateImage() argument
274 … return updateImage(imageUri, resolver, title, date, location, orientation, jpeg.length, path, in updateImage()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DStickyBottomCaptureLayout.java57 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()
DRotateLayout.java116 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()
DFaceView.java110 public void setDisplayOrientation(int orientation) { in setDisplayOrientation() argument
111 mDisplayOrientation = orientation; in setDisplayOrientation()
113 Log.v(TAG, "mDisplayOrientation=" + orientation); in setDisplayOrientation()
118 public void setOrientation(int orientation, boolean animation) { in setOrientation() argument
119 mOrientation = orientation; in setOrientation()
/packages/apps/LegacyCamera/src/com/android/camera/
DThumbnail.java59 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 …]
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DRotateLayout.java105 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()
DFaceView.java66 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()
DSharePopup.java103 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()
/packages/apps/Gallery/src/com/android/camera/gallery/
DImage.java110 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/
DMediaSaver.java87 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
DOrientationManagerImpl.java181 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()
DOrientationManager.java14 private DeviceNaturalOrientation(int orientation) { in DeviceNaturalOrientation() argument
15 mOrientation = orientation; in DeviceNaturalOrientation()
80 DeviceOrientation orientation); in onOrientationChanged() argument
/packages/apps/Messaging/src/com/android/messaging/ui/
DOrientedBitmapDrawable.java41 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/Launcher2/src/com/android/launcher2/
DLauncherAppWidgetHostView.java53 mPreviousOrientation = mContext.getResources().getConfiguration().orientation; in updateAppWidget()
58 int orientation = mContext.getResources().getConfiguration().orientation; in orientationChangedSincedInflation() local
59 if (mPreviousOrientation != orientation) { in orientationChangedSincedInflation()
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DCameraPreview.java53 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/Camera2/src/com/android/camera/one/
DOneCamera.java270 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/Camera2/res/raw/
Dbackdropper.graph38 @external orientation;
57 orientation = $orientation;
64 orientation = $orientation;
/packages/apps/LegacyCamera/res/raw/
Dbackdropper.graph38 @external orientation;
57 orientation = $orientation;
64 orientation = $orientation;
/packages/apps/Dialer/java/com/android/dialer/callcomposer/camera/
DCameraPreview.java76 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()
/packages/apps/Gallery2/res/raw/
Dbackdropper.graph38 @external orientation;
57 orientation = $orientation;
64 orientation = $orientation;

12345678