Commit graph android_packages_modules_Co.../core/java/android
Message SHA1
Merge "Add NetworkMonitor constants to SystemApi" am: a1e4e0bc23
am: 50cf5400b6

Change-Id: I0281ff981cbd5d26a2f2874db23244bebad9c66b

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-21 19:25:05 -08:00
54fb67a42e
Merge "Add NetworkMonitor constants to SystemApi"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2019-01-22 03:03:37 +00:00
a1e4e0bc23
Merge "Add fields used by NetworkStack to the API" am: aa983b7f1c
am: cbd795dff7

Change-Id: I5b7cce21b8692184f9d6121f0641bc2318370671

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-21 15:47:28 -08:00
b1f5762741
Merge "Add fields used by NetworkStack to the API"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2019-01-21 23:20:26 +00:00
aa983b7f1c
Merge "Add stable AIDL parcelables for IIpClient API" am: 2fd1c3864e
am: cfa31032d6

Change-Id: Ifae5ae9e6e396452ce4c432d8aa613d03ba59824

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-21 11:09:28 -08:00
8aa71627c2
Add fields used by NetworkStack to the API
Test: m
Bug: 112869080
Change-Id: I59f6d5ae8a601b7496548b87f137a577f2365a37

Remi NGUYEN VAN   commited 2019-01-21 23:03:25 +09:00
85b9665073
Add NetworkMonitor constants to SystemApi
NetworkMonitor lives in the NetworkStack which must only use system
APIs. This includes constants used by NetworkMonitor and captive portal
login.

Bug: 112869080
Test: m
Merged-In: I8b5f0bb61c3ef0d2f33af7dd67b72ac6c5a1d1b5
Change-Id: I4879568d3fbf9435767c8d4d0ab5198d421a2f4f

Remi NGUYEN VAN   commited 2019-01-21 21:11:15 +09:00
70ab67f1ce
Add stable AIDL parcelables for IIpClient API
Test: atest FrameworksNetTests NetworkStackTests
Bug: b/112869080
Change-Id: Ia4ac1eb482850a06c4dc1b6c1fe55d33d4087388

Remi NGUYEN VAN   commited 2019-01-21 12:54:24 +09:00
699aefeb81
Merge "Add Nat64Prefix to LinkProperties copy constructor" am: 786215116c
am: bd228f1a83

Change-Id: I793230bd65e24c5976849e860defa159cf22507b

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-16 00:57:04 -08:00
1bd476265c
Add Nat64Prefix to LinkProperties copy constructor
The attribute is copied when parceling/unparceling so should also be
preserved in the copy constructor.

Test: tests based on this pass
Change-Id: Ia48d94fc075e6414f537dad181a236be5a32b41b

Remi NGUYEN VAN   commited 2019-01-16 15:27:27 +09:00
8f7bc647b5
Merge "Add the NAT64 prefix to LinkProperties." am: 983e77db4a
am: 6b39032761

Change-Id: I808042e00cbc1da8d3e878add9b643a75968919e

Lorenzo Colitti   authored and   android-build-merger   commited 2019-01-14 20:29:10 -08:00
9281e5c55f
Add the NAT64 prefix to LinkProperties.
Currently we support exactly one NAT64 prefix. This matches what
other components in the system (Dns64Configuration, clatd, etc.)
support.

Test: atest FrameworksNetTests
Change-Id: I45a11cebe43a5e1c60d50eca7889cb317565b598

Lorenzo Colitti   commited 2019-01-12 02:16:34 +09:00
981b34f6b8
Merge "Move NetworkMonitor to NetworkStack" am: b35979db6b
am: 8255355c7d

Change-Id: I438b95e135d0d86be53ea3a8ab61105a886e2a2e

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-10 21:29:38 -08:00
1ac32eff21
Merge "Move NetworkMonitor to NetworkStack"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2019-01-11 05:08:52 +00:00
b35979db6b
Move NetworkMonitor to NetworkStack
Bug: b/112869080
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I1b8b6a3f4390adbabf92fb9e48da61c47b08b2ec

Remi NGUYEN VAN   commited 2019-01-11 09:59:11 +09:00
8539129ad9
Merge "Add PCSCF to LinkProperties." am: a99e1eeb9d
am: aad967ed2a

Change-Id: I491e99f7225233d5841b61ce383325e7a1c43fa0

Chalard Jean   authored and   android-build-merger   commited 2019-01-09 22:19:14 -08:00
a0b40fe2e7
Merge "Add PCSCF to LinkProperties."
Chalard Jean   authored and   Gerrit Code Review   commited 2019-01-10 05:55:05 +00:00
a99e1eeb9d
Merge "Move DhcpServer to NetworkStack app" am: 82ef768e0c
am: 0217604bd3

Change-Id: Ib25c0422fda31c5df7743b481d5f50da209c38fa

