Home
last modified time | relevance | path

Searched refs:isLandscape (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java80 boolean isLandscape; field in DeviceProfile
307 boolean isLandscape = (config.orientation == Configuration.ORIENTATION_LANDSCAPE) && in getDeviceOrientation()
311 if (isLandscape || isRotatedPortrait) { in getDeviceOrientation()
407 int maxRows = (isLandscape ? maxShortEdgeCellCount : maxLongEdgeCellCount); in updateIconSize()
408 int maxCols = (isLandscape ? maxLongEdgeCellCount : maxShortEdgeCellCount); in updateIconSize()
411 allAppsNumRows = isLandscape ? allAppsShortEdgeCount : allAppsLongEdgeCount; in updateIconSize()
412 allAppsNumCols = isLandscape ? allAppsLongEdgeCount : allAppsShortEdgeCount; in updateIconSize()
426 isLandscape = (configuration.orientation == Configuration.ORIENTATION_LANDSCAPE); in updateFromConfiguration()
522 return getSearchBarBounds(isLandscape ? CellLayout.LANDSCAPE : CellLayout.PORTRAIT); in getSearchBarBounds()
563 if (isLandscape && transposeLayoutWithOrientation) { in getWorkspacePageIndicatorBounds()
[all …]
DHotseat.java131 if (grid.isLandscape && !grid.isLargeTablet()) { in onFinishInflate()
DFolder.java1073 Rect workspacePadding = grid.getWorkspacePadding(grid.isLandscape ? in getContentAreaHeight()
DCellLayout.java2906 Rect padding = grid.getWorkspacePadding(grid.isLandscape ? in rectToCell()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DControlPanelLayout.java46 boolean isLandscape = (((Activity) getContext()).getRequestedOrientation() in onMeasure()
49 if (isLandscape) { in onMeasure()
70 int minimumSize = (isLandscape) ? getMinimumWidth() : getMinimumHeight(); in onMeasure()
80 if (isLandscape) { in onMeasure()
/packages/apps/FMRadio/src/com/android/fmradio/views/
DFmScroller.java289 final boolean isLandscape = curOrientation == Configuration.ORIENTATION_LANDSCAPE; in computeGridViewHeight()
290 int columnNum = isLandscape ? LAND_COLUMN_NUM : PORT_COLUMN_NUM; in computeGridViewHeight()
902 final boolean isLandscape = curOrientation == Configuration.ORIENTATION_LANDSCAPE; in onResume()
903 int columnNum = isLandscape ? LAND_COLUMN_NUM : PORT_COLUMN_NUM; in onResume()
/packages/apps/Camera/src/com/android/camera/
DMosaicPreviewRenderer.java189 public MosaicPreviewRenderer(SurfaceTexture tex, int w, int h, boolean isLandscape) { in MosaicPreviewRenderer() argument
193 mIsLandscape = isLandscape; in MosaicPreviewRenderer()
DPanoramaModule.java460 …final boolean isLandscape = (mActivity.getResources().getConfiguration().orientation == Configurat… in configMosaicPreview()
475 screenNail.getSurfaceTexture(), w, h, isLandscape); in configMosaicPreview()
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
DPhotoTable.java435 boolean isLandscape = mWidth > mHeight; in onLayout()
436 if (mIsLandscape != isLandscape) { in onLayout()
450 mIsLandscape = isLandscape; in onLayout()
/packages/apps/LegacyCamera/jni/
Dmosaic_renderer_jni.cpp506 void calculateUILayoutScaling(int width, int height, bool isLandscape) { in calculateUILayoutScaling() argument
507 if (isLandscape) { in calculateUILayoutScaling()
/packages/apps/Camera/jni/
Dmosaic_renderer_jni.cpp542 void calculateUILayoutScaling(int width, int height, bool isLandscape) { in calculateUILayoutScaling() argument
543 if (isLandscape) { in calculateUILayoutScaling()
/packages/apps/Launcher2/src/com/android/launcher2/
DAppsCustomizePagedView.java362 boolean isLandscape = getResources().getConfiguration().orientation == in onDataReady()
367 maxCellCountX = (isLandscape ? LauncherModel.getCellCountX() : in onDataReady()
369 maxCellCountY = (isLandscape ? LauncherModel.getCellCountY() : in onDataReady()
DWorkspace.java1004 boolean isLandscape = mDisplaySize.x > mDisplaySize.y; in computeScrollOffset()
1020 fractionToCatchUpIn1MsHorizontal = isLandscape ? 0.5f : 0.75f; in computeScrollOffset()
1023 fractionToCatchUpIn1MsHorizontal = isLandscape ? 0.27f : 0.5f; in computeScrollOffset()
/packages/apps/Dialer/src/com/android/dialer/util/
DOrientationUtil.java30 public static boolean isLandscape(Context context) { in isLandscape() method in OrientationUtil
/packages/apps/Camera2/src/com/android/camera/module/
DModuleController.java89 public void onLayoutOrientationChanged(boolean isLandscape); in onLayoutOrientationChanged() argument
/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmClockFragment.java195 boolean isLandscape = getResources().getConfiguration().orientation in onCreateView()
199 if (isLandscape) { in onCreateView()
/packages/apps/Mms/src/com/android/mms/ui/
DComposeMessageActivity.java2380 boolean isLandscape = config.orientation == Configuration.ORIENTATION_LANDSCAPE; in resetConfiguration()
2381 if (mIsLandscape != isLandscape) { in resetConfiguration()
2382 mIsLandscape = isLandscape; in resetConfiguration()
/packages/apps/Camera2/src/com/android/camera/
DCaptureModule.java574 public void onLayoutOrientationChanged(boolean isLandscape) { in onLayoutOrientationChanged() argument
DVideoModule.java1785 public void onLayoutOrientationChanged(boolean isLandscape) { in onLayoutOrientationChanged() argument
DPhotoModule.java1750 public void onLayoutOrientationChanged(boolean isLandscape) {
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java2445 public static boolean isLandscape(Context context) { in isLandscape() method in PhoneUtils