Home
last modified time | relevance | path

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

/system/bt/gd/os/linux_generic/
Dwakelock_manager.cc122 uint64_t delta_ms = just_now_ms - last_acquired_timestamp_ms; in UpdateReleasedStats() local
123 if (delta_ms < min_acquired_interval_ms || released_count == 1) { in UpdateReleasedStats()
124 min_acquired_interval_ms = delta_ms; in UpdateReleasedStats()
126 if (delta_ms > max_acquired_interval_ms) { in UpdateReleasedStats()
127 max_acquired_interval_ms = delta_ms; in UpdateReleasedStats()
129 last_acquired_interval_ms = delta_ms; in UpdateReleasedStats()
130 total_acquired_interval_ms += delta_ms; in UpdateReleasedStats()
137 uint64_t delta_ms = 0; in GetDumpsysData() local
144 delta_ms = just_now_ms - last_acquired_timestamp_ms; in GetDumpsysData()
145 if (delta_ms > max_interval_ms) { in GetDumpsysData()
[all …]
/system/bt/osi/src/
Dwakelock.cc313 uint64_t delta_ms = just_now_ms - wakelock_stats.last_acquired_timestamp_ms; in update_wakelock_released_stats() local
314 if (delta_ms < wakelock_stats.min_acquired_interval_ms || in update_wakelock_released_stats()
316 wakelock_stats.min_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
318 if (delta_ms > wakelock_stats.max_acquired_interval_ms) { in update_wakelock_released_stats()
319 wakelock_stats.max_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
321 wakelock_stats.last_acquired_interval_ms = delta_ms; in update_wakelock_released_stats()
322 wakelock_stats.total_acquired_interval_ms += delta_ms; in update_wakelock_released_stats()
334 uint64_t delta_ms = 0; in wakelock_debug_dump() local
341 delta_ms = just_now_ms - wakelock_stats.last_acquired_timestamp_ms; in wakelock_debug_dump()
342 if (delta_ms > max_interval_ms) max_interval_ms = delta_ms; in wakelock_debug_dump()
[all …]
Dalarm.cc154 static void update_stat(stat_t* stat, uint64_t delta_ms) { in update_stat() argument
155 if (stat->max_ms < delta_ms) stat->max_ms = delta_ms; in update_stat()
156 stat->total_ms += delta_ms; in update_stat()
707 uint64_t delta_ms = now_ms - deadline_ms; in update_scheduling_stats() local
708 update_stat(&stats->overdue_scheduling, delta_ms); in update_scheduling_stats()
711 uint64_t delta_ms = deadline_ms - now_ms; in update_scheduling_stats() local
712 update_stat(&stats->premature_scheduling, delta_ms); in update_scheduling_stats()