Commit graph android_packages_modules_Co.../core/java/android
Message SHA1
Add methods to send connected/disconnected state.
Also add methods to set the legacy subtype and the APN name.
These have to be added together because they have to be used
together.

Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Change-Id: Ie90b8d290eab490061d5cb066744b67d597b9469

Chalard Jean   commited 2020-01-20 12:54:52 +09:00
6795123840
Fix invalid use of @note for doc builds.
Originally introduced in https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/10087632

Change-Id: I35fc4a814238635fa95981649c27230dda319afa

🌶️Sam Sacco°͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌͌ne   commited 2020-01-18 21:10:40 +00:00
ac2dee9f70
Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c

Chalard Jean   commited 2020-01-17 14:58:01 +09:00
124ecc47bf
Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer" am: cf09c64473 am: 934f40753c am: 66873f48a0
Change-Id: I9aee20185e189e51d537b6b0895fdc31c31d0ea2

Automerger Merge Worker   commited 2020-01-15 18:39:33 +00:00
a1a77ee7bb
Merge "Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer"
Rambo Wang   authored and   Gerrit Code Review   commited 2020-01-15 17:45:58 +00:00
cf09c64473
Merge "NetworkAgent: Fix doc build fail by invalid tag"
TreeHugger Robot   authored and   Android (Google) Code Review   commited 2020-01-15 14:59:04 +00:00
b993cc22a7
NetworkAgent: Fix doc build fail by invalid tag
Bug: 138306002
Bug: 139268426
Test: make doc-comment-check-docs

Change-Id: I8b8df5096b90ad10545087ab09f68ecae637aa35

markchien   authored and   Mark Chien   commited 2020-01-15 12:58:25 +00:00
c23c7ba222
Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi" am: 5df603fce3 am: c7d39858b1 am: a3e8ee61a1
Change-Id: Iece2ad4133751a8c258f64d7796158ffe90881ce

Automerger Merge Worker   commited 2020-01-15 12:33:59 +00:00
c69279d0a3
Merge "Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi"
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-01-15 11:42:11 +00:00
5df603fce3
Merge "Make most of NetworkAgent @SystemApi."
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2020-01-15 09:56:31 +00:00
b668629e20
Expose ConnectivityManager#TYPE_WIFI_P2P as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests

Change-Id: I77cb45e6b2aaf4ab2c457cb59ccf77b1b8c01fa9

paulhu   commited 2020-01-15 15:38:23 +08:00
028732ec2c
Make most of NetworkAgent @SystemApi.
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: I856f01f02c35c2f6a886d8b98039e5dfbc48148b

Lorenzo Colitti   authored and   Chalard Jean   commited 2020-01-15 16:05:26 +09:00
10a12966c2
Merge "Unhide NetworkRequest API which use legacy type"
Mark Chien   authored and   Gerrit Code Review   commited 2020-01-15 06:49:33 +00:00
ac9ebd4d14
Merge "Expose SocketKeepalive#SUCCESS as SystemApi"
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-01-15 05:01:04 +00:00
7e7cd3b0d4
Merge "Unhide NetworkRequest API which use legacy type"
Mark Chien   authored and   Android (Google) Code Review   commited 2020-01-15 04:29:15 +00:00
d402e3d1f4
Merge "Add NetworkRequest#satisfiedBy to SystemApi"
Remi NGUYEN VAN   authored and   Android (Google) Code Review   commited 2020-01-15 04:14:32 +00:00
9c5c26aa45
Merge "Remove framework code that has moved to frameworks/libs/net"
TreeHugger Robot   authored and   Android (Google) Code Review   commited 2020-01-15 02:47:52 +00:00
26246e41de
Expose SocketKeepalive#SUCCESS as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests
Change-Id: I94171b2dc4f26442df918547bf8bc40953f63f2e
Merged-In: I94171b2dc4f26442df918547bf8bc40953f63f2e

paulhu   authored and   Paul Hu   commited 2020-01-15 02:45:43 +00:00
311b769fac
Merge "Expose SocketKeepalive#SUCCESS as SystemApi"
Paul Hu   authored and   Android (Google) Code Review   commited 2020-01-15 02:44:32 +00:00
008e319fe4
Replace StringNetworkSpecifier & subId with TelephonyNetworkSpecifer
StringNetworkSpecifier is widely used to specify subscription id for
the NetworkRequest. The raw string field introduce ambiguity and leave
large space for bugs. With TelephonyNetworkSpecifer, we are able to
settle down the type and value of the fields (although currently only
one) and introduce validation to detect the bug in the beginning.

Bug: 145993724
Test: atest FrameworksNetTests FrameworksTelephonyTests &
      make offline-sdk-docs
