Lines Matching refs:metrics

60   MediaDrmMetrics metrics;  in TEST_F()  local
64 consumer.consumeFrameworkMetrics(metrics); in TEST_F()
69 MediaDrmMetrics metrics; in TEST_F() local
71 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
72 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
75 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F()
77 &metrics.mProvideKeyResponseTimeUs); in TEST_F()
82 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
83 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
84 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
86 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
87 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
92 consumer.consumeFrameworkMetrics(metrics); in TEST_F()
129 MediaDrmMetrics metrics; in TEST_F() local
131 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
132 metrics.mOpenSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
134 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
135 metrics.mCloseSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
139 EventTimer<status_t> get_key_request_timer(&metrics.mGetKeyRequestTimeUs); in TEST_F()
141 &metrics.mProvideKeyResponseTimeUs); in TEST_F()
147 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
148 metrics.mGetProvisionRequestCounter.Increment(UNEXPECTED_NULL); in TEST_F()
149 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
150 metrics.mProvideProvisionResponseCounter.Increment(UNEXPECTED_NULL); in TEST_F()
151 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
152 metrics.mGetDeviceUniqueIdCounter.Increment(UNEXPECTED_NULL); in TEST_F()
154 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
155 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::EXPIRED); in TEST_F()
156 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::OUTPUTNOTALLOWED); in TEST_F()
157 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::STATUSPENDING); in TEST_F()
158 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::INTERNALERROR); in TEST_F()
159 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
160 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
161 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
162 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
163 metrics.mEventCounter.Increment(EventType::SESSION_RECLAIMED); in TEST_F()
174 metrics.SetSessionStart(sessionId1); in TEST_F()
175 metrics.SetSessionStart(sessionId2); in TEST_F()
176 metrics.SetSessionEnd(sessionId2); in TEST_F()
177 metrics.SetSessionEnd(sessionId1); in TEST_F()
181 consumer.consumeFrameworkMetrics(metrics); in TEST_F()
273 MediaDrmMetrics metrics; in TEST_F() local
275 metrics.mOpenSessionCounter.Increment(OK); in TEST_F()
276 metrics.mOpenSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
277 metrics.mCloseSessionCounter.Increment(OK); in TEST_F()
278 metrics.mCloseSessionCounter.Increment(UNEXPECTED_NULL); in TEST_F()
280 metrics.mGetProvisionRequestCounter.Increment(OK); in TEST_F()
281 metrics.mGetProvisionRequestCounter.Increment(UNEXPECTED_NULL); in TEST_F()
282 metrics.mProvideProvisionResponseCounter.Increment(OK); in TEST_F()
283 metrics.mProvideProvisionResponseCounter.Increment(UNEXPECTED_NULL); in TEST_F()
284 metrics.mGetDeviceUniqueIdCounter.Increment(OK); in TEST_F()
285 metrics.mGetDeviceUniqueIdCounter.Increment(UNEXPECTED_NULL); in TEST_F()
287 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::USABLE); in TEST_F()
288 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::EXPIRED); in TEST_F()
289 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::OUTPUTNOTALLOWED); in TEST_F()
290 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::STATUSPENDING); in TEST_F()
291 metrics.mKeyStatusChangeCounter.Increment(KeyStatusType::INTERNALERROR); in TEST_F()
292 metrics.mEventCounter.Increment(EventType::PROVISION_REQUIRED); in TEST_F()
293 metrics.mEventCounter.Increment(EventType::KEY_NEEDED); in TEST_F()
294 metrics.mEventCounter.Increment(EventType::KEY_EXPIRED); in TEST_F()
295 metrics.mEventCounter.Increment(EventType::VENDOR_DEFINED); in TEST_F()
296 metrics.mEventCounter.Increment(EventType::SESSION_RECLAIMED); in TEST_F()
299 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()
337 MediaDrmMetrics metrics; in TEST_F() local
343 metrics.mGetKeyRequestTimeUs.Record(time, s); in TEST_F()
344 metrics.mProvideKeyResponseTimeUs.Record(time, s); in TEST_F()
349 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()
384 FakeMediaDrmMetrics metrics; in TEST_F() local
393 metrics.SetSessionStart(sessionId1); in TEST_F()
394 metrics.SetSessionStart(sessionId2); in TEST_F()
395 metrics.SetSessionEnd(sessionId2); in TEST_F()
396 metrics.SetSessionEnd(sessionId1); in TEST_F()
399 ASSERT_EQ(OK, metrics.GetSerializedMetrics(&serializedMetrics)); in TEST_F()