Remi NGUYEN VAN   authored and   android-build-merger   commited 2019-01-09 05:27:59 -08:00
b720ab7d1d
Merge "Move DhcpServer to NetworkStack app"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2019-01-09 10:42:48 +00:00
82ef768e0c
Move DhcpServer to NetworkStack app
Test: atest FrameworksNetTests && atest NetworkStackTests
Bug: b/112869080

Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b

Remi NGUYEN VAN   commited 2019-01-09 15:42:16 +09:00
a35360c1b6
Merge "Add nullability annotations to public methods of ConnManager." am: 805e2ad9db
am: 85188cead6

Change-Id: If2e704e1f8ddf504be9e777ec226b2ce524438dc

Chalard Jean   authored and   android-build-merger   commited 2019-01-08 00:19:52 -08:00
fb9d4e1ade
Add nullability annotations to public methods of ConnManager.
This is mainly for Kotlin compatibility.
https://android-developers.googleblog.com/2018/08/android-pie-sdk-is-now-more-kotlin.html

Bug: 122437895
Test: no logic changes
Change-Id: Ic1b9a774aee0099397b1ccfd958ff3b61d69a7fb

Chalard Jean   commited 2019-01-07 19:35:09 +09:00
158702db55
Merge "Limit access to suspected false positives." am: aeda49d185
am: 350a598d1a

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1

Mathew Inwood   authored and   android-build-merger   commited 2019-01-02 05:00:54 -08:00
75f3441060
Limit access to suspected false positives.
Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687

Mathew Inwood   commited 2018-12-28 14:26:35 +00:00
bdfc1fcb7a
Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" am: 6f8696cf67
am: 77dfb10a6f

Change-Id: Ic641472bab2e5aa7b443caaac13deae260c3902d

Paul Hu   authored and   android-build-merger   commited 2018-12-21 07:48:38 -08:00
dec63b8473
Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs"
Paul Hu   authored and   Gerrit Code Review   commited 2018-12-21 15:21:03 +00:00
6f8696cf67
Merge "Deprecate NetworkInfo" am: 84a764b1f4
am: 3b1eb0acc4

Change-Id: Ia646a8754bcd5ef62573e3b1730df3987bf9fd15

Junyu Lai   authored and   android-build-merger   commited 2018-12-21 02:16:39 -08:00
5d1d75f1ce
Merge "Deprecate NetworkInfo"
Junyu Lai   authored and   Gerrit Code Review   commited 2018-12-21 09:56:39 +00:00
84a764b1f4
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

junyulai   commited 2018-12-20 16:36:10 +08:00
9826e7f292
Merge "Fixed toString() printing error" am: 9952ebd7d5
am: 50b52d9db8

Change-Id: Ia28e56d8a6b76247d552bcdbf43ef71ac80e313e

jiayanhong   authored and   android-build-merger   commited 2018-12-19 10:06:58 -08:00
07ad89f002
Merge "Fixed toString() printing error"
Treehugger Robot   authored and   Gerrit Code Review   commited 2018-12-19 17:39:58 +00:00
9952ebd7d5
Merge "Add InetAddresses class to API" am: 2f8a9b2c4d
am: 18b313b077

Change-Id: I3e745599be0f81decfe416a71503dc784a895a48

Paul Duffin   authored and   android-build-merger   commited 2018-12-18 11:09:15 -08:00
b1d6edf06c
Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs
These methods are marked to @UnsupportedAppUsage APIs since
Android Q. But some system apps still need them to set/get
necessary network or request information. Hence, make them to be
public or system APIs.

Bug: 120448492
Test: atest FrameworksNetTests
Change-Id: I95a44daef5615e290b40d0796ca183b88ad8a63f

paulhu   authored and   Paul Hu   commited 2018-12-18 08:39:49 +00:00
058120dbc2
Add InetAddresses class to API
Adds methods needed by app developers to avoid them having to call
non-SDK APIs.

Test: tests added to cts
Bug: 78686891
Change-Id: Ic0eadfdab2b111d5ca4becb753f4fe3557806433

Paul Duffin   commited 2018-12-17 11:53:33 +00:00
70c2193096
Merge "[CM] Fix comments, add tests to TransportInfo API" am: 4060bc1480
am: 4e20619d98

Change-Id: I54556ea99992fbc0105bc2012c3d423e88c60764

Etan Cohen   authored and   android-build-merger   commited 2018-12-11 22:09:54 -08:00
b03827647f
[CM] Fix comments, add tests to TransportInfo API
Bug: 117605977
Test: atest NetworkCapabilitiesTest
Change-Id: I734ec56e44cd09d11ae81a856a53a26e1191b9a0

Etan Cohen   commited 2018-12-11 15:00:10 -08:00
73fb5a86f0
Merge "[CS] Add a generic transport-specific information API" am: 0e18882d5c
am: 7081aa381d

