Home
last modified time | relevance | path

Searched refs:duration_ns (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/services/mediametrics/
DAudioPowerUsage.cpp142 int64_t duration_ns; in sendItem() local
143 if (!item->getInt64(AUDIO_POWER_USAGE_PROP_DURATION_NS, &duration_ns)) return; in sendItem()
164 const int32_t duration_secs = (int32_t)(duration_ns / NANOS_PER_SECOND); in sendItem()
214 int32_t device, int64_t duration_ns, int32_t type, double average_vol, in saveAsItem_l() argument
219 (long long)duration_ns, average_vol); in saveAsItem_l()
220 if (duration_ns == 0) { in saveAsItem_l()
238 int64_t final_duration_ns = item_duration_ns + duration_ns; in saveAsItem_l()
241 average_vol * (double)duration_ns) / (double)final_duration_ns); in saveAsItem_l()
285 sitem->setInt64(AUDIO_POWER_USAGE_PROP_DURATION_NS, duration_ns); in saveAsItem_l()
297 int32_t device, int64_t duration_ns, int32_t type, double average_vol, in saveAsItems_l() argument
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameTracerTest.cpp198 EXPECT_EQ(buffer_event.duration_ns(), duration); in TEST_F()
369 EXPECT_EQ(buffer_event1.duration_ns(), duration); in TEST_F()
378 EXPECT_EQ(buffer_event2.duration_ns(), duration); in TEST_F()