summaryrefslogtreecommitdiff
path: root/framework-t/src/android/net/NetworkStatsAccess.java
Commit message (Collapse)AuthorAgeFilesLines
* [MS25.1] Remove AppOpsManager.OP_GET_USAGE_STATS dependencyJunyu Lai2021-12-301-2/+2
| | | | | | | | Replaced by public interface. Test: TH Bug: 204830222 Change-Id: If7d17879b0ffdb6300373bc581cb07252fccfc7a
* [MS23] Remove UserHandle.getUserId dependenciesJunyu Lai2021-12-301-2/+4
| | | | | | | | Replaced with SystemApi. Test: TH Bug: 204830222 Change-Id: Ibc834489428c2036cd4ccd3284ba06c4c9e792b7
* [MS26.1] Remove Process.NETWORK_STACK_UID dependencyJunyu Lai2021-12-291-2/+7
| | | | | | | | Check NetworkStack permission instead. Test: NetworkStatsAccessTest Bug: 204830222 Change-Id: I052a1422d145af533b036b0f017ace485b67cbfe
* [DU02]Remove DevicePolicyManagerInternal from NetworkStatsAccesslifr2021-12-211-8/+6
| | | | | | | | | | NetworkStatsAccess is using DevicePolicyManagerInternal APIs, which cannot be accessed after moving into the mainline module. So, replace and remove those hidden API usages. Bug: 207100745 Test: atest NetworkStatsAccessTest Change-Id: I0802148050869d92e1f09d1d657034380029f236
* [MS07.1] Move NetworkStatsCollection/IdentitySet into frameworksJunyu Lai2021-12-101-0/+203
These files are needed for the data migration util system Api interfaces to allow OEMs to construct NetworkStats* objects. Thus, they need to be moved into android.net package, and some of them will be exposed as @SystemApi in T. Eventually these classes will be moved into the Connectivity module, but in the mean time they will be temporarily moved to f/b/package/ConnectivityT for the preparation stage. However, the tests are already in the module. Therefore for the S-derived branch, the test cannot see the renamed classes since any framework CLs will not be auto-merged into this branch. Thus, the tests need to stay disabled on the S-derived branch, and will be re-enabled after all files are moved into the module. Test: TH Bug: 197717846 Change-Id: I95278a99cf2437ada28001161ceea17a1d32f2a4