Change-Id: If70fb160c90afbfb646ca7474d06fe735031aed5

Etan Cohen   authored and   android-build-merger   commited 2018-12-08 20:19:32 -08:00
7e32ea6593
[CS] Add a generic transport-specific information API
Add a generic transport-specific information container interface and
access methods. These can be used by a network factory to pass transport
(bearer)-specific network parameters to the app.

Bug: 117605977
Test: atest frameworks/base/tests/net/java/android/net (+new unit tests)
Change-Id: Ib7c83b677e1c02a2212265719813e648b0c9cc1b

Etan Cohen   commited 2018-12-07 17:37:48 +00:00
ac07cca084
Add PCSCF to LinkProperties.
Some applications or services are needed PCSCF address to register IMS server but there is no way to get it on Android Framework.
We have added PCSCF address to LinkProperties like attached diff files.

Test: get Linkproperties and check Pcscf addresses.
      atest FrameworksNetTests

Change-Id: Ic2341a4ce2ed88d560325721766fc21f85f7ff86
Signed-off-by: Hongshik <hshik.kim@samsung.com>

Hongshik   commited 2018-12-05 22:05:49 +09:00
e2d7cf5aed
Fixed toString() printing error
There maybe some copy paste error about mNetworkCapabilities
and mUnwantedNetworkCapabilities in NetworkCapability#toString()

Test: manual + CodeDEX scan
Change-Id: I9997163e8b557590c27d15f0b2184ce6e1a53647

jiayanhong   commited 2018-11-23 14:23:04 +08:00
a03720b3e9
Merge "Move hidden APIs into system APIs" am: c606db86c8
am: 44676f50d4

Change-Id: Ibe6fa27d99791e57b1253a9dc990de0706b52fb6

Jack Yu   authored and   android-build-merger   commited 2018-11-20 19:04:24 -08:00
e8c1f1222c
Merge "Move hidden APIs into system APIs"
Jack Yu   authored and   Gerrit Code Review   commited 2018-11-21 02:40:30 +00:00
c606db86c8
Merge "Add IPv6 link-local address generation from EUI-48" am: fb0dcb1ed7
am: e6db899061

Change-Id: I63de4fa185649d9389a771860c479899e90b37e4

Etan Cohen   authored and   android-build-merger   commited 2018-11-19 16:48:22 -08:00
79e553dea6
Move hidden APIs into system APIs
To allow vendor code to construct LinkAddress, which is
one of the parameter in the system API DataCallResponse.

Test: Build
Bug: 73659459
Merged-In: I3e203781d3a03285fa0e047cc8837ccb4a09016a
Change-Id: I3e203781d3a03285fa0e047cc8837ccb4a09016a

Jack Yu   commited 2018-11-19 14:40:13 -08:00
2268041efb
Add IPv6 link-local address generation from EUI-48
Add a utility method to convert an EUI-48 to an IPv6 link-local
address based on RFC 4291 (EUI-64 generation) followed by RFC 4862.

Bug: 117605977
Test: atest MacAddressTest
Merged-In: I80b683e69da6beff3b37fc345fc15aa9610d09b7
Change-Id: I80b683e69da6beff3b37fc345fc15aa9610d09b7

Etan Cohen   commited 2018-11-16 21:50:24 -08:00
ec1c466cb0
Merge "Refactor UidRange by using stable aidl structure" am: 1742c23b88
am: 55c7b00f65

Change-Id: I09ac7fc6525948b76114ef936dc1b3d2d1bae0fb

Luke Huang   authored and   android-build-merger   commited 2018-10-28 17:55:57 -07:00
7f47d94a18
Merge "To support skip464xlat per Network" am: 698b80818c
am: e826aa52e4

Change-Id: I944738258051525b371bd17dd3ee7b411b82d12b

Chalard Jean   authored and   android-build-merger   commited 2018-10-24 17:19:51 -07:00
426e1cca1a
Merge "Move some members to the "Q blacklist"." am: 26f91069c1
am: 13c9e7e2f3

Change-Id: Ia2419cce28d26d9464da2a5172cb332b629e943e

Nathan Harold   authored and   android-build-merger   commited 2018-10-24 16:14:06 -07:00
b265835d23
Refactor UidRange by using stable aidl structure
Use stable aidl generated structure instead of UidRange

Test: runtest frameworks-net passes
Test: manual testing of UidRange related function works
Change-Id: Iaf1c10777dc1e71df2be2a57533a10257b12626b

Luke Huang   commited 2018-10-24 19:45:09 +09:00
477db5fe1a
Merge "To support skip464xlat per Network"
Chalard Jean   authored and   Gerrit Code Review   commited 2018-10-24 07:15:20 +00:00
698b80818c