Searched refs:duration_ns (Results 1 – 2 of 2) sorted by relevance
/frameworks/av/services/mediametrics/ |
D | AudioPowerUsage.cpp | 138 int64_t duration_ns; in sendItem() local 139 if (!item->getInt64(AUDIO_POWER_USAGE_PROP_DURATION_NS, &duration_ns)) return; in sendItem() 144 const int32_t duration_secs = (int32_t)(duration_ns / NANOS_PER_SECOND); in sendItem() 165 int32_t device, int64_t duration_ns, int32_t type, double average_vol) in saveAsItem_l() argument 168 (long long)duration_ns, average_vol ); in saveAsItem_l() 169 if (duration_ns == 0) { in saveAsItem_l() 187 int64_t final_duration_ns = item_duration_ns + duration_ns; in saveAsItem_l() 190 average_vol * (double)duration_ns) / (double)final_duration_ns); in saveAsItem_l() 208 sitem->setInt64(AUDIO_POWER_USAGE_PROP_DURATION_NS, duration_ns); in saveAsItem_l() 216 int32_t device, int64_t duration_ns, int32_t type, double average_vol) in saveAsItems_l() argument [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | FrameTracerTest.cpp | 198 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()
|