summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorHugo Benichi <hugobenichi@google.com>2017-06-20 14:07:59 +0900
committerHugo Benichi <hugobenichi@google.com>2017-07-04 16:22:59 +0900
commit726931ebf4707795413578b57a1f033bf9a6e064 (patch)
tree6321d4d7c4e1e612f0c772ab3db0daf21a24a30f /rs/java/android/renderscript/ProgramStore.java
parent02309e9748a33be316367ba969ad62094fccdebe (diff)
ConnectivityManager: allow usage of TYPE_NONE
This patch allows to use TYPE_NONE for the legacy network type variable of NetworkInfo. This usage is "safe" with respect to legacy APIs using network types as most of them already returns null or do nothing for TYPE_NONE. Of the existing APIs in ConnectivityManager that accept a network type argument, those which were already returning null or doing nothing for TYPE_NONE are: getNetworkInfo(int) getNetworkForType(int) stopUsingNetworkFeature(int, String) networkCapabilitiesForType(int) requestRouteToHostAddress(int, InetAddress) reportInetCondition(int, int) isNetworkSupported(int) getLinkProperties(int) Only setProvisioningNotificationVisible needs an additional guard against TYPE_NONE. Bug: 30088447 Bug: 62844794 Test: runtest frameworks-net Change-Id: I4455f2726d06406047086368628c1f253d854d8d
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions