Searched refs:orientation (Results 51 - 75 of 165) sorted by relevance

1234567

/packages/apps/InCallUI/src/com/android/incallui/
H A DProximitySensor.java73 public void orientationChanged(int orientation) { argument
74 mOrientation = orientation;
H A DVideoCallPresenter.java66 * Determines the device orientation (portrait/lanscape).
128 * Determines the device orientation (portrait/lanscape).
398 * TODO(vt): Need to adjust size and orientation of preview surface here.
412 // Do not reset the surfaces if we just restarted the activity due to an orientation
519 * Handles hanges to the device orientation.
521 * @param orientation The device orientation.
524 public void onDeviceOrientationChanged(int orientation) { argument
525 mDeviceOrientation = orientation;
566 * Sets the preview surface size based on the current device orientation
572 setPreviewSize(int orientation, float aspectRatio) argument
[all...]
/packages/apps/Camera/src/com/android/camera/
H A DPanoramaModule.java208 public void onOrientationChanged(int orientation) { argument
209 // We keep the last known orientation. So if the user first orient
211 // the correct orientation.
212 if (orientation == ORIENTATION_UNKNOWN) return;
213 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
460 final boolean isLandscape = (mActivity.getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE);
575 int orientation = Util.getDisplayOrientation(degrees, cameraId);
577 mProgressDirectionMatrix.postRotate(orientation);
708 if (mActivity.getResources().getConfiguration().orientation
782 // natural orientation o
908 savePanorama(byte[] jpegData, int width, int height, int orientation) argument
948 getExifOrientation(int orientation) argument
1051 onOrientationChanged(int orientation) argument
[all...]
H A DCameraActivity.java56 // The degrees of the device rotated clockwise from its natural orientation.
125 public void onOrientationChanged(int orientation) { argument
126 // We keep the last known orientation. So if the user first orient
128 // the correct orientation.
129 if (orientation == ORIENTATION_UNKNOWN) return;
130 mLastRawOrientation = orientation;
131 mCurrentModule.onOrientationChanged(orientation);
223 // create new layout with the current orientation
H A DUtil.java396 result = (info.orientation + degrees) % 360;
399 result = (info.orientation - degrees + 360) % 360;
407 return info.orientation;
410 public static int roundOrientation(int orientation, int orientationHistory) { argument
415 int dist = Math.abs(orientation - orientationHistory);
420 return ((orientation + 45) / 90 * 90) % 360;
447 // layout the viewfinder in the portrait orientation and thus get the
693 public static int getJpegRotation(int cameraId, int orientation) { argument
697 if (orientation != OrientationEventListener.ORIENTATION_UNKNOWN) {
700 rotation = (info.orientation
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DDeviceProfile.java313 boolean isLandscape = (config.orientation == Configuration.ORIENTATION_LANDSCAPE) &&
315 boolean isRotatedPortrait = (config.orientation == Configuration.ORIENTATION_PORTRAIT) &&
344 if (config.orientation == Configuration.ORIENTATION_LANDSCAPE) {
436 isLandscape = (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE);
530 /** Returns the search bar bounds in the current orientation */
534 /** Returns the search bar bounds in the specified orientation */
535 Rect getSearchBarBounds(int orientation) { argument
537 if (orientation == CellLayout.LANDSCAPE &&
550 int width = (orientation == CellLayout.LANDSCAPE)
591 /** Returns the workspace padding in the specified orientation */
595 getWorkspacePadding(int orientation) argument
638 getWorkspacePageSpacing(int orientation) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DVideoUI.java146 public void setOrientationIndicator(int orientation, boolean animation) { argument
147 // We change the orientation of the linearlayout only for phone UI
150 if (((orientation / 90) & 1) == 0) {
272 public void onOrientationChanged(int orientation) { argument
273 mVideoHints.onOrientationChanged(orientation);
/packages/apps/Camera2/src/com/android/camera/session/
H A DCaptureSession.java120 public void saveAndFinish(byte[] data, int width, int height, int orientation, argument
H A DCaptureSessionManager.java100 * @param orientation the orientation of the captured image.
105 int orientation, ExifInterface exif, OnMediaSavedListener listener);
104 saveImage(byte[] data, String title, long date, Location loc, int width, int height, int orientation, ExifInterface exif, OnMediaSavedListener listener) argument
H A DPlaceholderManager.java97 * @param orientation the orientation of the image
105 public Uri finishPlaceholder(Session session, Location location, int orientation, argument
109 session.time, location, orientation, exif, jpeg, width, height, mimeType);
/packages/apps/Mms/src/com/android/mms/layout/
H A DLayoutManager.java46 configuration.orientation == Configuration.ORIENTATION_PORTRAIT
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/cache/
H A DImageLoader.java96 * Returns the image's orientation flag. Defaults to ORI_NORMAL if no valid
97 * orientation was found.
104 // First try to find orientation data in Gallery's ContentProvider.
149 Log.w(LOGTAG, "Failed to read EXIF orientation", e);
165 int orientation = tagval;
166 switch(orientation) {
175 return orientation;
188 int orientation = getMetadataOrientation(context, uri);
189 switch(orientation) {
202 * Takes an orientation an
403 loadOrientedConstrainedBitmap(Uri uri, Context context, int maxSideLength, int orientation, Rect originalBounds) argument
[all...]
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoSource.java53 public int orientation; field in class:PhotoSource.ImageData
216 if (data.orientation != 0) {
217 log(TAG, "rotated by " + data.orientation + ": fixing");
219 matrix.setRotate(data.orientation,
225 if (data.orientation == 90 || data.orientation == 270) {
H A DPhotoCarousel.java189 int orientation = (width > height ? LANDSCAPE : PORTRAIT);
192 destination.setTag(R.id.photo_orientation, Integer.valueOf(orientation));
208 int orientation = ((Integer) photo.getTag(R.id.photo_orientation)).intValue();
215 } else if (orientation == mOrientation) {
/packages/apps/LegacyCamera/src/com/android/camera/panorama/
H A DPanoramaActivity.java212 public void onOrientationChanged(int orientation) { argument
213 // We keep the last known orientation. So if the user first orient
215 // the correct orientation.
216 if (orientation == ORIENTATION_UNKNOWN) return;
217 mDeviceOrientation = Util.roundOrientation(orientation, mDeviceOrientation);
853 // natural orientation of a camera. We need to set an orientation for the image
855 // The orientation is calculated from compensating the
856 // device orientation at capture and the camera orientation respectiv
947 savePanorama(byte[] jpegData, int width, int height, int orientation) argument
970 getExifOrientation(int orientation) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
H A DMotionEventHelper.java72 pointerCoords[i].orientation = transformAngle(
73 m, pointerCoords[i].orientation);
/packages/apps/LegacyCamera/src/com/android/camera/
H A DRotateDialogController.java81 public void setOrientation(int orientation) { argument
83 mRotateDialog.setOrientation(orientation);
H A DStorage.java53 Location location, int orientation, byte[] jpeg, int width, int height) {
76 values.put(ImageColumns.ORIENTATION, orientation);
52 addImage(ContentResolver resolver, String title, long date, Location location, int orientation, byte[] jpeg, int width, int height) argument
H A DModePicker.java192 public void setOrientation(int orientation) { argument
194 mModeSelectionIcon[i].setOrientation(orientation);
196 mCurrentModeIcon[i].setOrientation(orientation);
/packages/apps/LegacyCamera/src/com/android/camera/ui/
H A DIndicatorControlWheelContainer.java169 public void setOrientation(int orientation) { argument
170 mIndicatorControlWheel.setOrientation(orientation);
H A DIndicatorControl.java64 public void setOrientation(int orientation) { argument
65 mOrientation = orientation;
70 ((Rotatable) view).setOrientation(orientation);
H A DSecondLevelIndicatorControlBar.java166 public void setOrientation(int orientation) { argument
167 mOrientation = orientation;
168 super.setOrientation(orientation);
/packages/wallpapers/Basic/src/com/android/wallpaper/walkaround/
H A DWalkAroundWallpaper.java58 boolean portrait = newConfig.orientation == Configuration.ORIENTATION_PORTRAIT;
60 params.set("orientation", portrait ? "portrait" : "landscape");
163 final boolean portrait = resources.getConfiguration().orientation ==
209 params.set("orientation", portrait ? "portrait" : "landscape");
/packages/apps/Camera2/src/com/android/camera/widget/
H A DVideoRecordingHints.java203 * Handles orientation change by starting/stopping the video hint based on the
204 * new orientation.
206 public void onOrientationChanged(int orientation) { argument
207 if (mLastOrientation == orientation) {
210 mLastOrientation = orientation;
233 * Returns whether the device is in landscape based on the natural orientation
234 * and rotation from natural orientation.
/packages/apps/Gallery2/src/com/android/gallery3d/app/
H A DMovieActivity.java101 int orientation = intent.getIntExtra(
104 if (orientation != getRequestedOrientation()) {
105 setRequestedOrientation(orientation);

Completed in 868 milliseconds

1234567