Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/
DRecentsConfiguration.java116 boolean isLandscape = mAppContext.getResources().getConfiguration().orientation == in getDockStatesForCurrentOrientation()
120 return isLandscape ? DockRegion.TABLET_LANDSCAPE : DockRegion.TABLET_PORTRAIT; in getDockStatesForCurrentOrientation()
122 return isLandscape ? DockRegion.PHONE_LANDSCAPE : DockRegion.PHONE_PORTRAIT; in getDockStatesForCurrentOrientation()
/frameworks/base/core/java/com/android/internal/policy/
DPipSnapAlgorithm.java124 final boolean isLandscape = mOrientation == Configuration.ORIENTATION_LANDSCAPE; in getEdgeIntersect()
150 if (isLandscape) { in getEdgeIntersect()
161 final int startPoint = isLandscape ? dragStartPosition.y : dragStartPosition.x; in getEdgeIntersect()
162 final int endPoint = isLandscape ? horizPoint.y : horizPoint.x; in getEdgeIntersect()
168 int distance = (int) (0 - Math.pow(isLandscape ? velX : velY, 2)) in getEdgeIntersect()
172 if (isLandscape) { in getEdgeIntersect()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/lowram/
DTaskStackLowRamLayoutAlgorithm.java70 boolean isLandscape = windowWidth > windowHeight; in initialize()
71 mTaskRect.set(0, 0, width, isLandscape ? width * 2 / 3 : width); in initialize()
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/views/
DTaskStackLayoutAlgorithm.java1075 boolean isLandscape = Utilities.getAppConfiguration(ctx).orientation == in getDimensionForDevice()
1080 return res.getDimensionPixelSize(isLandscape in getDimensionForDevice()
1084 return res.getDimensionPixelSize(isLandscape in getDimensionForDevice()
1088 return res.getDimensionPixelSize(isLandscape in getDimensionForDevice()
DTaskStackAnimationHelper.java147 boolean isLandscape = appResources.getConfiguration().orientation in prepareForEnterAnimation()
200 int offset = isLandscape in prepareForEnterAnimation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumeDialogImpl.java235 if (!isLandscape()) mDialogView.setTranslationX(mDialogView.getWidth() / 2.0f); in initDialog()
322 private boolean isLandscape() { in isLandscape() method in VolumeDialogImpl
756 if (!isLandscape()) animator.translationX(mDialogView.getWidth() / 2.0f); in dismissH()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DScreenDecorations.java707 if (isLandscape(mRotation)) { in getWindowLayoutParams()
1079 private boolean isLandscape(int rotation) { in isLandscape() method in ScreenDecorations
/frameworks/base/services/core/java/com/android/server/wm/
DActivityRecord.java3912 final boolean isLandscape = orientation == ORIENTATION_LANDSCAPE; in getDisplayBoundsByOrientation()
3913 outBounds.set(0, 0, isLandscape ? longSide : shortSide, in getDisplayBoundsByOrientation()
3914 isLandscape ? shortSide : longSide); in getDisplayBoundsByOrientation()