diff options
author | Robin Lee <rgl@google.com> | 2017-03-10 16:17:06 +0000 |
---|---|---|
committer | Robin Lee <rgl@google.com> | 2017-03-27 13:40:51 +0100 |
commit | b8c2a2b85052479cb6affe2d4a8240e78198e2d5 (patch) | |
tree | 556283ab73c13014cebb8c6afec531f77687ff8e /rs/java/android/renderscript/Script.java | |
parent | 1a69570fe8f2ed2ee541d13716f359b1116105e0 (diff) |
Move some VPN logic out of ConnectivityService
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
Diffstat (limited to 'rs/java/android/renderscript/Script.java')
0 files changed, 0 insertions, 0 deletions