Home
last modified time | relevance | path

Searched refs:windowLayoutInfo (Results 1 – 9 of 9) sorted by relevance

/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/extensions/util/
DExtensionsUtil.java197 WindowLayoutInfo windowLayoutInfo = getExtensionWindowLayoutInfo(activity); in getExtensionDisplayFeatureTypes() local
198 if (windowLayoutInfo == null) { in getExtensionDisplayFeatureTypes()
201 List<DisplayFeature> displayFeatureList = windowLayoutInfo.getDisplayFeatures(); in getExtensionDisplayFeatureTypes()
213 public static void assumeHasDisplayFeatures(WindowLayoutInfo windowLayoutInfo) { in assumeHasDisplayFeatures() argument
217 assertNotNull(windowLayoutInfo); in assumeHasDisplayFeatures()
218 assertNotNull(windowLayoutInfo.getDisplayFeatures()); in assumeHasDisplayFeatures()
219 assumeFalse(windowLayoutInfo.getDisplayFeatures().isEmpty()); in assumeHasDisplayFeatures()
225 public static void assertHasDisplayFeatures(WindowLayoutInfo windowLayoutInfo) { in assertHasDisplayFeatures() argument
229 assertNotNull(windowLayoutInfo); in assertHasDisplayFeatures()
230 assertNotNull(windowLayoutInfo.getDisplayFeatures()); in assertHasDisplayFeatures()
[all …]
DSidecarUtil.java122 SidecarWindowLayoutInfo windowLayoutInfo = sidecarInterface.getWindowLayoutInfo( in getSidecarDisplayFeatureTypes() local
124 if (windowLayoutInfo == null) { in getSidecarDisplayFeatureTypes()
127 return windowLayoutInfo.displayFeatures in getSidecarDisplayFeatureTypes()
142 SidecarWindowLayoutInfo windowLayoutInfo = sidecarInterface.getWindowLayoutInfo( in assumeHasDisplayFeatures() local
144 assertNotNull(windowLayoutInfo); // window layout info cannot be null in assumeHasDisplayFeatures()
145 List<SidecarDisplayFeature> displayFeatures = windowLayoutInfo.displayFeatures; in assumeHasDisplayFeatures()
232 @NonNull SidecarWindowLayoutInfo windowLayoutInfo, in getMutualDisplayFeatures()
234 return windowLayoutInfo.displayFeatures in getMutualDisplayFeatures()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/embedding/
DActivityEmbeddingIntegrationTests.java88 WindowLayoutInfo windowLayoutInfo = getExtensionWindowLayoutInfo(primaryActivity); in testDisplayFeaturesWithEmbedding() local
89 assumeHasDisplayFeatures(windowLayoutInfo); in testDisplayFeaturesWithEmbedding()
108 assertEquals(windowLayoutInfo.getDisplayFeatures().size(), in testDisplayFeaturesWithEmbedding()
117 assertEquals(windowLayoutInfo.getDisplayFeatures().size(), in testDisplayFeaturesWithEmbedding()
160 WindowLayoutInfo windowLayoutInfo = getExtensionWindowLayoutInfo(initialActivity); in testDisplayFeaturesWithEmbedding_differentPackage() local
161 assumeHasDisplayFeatures(windowLayoutInfo); in testDisplayFeaturesWithEmbedding_differentPackage()
178 assertEquals(windowLayoutInfo.getDisplayFeatures().size(), in testDisplayFeaturesWithEmbedding_differentPackage()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/utils/
DTestGetWindowLayoutInfoActivity.java85 SidecarWindowLayoutInfo windowLayoutInfo = null; in assertCorrectWindowLayoutInfoOrException() local
87 windowLayoutInfo = mSidecarInterface.getWindowLayoutInfo(windowToken); in assertCorrectWindowLayoutInfoOrException()
93 mPrevWindowLayoutInfo = windowLayoutInfo; in assertCorrectWindowLayoutInfoOrException()
95 assertEqualWindowLayoutInfo(mPrevWindowLayoutInfo, windowLayoutInfo); in assertCorrectWindowLayoutInfoOrException()
DActivityEmbeddingUtil.java654 private static FoldingFeature getFoldingFeature(@Nullable WindowLayoutInfo windowLayoutInfo) { in getFoldingFeature() argument
655 if (windowLayoutInfo == null) { in getFoldingFeature()
659 List<FoldingFeature> foldingFeatures = windowLayoutInfo.getDisplayFeatures() in getFoldingFeature()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DSidecarTest.java138 SidecarWindowLayoutInfo windowLayoutInfo = mSidecarInterface.getWindowLayoutInfo( in testSidecarInterface_getWindowLayoutInfo() local
140 assertThat(windowLayoutInfo).isNotNull(); in testSidecarInterface_getWindowLayoutInfo()
142 for (SidecarDisplayFeature displayFeature : windowLayoutInfo.displayFeatures) { in testSidecarInterface_getWindowLayoutInfo()
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/layout/
DExtensionWindowLayoutComponentTest.java725 WindowLayoutInfo windowLayoutInfo = new WindowLayoutInfo(displayFeatures); in testWindowLayoutInfo_publicApi() local
728 assertEquals(displayFeatures, windowLayoutInfo.getDisplayFeatures()); in testWindowLayoutInfo_publicApi()
784 private List<FoldingFeature> extractFoldingFeatures(WindowLayoutInfo windowLayoutInfo) { in extractFoldingFeatures() argument
786 for (DisplayFeature feature : windowLayoutInfo.getDisplayFeatures()) { in extractFoldingFeatures()
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/
DImeEventStreamTestUtils.java516 public WindowLayoutInfoParcelable(WindowLayoutInfo windowLayoutInfo) {
517 this.mDisplayFeatures = windowLayoutInfo.getDisplayFeatures();
DMockIme.java848 mWindowLayoutInfoConsumer = (windowLayoutInfo) -> getTracer().getWindowLayoutInfo( in onCreate()
849 windowLayoutInfo, () -> {}); in onCreate()
1748 void getWindowLayoutInfo(@NonNull WindowLayoutInfo windowLayoutInfo,
1752 new ImeEventStreamTestUtils.WindowLayoutInfoParcelable(windowLayoutInfo);