summaryrefslogtreecommitdiff
path: root/framework/src/android/net/NetworkInfo.java
Commit message (Collapse)AuthorAgeFilesLines
* S- not to crash on NetworkInfo(null) or setDetailedState(null)Chalard Jean2021-11-151-2/+8
| | | | | | | | | | | | | | | | | When NetworkInfo(null) or setDetailedState(null, any, any) are called, S used to not crash but plant a null bomb for later which may explode in some calls (notably, parceling) : see the bug referenced below for details. To help catching these errors earlier a patch was made to crash as soon as one of these methods is called with a null argument, but this will also crash incorrect use on existing code that may never actually step on the mine, crashing code that used not to crash. For safety, implement the new behavior only on T. Bug: 145972387 Test: NetworkInfoTest Change-Id: Ib710497d83b2d26439c2bd4d2f572310db97d6fd
* Crash bad callers earlierChalard Jean2021-10-191-16/+19
| | | | | | | | | Instead of crashing when parceling the NetworkInfo object, crash at the time the bad call is made. Bug: 145972387 Test: FrameworksNetTests Change-Id: If8b5fd3d7b800c97211bcd16c9a8c5812708d4ab
* Remove hidden @NetworkType in NetworkInfoRemi NGUYEN VAN2021-03-111-2/+1
| | | | | | | | | | | | The NetworkType annotation is a hidden telephony symbol, and should be kept hidden as annotations are disallowed by API guidelines. Remove its usage in NetworkInfo as users of annotated constants that build against API stubs are expected not to use the annotation. Bug: 182451544 Test: m Change-Id: I6658c1faa147c527c989b87d67f1af166c488dde
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-0/+626
Files that are planned to be part of the connectivity module are grouped in packages/Connectivity, so they can be built separately and moved in one operation with their history into packages/modules/Connectivity. This places the files in the existing framework-connectivity-sources filegroup instead of the current framework-core-sources filegroup. Both are used the same way in framework-non-updatable-sources. Bug: 171540887 Test: m Change-Id: I62d9d91574ace6f5c4624035d190260c3126b91e