diff options
author | junyulai <junyulai@google.com> | 2018-12-13 12:47:51 +0800 |
---|---|---|
committer | junyulai <junyulai@google.com> | 2018-12-20 16:36:10 +0800 |
commit | 3822c8a26d5b9cd1550319d1f425d20c71b2cda5 (patch) | |
tree | 3dfbafd7a3252ded208a6a8e3d5ec625bf7cba71 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0882543a128a7f1289d54600dd48a4f2df3a30df (diff) |
Deprecate NetworkInfo
Currently NetworkInfo is used by Apps to get information of
network. However, to get such information, Apps need to poll
NetworkInfo frequently from ConnectivityService.
In order to increase the stability and reduce the maintain
effort, all functionalities provided by NetworkInfo are targeted
to be replaced or removed entirely.
Apps should use ConnectivityManager.NetworkCallback instead, to
get faster and more detailed updates from connectivity changes.
Or, apps could use getNetworkCapabilities or getLinkProperties
to get information synchronously, but should not mix the
callbacks and synchronous methods together.
Bug: 113629330
Test: atest FrameworksNetTests
Change-Id: Ie8faf620958c3fa0a4a2f233b35b825de0e99ffc
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions