diff options
author | paulhu <paulhu@google.com> | 2021-03-20 00:09:34 +0800 |
---|---|---|
committer | paulhu <paulhu@google.com> | 2021-03-22 19:28:40 +0800 |
commit | 3ce12e7b655156ee9c45ded8f17eb8f298d4c12f (patch) | |
tree | 43e45ddc78de39bdea2d495735b175aa057b84d4 /rs/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 07f3583061ae752791a45208b780c770c430a1ba (diff) |
Fix CS external dependencies on SystemUI
- Use formal API getSystemService to get ConnectivityManager.
- Use formal API PackageManager#hasSystemFeature(
PackageManager#FEATURE_TELEPHONY) to know whether device
supports telephony.
- Use formal API TelephonyManager#isDataCapable() to know
whether device has mobile ability.
- Replace NetworkCapabilities#equalsTransportTypes with
comparing two NetworkCapabilities' transport types directly.
- Replace ConnectivityManager#INET_CONDITION_ACTION by listening
onCapabilitiesChanged() network callback.
Bug: 183068713
Test: atest SystemUITests
Change-Id: I4a53223f36ea09a062a9ddea668a9d0662f0dbbc
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
0 files changed, 0 insertions, 0 deletions