Home
last modified time | relevance | path

Searched refs:isPortrait (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java128 if (isPortrait()) { in asPortrait()
140 if (other.isPortrait()) { in withOrientationOf()
206 private boolean isPortrait() { in isPortrait() method in AspectRatio
DSize.java115 if (isPortrait()) { in asPortrait()
226 private boolean isPortrait() { in isPortrait() method in Size
/packages/apps/Camera2/src/com/android/camera/ui/
DTopRightWeightedLayout.java58 final boolean isPortrait = Configuration.ORIENTATION_PORTRAIT == orientation; in checkOrientation()
59 if (isPortrait && !isHorizontal) { in checkOrientation()
66 } else if (!isPortrait && isHorizontal) { in checkOrientation()
/packages/apps/DeskClock/src/com/android/alarmclock/
DWidgetUtils.java58 if (Utils.isPortrait(context)) { in getScaleRatio()
88 if (Utils.isPortrait(context)) { in getHeightScaleRatio()
/packages/services/BuiltInPrintService/src/com/android/bips/
DImagePrintActivity.java140 boolean isPortrait = values[0]; in onProgressUpdate()
141 if (DEBUG) Log.d(TAG, "startPrint(portrait=" + isPortrait + ")"); in onProgressUpdate()
149 .setMediaSize(isPortrait ? getLocaleDefaultMediaSize() : in onProgressUpdate()
DImageToPdfTask.java78 if (mAttributes.getMediaSize().isPortrait() == mBitmap.getWidth() < mBitmap.getHeight()) { in writeBitmapToDocument()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/wifi/qrcode/
DQrCamera.java320 final boolean isPortrait = mContext.get().getResources().getConfiguration().orientation in setTransformationMatrix()
323 final int previewWidth = isPortrait ? mPreviewSize.getWidth() : mPreviewSize.getHeight(); in setTransformationMatrix()
324 final int previewHeight = isPortrait ? mPreviewSize.getHeight() : mPreviewSize.getWidth(); in setTransformationMatrix()
/packages/apps/Settings/src/com/android/settings/wifi/qrcode/
DQrCamera.java345 final boolean isPortrait = mContext.get().getResources().getConfiguration().orientation in setTransformationMatrix()
348 final int previewWidth = isPortrait ? mPreviewSize.getWidth() : mPreviewSize.getHeight(); in setTransformationMatrix()
349 final int previewHeight = isPortrait ? mPreviewSize.getHeight() : mPreviewSize.getWidth(); in setTransformationMatrix()
/packages/apps/Camera2/src/com/android/camera/widget/
DModeOptionsOverlay.java185 final boolean isPortrait = (Configuration.ORIENTATION_PORTRAIT == orientation); in checkOrientation()
195 if (isPortrait) { in checkOrientation()
/packages/apps/DeskClock/src/com/android/deskclock/
DClockFragment.java355 mIsPortrait = Utils.isPortrait(context); in SelectedCitiesAdapter()
449 private void bind(Context context, City city, int position, boolean isPortrait) { in bind() argument
470 final int top = position == 0 && !isPortrait ? 0 : padding; in bind()
DUtils.java526 public static boolean isPortrait(Context context) { in isPortrait() method in Utils
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java363 boolean isPortrait = displaySize.x < displaySize.y; in cropImageAndSetWallpaper()
404 if (isPortrait) { in cropImageAndSetWallpaper()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DStartJobTask.java107 mJobParams.portrait_mode = mediaSize == null || mediaSize.isPortrait(); in populateJobParams()
/packages/apps/DeskClock/src/com/android/deskclock/stopwatch/
DStopwatchFragment.java429 if (Utils.isPortrait(getActivity())) { in showOrHideLaps()