984b5b6000e082ce002c3c142e54fd5d22d2bdfe
This cleanup helps declutter ConnectivityService, and encapsulates the always-on setting inside of Vpn instead of spreading it across two classes. In particular having the save code in one file and the load code in another file was weird and I apologise for that. Added a SystemServices wrapper for Settings.Secure and PendingIntent calls to decouple some of the global state nastiness and make it testable without forcing ConnectivityService to drive the load/save. Test: runtest -x tests/net/java/com/android/server/ConnectivityServiceTest.java Test: runtest -x tests/net/java/com/android/server/connectivity/VpnTest.java Bug: 33159037 Change-Id: Ie2adb1c377adfcef0a5900dc866e6118f451b265
Description
android_packages_modules_Connectivity
Languages
Java
81.4%
Kotlin
7.7%
AIDL
4.5%
C++
4.5%
C
1.7%
Other
0.1%