summaryrefslogtreecommitdiff
path: root/tests/unit/java/android/net/NetworkStatsAccessTest.java
Commit message (Collapse)AuthorAgeFilesLines
* Update the SDK for the tests with intended target in T+Chiachang Wang2022-01-201-2/+3
| | | | | | | | | | | | | | Correct the SDK for those tests are expected running in T+ device. Check @IgnoreUpTo(S) may be incorrect after receiving patches before T release. Refer to temporary constant definition in DevSdkIgnoreRule until the SDK constant being pushed into AOSP and synced with branch used for mainline. BUg: 215294242 Test: atest CtsNetTestCases CtsNetTestCasesLatestSdk Change-Id: Ide6a241f7944dd1e75bc33b21aa29471a5df94c6
* [MS25.2] Remove AppOpsManager.OP_GET_USAGE_STATS dependencyJunyu Lai2021-12-281-2/+2
| | | | | | | | Replaced by public interface. Test: TH Bug: 204830222 Change-Id: I1071bcaa74429885165d9dc8d1b02a1c1c48c685
* [MS26.2] Remove Process.NETWORK_STACK_UID dependencyJunyu Lai2021-12-281-38/+36
| | | | | | | | Check NetworkStack permission instead. Test: NetworkStatsAccessTest Bug: 20483022 Change-Id: Ie345cfa7dec8e001246efec8a27a1dc67a5c989c
* [DU02]Remove DevicePolicyManagerInternal from NetworkStatsAccesslifr2021-12-211-12/+8
| | | | | | | | | | 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: I0430ed2c47e5a695206cb660e3971ddab6c467dd
* [MS07.2] Move NetworkStatsCollection/IdentitySet into frameworksJunyu Lai2021-12-091-0/+192
These files are needed for the data migration util system Api interfaces. Thus, they need to be moved into frameworks folder. This change also set the @IgnoreUpTo annotation to S, since these tests are testing purely platform code on S- devices which is not really necessary for MTS. Also the tests are still covered by the unit tests, since they are always verifying HEAD. Test: TH Bug: 197717846 Change-Id: I93c19b4860864c724be9f9f889ee2173f4605198