Lines Matching refs:displayToken
101 bool hasDisplayDevice(sp<IBinder> displayToken);
102 sp<DisplayDevice> getDisplayDevice(sp<IBinder> displayToken);
103 bool hasCurrentDisplayState(sp<IBinder> displayToken);
104 const DisplayDeviceState& getCurrentDisplayState(sp<IBinder> displayToken);
105 bool hasDrawingDisplayState(sp<IBinder> displayToken);
106 const DisplayDeviceState& getDrawingDisplayState(sp<IBinder> displayToken);
209 bool DisplayTransactionTest::hasDisplayDevice(sp<IBinder> displayToken) { in hasDisplayDevice() argument
210 return mFlinger.mutableDisplays().indexOfKey(displayToken) >= 0; in hasDisplayDevice()
213 sp<DisplayDevice> DisplayTransactionTest::getDisplayDevice(sp<IBinder> displayToken) { in getDisplayDevice() argument
214 return mFlinger.mutableDisplays().valueFor(displayToken); in getDisplayDevice()
217 bool DisplayTransactionTest::hasCurrentDisplayState(sp<IBinder> displayToken) { in hasCurrentDisplayState() argument
218 return mFlinger.mutableCurrentState().displays.indexOfKey(displayToken) >= 0; in hasCurrentDisplayState()
221 const DisplayDeviceState& DisplayTransactionTest::getCurrentDisplayState(sp<IBinder> displayToken) { in getCurrentDisplayState() argument
222 return mFlinger.mutableCurrentState().displays.valueFor(displayToken); in getCurrentDisplayState()
225 bool DisplayTransactionTest::hasDrawingDisplayState(sp<IBinder> displayToken) { in hasDrawingDisplayState() argument
226 return mFlinger.mutableDrawingState().displays.indexOfKey(displayToken) >= 0; in hasDrawingDisplayState()
229 const DisplayDeviceState& DisplayTransactionTest::getDrawingDisplayState(sp<IBinder> displayToken) { in getDrawingDisplayState() argument
230 return mFlinger.mutableDrawingState().displays.valueFor(displayToken); in getDrawingDisplayState()
841 sp<IBinder> displayToken = mFlinger.createDisplay(name, false); in TEST_F() local
847 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F()
848 const auto& display = getCurrentDisplayState(displayToken); in TEST_F()
872 sp<IBinder> displayToken = mFlinger.createDisplay(name, true); in TEST_F() local
878 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in TEST_F()
879 const auto& display = getCurrentDisplayState(displayToken); in TEST_F()
936 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
941 mFlinger.destroyDisplay(displayToken); in TEST_F()
1005 const sp<BBinder> displayToken = new BBinder(); in setupNewDisplayDeviceInternalTest() local
1036 auto device = mFlinger.setupNewDisplayDeviceInternal(displayToken, Case::Display::TYPE, state, in setupNewDisplayDeviceInternalTest()
1128 void verifyDisplayIsConnected(const sp<IBinder>& displayToken);
1133 void verifyDisplayIsNotConnected(const sp<IBinder>& displayToken);
1173 void HandleTransactionLockedTest::verifyDisplayIsConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsConnected() argument
1175 ASSERT_TRUE(hasDisplayDevice(displayToken)); in verifyDisplayIsConnected()
1176 const auto& device = getDisplayDevice(displayToken); in verifyDisplayIsConnected()
1181 ASSERT_TRUE(hasCurrentDisplayState(displayToken)); in verifyDisplayIsConnected()
1182 const auto& current = getCurrentDisplayState(displayToken); in verifyDisplayIsConnected()
1186 ASSERT_TRUE(hasDrawingDisplayState(displayToken)); in verifyDisplayIsConnected()
1187 const auto& draw = getDrawingDisplayState(displayToken); in verifyDisplayIsConnected()
1200 auto& displayToken = mFlinger.mutableBuiltinDisplays()[Case::Display::TYPE]; in verifyPhysicalDisplayIsConnected() local
1201 ASSERT_TRUE(displayToken != nullptr); in verifyPhysicalDisplayIsConnected()
1203 verifyDisplayIsConnected<Case>(displayToken); in verifyPhysicalDisplayIsConnected()
1206 void HandleTransactionLockedTest::verifyDisplayIsNotConnected(const sp<IBinder>& displayToken) { in verifyDisplayIsNotConnected() argument
1207 EXPECT_FALSE(hasDisplayDevice(displayToken)); in verifyDisplayIsNotConnected()
1208 EXPECT_FALSE(hasCurrentDisplayState(displayToken)); in verifyDisplayIsNotConnected()
1209 EXPECT_FALSE(hasDrawingDisplayState(displayToken)); in verifyDisplayIsNotConnected()
1306 auto displayToken = mFlinger.mutableBuiltinDisplays()[Case::Display::TYPE]; in processesHotplugDisconnectCommon() local
1307 EXPECT_TRUE(displayToken == nullptr); in processesHotplugDisconnectCommon()
1399 auto displayToken = mFlinger.mutableBuiltinDisplays()[Case::Display::TYPE]; in TEST_F() local
1400 EXPECT_TRUE(displayToken == nullptr); in TEST_F()
1470 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
1474 mFlinger.mutableCurrentState().displays.add(displayToken, info); in TEST_F()
1511 verifyDisplayIsConnected<Case>(displayToken); in TEST_F()
1534 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
1536 mFlinger.mutableCurrentState().displays.add(displayToken, info); in TEST_F()
1550 EXPECT_FALSE(hasDisplayDevice(displayToken)); in TEST_F()
1553 ASSERT_TRUE(hasDrawingDisplayState(displayToken)); in TEST_F()
1554 const auto& draw = getDrawingDisplayState(displayToken); in TEST_F()
1791 sp<BBinder> displayToken = new BBinder(); in TEST_F() local
1796 state.token = displayToken; in TEST_F()
1811 EXPECT_FALSE(hasCurrentDisplayState(displayToken)); in TEST_F()