Home
last modified time | relevance | path

Searched refs:windowConfiguration (Results 1 – 25 of 177) sorted by relevance

12345678

/frameworks/base/services/core/java/com/android/server/wm/
DConfigurationContainer.java146 mFullConfiguration.windowConfiguration.unsetAlwaysOnTop(); in onConfigurationChanged()
214 newParentConfiguration.windowConfiguration.getWindowingMode(); in applySizeOverrideIfNeeded()
218 && (inOutConfig.windowConfiguration.getWindowingMode() == WINDOWING_MODE_UNDEFINED in applySizeOverrideIfNeeded()
219 || isFloating(inOutConfig.windowConfiguration.getWindowingMode())); in applySizeOverrideIfNeeded()
220 int rotation = newParentConfiguration.windowConfiguration.getRotation(); in applySizeOverrideIfNeeded()
236 inOutConfig.windowConfiguration.setAppBounds(null); in applySizeOverrideIfNeeded()
253 Rect outAppBounds = inOutConfig.windowConfiguration.getAppBounds(); in applySizeOverrideIfNeeded()
255 inOutConfig.windowConfiguration.setAppBounds( in applySizeOverrideIfNeeded()
256 newParentConfiguration.windowConfiguration.getBounds()); in applySizeOverrideIfNeeded()
257 outAppBounds = inOutConfig.windowConfiguration.getAppBounds(); in applySizeOverrideIfNeeded()
[all …]
DDisplayAreaGroup.java81 Rect overrideBounds = resolvedConfig.windowConfiguration.getBounds(); in resolveOverrideConfiguration()
84 ? newParentConfiguration.windowConfiguration.getBounds() in resolveOverrideConfiguration()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/
DTabletopModeControllerTest.java113 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopMode_callbackFalse()
126 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_inTabletopMode_callbackTrue()
139 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
145 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in registerOnTabletopModeChangedListener_notInTabletopModeTwice_callbackOnce()
155 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpen_scheduleTabletopModeChange()
166 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in foldedRotation0_halfOpen_noScheduleTabletopModeChange()
177 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenUnfold_cancelTabletopModeChange()
189 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenFold_cancelTabletopModeChange()
201 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_90); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
205 mConfiguration.windowConfiguration.setDisplayRotation(Surface.ROTATION_0); in foldedRotation90_halfOpenThenRotate_cancelTabletopModeChange()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowConfigurationTests.java74 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testDiff()
76 final WindowConfiguration winConfig2 = config2.windowConfiguration; in testDiff()
78 final WindowConfiguration winConfig3 = config3.windowConfiguration; in testDiff()
80 final WindowConfiguration winConfig4 = config4.windowConfiguration; in testDiff()
82 final WindowConfiguration winConfig5 = config5.windowConfiguration; in testDiff()
126 final WindowConfiguration winConfig1 = config1.windowConfiguration; in testConfigurationCompareTo()
131 final WindowConfiguration winConfig2 = config2.windowConfiguration; in testConfigurationCompareTo()
193 mDisplayContent.getDisplayId()).windowConfiguration.getAppBounds(); in testAppBounds_RootConfigurationBounds()
252 config0.windowConfiguration.setMaxBounds(bounds0); in testAreConfigurationsEqualForDisplay()
253 config1.windowConfiguration.setMaxBounds(bounds1); in testAreConfigurationsEqualForDisplay()
[all …]
DConfigurationContainerTests.java292 config.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in testRegisterConfigurationChangeListener()
293 config.windowConfiguration.setAppBounds(10, 10, 10, 10); in testRegisterConfigurationChangeListener()
354 assertEquals(bounds, root.getConfiguration().windowConfiguration.getBounds()); in testSetMaxBoundsByHierarchy()
356 assertEquals(bounds, child.getConfiguration().windowConfiguration.getBounds()); in testSetMaxBoundsByHierarchy()
359 assertEquals(bounds, root.getConfiguration().windowConfiguration.getMaxBounds()); in testSetMaxBoundsByHierarchy()
361 assertEquals(bounds, child.getConfiguration().windowConfiguration.getMaxBounds()); in testSetMaxBoundsByHierarchy()
374 assertEquals(bounds, root.getConfiguration().windowConfiguration.getBounds()); in testSetBoundsNotOverrideMaxBounds()
376 assertEquals(bounds, child.getConfiguration().windowConfiguration.getBounds()); in testSetBoundsNotOverrideMaxBounds()
379 assertTrue(root.getConfiguration().windowConfiguration.getMaxBounds().isEmpty()); in testSetBoundsNotOverrideMaxBounds()
381 assertTrue(child.getConfiguration().windowConfiguration.getMaxBounds().isEmpty()); in testSetBoundsNotOverrideMaxBounds()
[all …]
DWindowContextListenerControllerTests.java161 config1.windowConfiguration.setBounds(bounds1); in testRegisterWindowContextListenerClientConfigPropagation()
168 assertEquals(bounds1, clientToken.mConfiguration.windowConfiguration.getBounds()); in testRegisterWindowContextListenerClientConfigPropagation()
177 config2.windowConfiguration.setBounds(bounds2); in testRegisterWindowContextListenerClientConfigPropagation()
184 assertEquals(bounds2, clientToken.mConfiguration.windowConfiguration.getBounds()); in testRegisterWindowContextListenerClientConfigPropagation()
191 assertEquals(bounds1, clientToken.mConfiguration.windowConfiguration.getBounds()); in testRegisterWindowContextListenerClientConfigPropagation()
298 config1.windowConfiguration.setBounds(bounds1); in testConfigUpdateForSuspendedWindowContext()
333 config1.windowConfiguration.setBounds(bounds1); in testReportConfigUpdateForSuspendedWindowProviderService()
/frameworks/base/core/java/android/window/
DConfigurationHelper.java111 final Rect currentBounds = currentConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds()
112 final Rect newBounds = newConfig.windowConfiguration.getBounds(); in shouldUpdateWindowMetricsBounds()
114 final Rect currentMaxBounds = currentConfig.windowConfiguration.getMaxBounds(); in shouldUpdateWindowMetricsBounds()
115 final Rect newMaxBounds = newConfig.windowConfiguration.getMaxBounds(); in shouldUpdateWindowMetricsBounds()
122 final int origRot = config.windowConfiguration.getDisplayRotation(); in isDisplayRotationChanged()
123 final int newRot = newConfig.windowConfiguration.getDisplayRotation(); in isDisplayRotationChanged()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/layout/
DWindowLayoutComponentImpl.java296 @NonNull WindowConfiguration windowConfiguration) { in getCurrentWindowLayoutInfo() argument
298 return getWindowLayoutInfo(displayId, windowConfiguration, in getCurrentWindowLayoutInfo()
314 @NonNull WindowConfiguration windowConfiguration, in getWindowLayoutInfo() argument
316 List<DisplayFeature> displayFeatureList = getDisplayFeatures(displayId, windowConfiguration, in getWindowLayoutInfo()
345 context.getResources().getConfiguration().windowConfiguration, in getDisplayFeatures()
351 @NonNull WindowConfiguration windowConfiguration, in getDisplayFeatures() argument
360 final int rotation = windowConfiguration.getDisplayRotation(); in getDisplayFeatures()
369 transformToWindowSpaceRect(windowConfiguration, featureRect); in getDisplayFeatures()
379 + ", WindowConfiguration: " + windowConfiguration); in getDisplayFeatures()
384 && featureRect.width() != windowConfiguration.getBounds().width()) { in getDisplayFeatures()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitScreenUtilsTests.java44 portraitTablet.windowConfiguration.setMaxBounds(new Rect(0, 0, 500, 1000)); in testIsLeftRightSplit()
47 landscapeTablet.windowConfiguration.setMaxBounds(new Rect(0, 0, 1000, 500)); in testIsLeftRightSplit()
50 portraitPhone.windowConfiguration.setMaxBounds(new Rect(0, 0, 500, 1000)); in testIsLeftRightSplit()
53 landscapePhone.windowConfiguration.setMaxBounds(new Rect(0, 0, 1000, 500)); in testIsLeftRightSplit()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorationTests.java234 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in updateRelayoutParams_appHeader_usesTaskDensity()
256 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in updateRelayoutParams_appHeader_usesSystemDensity()
273 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in updateRelayoutParams_freeformAndTransparentAppearance_allowsInputFallthrough()
291 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in updateRelayoutParams_freeformButOpaqueAppearance_disallowsInputFallthrough()
308 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in updateRelayoutParams_fullscreen_disallowsInputFallthrough()
324 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in updateRelayoutParams_freeform_inputChannelNeeded()
340 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in updateRelayoutParams_fullscreen_inputChannelNotNeeded()
356 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in updateRelayoutParams_multiwindow_inputChannelNotNeeded()
373 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in relayout_fullscreenTask_appliesTransactionImmediately()
385 taskInfo.configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in relayout_freeformTask_appliesTransactionOnDraw()
[all …]
DVeiledResizeTaskPositionerTest.kt112 if (mockDesktopWindowDecoration.mTaskInfo.configuration.windowConfiguration in <lambda>()
114 mockDesktopWindowDecoration.mTaskInfo.configuration.windowConfiguration in <lambda>()
130 configuration.windowConfiguration.setBounds(STARTING_BOUNDS) in <lambda>()
131 configuration.windowConfiguration.displayRotation = ROTATION_90 in <lambda>()
165 change.configuration.windowConfiguration.bounds == STARTING_BOUNDS}}, in <lambda>()
206 change.configuration.windowConfiguration.bounds == rectAfterEnd }}, in <lambda>()
231 change.configuration.windowConfiguration.bounds == rectAfterMove in <lambda>()
247 change.configuration.windowConfiguration.bounds == rectAfterEnd}}, in <lambda>()
273 change.configuration.windowConfiguration.bounds == STARTING_BOUNDS}}, in <lambda>()
373 change.configuration.windowConfiguration.bounds == rectAfterDrag}}, in <lambda>()
[all …]
DFluidResizeTaskPositionerTest.kt103 if (mockWindowDecoration.mTaskInfo.configuration.windowConfiguration in <lambda>()
105 mockWindowDecoration.mTaskInfo.configuration.windowConfiguration in <lambda>()
123 configuration.windowConfiguration.setBounds(STARTING_BOUNDS) in <lambda>()
124 configuration.windowConfiguration.displayRotation = ROTATION_90 in <lambda>()
220 change.configuration.windowConfiguration.bounds == rectAfterMove in <lambda>()
235 change.configuration.windowConfiguration.bounds == rectAfterEnd in <lambda>()
329 != 0) && change.configuration.windowConfiguration.bounds.top == in <lambda>()
331 change.configuration.windowConfiguration.bounds.bottom == in <lambda>()
359 != 0) && change.configuration.windowConfiguration.bounds.right == in <lambda>()
361 change.configuration.windowConfiguration.bounds.left == in <lambda>()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/res/
DConfigurationTest.java125 config.windowConfiguration.setRotation(ROTATION_90); in testMaskedSet()
126 other.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testMaskedSet()
133 assertEquals(ROTATION_90, config.windowConfiguration.getRotation()); in testMaskedSet()
139 assertEquals(other.windowConfiguration.getWindowingMode(), in testMaskedSet()
140 config.windowConfiguration.getWindowingMode()); in testMaskedSet()
141 assertEquals(ROTATION_90, config.windowConfiguration.getRotation()); in testMaskedSet()
147 assertEquals(ROTATION_UNDEFINED, config.windowConfiguration.getRotation()); in testMaskedSet()
/frameworks/base/core/tests/mockingcoretests/src/android/window/
DConfigurationHelperTest.java102 config.windowConfiguration.setBounds(new Rect(0, 0, 10, 10)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
103 config.windowConfiguration.setMaxBounds(new Rect(0, 0, 20, 20)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
106 newConfig.windowConfiguration.setBounds(new Rect(0, 0, 20, 20)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
107 newConfig.windowConfiguration.setMaxBounds(new Rect(0, 0, 20, 20)); in testShouldUpdateResources_DifferentBounds_ReturnsTrue()
145 newConfig.windowConfiguration.setAppBounds(new Rect(0, 0, 10, 10)); in testShouldUpdateResources_DifferentNonPublicConfig_ReturnsTrue()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DRegisterComponentCallbacksTest.java67 config.windowConfiguration.setWindowingMode( in testRegisterComponentCallbacks()
69 config.windowConfiguration.setBounds(new Rect(0, 0, 100, 100)); in testRegisterComponentCallbacks()
98 config.windowConfiguration.setWindowingMode( in testRegisterComponentCallbacksBeforeT()
100 config.windowConfiguration.setBounds(new Rect(0, 0, 100, 100)); in testRegisterComponentCallbacksBeforeT()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/domain/interactor/
DConfigurationInteractor.kt42 val rotation = windowConfiguration.displayRotation
43 val maxBounds = windowConfiguration.maxBounds
54 .map { Rect(it.windowConfiguration.maxBounds) } in <lambda>()
/frameworks/base/libs/WindowManager/Jetpack/src/androidx/window/extensions/embedding/
DTaskContainer.java164 return mInfo.getConfiguration().windowConfiguration.getBounds(); in getBounds()
227 return configuration.windowConfiguration.getWindowingMode() == WINDOWING_MODE_PINNED; in isInPictureInPicture()
236 return mInfo.getConfiguration().windowConfiguration.getWindowingMode(); in getWindowingMode()
690 final Rect taskBounds = mConfiguration.windowConfiguration.getBounds(); in getTaskMetrics()
701 final Rect taskBounds = mConfiguration.windowConfiguration.getBounds(); in translateAbsoluteBoundsToRelativeBounds()
727 final WindowConfiguration windowConfiguration = activityConfig.windowConfiguration; in getTaskPropertiesFromActivity() local
728 final int windowingMode = windowConfiguration.getWindowingMode(); in getTaskPropertiesFromActivity()
731 windowConfiguration.setBounds(windowConfiguration.getMaxBounds()); in getTaskPropertiesFromActivity()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/back/
DCrossActivityBackAnimation.kt180 backAnimRect.set(closingTarget!!.windowConfiguration.bounds) in <lambda>()
192 closingTarget!!.windowConfiguration.bounds, in <lambda>()
204 closingTarget!!.windowConfiguration.bounds.height() in <lambda>()
387 closingTarget!!.windowConfiguration.bounds in <lambda>()
414 t.windowConfiguration.bounds.top, in <lambda>()
416 t.windowConfiguration.bounds.bottom in <lambda>()
421 t.localBounds.right != t.windowConfiguration.bounds.right && in <lambda>()
427 t.windowConfiguration.bounds.top, in <lambda>()
428 t.windowConfiguration.bounds.right, in <lambda>()
429 t.windowConfiguration.bounds.bottom in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt180 config.windowConfiguration.setMaxBounds(0, 0, 200, 200) in maxBoundsChange_newConfigObject_listenerNotified()
187 newConfig.windowConfiguration.setMaxBounds(0, 0, 100, 100) in maxBoundsChange_newConfigObject_listenerNotified()
198 config.windowConfiguration.setMaxBounds(0, 0, 200, 200) in maxBoundsChange_sameObject_listenerNotified()
204 config.windowConfiguration.setMaxBounds(0, 0, 100, 100) in maxBoundsChange_sameObject_listenerNotified()
297 config.windowConfiguration.setMaxBounds(0, 0, 2, 2) in multipleUpdates_listenerNotifiedOfAll()
305 config.windowConfiguration.setMaxBounds(0, 0, 3, 3) in multipleUpdates_listenerNotifiedOfAll()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DTestRunningTaskInfoBuilder.java127 info.configuration.windowConfiguration.setBounds(mBounds); in build()
128 info.configuration.windowConfiguration.setActivityType(mActivityType); in build()
129 info.configuration.windowConfiguration.setWindowingMode(mWindowingMode); in build()
/frameworks/base/core/tests/mockingcoretests/src/android/view/
DDisplayTest.java99 mApplicationContext.getResources().getConfiguration().windowConfiguration.setAppBounds( in setupTests()
101 mApplicationContext.getResources().getConfiguration().windowConfiguration.setMaxBounds( in setupTests()
103 mApplicationContext.getResources().getConfiguration().windowConfiguration in setupTests()
299 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealSize_resourcesPortraitSandboxed_matchesDisplayAreaSandboxBounds()
326 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealSize_resourcesLandscapeSandboxed_matchesDisplayAreaSandboxBounds()
419 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealMetrics_resourcesPortraitSandboxed_matchesDisplayAreaSandboxBounds()
446 mApplicationContext.getResources().getConfiguration().windowConfiguration in testGetRealMetrics_resourcesLandscapeSandboxed_matchesDisplayAreaSandboxBounds()
523 resources.getConfiguration().windowConfiguration.setMaxBounds(bounds); in setMaxBoundsSandboxed()
579 resources.getConfiguration().windowConfiguration.setDisplayRotation(rotation); in setLocalDisplayInConfig()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/common/split/
DSplitWindowManagerTests.java55 new Rect(0, 0, configuration.windowConfiguration.getBounds().width(), in setup()
56 configuration.windowConfiguration.getBounds().height())); in setup()
DSplitLayoutTests.java97 config.windowConfiguration.setRotation(1); in testUpdateConfiguration()
101 config.windowConfiguration.setBounds(new Rect(0, 0, 2160, 1080)); in testUpdateConfiguration()
201 configuration.windowConfiguration.setRotation(0); in getConfiguration()
202 configuration.windowConfiguration.setBounds( in getConfiguration()
/frameworks/base/libs/WindowManager/Jetpack/tests/unittest/src/androidx/window/extensions/embedding/
DTaskContainerTest.java83 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testGetWindowingModeForSplitTaskFragment()
91 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FREEFORM); in testGetWindowingModeForSplitTaskFragment()
112 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_FULLSCREEN); in testIsInPictureInPicture()
119 configuration.windowConfiguration.setWindowingMode(WINDOWING_MODE_PINNED); in testIsInPictureInPicture()
/frameworks/base/core/java/android/view/
DRemoteAnimationTarget.java197 public final WindowConfiguration windowConfiguration; field in RemoteAnimationTarget
283 this.windowConfiguration = windowConfig; in RemoteAnimationTarget()
310 windowConfiguration = in.readTypedObject(WindowConfiguration.CREATOR); in RemoteAnimationTarget()
365 dest.writeTypedObject(windowConfiguration, 0 /* flags */); in writeToParcel()
391 pw.print(prefix); pw.print("windowConfiguration="); pw.println(windowConfiguration); in dump()
415 windowConfiguration.dumpDebug(proto, WINDOW_CONFIGURATION); in dumpDebug()

12345678