Change-Id: Iefbad9b1deb3de2c0b262d9ce5ae0704a50d08a6

Rambo Wang   commited 2020-01-14 10:51:11 -08:00
87900774f9
Merge "Make NattKeepalivePacketData @SystemApi" am: d21ba54347 am: 1f5333e4e7 am: 4f463b6b2f
Change-Id: Idd26f3118e879ab05a8cdd23a9e4999b3bafbf47

Automerger Merge Worker   commited 2020-01-14 15:32:07 +00:00
2011b0b67f
Merge "Make NattKeepalivePacketData @SystemApi"
Aaron Huang   authored and   Gerrit Code Review   commited 2020-01-14 14:36:09 +00:00
d21ba54347
Expose SocketKeepalive#SUCCESS as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests
Change-Id: I94171b2dc4f26442df918547bf8bc40953f63f2e

paulhu   commited 2020-01-14 21:42:56 +08:00
15602153ee
Add NetworkRequest#satisfiedBy to SystemApi
The API is useful for NetworkFactories to select requests based on
capabilities.
This mirrors NetworkCapabilities#satisfiedByNetworkCapabilities

Test: m
Bug: 138306002
Change-Id: I1d4a928256951397cabde5c352a872fd48d85859

Remi NGUYEN VAN   commited 2020-01-14 21:45:38 +09:00
ecd878b94f
Remove framework code that has moved to frameworks/libs/net
Add srcs to framework and change import path.
Remove the codes which are moved to frameworks/libs/net.

Bug: 139268426
Bug: 135998869
Bug: 138306002
Bug: 143925787
Test: atest FrameworksNetTests
      atest FrameworksTelephonyTests
      atest ./frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Change-Id: Ieb8927f9af7f87a5ae038bd6c7daeb3d70117fef

Aaron Huang   authored and   Chalard Jean   commited 2020-01-14 18:10:39 +09:00
e654f5000d
Merge "Have registerNetworkAgent return a Network."
Chalard Jean   authored and   Android (Google) Code Review   commited 2020-01-14 07:06:37 +00:00
cbb58f167b
Merge "Expose ConnectivityManager#TYPE_NONE as SystemApi" am: 0699745a3d am: 837d7c87a9 am: cc47efa6f0
Change-Id: I5706151c291cbdbc3a1f73ebb3669f56a61509ba

Automerger Merge Worker   commited 2020-01-14 06:27:10 +00:00
3b775e8a78
Merge "Expose ConnectivityManager#TYPE_NONE as SystemApi"
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2020-01-14 05:30:14 +00:00
0699745a3d
Merge "Add a Builder to NetworkAgentConfig, and make it SystemApi."
Lorenzo Colitti   authored and   Android (Google) Code Review   commited 2020-01-14 05:01:06 +00:00
8229e6fee6
Have registerNetworkAgent return a Network.
This is more useful.

Bug: 135998869
Test: FrameworkNetTests FrameworksWifiTests
Change-Id: I74710b396fa3cec6fbae08d3dcab5bc90dc2e669

Chalard Jean   commited 2020-01-14 13:59:55 +09:00
1aea87a9c1
Unhide NetworkRequest API which use legacy type
Bug: 144753389
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I349da06769e9ffcee6bb42f51ab454e0ef774fb3
Merged-In: I349da06769e9ffcee6bb42f51ab454e0ef774fb3

markchien   authored and   Mark Chien   commited 2020-01-14 04:56:54 +00:00
ddd5937043
Unhide NetworkRequest API which use legacy type
Bug: 144753389
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: I349da06769e9ffcee6bb42f51ab454e0ef774fb3

markchien   commited 2020-01-14 12:54:40 +08:00
769c575b67
Add a Builder to NetworkAgentConfig, and make it SystemApi.
Currently, only support the three elements in the config that are
known to be used.

Bug: 138306002
Test: builds, boots
Test: atest FrameworksTelephonyTests
Change-Id: I1d231ec2ddcff97c039bcbc815a39c1d3e26c410

Lorenzo Colitti   commited 2020-01-14 11:43:53 +09:00
810e98607b
Merge "Support reevaluation request from captive portal app" am: 2d9623d86f am: 8f50df2e87 am: 53aa51e02f
Change-Id: Id0c020ade4c7de71f7540a82d84045e131ea25e2

Automerger Merge Worker   commited 2020-01-14 02:33:53 +00:00
dc174e63f3
Expose ConnectivityManager#TYPE_NONE as SystemApi
Support wifi mainline module usage.

Bug: 135998869
Test: Build and make system-api-stubs-docs-update-current-api
      atest FrameworksNetTests
Change-Id: Ia496aaeaf74fa44764640fd2b97c417509e040aa

