diff options
| author | 2022-08-02 19:04:33 +0800 | |
|---|---|---|
| committer | 2022-09-08 03:35:37 +0000 | |
| commit | bf56a800b900cf24bdd0bdb223f1f185039128e0 (patch) | |
| tree | 700f93e9c98b016208dc3c1fe06f859221170178 /api/api.go | |
| parent | 85362a4b17f2d848ba8b9ece074e27692851a3e7 (diff) | |
Tidy up VPN code
This commit addressed the comments in different commits, it did
- Make isVpnApp() to be a static method.
- Rename getRedactedNetworkCapabilitiesOfUnderlyingNetwork to
getRedactedNetworkCapabilities and rename
getRedactedLinkPropertiesOfUnderlyingNetwork to
getRedactedLinkProperties.
- Reduce the scope of synchronized block in handleSessionLost().
- Fast return when there is an IllegalArgumentException in
handleSessionLost().
- Remove inaccurate comment.
- Update the document of mCurrentToken.
- Define an initial token value of IKE session.
- Add "/* exeception */" annotation to handleSessionLost(null)
calls.
Bug: 236409954
Test: atest FrameworksNetTests:VpnTest
Change-Id: I8c938f8796345dc2eee6c8eff513b0f993bc8165
(cherry picked from commit 7146e2cb02578d4249d4519d442918c8da7f6178)
Merged-In: I8c938f8796345dc2eee6c8eff513b0f993bc8165
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions