Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/src/com/android/launcher3/touch/
DPortraitPagedViewHandler.java258 if (deviceProfile.isLandscape && stagePosition == STAGE_POSITION_BOTTOM_OR_RIGHT) { in getSplitTranslationDirectionFactor()
268 if (deviceProfile.isLandscape) { in getTaskMenuX()
285 return deviceProfile.isLandscape && !deviceProfile.isTablet in getTaskMenuWidth()
324 bannerParams.gravity = BOTTOM | ((deviceProfile.isLandscape) ? START : CENTER_HORIZONTAL); in getDwbLayoutTranslations()
334 if (deviceProfile.isLandscape) { in getDwbLayoutTranslations()
416 } else if (dp.isLandscape) { in getSplitPositionOptions()
438 if (!dp.isLandscape) { in getInitialSplitPlaceholderBounds()
483 if (!dp.isLandscape) { in updateSplitIconParams()
507 if (!dp.isLandscape) { in getPlaceholderSizeAdjustment()
523 if (dp.isLandscape) { in setSplitInstructionsParams()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/views/
DClipIconView.java138 if (dp.isLandscape) { in update()
163 float drawableScale = (dp.isLandscape ? mOutline.width() : mOutline.height()) in update()
165 setBackgroundDrawableBounds(drawableScale, dp.isLandscape); in update()
170 int diffY = dp.isLandscape ? 0 in update()
172 int diffX = dp.isLandscape ? (int) (((width * drawableScale) - width) / 2) in update()
182 private void setBackgroundDrawableBounds(float scale, boolean isLandscape) { in setBackgroundDrawableBounds() argument
186 if (isLandscape) { in setBackgroundDrawableBounds()
239 if (dp.isLandscape) { in setIcon()
260 setBackgroundDrawableBounds(bgDrawableStartScale, dp.isLandscape); in setIcon()
/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/Launcher3/tests/src/com/android/launcher3/nonquickstep/
DDeviceProfileDumpTest.kt576 initializeVarsForTablet(deviceSpecs["tablet"]!!, isLandscape = true, isGestureMode = false) in tabletLandscape3Button()
712 initializeVarsForTablet(deviceSpecs["tablet"]!!, isLandscape = true) in tabletLandscape()
1123 isLandscape = true, in twoPanelLandscape3Button()
1264 isLandscape = true in twoPanelLandscape()
DHotseatWidthCalculationTest.kt81 initializeVarsForTwoPanel(isGestureMode = false, isLandscape = true) in distribute_border_space_when_space_is_enough_landscape()
102 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in nav_buttons_dont_interfere_with_required_hotseat_width()
124 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in decrease_qsb_when_not_enough_space_landscape()
146 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in decrease_num_of_icons_when_not_enough_space_landscape()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DHotseatWidthCalculationTest.kt81 initializeVarsForTwoPanel(isGestureMode = false, isLandscape = true) in distribute_border_space_when_space_is_enough_landscape()
102 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in nav_buttons_dont_interfere_with_required_hotseat_width()
124 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in decrease_qsb_when_not_enough_space_landscape()
146 initializeVarsForTablet(isGestureMode = false, isLandscape = true) in decrease_num_of_icons_when_not_enough_space_landscape()
/packages/apps/Launcher3/tests/src/com/android/launcher3/
DFakeInvariantDeviceProfileTest.kt166 isLandscape: Boolean = false, in initializeVarsForTablet()
169 val (x, y) = if (isLandscape) Pair(2560, 1600) else Pair(1600, 2560) in initializeVarsForTablet()
249 isLandscape: Boolean = false, in initializeVarsForTwoPanel()
252 val (x, y) = if (isLandscape) Pair(2208, 1840) else Pair(1840, 2208) in initializeVarsForTwoPanel()
DAbstractDeviceProfileTest.kt138 isLandscape: Boolean = false, in initializeVarsForTablet()
150 rotation = if (isLandscape) Surface.ROTATION_0 else Surface.ROTATION_90, in initializeVarsForTablet()
159 isLandscape: Boolean = false, in initializeVarsForTwoPanel()
188 rotation = if (isLandscape) Surface.ROTATION_0 else Surface.ROTATION_90, in initializeVarsForTwoPanel()
/packages/apps/Dialer/java/com/android/incallui/video/impl/
DVideoCallFragment.java229 isLandscape() ? R.layout.frag_videocall_land : R.layout.frag_videocall, in onCreateView()
547 if (isLandscape()) { in getControlsOffsetEndHidden()
555 if (isLandscape()) { in getSwitchOnHoldOffsetEndHidden()
567 if (isLandscape()) { in getEndCallOffsetEndHidden()
579 if (isLandscape()) { in getPreviewOffsetStartShown()
1049 if (isLandscape()) { in updatePreviewVideoScaling()
1091 private boolean isLandscape() { in isLandscape() method in VideoCallFragment
1124 if (isLandscape()) { in exitGreenScreenMode()
DSurfaceViewVideoCallFragment.java448 if (isLandscape()) { in getControlsOffsetEndHidden()
456 if (isLandscape()) { in getSwitchOnHoldOffsetEndHidden()
468 if (isLandscape()) { in getEndCallOffsetEndHidden()
480 if (isLandscape()) { in getPreviewOffsetStartShown()
925 private boolean isLandscape() { in isLandscape() method in SurfaceViewVideoCallFragment
/packages/apps/Camera2/src/com/android/camera/util/
DAspectRatio.java117 if (isLandscape()) { in asLandscape()
198 private boolean isLandscape() { in isLandscape() method in AspectRatio
DSize.java104 if (isLandscape()) { in asLandscape()
218 private boolean isLandscape() { in isLandscape() method in Size
/packages/apps/Dialer/java/com/android/incallui/answer/impl/
DAnswerVideoCallScreen.java126 if (isLandscape()) { in updatePreviewVideoScaling()
137 private boolean isLandscape() { in isLandscape() method in AnswerVideoCallScreen
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/
DPreviewFragment.java140 final boolean isLandscape = getResources().getConfiguration().orientation in setupScrimLayerAndBottomBar()
144 if (isLandscape) { in setupScrimLayerAndBottomBar()
154 if (isLandscape) { in setupScrimLayerAndBottomBar()
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintEnrollEnrolling.java298 boolean isLandscape = BiometricUtils.isReverseLandscape(getApplicationContext()) in onCreate()
299 || BiometricUtils.isLandscape(getApplicationContext()); in onCreate()
301 updateOrientation((isLandscape in onCreate()
1085 final boolean isLandscape = newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE; in maybeHideSfpsText()
1091 if (isLandscape) { in maybeHideSfpsText()
/packages/apps/Dialer/java/com/android/dialer/util/
DOrientationUtil.java26 public static boolean isLandscape(Context context) { in isLandscape() method in OrientationUtil
/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java91 public final boolean isLandscape; field in DeviceProfile
284 this.isLandscape = windowBounds.isLandscape(); in DeviceProfile()
303 context = getContext(context, info, isVerticalBarLayout() || (isTablet && isLandscape) in DeviceProfile()
321 if (isLandscape) { in DeviceProfile()
327 if (isLandscape) { in DeviceProfile()
1505 return isLandscape && transposeLayoutWithOrientation;
1568 writer.println(prefix + "\tisLandscape:" + isLandscape);
/packages/apps/Dialer/java/com/android/dialer/app/widget/
DDialpadSearchEmptyContentView.java36 OrientationUtil.isLandscape(getContext()) ? LinearLayout.HORIZONTAL : LinearLayout.VERTICAL; in inflateLayout()
/packages/apps/Dialer/java/com/android/dialer/app/
DDialtactsActivity.java225 private boolean isLandscape; field in DialtactsActivity
403 isLandscape = in onCreate()
438 if (isLandscape) { in onCreate()
1442 if (!isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_SPEED_DIAL && !isLandscape) { in onPageScrolled()
1444 } else if (isRtl && tabIndex == DialtactsPagerAdapter.TAB_INDEX_HISTORY && !isLandscape) { in onPageScrolled()
1487 && !isLandscape in getFabAlignment()
/packages/apps/Camera2/src/com/android/camera/module/
DModuleController.java82 public void onLayoutOrientationChanged(boolean isLandscape); in onLayoutOrientationChanged() argument
/packages/apps/Launcher3/src/com/android/launcher3/util/
DDimensionUtils.kt52 if (!deviceProfile.isLandscape) { in getTaskbarPhoneDimensions()
DWindowBounds.java86 public final boolean isLandscape() { in isLandscape() method in WindowBounds
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/navbutton/
DNavButtonLayoutFactory.kt71 if (!deviceProfile.isLandscape) { in getUiLayoutter()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRectFSpringAnim.java249 && (profile.isLandscape || profile.isTablet); in start()
407 && (deviceProfile.isLandscape || deviceProfile.isTablet); in DefaultSpringConfig()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/analytics/
DProvisioningAnalyticsTracker.java317 public void logIsLandscape(boolean isLandscape, String activityName) { in logIsLandscape() argument
320 .setBoolean(isLandscape) in logIsLandscape()

123