Home
last modified time | relevance | path

Searched refs:window1 (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DAnimatingActivityRegistryTest.java88 final ActivityRecord window1 = createActivityRecord(mDisplayContent); in testContainerRemoved() local
89 final ActivityRecord window2 = createAppWindow(window1.getTask(), ACTIVITY_TYPE_STANDARD, in testContainerRemoved()
92 window1.getRootTask().getAnimatingActivityRegistry(); in testContainerRemoved()
94 window1.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */, in testContainerRemoved()
96 window2.startAnimation(window1.getPendingTransaction(), mAdapter, false /* hidden */, in testContainerRemoved()
98 assertTrue(window1.isAnimating(TRANSITION)); in testContainerRemoved()
103 registry.notifyAboutToFinish(window1, mMockEndDeferFinishCallback1); in testContainerRemoved()
DWindowTokenTests.java70 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testAddWindow() local
71 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, token, "window11"); in testAddWindow()
72 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, token, "window12"); in testAddWindow()
76 token.addWindow(window1); in testAddWindow()
86 assertTrue(token.hasWindow(window1)); in testAddWindow()
93 assertEquals(window1.mToken, window11.mToken); in testAddWindow()
94 assertEquals(window1.mToken, window12.mToken); in testAddWindow()
101 final WindowState window1 = createWindow(null, TYPE_STATUS_BAR, token1, "window1"); in testAddWindow_assignsLayers() local
104 token1.addWindow(window1); in testAddWindow_assignsLayers()
118 final WindowState window1 = createWindow(null, TYPE_APPLICATION, token, "window1"); in testChildRemoval() local
[all …]
DDisplayContentTests.java530 final WindowState window1 = in doTestFocusedWindowMultipleDisplays() local
532 window1.mActivityRecord.mTargetSdk = targetSdk; in doTestFocusedWindowMultipleDisplays()
534 assertTrue(window1.isFocused()); in doTestFocusedWindowMultipleDisplays()
535 assertEquals(window1, mWm.mRoot.getTopFocusedDisplayContent().mCurrentFocus); in doTestFocusedWindowMultipleDisplays()
540 assertTrue(window1.isFocused()); in doTestFocusedWindowMultipleDisplays()
541 assertEquals(window1, mWm.mRoot.getTopFocusedDisplayContent().mCurrentFocus); in doTestFocusedWindowMultipleDisplays()
546 .setUseProcess(window1.getProcess()).setOnTop(true).build(); in doTestFocusedWindowMultipleDisplays()
551 assertEquals(perDisplayFocusEnabled && targetSdk >= Q, window1.isFocused()); in doTestFocusedWindowMultipleDisplays()
555 window1.getParent().positionChildAt(POSITION_TOP, window1, true); in doTestFocusedWindowMultipleDisplays()
557 assertTrue(window1.isFocused()); in doTestFocusedWindowMultipleDisplays()
[all …]
DBackNavigationControllerTests.java925 WindowState window1 = createWindow(null, FIRST_APPLICATION_WINDOW, record1, "window1");
935 addToWindowMap(window1, true);
944 testCase.windowBack = window1;
DActivityRecordTests.java2495 final WindowState window1 = createWindow(null, TYPE_BASE_APPLICATION, activity, "window1"); in testFindMainWindow() local
2496 final WindowState window11 = createWindow(window1, FIRST_SUB_WINDOW, activity, "window11"); in testFindMainWindow()
2497 final WindowState window12 = createWindow(window1, FIRST_SUB_WINDOW, activity, "window12"); in testFindMainWindow()
2498 assertEquals(window1, activity.findMainWindow()); in testFindMainWindow()
2499 window1.mAnimatingExit = true; in testFindMainWindow()
2500 assertEquals(window1, activity.findMainWindow()); in testFindMainWindow()
DWindowStateTests.java1493 final WindowState window1 = createWindow(null, TYPE_APPLICATION, "window1", ownerId1); in testIsSecureLocked_sensitiveContentProtectionManagerEnabled() local
1497 window1.mAttrs.packageName = testPackage; in testIsSecureLocked_sensitiveContentProtectionManagerEnabled()
1505 assertTrue(window1.isSecureLocked()); in testIsSecureLocked_sensitiveContentProtectionManagerEnabled()
/frameworks/native/services/inputflinger/tests/
DInputDispatcher_test.cpp4082 sp<FakeWindowHandle> window1 = in TEST_F() local
4084 window1->setTouchableRegion(Region{{0, 0, 100, 100}}); in TEST_F()
4085 window1->setTouchable(false); in TEST_F()
4090 mDispatcher->onWindowInfosChanged({{*window1->getInfo(), *window2->getInfo()}, {}, 0, 0}); in TEST_F()
4096 window1->assertNoEvents(); in TEST_F()
4111 sp<FakeWindowHandle> window1 = in TEST_F() local
4113 window1->setTouchableRegion(Region{{0, 0, 100, 100}}); in TEST_F()
4118 mDispatcher->onWindowInfosChanged({{*window1->getInfo(), *window2->getInfo()}, {}, 0, 0}); in TEST_F()
4125 window1->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN))); in TEST_F()
4140 window1->consumeMotionMove(); in TEST_F()
[all …]