diff options
| author | Junyu Lai <junyulai@google.com> | 2021-12-28 16:18:43 +0000 |
|---|---|---|
| committer | Junyu Lai <junyulai@google.com> | 2022-01-17 13:54:06 +0000 |
| commit | d3cb2bae4f11930a85294bcf0b320099de26557a (patch) | |
| tree | 1131f4fc26c4fd1b9a6abed4924fe5b33e03e418 /framework-t/src/android/net/IpSecAlgorithm.java | |
| parent | 4161a040337f7b46eadd5be332c727ea9d343b20 (diff) | |
[MS30] Remove ServiceManager#getService dependency
Since TrafficStats is moving into the mainline module,
ServiceManager#getService can no longer be accessed.
This change use reflection to access getService, since
there is no offical way to get the service binder,
and TrafficStats is a static utility that doesn't have
the context to invoke Context#getSystemService.
This change also fixes minor lint errors.
Test: atest CtsNetTestCases:TrafficStatsTest
Bug: 204830222
Change-Id: I5caec42a71431b39f747fc791b8511d92e5cf7cc
Diffstat (limited to 'framework-t/src/android/net/IpSecAlgorithm.java')
0 files changed, 0 insertions, 0 deletions
