Home
last modified time | relevance | path

Searched refs:isLargeScreen (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/multivalentTests/src/com/android/wm/shell/bubbles/
DBubblePositionerTest.kt53 isLargeScreen = false,
76 assertThat(positioner.isLargeScreen).isFalse() in testUpdate()
95 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true)) in testShowBubblesVertically_tablet()
139 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true)) in testGetRestingPosition_chatBubble_onTablet()
148 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true, isRtl = true)) in testGetRestingPosition_chatBubble_onTablet_RTL()
158 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true)) in testGetDefaultPosition_appBubble_onTablet()
167 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true, isRtl = true)) in testGetRestingPosition_appBubble_onTablet_RTL()
177 defaultDeviceConfig.copy(isLargeScreen = true, windowBounds = Rect(0, 0, 2000, 1600)) in testGetRestingPosition_afterBoundsChange()
187 defaultDeviceConfig.copy(isLargeScreen = false, windowBounds = Rect(0, 0, 1000, 1600)) in testGetRestingPosition_afterBoundsChange()
197 positioner.update(defaultDeviceConfig.copy(isLargeScreen = true, isRtl = true)) in testHasUserModifiedDefaultPosition_false()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DDeviceConfig.kt31 val isLargeScreen: Boolean, constant in com.android.wm.shell.bubbles.DeviceConfig
52 val isLargeScreen = config.smallestScreenWidthDp >= LARGE_SCREEN_MIN_EDGE_DP in create() constant
54 val isSmallTablet = isLargeScreen && largestEdgeDp < SMALL_TABLET_MAX_EDGE_DP in create()
58 isLargeScreen = isLargeScreen, in create()
DBubblePositioner.java118 mRotation, deviceConfig.getInsets(), deviceConfig.isLargeScreen(), in update()
165 if (mDeviceConfig.isLargeScreen()) { in updateInternal()
263 return isLargeScreen() in areBubblesBottomAligned()
269 public boolean isLargeScreen() { in isLargeScreen() method in BubblePositioner
270 return mDeviceConfig.isLargeScreen(); in isLargeScreen()
281 return isLandscape() || mDeviceConfig.isLargeScreen(); in showBubblesVertically()
339 if (isOverflow && mDeviceConfig.isLargeScreen()) { in getExpandedViewLargeScreenInsetFurthestEdge()
364 if (mDeviceConfig.isLargeScreen()) { in getExpandedViewContainerPadding()
426 if (mDeviceConfig.isLargeScreen() && !mDeviceConfig.isSmallTablet() && !isOverflow) { in getMaxExpandedViewHeight()
465 if (isOverflow && showBubblesVertically() && !mDeviceConfig.isLargeScreen()) { in getExpandedViewHeight()
[all …]
DManageEducationView.kt149 val isPinnedLeft = if (positioner.isLargeScreen) isStackOnLeft else isLTR in layoutManageView()
170 positioner.isLargeScreen -> ViewGroup.LayoutParams.WRAP_CONTENT in layoutManageView()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyboardShortcutsReceiverTest.java92 when(Utilities.isLargeScreen(mContext)).thenReturn(true); in onReceive_whenFlagOffDeviceIsTablet_showKeyboardShortcuts()
103 when(Utilities.isLargeScreen(mContext)).thenReturn(false); in onReceive_whenFlagOffDeviceIsNotTablet_showKeyboardShortcuts()
114 when(Utilities.isLargeScreen(mContext)).thenReturn(true); in onReceive_whenFlagOnDeviceIsTablet_showKeyboardShortcutListSearch()
125 when(Utilities.isLargeScreen(mContext)).thenReturn(false); in onReceive_whenFlagOnDeviceIsNotTablet_showKeyboardShortcuts()
137 when(Utilities.isLargeScreen(mContext)).thenReturn(true); in onShowIntent_rewriteFlagOn_oldFlagOn_isLargeScreen_doesNotLaunchOldVersions()
148 when(Utilities.isLargeScreen(mContext)).thenReturn(false); in onShowIntent_rewriteFlagOn_oldFlagOn_isSmallScreen_doesNotLaunchOldVersions()
159 when(Utilities.isLargeScreen(mContext)).thenReturn(true); in onDismissIntent_rewriteFlagOn_oldFlagOn_isLargeScreen_doesNotDismissOldVersions()
170 when(Utilities.isLargeScreen(mContext)).thenReturn(false); in onDismissIntent_rewriteFlagOn_oldFlagOn_isSmallScreen_doesNotDismissOldVersions()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/wmshell/
DTestableBubblePositioner.java51 public void setIsLargeScreen(boolean isLargeScreen) { in setIsLargeScreen() argument
52 mIsLargeScreen = isLargeScreen; in setIsLargeScreen()
56 public boolean isLargeScreen() { in isLargeScreen() method in TestableBubblePositioner
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/view/
DTaskPreviewSizeProvider.kt26 import com.android.systemui.shared.recents.utilities.Utilities.isLargeScreen
68 val isLargeScreen = isLargeScreen(context) in calculateSize() constant
69 if (isLargeScreen) { in calculateSize()
DMediaProjectionTaskView.kt35 import com.android.systemui.shared.recents.utilities.Utilities.isLargeScreen
151 val isLargeScreen = isLargeScreen(context) in updateThumbnailMatrix() constant
158 isLargeScreen, in updateThumbnailMatrix()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/biometrics/data/repository/
DFakeDisplayStateRepository.kt42 override val isLargeScreen: StateFlow<Boolean> = _isLargeScreen.asStateFlow() constant in com.android.systemui.biometrics.data.repository.FakeDisplayStateRepository
58 fun setIsLargeScreen(isLargeScreen: Boolean) { in setIsLargeScreen()
59 _isLargeScreen.value = isLargeScreen in setIsLargeScreen()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/split/
DSplitScreenUtils.java113 final boolean isLargeScreen = config.smallestScreenWidthDp >= 600; in isLeftRightSplit()
116 return isLeftRightSplit(allowLeftRightSplitInPortrait, isLargeScreen, isLandscape); in isLeftRightSplit()
124 boolean isLargeScreen, boolean isLandscape) { in isLeftRightSplit() argument
125 if (allowLeftRightSplitInPortrait && isLargeScreen) { in isLeftRightSplit()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/ui/composable/
DVolumePanelComposeScope.kt31 val isLargeScreen: Boolean constant in com.android.systemui.volume.panel.ui.composable.VolumePanelComposeScope
32 get() = state.isLargeScreen
DVolumePanelRoot.kt73 if (isLargeScreen) { in Components()
82 if (isPortrait || isLargeScreen) { in Components()
DVerticalVolumePanelContent.kt61 horizontalArrangement = Arrangement.spacedBy(if (isLargeScreen) 28.dp else 20.dp), in <lambda>()
/frameworks/base/packages/SettingsProvider/src/android/provider/settings/backup/
DLargeScreenSettings.java36 return isLargeScreen(context) && LARGE_SCREEN_DO_NOT_RESTORE.equals(key); in doNotRestoreIfLargeScreenSetting()
41 private static boolean isLargeScreen(Context context) { in isLargeScreen() method in LargeScreenSettings
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DDisplayStateInteractor.kt69 val isLargeScreen: StateFlow<Boolean> in <lambda>() constant
131 override val isLargeScreen: StateFlow<Boolean> = displayStateRepository.isLargeScreen constant
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/utilities/
DUtilities.java141 public static boolean isLargeScreen(Context context) { in isLargeScreen() method in Utilities
142 return isLargeScreen(context.getSystemService(WindowManager.class), context.getResources()); in isLargeScreen()
146 public static boolean isLargeScreen(WindowManager windowManager, Resources resources) { in isLargeScreen() method in Utilities
DPreviewPositionHelper.java62 int canvasWidth, int canvasHeight, boolean isLargeScreen, int currentRotation, in updateThumbnailMatrix() argument
76 thumbnailData.windowingMode == WINDOWING_MODE_FULLSCREEN && !isLargeScreen; in updateThumbnailMatrix()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/volume/panel/ui/viewmodel/
DDefaultComponentsLayoutManagerTest.kt54 VolumePanelState(orientation = 0, isLargeScreen = false), in correspondingComponents_areSet()
82 VolumePanelState(orientation = 0, isLargeScreen = false), in bottomBarAbsence_throwsException()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/ui/viewmodel/
DVolumePanelState.kt31 val isLargeScreen: Boolean, constant in com.android.systemui.volume.panel.ui.viewmodel.VolumePanelState
DVolumePanelViewModel.kt81 isLargeScreen = resources.getBoolean(R.bool.volume_panel_is_large_screen), in <lambda>()
89 isLargeScreen = resources.getBoolean(R.bool.volume_panel_is_large_screen) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/data/repository/
DDisplayStateRepository.kt60 val isLargeScreen: StateFlow<Boolean> constant
129 override val isLargeScreen: StateFlow<Boolean> = constant
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyboardShortcutsReceiver.java45 if (isTabletLayoutFlagEnabled() && Utilities.isLargeScreen(context)) { in onReceive()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBarControllerImpl.java24 import static com.android.systemui.shared.recents.utilities.Utilities.isLargeScreen;
152 mIsLargeScreen = isLargeScreen(mContext); in NavigationBarControllerImpl()
161 mIsLargeScreen = isLargeScreen(mContext); in onConfigChanged()
302 mIsLargeScreen = isLargeScreen(mContext);
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/volume/ui/composable/
DVolumeSlidersComponent.kt46 if (isLargeScreen) { in Content()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/volume/panel/component/bottombar/ui/
DBottomBarComponent.kt50 modifier = modifier.heightIn(min = if (isLargeScreen) 54.dp else 48.dp).fillMaxWidth(), in Content()

12