Lines Matching refs:metrics

59   MediaDrmMetrics metrics;  in TEST_F()  local
62 metrics.Export(&bundle); in TEST_F()
67 MediaDrmMetrics metrics; in TEST_F() local
69 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
70 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
73 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F()
75 &metrics.mProvideKeyResponseTimeUs); in TEST_F()
80 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
81 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
82 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
84 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
85 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
89 metrics.Export(&bundle); in TEST_F()
126 MediaDrmMetrics metrics; in TEST_F() local
128 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
129 metrics.mOpenSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
131 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
132 metrics.mCloseSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
136 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F()
138 &metrics.mProvideKeyResponseTimeUs); in TEST_F()
144 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
145 metrics.mGetProvisionRequestCounter.Increment(UNEXPECTED_NULL); in TEST_F()
146 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
147 metrics.mProvideProvisionResponseCounter.Increment(UNEXPECTED_NULL); in TEST_F()
148 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
149 metrics.mGetDeviceUniqueIdCounter.Increment(UNEXPECTED_NULL); in TEST_F()
151 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
152 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::EXPIRED); in TEST_F()
153 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::OUTPUTNOTALLOWED); in TEST_F()
154 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::STATUSPENDING); in TEST_F()
155 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::INTERNALERROR); in TEST_F()
156 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
157 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
158 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
159 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
160 metrics.mEventCounter.Increment(EventType::SESSION_RECLAIMED); in TEST_F()
171 metrics.SetSessionStart(sessionId1); in TEST_F()
172 metrics.SetSessionStart(sessionId2); in TEST_F()
173 metrics.SetSessionEnd(sessionId2); in TEST_F()
174 metrics.SetSessionEnd(sessionId1); in TEST_F()
177 metrics.Export(&bundle); in TEST_F()
269 MediaDrmMetrics metrics; in TEST_F() local
271 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
272 metrics.mOpenSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
273 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
274 metrics.mCloseSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
276 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
277 metrics.mGetProvisionRequestCounter.Increment(UNEXPECTED_NULL); in TEST_F()
278 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
279 metrics.mProvideProvisionResponseCounter.Increment(UNEXPECTED_NULL); in TEST_F()
280 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
281 metrics.mGetDeviceUniqueIdCounter.Increment(UNEXPECTED_NULL); in TEST_F()
283 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
284 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::EXPIRED); in TEST_F()
285 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::OUTPUTNOTALLOWED); in TEST_F()
286 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::STATUSPENDING); in TEST_F()
287 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::INTERNALERROR); in TEST_F()
288 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
289 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
290 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
291 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
292 metrics.mEventCounter.Increment(EventType::SESSION_RECLAIMED); in TEST_F()
295 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()
333 MediaDrmMetrics metrics; in TEST_F() local
339 metrics.mGetKeyRequestTimeUs.Record(time, s); in TEST_F()
340 metrics.mProvideKeyResponseTimeUs.Record(time, s); in TEST_F()
345 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()
380 FakeMediaDrmMetrics metrics; in TEST_F() local
389 metrics.SetSessionStart(sessionId1); in TEST_F()
390 metrics.SetSessionStart(sessionId2); in TEST_F()
391 metrics.SetSessionEnd(sessionId2); in TEST_F()
392 metrics.SetSessionEnd(sessionId1); in TEST_F()
395 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()