summaryrefslogtreecommitdiff
path: root/core/java/android/net/StaticIpConfiguration.java
Commit message (Collapse)AuthorAgeFilesLines
* Move module sources to packages/ConnectivityRemi NGUYEN VAN2021-02-011-332/+0
| | | | | | | | | | | | | | 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
* Add maxTargetSdk restriction to unused APIs.Mathew Inwood2020-11-041-4/+5
| | | | | | | | | | | These are APIs that have @UnsupportedAppUsage but for which we don't have any evidence of them currently being used, so should be safe to remove from the unsupported list. Bug: 170729553 Test: Treehugger Merged-In: I626caf7c1fe46c5ab1f39c2895b42a34319f771a Change-Id: I54e5ecd11e76ca1de3c5893e3a98b0108e735413
* Remove @TestApi from @SystemApi symbolsAnton Hansson2020-10-191-2/+0
| | | | | | | | | | | | | | I ran these commands: cd frameworks/base grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@SystemApi[\s\n]+(\@\w+[\s\n]+)?\@TestApi/\@SystemApi\1/gs' grep -rl '@TestApi' --include '*.java' | xargs perl -i -p0e \ 's/\@TestApi[\s\n]+(\@\w+[\s\n]+)?\@SystemApi/\1\@SystemApi/gs' Bug: 171179806 Test: m checkapi Change-Id: I772790b783b0a8730b8bf680c9e569a886b8d789 Merged-In: I772790b783b0a8730b8bf680c9e569a886b8d789
* Revert "Revert "Move Inet[4]AddressUtils to libs/net""Chalard Jean2020-08-071-1/+1
| | | | | | | | | | | | | | | This patch is still needed and should go in now that the error is fixed. The patch was submitted into rvc-dev and is already in rvc-dev-plus-aosp (patch in in ag/11923559, revert skipped in ag/12072199). A follow-up will remove the unused services.net-module-wifi target. Test: originally tested in aosp/1324109 Test: m; manual: flashed, wifi and telephony working Test: atest NetworkStackCoverageTests Change-Id: I1074eedb0b0f156a1135e11210ec102de15ea674 Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b
* Revert "Move Inet[4]AddressUtils to libs/net"Chalard Jean2020-07-021-1/+1
| | | | | | | | | This reverts commit 57d68e3c55176083ba40947be8f335534d958006. Reason for revert: Breaks the build b/160390899 Merged-In: Icd141a992c46290c74929785e261a1cd57bc001b Change-Id: Ie10e66f61393602f17fbb61bf17230b176bf1f44
* Move Inet[4]AddressUtils to libs/netRemi NGUYEN VAN2020-07-021-1/+1
| | | | | | | | | | | | | | | | | | The classes should not be picked up from frameworks/base, as they are part of several mainline modules. Also refine comments in DhcpResults following feedback in previous change. (cherry-pick from internal branch skipping wifi classes; no other conflict) Bug: 151052811 Test: m; manual: flashed, wifi and telephony working Test: atest NetworkStackCoverageTests Merged-In: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f Change-Id: I7074651c6a2a7a6b11bcf13cc4bb03833d7d655f
* Use new UnsupportedAppUsage annotation.Artur Satayev2020-01-081-1/+1
| | | | | | | | | Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library. Bug: 145132366 Test: m && diff unsupportedappusage_index.csv Change-Id: I0c336de56bc4a041dc97ff9b7927f62f0b44b457 Merged-In: I0c336de56bc4a041dc97ff9b7927f62f0b44b457
* StaticIpConfiguration: Couple of minor fixesRoshan Pius2019-11-141-2/+7
| | | | | | | | | | | a) Ensure the Builder.build() does not crash if setDnsServers() is not invoked. b) Add a checkNotNull on setDnsServers() since it is marked @NonNull. Bug: 144487020 Test: Compiles Change-Id: I2b9f990efa0583c0f067c25e23d8c944ffbdf6a5 (cherry-picked from d0348339c50eeae0fe137c62476f6a01542f4163)
* Add missing nullability annotations.Aurimas Liutikas2019-08-301-1/+2
| | | | | | | | | | | | | | | To prepare for enabling MissingNullability Metalava check this CL works on adding missing nullability issues that metalava flags if we tell it to flag new things since API 29. This is not a complete CL, mostly addresses public api and toString/equals for @SystemApi Exempt-From-Owner-Approval: Large scale nullability clean up Bug: 124515653 Test: make -j checkapi Merged-In: I109260842cfc25f06e40694997fcbb4afa02c867 Change-Id: I109260842cfc25f06e40694997fcbb4afa02c867
* Merge "Reinstate access to a forgotten member" am: ab6ab9e4d4Chalard Jean2019-05-271-2/+1
|\ | | | | | | | | | | am: 2f4bd91b99 Change-Id: Ib279c0076016c53e0491fc0df8cefff8ae280d66
| * Reinstate access to a forgotten memberChalard Jean2019-05-231-2/+1
| | | | | | | | | | | | | | | | Followup to aosp/964440 Bug: 131764329 Test: none Change-Id: I6f6b2cf75793532d3d537a223b8e15d7304a1e3f
* | Merge "Let clients access StaticIpConfiguration members through reflection." ↵Chalard Jean2019-05-221-3/+3
|\| | | | | | | | | | | | | | | am: 94e52502dc am: 892038673e Change-Id: Ice5c4fd4d469a55410129310c5a25874b94e2219
| * Let clients access StaticIpConfiguration members through reflection.Chalard Jean2019-05-201-3/+3
| | | | | | | | | | | | Bug: 131764329 Test: none Change-Id: I0fa84390f6c289571afa9d86cb922835fe2b7e77
* | Merge "Fix comment on StaticIpConfiguration#getDomains" am: a1e48f3c9aRemi NGUYEN VAN2019-04-101-2/+2
|\| | | | | | | | | | | am: 76de94e78c Change-Id: I6a2ff0368193aaa988585613d99662a01cf4fa26
| * Fix comment on StaticIpConfiguration#getDomainsRemi NGUYEN VAN2019-04-031-2/+2
| | | | | | | | | | | | | | Add consistency with setDomains(). Test: m Change-Id: I9ff2de98cec2caf903310d7e8eb7b32362c0e151
* | Merge "Fix API in CaptivePortal, StaticIpConfiguration" am: 0470353c2e am: ↵Remi NGUYEN VAN2019-04-031-23/+88
|\| | | | | | | | | | | | | | | 77daae9b3d am: e86dfa92fe Change-Id: Icda65fe4a009a754b6a1a763d402820652d55391
| * Fix API in CaptivePortal, StaticIpConfigurationRemi NGUYEN VAN2019-04-021-23/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add documentation to CaptivePortal#logEvent - Add paragraph breaks to StaticIpConfiguration class javadoc - Format javadoc for API documentation - Move setters to a builder and hide fields for apps targeting P or older - Document StaticIpConfiguration getters and builder setters - Add documentation for StaticIpConfiguration#getRoutes Bug: 129362244 Bug: 129433304 Test: built, flashed, booted, WiFi working Test: atest FrameworksNetTests NetworkStackTests Change-Id: Ia66c1097f01ca87d02eba3456547aedb1e480186
* | Merge "Add nullability annotations" am: a1ee1fc888 am: 3d48153a8fRemi NGUYEN VAN2019-03-251-1/+1
|\| | | | | | | | | | | am: b141a800ac Change-Id: I43088399da1d81556ab903ef1ca716439129f00d
| * Add nullability annotationsRemi NGUYEN VAN2019-03-251-1/+1
| | | | | | | | | | | | | | | | | | | | Add nullability annotations on the following methods: - StaticIpConfiguration#getRoutes - ValidationProbeEvent#getProbeName Test: m Bug: 128935825 Change-Id: I1c17d200f3125e684c4e4d67b2f7f079eda310b6
* | Merge "Fix Automated API Review issues." am: 814bb8f627 am: 69aa833953Paul Hu2019-03-211-11/+17
|\| | | | | | | | | | | am: a6c364d805 Change-Id: I1968eb36c2f4fafd33846ec0f91710c665d936e6
| * Fix Automated API Review issues.paulhu2019-03-211-11/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These API's argument/return value must be marked either @NonNull or @Nullable. Bug: 126701148 Bug: 126699090 Bug: 126701058 Bug: 126700772 Bug: 126699941 Bug: 126701299 Bug: 126700007 Bug: 126700900 Test: atest FrameworksNetTests Change-Id: Id030a9f1116178b96aa3d4614b10969a537b2fc4
* | All Parcelable CREATOR fields are @NonNull.Jeff Sharkey2019-02-281-1/+1
|/ | | | | | | | | If they were null, then the Parcelable would fail to work. Bug: 126726802 Test: manual Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014 Exempt-From-Owner-Approval: Trivial API annotations
* Remove last NetworkStack usage of hidden APIsRemi NGUYEN VAN2019-01-301-4/+5
| | | | | | | | | Includes various small changes to stop using hidden APIs Test: make NetworkStack Test: flashed, booted, WiFi and tethering working Bug: 112869080 Change-Id: Id2830795a444f484b377ed6437435a1cd833697a
* Add NetworkStack networking deps to SystemApiRemi NGUYEN VAN2019-01-281-10/+56
| | | | | | | | Cherry-pick with conflicts fixed in CaptivePortalLoginActivity imports. Test: atest FrameworksNetTests Bug: 112869080 Merged-In: Id59dc06fb85e4ac88098f56b621ec880610759ce Change-Id: I3c05e8fdd70497426d4fa433295c4fbdad07d9c9
* Add @UnsupportedAppUsage annotationsMathew Inwood2018-08-141-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For packages: android.net.wimax android.net.wifi.p2p.nsd android.net.wifi.p2p android.net.wifi.hotspot2.pps android.net.wifi.hotspot2.omadm android.net.wifi.hotspot2 android.net.wifi.aware android.net.wifi android.net.util android.net.sip android.net.rtp android.net.nsd android.net.metrics android.net.lowpan android.net.http android.net.captiveportal android.net This is an automatically generated CL. See go/UnsupportedAppUsage for more details. Exempted-From-Owner-Approval: Mechanical changes to the codebase which have been approved by Android API council and announced on android-eng@ Bug: 110868826 Test: m Change-Id: Ie25423113ee1a8071cd5039382c00de6ce0af7fd Merged-In: I520be7a4c79e68310c12e4f55bf66acaa94145a1
* DHCPv4: lease expiration is fatal, renew failures are notErik Kline2016-05-181-1/+1
| | | | | | Bug: 24837343 Change-Id: Ib330864f8376b0907390d581b48cff5446b3392b
* Remove unused imports in frameworks/base.John Spurlock2015-02-281-1/+0
| | | | Change-Id: I031443de83f93eb57a98863001826671b18f3b17
* Also include the domain when parceling StaticIpConfiguration.Lorenzo Colitti2015-01-291-0/+2
| | | | | | | | StaticIpConfiguration objects are parceled at least as part of the IpConfiguration objects that are passed to IEthernetManager when an application sets static IP configuration on Ethernet. Change-Id: I49991e2f591cc6cf01b503c18eb343b5929efe29
* Fix DhcpResults.setDomain() and StaticIpConfiguration.toLinkProperties()Paul Jensen2015-01-291-0/+1
| | | | | | | | | | | setDomain() and toLinkProperties() were not setting the domains. The setDomain() bug affected Wifi and I believe the toLinkProperties() bug affected Ethernet and Bluetooth reverse-tethering. (cherry picked from commit c53113b37f33c7ed19660c8ec5bfd578e8bb5409) bug:18252947 Change-Id: I6235fcd6b875aee516efbb5f880db1a99380355b
* Support connecting to networks with misconfigured subnet masks.Lorenzo Colitti2015-01-281-4/+11
| | | | | | | | | | | | | In K and earlier, we would connect to a network where the gateway was not covered by the subnet mask of the IP address. This is an invalid configuration, but it used to work, and other OSes appear to accept it too, so support it. Bug: 19067207 (cherry picked from commit 2dfb79a54adeb4bcf1f62332a9db467fce302ced) Change-Id: I80088f291466dbd5a47f360dcc1620acee5cf57e
* Stop using LinkProperties for static configuration.Lorenzo Colitti2014-08-191-0/+194
LinkProperties can represent way more complicated configurations than what we can actually apply to interfaces. This makes it error-prone to use it to represent static configuration, both when trying to apply configuration coming from LinkProperties and when trying to save configuration from current LinkProperties. Instead, move static configuration (IPv4 only, since we don't support static IPv6 configuration) into a separate StaticIpConfiguration class. Bug: 16114392 Bug: 16893413 Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df