summaryrefslogtreecommitdiff
path: root/base/chrono_utils_test.cpp
AgeCommit message (Collapse)Author
2020-05-19Migrate system/core/base to system/libbaseBaligh Uddin
BUG: 148941208 test: TH Change-Id: I1134f1e9e968b9273748e2483bea8d25e5c9e994
2017-07-10Move Timer from init to libbaseTom Cherry
Test: boot bullhead Test: new libbase unit tests Change-Id: Ic398a1daa1fe92c10ea7bc1e6ac3f781cee9a5b5
2017-05-01Revert "base: make boot_clock work on host linux, hide it on non-linux."Josh Gao
This reverts commit ae29339ca138648eeaee68f801feb02d85ee2abf, which broke the darwin build. Change-Id: Ib33e2dab197532f04944cb12151002e9219b1bb5
2017-04-28base: make boot_clock work on host linux, hide it on non-linux.Josh Gao
boot_clock was previously returning zero on any platform that doesn't define __ANDROID__, including host bionic. Instead of returning a bogus value, just hide it on non-Linux platforms. Bug: http://b/37758947 Test: libbase_test32/64 on linux Change-Id: I96e1d8b92dc44c6308408900cf0d27e1e7db5569
2017-03-30bootstat: Refactor init/utils/boot_clock into base/chrono_utils.James Hawkins
Use this for bootstat and init. This replaces the custom uptime parser in bootstat. This is a reland of aosp/338325 with a stubbed implementation for Darwin. This change also has clang_format fixes (automatic). Bug: 34352037 Test: chrono_utils_test Change-Id: I72a62a3ca1ccfc0a4ccc6294ff1776c263144686
2017-02-14Revert "bootstat: Refactor init/utils/boot_clock into base/chrono_utils."James Hawkins
This reverts commit 7c92e484503f239000ef97ef5b067907fbeaa4a6. Mac sdk still broken (despite testing locally). Change-Id: I7d9206e15997cd0efe081bd3fa17d53d2b20ec32
2017-02-13bootstat: Refactor init/utils/boot_clock into base/chrono_utils.James Hawkins
Use this for bootstat and init. This replaces the custom uptime parser in bootstat. This is a reland of aosp/332854 with a fix for Darwin. Bug: 34352037 Test: chrono_utils_test Change-Id: Ib2567d8df0e460ab59753ac1c053dd7f9f1008a7
2017-02-08Revert "bootstat: Remove custom uptime parser in favor of elapsedRealtime."James Hawkins
This reverts commit 26f40c04c3ad80e2bc449990010d39d1c1b9a5f0. This change broke the Darwin SDK target. Test: none Change-Id: Ia54fe2c31da8d8fa2825e023b035fb8321dcd457
2017-02-07bootstat: Remove custom uptime parser in favor of elapsedRealtime.James Hawkins
Refactored init/utils/boot_clock into base/chrono_utils. Bug: 34352037 Test: none Change-Id: Ied0c00867336b85922369d7ff37520e3d28fc61e