Home
last modified time | relevance | path

Searched refs:total_frames_lost (Results 1 – 3 of 3) sorted by relevance

/system/media/audio_utils/
Dhal_smoothness.c48 metrics->total_frames_lost = 0; in reset_metrics()
70 if (add_check_overflow(&smoothness_meta->metrics.total_frames_lost, in increment_underrun()
91 if (add_check_overflow(&smoothness_meta->metrics.total_frames_lost, in increment_overrun()
99 static double calc_smoothness_value(unsigned int total_frames_lost, in calc_smoothness_value() argument
103 if (total_frames_lost == 0 && total_frames_written == 0) { in calc_smoothness_value()
109 if (total_frames_lost == 0) { in calc_smoothness_value()
113 unsigned int total_frames = total_frames_lost; in calc_smoothness_value()
120 double lost_frames_ratio = (double)total_frames_lost / total_frames; in calc_smoothness_value()
135 calc_smoothness_value(smoothness_meta->metrics.total_frames_lost, in flush()
/system/media/audio_utils/tests/
Dhal_smoothness_tests.cpp106 EXPECT_EQ(data.metrics.total_frames_lost, 2700U); in TEST_F()
157 EXPECT_EQ(data.metrics.total_frames_lost, 0U); in TEST_F()
319 ASSERT_EQ(data.metrics.total_frames_lost, 0U); in TEST_F()
329 EXPECT_EQ(data.metrics.total_frames_lost, 1800U); in TEST_F()
348 EXPECT_EQ(data.metrics.total_frames_lost, 0U); in TEST_F()
/system/media/audio_utils/include/audio_utils/
Dhal_smoothness.h56 unsigned int total_frames_lost; member