paulhu   commited 2020-01-14 10:02:30 +08:00
62af612113
Merge "Support reevaluation request from captive portal app"
Chiachang Wang   authored and   Gerrit Code Review   commited 2020-01-14 01:42:22 +00:00
2d9623d86f
Make NattKeepalivePacketData @SystemApi
Bug: 139268426
Bug: 135998869
Test: atest FrameworksNetTests

Change-Id: I687f1a8a4b82cb7e4a0dfeb24f0b23a4de6d5287

Aaron Huang   commited 2020-01-14 01:45:28 +08:00
5dcbfa87e1
Support reevaluation request from captive portal app
CaptivePortalLogin use similar way to validate the network as
NetworkMonitor. Provide API to reuse NetworkMonitor facilities
for consistent captive portal detection.

Bug: 134892996
Test: atest FrameworksNetTests NetworkStackTests NetworkStackNextTests
Test: manually test with captive portal Wi-Fi
Test: make system-api-stubs-docs-update-current-api \
      test-api-stubs-docs-update-current-api
Change-Id: I6f039eae7ceb18eb6c3cf15587cdc27a7fe35b00

Chiachang Wang   commited 2020-01-13 14:28:02 +08:00
ef4a17d140
Rename NetworkMisc to NetworkAgentConfig.
NetworkMisc is not really an appropriate name for a system API.

Bug: 138306002
Test: builds, boots, wifi works, telephony works
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Change-Id: I621cfbe165996c67b201ca2dd2f95a5ab9af10ee

Lorenzo Colitti   commited 2020-01-13 15:01:52 +09:00
2e966fe619
Make NetworkAgent stop subclassing Handler.
Subclassing Handler is not appropriate for a system API because
it is an implementation detail and allows users of this class to
post messages to the handler in ways that allow inappropriate
access to internals that aren't part of the API contract.

Also fix some lint errors.

Test: builds
Bug: 138306002
Change-Id: I79478ceff6bbcae879d1025098d177de0d15dbee

Lorenzo Colitti   commited 2020-01-13 14:49:15 +09:00
df43b6f77a
Merge changes I7ea39b80,I6b9979f3 am: 310d1dac0d am: b65004fb39 am: 86daa3d123
Change-Id: I97bd2471b04d9a6291b03a989ccd618c2dc70c6e

Automerger Merge Worker   commited 2020-01-13 04:51:33 +00:00
8887e6d98c
Stop using NetworkFactory in connectivity code.
Bug: 138306002
Test: builds, boots
Test: atest FrameworksNetTests
Change-Id: I6b9979f343108c0c077abd86ae1c21e5ece0cccc

Lorenzo Colitti   commited 2020-01-12 17:40:02 +09:00
94c9314065
Merge "Add NetworkCapabilities#deduceRestrictedCapability" am: 39ac72436e am: 21da34591b am: 8668775892
Change-Id: I9d593d245287362aad82d70ac5fed4d6339f82d7

Automerger Merge Worker   commited 2020-01-10 09:55:33 +00:00
4e75cd9d7a
Merge "Add NetworkCapabilities#deduceRestrictedCapability"
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-01-10 09:27:31 +00:00
39ac72436e
Merge "Expose DhcpInfo parcelable interface implementation methods" am: 6510da5883 am: 1debddec2f am: ead3701de3
Change-Id: I202ba0c2fe026186c59bb0d7b58d8bb8b5be98c2

Automerger Merge Worker   commited 2020-01-10 08:42:17 +00:00
88c136c666
Merge "Expose DhcpInfo parcelable interface implementation methods"
Aaron Huang   authored and   Gerrit Code Review   commited 2020-01-10 08:05:24 +00:00
6510da5883
Merge "Add keepalive related methods and fields to system APIs"
Aaron Huang   authored and   Gerrit Code Review   commited 2020-01-10 06:16:04 +00:00
a4885a0b8e
Merge "Add a NetworkProvider class to the SDK." am: e026356956 am: f36cb1cf82 am: e0ea3bdd96
Change-Id: I7161415a495f9d31762545b5efeb81b387a475cd

Automerger Merge Worker   commited 2020-01-09 15:33:58 +00:00
53e0cd9d7f
Merge "Add a NetworkProvider class to the SDK."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2020-01-09 15:09:58 +00:00
e026356956
Expose DhcpInfo parcelable interface implementation methods
Parcelable class requires a CREATOR field be exposed.

Bug: 139268426
Bug: 135998869
Test: atest FrameworksNetTests
      atest android.net.cts

Change-Id: I41c68406d09014dda99f337add8c0db0298b0582

Aaron Huang   commited 2020-01-09 21:33:22 +08:00
a397c7e03a