310885be9323bd2ec0bca9d6ae5f265795e477a1
Although the main purpose of these change is to test the new public API (ConnectivityManager.getRestrictBackgroundStatus()), it also indirectly tests the new private API on INetworkPolicyManager (addRestrictBackgroundWhitelistedUid(), removeRestrictBackgroundWhitelistedUid(), and getRestrictBackgroundWhitelistedUids()), since they're used on each test to setup the device state. This change also modified how the device-side tests are run: the runDeviceTests() had a className parameter that was not used, and this CL not only uses it but also introduces a methodName as well. The reasoning for this change is that the host-side tests must interact with the device-side tests many times during each test; in fact, the "real" test is done at the host side, while the device-side test is just used to assert the expected result of getRestrictBackgroundStatus()). BUG: 26451391 Change-Id: I7114e350f3b247d2f05b0c280a09cad383c61f9a
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%