commit | 23e0eef493f1b5b78db08e107d9de346cc796cea | [log] [tgz] |
---|---|---|
author | Kweku Adams <kwekua@google.com> | Mon Dec 23 10:36:28 2019 -0800 |
committer | Kweku Adams <kwekua@google.com> | Mon Jan 06 14:02:29 2020 -0800 |
tree | 241ea995b2972d491538502f832159a61d7d94bc | |
parent | 8268f08062e8c54f9546fe60881aca908bc8086d [diff] |
Add methods to simplify UptcMap usage. Add a getOrCreate method so an object can be created if one doesn't exist. Add a new forEach method that will also supply the userId, packageName, and tag to the consumer. Bug: 135764360 Test: atest CountQuotaTrackerTest Test: atest DurationQuotaTrackerTest Change-Id: I9807fdd25ee2434e6c53b07cba4c0be7e5879237