Home
last modified time | relevance | path

Searched refs:windowLayout (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
DLaunchParamsUtil.java208 @NonNull ActivityInfo.WindowLayout windowLayout, @NonNull Rect inOutBounds, in calculateLayoutBounds() argument
222 if (windowLayout.width > 0 && windowLayout.width < defaultWidth) { in calculateLayoutBounds()
223 width = windowLayout.width; in calculateLayoutBounds()
224 } else if (windowLayout.widthFraction > 0 && windowLayout.widthFraction < 1.0f) { in calculateLayoutBounds()
225 width = (int) (defaultWidth * windowLayout.widthFraction); in calculateLayoutBounds()
229 if (windowLayout.height > 0 && windowLayout.height < defaultHeight) { in calculateLayoutBounds()
230 height = windowLayout.height; in calculateLayoutBounds()
231 } else if (windowLayout.heightFraction > 0 && windowLayout.heightFraction < 1.0f) { in calculateLayoutBounds()
232 height = (int) (defaultHeight * windowLayout.heightFraction); in calculateLayoutBounds()
DTaskLaunchParamsModifier.java631 @NonNull ActivityInfo.WindowLayout windowLayout, @NonNull Rect inOutBounds) { in getLayoutBounds() argument
632 final int verticalGravity = windowLayout.gravity & Gravity.VERTICAL_GRAVITY_MASK; in getLayoutBounds()
633 final int horizontalGravity = windowLayout.gravity & Gravity.HORIZONTAL_GRAVITY_MASK; in getLayoutBounds()
634 if (!windowLayout.hasSpecifiedSize() && verticalGravity == 0 && horizontalGravity == 0) { in getLayoutBounds()
644 if (windowLayout.hasSpecifiedSize()) { in getLayoutBounds()
645 LaunchParamsUtil.calculateLayoutBounds(stableBounds, windowLayout, inOutBounds, in getLayoutBounds()
648 getTaskBounds(root, displayArea, windowLayout, WINDOWING_MODE_FREEFORM, in getLayoutBounds()
DActivityRecord.java2256 if (info.windowLayout != null && info.windowLayout.windowLayoutAffinity != null in ActivityRecord()
2257 && !info.windowLayout.windowLayoutAffinity.startsWith(uid)) { in ActivityRecord()
2258 info.windowLayout.windowLayoutAffinity = in ActivityRecord()
2259 uid + ":" + info.windowLayout.windowLayoutAffinity; in ActivityRecord()
3390 final ActivityInfo.WindowLayout windowLayout = info.windowLayout; in supportsMultiWindowInDisplayArea() local
3391 return windowLayout == null in supportsMultiWindowInDisplayArea()
3392 || tda.supportsActivityMinWidthHeightMultiWindow(windowLayout.minWidth, in supportsMultiWindowInDisplayArea()
3393 windowLayout.minHeight, info); in supportsMultiWindowInDisplayArea()
11068 final ActivityInfo.WindowLayout windowLayout = info.windowLayout;
11069 if (windowLayout == null) {
[all …]
DLaunchParamsPersister.java304 ActivityInfo.WindowLayout layout = activity.info.windowLayout; in getLaunchParams()
DTask.java1005 info.windowLayout == null ? null : info.windowLayout.windowLayoutAffinity; in setIntent()
1048 if (info != null && info.windowLayout != null) { in setMinDimensions()
1049 mMinWidth = info.windowLayout.minWidth; in setMinDimensions()
1050 mMinHeight = info.windowLayout.minHeight; in setMinDimensions()
6052 .layoutTask(task, info.windowLayout, activity, source, options)
DActivityStarter.java2004 mSupervisor.getLaunchParamsController().calculate(targetTask, r.info.windowLayout, r, in computeLaunchParams()
2474 mSupervisor.getLaunchParamsController().calculate(inTask, r.info.windowLayout, r, in setInitialState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DSystemUIBottomSheetDialog.kt55 private val windowLayout: WindowLayout, constant
89 windowLayout in onStart()
122 windowLayout: WindowLayout = defaultWindowLayout.get(), in create()
130 windowLayout = windowLayout, in create()
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedActivityImpl.java95 private ActivityInfo.WindowLayout windowLayout; field in ParsedActivityImpl
126 this.windowLayout = other.windowLayout; in ParsedActivityImpl()
189 alias.windowLayout = target.getWindowLayout(); in makeAlias()
320 if (windowLayout != null) { in writeToParcel()
322 windowLayout.writeToParcel(dest); in writeToParcel()
360 windowLayout = new ActivityInfo.WindowLayout(in); in ParsedActivityImpl()
421 @Nullable ActivityInfo.WindowLayout windowLayout, in ParsedActivityImpl()
447 this.windowLayout = windowLayout; in ParsedActivityImpl()
566 return windowLayout; in getWindowLayout()
701 windowLayout = value; in setWindowLayout()
DParsedActivityUtils.java605 final ActivityInfo.WindowLayout windowLayout = new ActivityInfo.WindowLayout(width, in parseActivityWindowLayout() local
608 return input.success(windowLayout); in parseActivityWindowLayout()
/frameworks/base/media/java/android/media/
DCea708CaptionRenderer.java1345 final CCWindowLayout windowLayout = in setCaptionStyle() local
1347 windowLayout.setCaptionStyle(style); in setCaptionStyle()
1354 final CCWindowLayout windowLayout = in setFontScale() local
1356 windowLayout.setFontScale(fontScale); in setFontScale()
1481 CCWindowLayout windowLayout = mCaptionWindowLayouts[windowId]; in setCurrentWindowLayout() local
1482 if (windowLayout == null) { in setCurrentWindowLayout()
1488 mCurrentWindowLayout = windowLayout; in setCurrentWindowLayout()
1498 CCWindowLayout windowLayout = mCaptionWindowLayouts[i]; in getWindowsFromBitmap() local
1499 if (windowLayout != null) { in getWindowsFromBitmap()
1500 windows.add(windowLayout); in getWindowsFromBitmap()
[all …]
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/pip/
DPipBoundsAlgorithm.java159 if (activityInfo == null || activityInfo.windowLayout == null) { in getMinimalSize()
162 final ActivityInfo.WindowLayout windowLayout = activityInfo.windowLayout; in getMinimalSize() local
165 if (windowLayout.minWidth > 0 && windowLayout.minHeight > 0) { in getMinimalSize()
169 Math.max(windowLayout.minWidth, getOverrideMinEdgeSize()), in getMinimalSize()
170 Math.max(windowLayout.minHeight, getOverrideMinEdgeSize())); in getMinimalSize()
/frameworks/base/core/java/android/content/pm/
DActivityInfo.java1725 public WindowLayout windowLayout;
1748 windowLayout = orig.windowLayout;
2089 if (windowLayout != null) {
2090 pw.println(prefix + "windowLayout=" + windowLayout.width + "|"
2091 + windowLayout.widthFraction + ", " + windowLayout.height + "|"
2092 + windowLayout.heightFraction + ", " + windowLayout.gravity);
2151 if (windowLayout != null) {
2153 windowLayout.writeToParcel(dest);
2279 windowLayout = new WindowLayout(source);
DPackageParser.java4831 a.info.windowLayout = new ActivityInfo.WindowLayout(width, widthFraction,
4850 if (aInfo.windowLayout != null && aInfo.windowLayout.windowLayoutAffinity != null) {
4856 if (aInfo.windowLayout == null) {
4857 aInfo.windowLayout = new ActivityInfo.WindowLayout(-1 /* width */,
4861 aInfo.windowLayout.windowLayoutAffinity = windowLayoutAffinity;
4946 info.windowLayout = target.info.windowLayout;
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DSplitPresenter.java855 final ActivityInfo.WindowLayout windowLayout = activity.getActivityInfo().windowLayout; in getMinDimensions() local
856 if (windowLayout == null) { in getMinDimensions()
859 return new Size(windowLayout.minWidth, windowLayout.minHeight); in getMinDimensions()
879 final ActivityInfo.WindowLayout windowLayout = activityInfo.windowLayout; in getMinDimensions() local
880 if (windowLayout == null) { in getMinDimensions()
883 return new Size(windowLayout.minWidth, windowLayout.minHeight); in getMinDimensions()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityTaskManagerServiceTests.java555 final ActivityInfo.WindowLayout windowLayout = in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() local
565 .setWindowLayout(windowLayout) in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
613 final ActivityInfo.WindowLayout windowLayout = in testSupportsMultiWindow_landscape_checkActivityMinWidth() local
619 .setWindowLayout(windowLayout) in testSupportsMultiWindow_landscape_checkActivityMinWidth()
648 final ActivityInfo.WindowLayout windowLayout = in testSupportsMultiWindow_portrait_checkActivityMinHeight() local
654 .setWindowLayout(windowLayout) in testSupportsMultiWindow_portrait_checkActivityMinHeight()
DActivityStarterTests.java454 final WindowLayout windowLayout = in testCreateTaskLayout() local
457 info.windowLayout = windowLayout; in testCreateTaskLayout()
476 verify(modifier, times(3)).onCalculate(any(), eq(windowLayout), any(), any(), eq(options), in testCreateTaskLayout()
1451 final WindowLayout windowLayout = new WindowLayout(0, 0, 0, 0, 0, in testCanEmbedActivity() local
1455 .setWindowLayout(windowLayout) in testCanEmbedActivity()
DWindowTestsBase.java1392 ActivityBuilder setWindowLayout(ActivityInfo.WindowLayout windowLayout) { in setWindowLayout() argument
1393 mWindowLayout = windowLayout; in setWindowLayout()
1458 aInfo.windowLayout = mWindowLayout; in buildInner()
DContentRecorderTests.java355 info.windowLayout = new ActivityInfo.WindowLayout(-1 /* width */, in testOnTaskBoundsConfigurationChanged_notifiesCallback()
DTaskFragmentOrganizerControllerTest.java1599 activity.info.windowLayout = new ActivityInfo.WindowLayout( in testMinDimensionViolation_ReparentActivityToTaskFragment()
1633 activity.info.windowLayout = new ActivityInfo.WindowLayout( in testMinDimensionViolation_setRelativeBounds()
DTaskTests.java922 aInfo.windowLayout = new ActivityInfo.WindowLayout(0 /* width */, 0 /* widthFraction */, in testFullScreenTaskNotAdjustedByMinimalSize()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DEmbeddingTestUtils.java191 aInfo.windowLayout = new ActivityInfo.WindowLayout(0, 0, 0, 0, 0, in createActivityInfoWithMinDimensions()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipTaskOrganizerTest.java314 activityInfo.windowLayout = new ActivityInfo.WindowLayout( in createActivityInfo()
/frameworks/base/core/java/com/android/internal/pm/parsing/
DPackageInfoCommonUtils.java377 ai.windowLayout = a.getWindowLayout(); in generateActivityInfo()
/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageInfoUtils.java586 ai.windowLayout = a.getWindowLayout(); in generateActivityInfo()
/frameworks/base/core/java/android/view/
DViewRootImpl.java1236 WindowLayout windowLayout) { in ViewRootImpl() argument
1239 mWindowLayout = windowLayout; in ViewRootImpl()

12