commit | d2e3b8d69947fb7463ca5cd860c598de46d9dadc | [log] [tgz] |
---|---|---|
author | Junyu Lai <junyulai@google.com> | Wed Jan 03 14:53:08 2024 +0800 |
committer | Junyu Lai <junyulai@google.com> | Thu Jan 04 14:24:51 2024 +0800 |
tree | e7380b06bb5a0636a570dfc2e36a2db6fdc2eb8d | |
parent | 6c9393149307369c78b3ce705423cac1f58082ad [diff] |
Make getProviderIfaceStats return Entry This refactoring makes the method return Entry for follow-up changes to perform arithmetic operations on them easily. This change also removes error handling when the type is unsupported when calling getProviderIfaceStats because it cannot happen in practice. Test: atest ConnectivityCoverageTests:android.net.connectivity.com.android.server.net.NetworkStatsServiceTest Bug: N/A Change-Id: Id26a24c80bb87c399972ef8c3abf16e0f4719cb1