OSDN Git Service

Add a method to get the total network usage.
authorDoris Ling <dling@google.com>
Wed, 20 Jun 2018 22:00:22 +0000 (15:00 -0700)
committerDoris Ling <dling@google.com>
Wed, 20 Jun 2018 23:13:40 +0000 (16:13 -0700)
commit0f1dc9004e52ba3cd51c293fd1838c7da8c35e17
tree5fc8417dd346c2338ad72d7ecc3994a5ee9182b8
parent40cef0f5b2a2ab6c9d27e681c2948cb86b31362b
Add a method to get the total network usage.

- add a method to get the overall total network usage from all of the
network history data.

Bug: 74451774
Test: make RunSettingsLibRoboTests
Change-Id: Icf547b88bbc03c08161a1bc09941a7c31d2a96f5
packages/SettingsLib/src/com/android/settingslib/net/DataUsageController.java
packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/DataUsageControllerTest.java [new file with mode: 0644]