Lines Matching refs:secondWindow

5213     sp<FakeWindowHandle> secondWindow =  in TEST_F()  local
5216 secondWindow->setFrame(Rect{100, 100, 200, 200}); in TEST_F()
5222 {{*window->getInfo(), *secondWindow->getInfo(), *thirdWindow->getInfo()}, {}, 0, 0}); in TEST_F()
5229 secondWindow->assertNoEvents(); in TEST_F()
5239 secondWindow->consumeMotionDown(); in TEST_F()
5249 secondWindow->consumeMotionMove(); in TEST_F()
5649 sp<FakeWindowHandle> secondWindow = in setupScaledDisplayScenario() local
5652 secondWindow->setFrame(Rect(100, 200, 200, 400), displayTransform); in setupScaledDisplayScenario()
5653 addWindow(secondWindow); in setupScaledDisplayScenario()
5654 return {std::move(firstWindow), std::move(secondWindow)}; in setupScaledDisplayScenario()
5663 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5672 secondWindow->assertNoEvents(); in TEST_F()
5678 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5686 secondWindow->assertNoEvents(); in TEST_F()
5692 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5713 secondWindow->assertNoEvents(); in TEST_F()
5717 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5725 std::unique_ptr<MotionEvent> event = secondWindow->consumeMotionEvent(); in TEST_F()
5741 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5756 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN), WithCoords(100, 80))); in TEST_F()
5765 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_CANCEL), WithCoords(100, 80))); in TEST_F()
5771 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5780 mDispatcher->transferTouchGesture(firstWindow->getToken(), secondWindow->getToken()); in TEST_F()
5782 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_DOWN), WithCoords(-100, -400))); in TEST_F()
5786 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5792 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_ENTER), in TEST_F()
5799 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_EXIT), WithCoords(100, 80), in TEST_F()
5801 secondWindow->consumeMotionEvent( in TEST_F()
5803 secondWindow->assertNoEvents(); in TEST_F()
5810 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5817 sp<FakeWindowHandle> secondWindowClone = secondWindow->clone(SECOND_DISPLAY_ID); in TEST_F()
5825 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_ENTER), in TEST_F()
5833 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_EXIT), WithCoords(100, 80), in TEST_F()
5835 secondWindow->consumeMotionEvent( in TEST_F()
5837 secondWindow->assertNoEvents(); in TEST_F()
5842 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5848 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_ENTER), in TEST_F()
5853 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_EXIT), WithCoords(100, 80), in TEST_F()
5855 secondWindow->assertNoEvents(); in TEST_F()
5862 auto [firstWindow, secondWindow] = setupScaledDisplayScenario(); in TEST_F()
5869 sp<FakeWindowHandle> secondWindowClone = secondWindow->clone(SECOND_DISPLAY_ID); in TEST_F()
5877 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_ENTER), in TEST_F()
5884 secondWindow->consumeMotionEvent(AllOf(WithMotionAction(ACTION_HOVER_EXIT), WithCoords(100, 80), in TEST_F()
5887 secondWindow->assertNoEvents(); in TEST_F()
6068 sp<FakeWindowHandle> secondWindow = in TEST_P() local
6077 {{*firstWindow->getInfo(), *secondWindow->getInfo(), *wallpaper->getInfo()}, {}, 0, 0}); in TEST_P()
6088 secondWindow->assertNoEvents(); in TEST_P()
6095 const bool success = f(mDispatcher, firstWindow->getToken(), secondWindow->getToken()); in TEST_P()
6099 secondWindow->consumeMotionDown(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6110 secondWindow->consumeMotionUp(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6137 sp<FakeWindowHandle> secondWindow = in TEST_P() local
6143 {{*spyWindow->getInfo(), *firstWindow->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_P()
6156 const bool success = f(mDispatcher, firstWindow->getToken(), secondWindow->getToken()); in TEST_P()
6160 secondWindow->consumeMotionDown(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6169 secondWindow->consumeMotionUp(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6183 sp<FakeWindowHandle> secondWindow = in TEST_P() local
6186 secondWindow->setPreventSplitting(true); in TEST_P()
6190 {{*firstWindow->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_P()
6198 secondWindow->assertNoEvents(); in TEST_P()
6206 secondWindow->assertNoEvents(); in TEST_P()
6210 bool success = f(mDispatcher, firstWindow->getToken(), secondWindow->getToken()); in TEST_P()
6214 secondWindow->consumeMotionDown(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6216 secondWindow->consumeMotionPointerDown(1, ui::LogicalDisplayId::DEFAULT, in TEST_P()
6225 secondWindow->consumeMotionPointerUp(/*pointerIdx=*/1, in TEST_P()
6235 secondWindow->consumeMotionUp(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6247 sp<FakeWindowHandle> secondWindow = in TEST_P() local
6250 secondWindow->setDupTouchToWallpaper(true); in TEST_P()
6263 *secondWindow->getInfo(), *wallpaper2->getInfo()}, in TEST_P()
6275 secondWindow->assertNoEvents(); in TEST_P()
6281 bool success = f(mDispatcher, firstWindow->getToken(), secondWindow->getToken()); in TEST_P()
6286 secondWindow->consumeMotionDown(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6297 secondWindow->consumeMotionUp(ui::LogicalDisplayId::DEFAULT, in TEST_P()
6329 sp<FakeWindowHandle> secondWindow = in TEST_F() local
6332 secondWindow->setFrame(Rect(0, 400, 600, 800)); in TEST_F()
6336 {{*firstWindow->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_F()
6347 secondWindow->assertNoEvents(); in TEST_F()
6355 secondWindow->consumeMotionDown(); in TEST_F()
6358 mDispatcher->transferTouchGesture(firstWindow->getToken(), secondWindow->getToken()); in TEST_F()
6361 secondWindow->consumeMotionPointerDown(1, ui::LogicalDisplayId::DEFAULT, in TEST_F()
6370 secondWindow->consumeMotionPointerUp(/*pointerIdx=*/1, in TEST_F()
6380 secondWindow->consumeMotionUp(ui::LogicalDisplayId::DEFAULT, in TEST_F()
6396 sp<FakeWindowHandle> secondWindow = in TEST_F() local
6399 secondWindow->setFrame(Rect(0, 400, 600, 800)); in TEST_F()
6403 {{*firstWindow->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_F()
6414 secondWindow->assertNoEvents(); in TEST_F()
6422 secondWindow->consumeMotionDown(); in TEST_F()
6425 const bool transferred = mDispatcher->transferTouchOnDisplay(secondWindow->getToken(), in TEST_F()
6430 secondWindow->assertNoEvents(); in TEST_F()
6439 secondWindow->consumeMotionUp(); in TEST_F()
6446 secondWindow->assertNoEvents(); in TEST_F()
6774 sp<FakeWindowHandle> secondWindow = in TEST_F() local
6777 secondWindow->setFrame(Rect(0, 400, 600, 800)); in TEST_F()
6781 {{*firstWindow->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_F()
6792 secondWindow->assertNoEvents(); in TEST_F()
6800 secondWindow->consumeMotionDown(); in TEST_F()
6810 secondWindow->consumeMotionCancel(ui::LogicalDisplayId::DEFAULT, AMOTION_EVENT_FLAG_CANCELED); in TEST_F()
6817 secondWindow->assertNoEvents(); in TEST_F()
7046 sp<FakeWindowHandle> secondWindow = in TEST_F() local
7055 mDispatcher->onWindowInfosChanged({{*window->getInfo(), *secondWindow->getInfo()}, {}, 0, 0}); in TEST_F()
7069 secondWindow->consumeMotionDown(SECOND_DISPLAY_ID); in TEST_F()
7077 secondWindow->consumeMotionCancel(SECOND_DISPLAY_ID); in TEST_F()
7112 secondWindow->assertNoEvents(); in TEST_F()