commit | 2b0161ce3763a469e7288d8853b01b65cbe93c66 | [log] [tgz] |
---|---|---|
author | Lakshman Annadorai <lakshmana@google.com> | Mon Sep 13 15:16:32 2021 -0700 |
committer | Lakshman Annadorai <lakshmana@google.com> | Mon Sep 20 14:59:47 2021 -0700 |
tree | b8516142c3ff3375a9e7e3b5a6a99c995bb5e927 | |
parent | cb442bd088bfbcb6e1cf0b2bd65c9b5c92e3aa4f [diff] |
Refactor UidIoStatsCollector implementation. - Remove unnecessary nesting of IoUsage inside UidIoUsage. - Rename the internal struct such that it is similar to the class name. - Add UidIoStatsCollectorInterface for mocking in the test because marking implementation methods as virtual for testing purposes has performance overhead in prod. - Remove redundant uid information in the struct. Test: atest libwatchdog_test Bug: 199782126 Change-Id: Ieacb4352ecd7b46c049a24213dd511cf5fa36182
Native (C++) code format is required to be compatible with .clang-format file. Run
git clang-format --style=file --extension='h,cpp,cc' HEAD~
Note that clang-format is not desirable for Android java files. Therefore the command line above is limited to specific extensions.