Lines Matching refs:displayToken

132     bool hasDisplayDevice(sp<IBinder> displayToken);
133 sp<DisplayDevice> getDisplayDevice(sp<IBinder> displayToken);
134 bool hasCurrentDisplayState(sp<IBinder> displayToken);
135 const DisplayDeviceState& getCurrentDisplayState(sp<IBinder> displayToken);
136 bool hasDrawingDisplayState(sp<IBinder> displayToken);
137 const DisplayDeviceState& getDrawingDisplayState(sp<IBinder> displayToken);
303 bool DisplayTransactionTest::hasDisplayDevice(sp<IBinder> displayToken) { in hasDisplayDevice() argument
304 return mFlinger.mutableDisplays().count(displayToken) == 1; in hasDisplayDevice()
307 sp<DisplayDevice> DisplayTransactionTest::getDisplayDevice(sp<IBinder> displayToken) { in getDisplayDevice() argument
308 return mFlinger.mutableDisplays()[displayToken]; in getDisplayDevice()
311 bool DisplayTransactionTest::hasCurrentDisplayState(sp<IBinder> displayToken) { in hasCurrentDisplayState() argument
312 return mFlinger.mutableCurrentState().displays.indexOfKey(displayToken) >= 0; in hasCurrentDisplayState()
315 const DisplayDeviceState& DisplayTransactionTest::getCurrentDisplayState(sp<IBinder> displayToken) { in getCurrentDisplayState() argument
316 return mFlinger.mutableCurrentState().displays.valueFor(displayToken); in getCurrentDisplayState()
319 bool DisplayTransactionTest::hasDrawingDisplayState(sp<IBinder> displayToken) { in hasDrawingDisplayState() argument
320 return mFlinger.mutableDrawingState().displays.indexOfKey(displayToken) >= 0; in hasDrawingDisplayState()
323 const DisplayDeviceState& DisplayTransactionTest::getDrawingDisplayState(sp<IBinder> displayToken) { in getDrawingDisplayState() argument
324 return mFlinger.mutableDrawingState().displays.valueFor(displayToken); in getDrawingDisplayState()
1197 sp<IBinder> displayToken = mFlinger.createDisplay(name, false); in TEST_F() local
1203 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F()
1204 const auto& display = getCurrentDisplayState(displayToken); in TEST_F()
1228 sp<IBinder> displayToken = mFlinger.createDisplay(name, true); in TEST_F() local
1234 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F()
1235 const auto& display = getCurrentDisplayState(displayToken); in TEST_F()
1292 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
1297 mFlinger.destroyDisplay(displayToken); in TEST_F()
1757 const sp<BBinder> displayToken = new BBinder(); in setupNewDisplayDeviceInternalTest() local
1802 auto device = mFlinger.setupNewDisplayDeviceInternal(displayToken, compositionDisplay, state, in setupNewDisplayDeviceInternalTest()
1901 void verifyDisplayIsConnected(const sp<IBinder>& displayToken);
1906 void verifyDisplayIsNotConnected(const sp<IBinder>& displayToken);
1960 void HandleTransactionLockedTest::verifyDisplayIsConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsConnected() argument
1962 ASSERT_TRUE(hasDisplayDevice(displayToken)); in verifyDisplayIsConnected()
1963 const auto& device = getDisplayDevice(displayToken); in verifyDisplayIsConnected()
1977 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in verifyDisplayIsConnected()
1978 const auto& current = getCurrentDisplayState(displayToken); in verifyDisplayIsConnected()
1983 ASSERT_TRUE(hasDrawingDisplayState(displayToken)); in verifyDisplayIsConnected()
1984 const auto& draw = getDrawingDisplayState(displayToken); in verifyDisplayIsConnected()
1998 auto& displayToken = mFlinger.mutablePhysicalDisplayTokens()[*displayId]; in verifyPhysicalDisplayIsConnected() local
2000 verifyDisplayIsConnected<Case>(displayToken); in verifyPhysicalDisplayIsConnected()
2003 void HandleTransactionLockedTest::verifyDisplayIsNotConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsNotConnected() argument
2004 EXPECT_FALSE(hasDisplayDevice(displayToken)); in verifyDisplayIsNotConnected()
2005 EXPECT_FALSE(hasCurrentDisplayState(displayToken)); in verifyDisplayIsNotConnected()
2006 EXPECT_FALSE(hasDrawingDisplayState(displayToken)); in verifyDisplayIsNotConnected()
2274 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
2281 mFlinger.mutableCurrentState().displays.add(displayToken, state); in TEST_F()
2318 verifyDisplayIsConnected<Case>(displayToken); in TEST_F()
2328 mFlinger.mutableCurrentState().displays.removeItem(displayToken); in TEST_F()
2329 mFlinger.mutableDrawingState().displays.removeItem(displayToken); in TEST_F()
2345 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
2350 mFlinger.mutableCurrentState().displays.add(displayToken, state); in TEST_F()
2364 EXPECT_FALSE(hasDisplayDevice(displayToken)); in TEST_F()
2367 ASSERT_TRUE(hasDrawingDisplayState(displayToken)); in TEST_F()
2368 const auto& draw = getDrawingDisplayState(displayToken); in TEST_F()
2615 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
2620 state.token = displayToken; in TEST_F()
2635 EXPECT_FALSE(hasCurrentDisplayState(displayToken)); in TEST_F()