Lines Matching refs:mDelegate
182 FakeStatsEventDelegate* mDelegate = new FakeStatsEventDelegate; member in android::__anon0d647eea0111::TimeStatsTest
184 std::make_unique<impl::TimeStats>(std::unique_ptr<FakeStatsEventDelegate>(mDelegate),
268 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
274 EXPECT_CALL(*mDelegate, in TEST_F()
276 EXPECT_CALL(*mDelegate, in TEST_F()
916 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
919 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
920 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
927 EXPECT_CALL(*mDelegate, in TEST_F()
928 statsEventSetAtomId(mDelegate->mEvent, in TEST_F()
930 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, TOTAL_FRAMES)); in TEST_F()
931 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, MISSED_FRAMES)); in TEST_F()
932 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, CLIENT_COMPOSITION_FRAMES)); in TEST_F()
933 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, _)); in TEST_F()
934 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, 2)); in TEST_F()
935 EXPECT_CALL(*mDelegate, statsEventWriteInt32(mDelegate->mEvent, DISPLAY_EVENT_CONNECTIONS)); in TEST_F()
936 EXPECT_CALL(*mDelegate, in TEST_F()
937 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
941 EXPECT_CALL(*mDelegate, in TEST_F()
942 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
947 EXPECT_CALL(*mDelegate, statsEventBuild(mDelegate->mEvent)); in TEST_F()
950 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_GLOBAL_INFO, in TEST_F()
951 mDelegate->mCookie)); in TEST_F()
978 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
981 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
982 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
992 EXPECT_CALL(*mDelegate, in TEST_F()
993 statsEventSetAtomId(mDelegate->mEvent, in TEST_F()
995 EXPECT_CALL(*mDelegate, in TEST_F()
996 statsEventWriteString8(mDelegate->mEvent, in TEST_F()
998 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, 1)); in TEST_F()
999 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, 0)); in TEST_F()
1000 EXPECT_CALL(*mDelegate, in TEST_F()
1001 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1006 EXPECT_CALL(*mDelegate, in TEST_F()
1007 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1011 EXPECT_CALL(*mDelegate, in TEST_F()
1012 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1017 EXPECT_CALL(*mDelegate, in TEST_F()
1018 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1022 EXPECT_CALL(*mDelegate, in TEST_F()
1023 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1028 EXPECT_CALL(*mDelegate, in TEST_F()
1029 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1033 EXPECT_CALL(*mDelegate, statsEventWriteInt64(mDelegate->mEvent, LATE_ACQUIRE_FRAMES)); in TEST_F()
1034 EXPECT_CALL(*mDelegate, in TEST_F()
1035 statsEventWriteInt64(mDelegate->mEvent, BAD_DESIRED_PRESENT_FRAMES)); in TEST_F()
1036 EXPECT_CALL(*mDelegate, statsEventBuild(mDelegate->mEvent)); in TEST_F()
1039 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_LAYER_INFO, in TEST_F()
1040 mDelegate->mCookie)); in TEST_F()
1058 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1061 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
1062 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
1064 EXPECT_CALL(*mDelegate, in TEST_F()
1065 statsEventSetAtomId(mDelegate->mEvent, in TEST_F()
1068 EXPECT_CALL(*mDelegate, in TEST_F()
1069 statsEventWriteString8(mDelegate->mEvent, StrEq(genLayerName(LAYER_ID_0).c_str()))); in TEST_F()
1070 EXPECT_CALL(*mDelegate, in TEST_F()
1071 statsEventWriteString8(mDelegate->mEvent, StrEq(genLayerName(LAYER_ID_1).c_str()))); in TEST_F()
1073 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_LAYER_INFO, in TEST_F()
1074 mDelegate->mCookie)); in TEST_F()
1091 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1094 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
1095 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
1097 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1103 EXPECT_CALL(*mDelegate, in TEST_F()
1104 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1109 EXPECT_CALL(*mDelegate, statsEventWriteByteArray(mDelegate->mEvent, _, _)) in TEST_F()
1113 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_LAYER_INFO, in TEST_F()
1114 mDelegate->mCookie)); in TEST_F()
1118 mDelegate = new FakeStatsEventDelegate; in TEST_F()
1120 std::make_unique<impl::TimeStats>(std::unique_ptr<FakeStatsEventDelegate>(mDelegate), in TEST_F()
1131 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1134 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
1135 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
1137 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1143 EXPECT_CALL(*mDelegate, in TEST_F()
1144 statsEventWriteByteArray(mDelegate->mEvent, in TEST_F()
1149 EXPECT_CALL(*mDelegate, statsEventWriteByteArray(mDelegate->mEvent, _, _)) in TEST_F()
1153 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_LAYER_INFO, in TEST_F()
1154 mDelegate->mCookie)); in TEST_F()
1158 mDelegate = new FakeStatsEventDelegate; in TEST_F()
1160 std::make_unique<impl::TimeStats>(std::unique_ptr<FakeStatsEventDelegate>(mDelegate), 1, in TEST_F()
1172 EXPECT_THAT(mDelegate->mAtomTags, in TEST_F()
1175 EXPECT_NE(nullptr, mDelegate->mCallback); in TEST_F()
1176 EXPECT_EQ(mTimeStats.get(), mDelegate->mCookie); in TEST_F()
1178 EXPECT_CALL(*mDelegate, in TEST_F()
1179 statsEventSetAtomId(mDelegate->mEvent, in TEST_F()
1182 EXPECT_CALL(*mDelegate, in TEST_F()
1183 statsEventWriteString8(mDelegate->mEvent, StrEq(genLayerName(LAYER_ID_1).c_str()))); in TEST_F()
1185 mDelegate->makePullAtomCallback(android::util::SURFACEFLINGER_STATS_LAYER_INFO, in TEST_F()
1186 mDelegate->mCookie)); in TEST_F()