Lines Matching refs:spy
285 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
286 spy->setSpy(true); in TEST_F()
287 spy->setTrustedOverlay(true); in TEST_F()
288 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
291 tapAndExpect({spy, window}, Level::NONE, Level::NONE, s); in TEST_F()
294 spy->setSecure(true); in TEST_F()
295 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
296 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
298 spy->setSecure(false); in TEST_F()
300 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
301 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
303 spy->setSecure(true); in TEST_F()
305 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
306 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
308 spy->setSecure(false); in TEST_F()
310 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
311 tapAndExpect({spy, window}, Level::NONE, Level::NONE, s); in TEST_F()
329 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
330 spy->setSpy(true); in TEST_F()
331 spy->setTrustedOverlay(true); in TEST_F()
332 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
335 tapAndExpect({spy, window}, Level::NONE, Level::NONE, s); in TEST_F()
338 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
341 tapAndExpect({spy, window}, Level::NONE, Level::NONE, s); in TEST_F()
361 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
362 spy->setOwnerInfo(PID, ALLOWED_UID_2); in TEST_F()
363 spy->setSpy(true); in TEST_F()
364 spy->setTrustedOverlay(true); in TEST_F()
370 {{*systemSpy->getInfo(), *spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
372 tapAndExpect({systemSpy, spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
379 mDispatcher->onWindowInfosChanged({{*systemSpy->getInfo(), *spy->getInfo(), in TEST_F()
385 tapAndExpect({systemSpy, spy, disallowedSpy, window}, Level::NONE, Level::NONE, s); in TEST_F()
389 mDispatcher->onWindowInfosChanged({{*systemSpy->getInfo(), *spy->getInfo(), in TEST_F()
395 tapAndExpect({systemSpy, spy, disallowedSpy, window}, Level::NONE, Level::NONE, s); in TEST_F()
399 {{*systemSpy->getInfo(), *spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
401 tapAndExpect({systemSpy, spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
435 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
436 spy->setOwnerInfo(PID, ALLOWED_UID_1); in TEST_F()
437 spy->setSpy(true); in TEST_F()
438 spy->setTrustedOverlay(true); in TEST_F()
440 {{*disallowedSpy->getInfo(), *spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
442 tapAndExpect({disallowedSpy, spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
450 *spy->getInfo(), *window->getInfo()}, in TEST_F()
455 tapAndExpect({disallowedSpy, disallowedSpy2, spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
513 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
514 spy->setOwnerInfo(PID, ALLOWED_UID_1); in TEST_F()
515 spy->setSpy(true); in TEST_F()
516 spy->setTrustedOverlay(true); in TEST_F()
517 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
519 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
556 auto spy = sp<FakeWindowHandle>::make(APP, mDispatcher, "Spy", DISPLAY_ID); in TEST_F() local
557 spy->setOwnerInfo(PID, ALLOWED_UID_2); in TEST_F()
558 spy->setSpy(true); in TEST_F()
559 spy->setTrustedOverlay(true); in TEST_F()
560 spy->setSecure(true); in TEST_F()
561 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
563 tapAndExpect({spy, window}, Level::NONE, Level::NONE, s); in TEST_F()
565 spy->setSecure(false); in TEST_F()
566 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
568 tapAndExpect({spy, window}, Level::COMPLETE, Level::COMPLETE, s); in TEST_F()
570 spy->setOwnerInfo(PID, DISALLOWED_UID_1); in TEST_F()
571 mDispatcher->onWindowInfosChanged({{*spy->getInfo(), *window->getInfo()}, {}, 0, 0}); in TEST_F()
573 tapAndExpect({spy, window}, Level::REDACTED, Level::REDACTED, s); in TEST_F()