summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.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-05 21:30:52 +0900
commit16f0a9436a9af84938e0b49c590e8c4d011af07e (patch)
tree9031a2b6da8020387963b3388914294d21713e22 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parentfed512a795e14752872a2c672cd4e37d8ebb35ca (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: I112596fcd03d3c2cd42a2a84d265adb38e3944bb
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions