Home
last modified time | relevance | path

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

12345678

/packages/apps/Dialer/java/com/android/incallui/
DAccelerometerListener.java48 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 …]
DProximitySensor.java52 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()
DInCallOrientationEventListener.java115 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/
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()
142 private final int orientation; field in MediaSaverImpl.ImageSaveTask
149 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.java101 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/
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 …]
DUtil.java345 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/
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()
/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/UniversalMediaPlayer/java/com/android/pump/fragment/
DOtherFragment.java176 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/
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/
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()
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
/packages/apps/LegacyCamera/src/com/android/camera/ui/
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()
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()
/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/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/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/LegacyCamera/res/raw/
Dbackdropper.graph38 @external orientation;
57 orientation = $orientation;
64 orientation = $orientation;
/packages/apps/Camera2/res/raw/
Dbackdropper.graph38 @external orientation;
57 orientation = $orientation;
64 orientation = $orientation;
/packages/apps/Gallery2/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()

12345678