Commit Graph

5737 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
786215116c Merge "Add Nat64Prefix to LinkProperties copy constructor" 2019-01-16 08:35:01 +00:00
Remi NGUYEN VAN
8f7bc647b5 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
2019-01-16 15:27:27 +09:00
Lorenzo Colitti
9281e5c55f Merge "Add the NAT64 prefix to LinkProperties." am: 983e77db4a
am: 6b39032761

Change-Id: I808042e00cbc1da8d3e878add9b643a75968919e
2019-01-14 20:29:10 -08:00
Lorenzo Colitti
6b39032761 Merge "Add the NAT64 prefix to LinkProperties."
am: 983e77db4a

Change-Id: Ia1e6e1e584db12e57b245fa01651d289337906a3
2019-01-14 20:17:53 -08:00
Lorenzo Colitti
1d3bf3d90c Test parceling empty LinkProperties.
Test: atest FrameworksNetTests
Change-Id: Iec53a9fdce1ba1db86751ea5f14a11d28be543eb
2019-01-15 12:53:59 +09:00
Lorenzo Colitti
ae53ea1874 Delete the clatd functions from NetworkManagementService.
Make Nat464Xlat talk to netd directly instead of through
NetworkManagementService. The methods in NetworkmanagementService
don't really provide any value: since the only thing they do is
call into netd, we might as well have the callers talk to netd
directly,

In order to do this, pass INetworkManagementService and INetd to
the NetworkAgentInfo constructor, and update callers appropriately.

Bug: 65674744
Test: builds, boots
Test: atest FrameworksNetTests
Change-Id: Iac4cfe709c6279e4d9682b6754963e533707bd12
2019-01-15 11:13:07 +09:00
Lorenzo Colitti
981b34f6b8 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
2019-01-12 02:16:34 +09:00
Chalard Jean
6452604181 Merge changes from topic "IPMS1" am: 3627deac88
am: 946d156bce

Change-Id: I2541996b9bfe338acabac858fdea0ad89d55df5b
2019-01-11 03:53:57 -08:00
Chalard Jean
946d156bce Merge changes from topic "IPMS1"
am: 3627deac88

Change-Id: I80fc9437a041de68ce16ae5e85189b5d48fe1c97
2019-01-11 03:44:45 -08:00
Chalard Jean
6dd2486300 [MS02] Write the skeleton for the IP memory store.
This implements a minimal contract for the IP Memory Store
feature.

Test: Created new tests for parcelable code. For the rest, created
      empty tests, but there is no logic, it's boilerplate day
Bug: 116512211
Change-Id: I15dc6275b370d671385ddfdb058a8b8d39952d6e
2019-01-11 15:01:00 +09:00
Chalard Jean
d3829de504 [MS01] Add the IP memory store service.
Bug: 116512211
Test: Added initial tests
Change-Id: I9d9af4097e3e2d7afd9956b9cbfa29a9f9558ae0
2019-01-11 15:00:36 +09:00
Remi NGUYEN VAN
1ac32eff21 Merge "Move NetworkMonitor to NetworkStack" am: b35979db6b
am: 8255355c7d

Change-Id: I438b95e135d0d86be53ea3a8ab61105a886e2a2e
2019-01-10 21:29:38 -08:00
Remi NGUYEN VAN
8255355c7d Merge "Move NetworkMonitor to NetworkStack"
am: b35979db6b

Change-Id: If5c2c104bc53a565e89e625b1edce0b976a295f3
2019-01-10 21:15:28 -08:00
Remi NGUYEN VAN
b35979db6b Merge "Move NetworkMonitor to NetworkStack" 2019-01-11 05:08:52 +00:00
Remi NGUYEN VAN
8539129ad9 Move NetworkMonitor to NetworkStack
Bug: b/112869080
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I1b8b6a3f4390adbabf92fb9e48da61c47b08b2ec
2019-01-11 09:59:11 +09:00
Chalard Jean
a0b40fe2e7 Merge "Add PCSCF to LinkProperties." am: a99e1eeb9d
am: aad967ed2a

Change-Id: I491e99f7225233d5841b61ce383325e7a1c43fa0
2019-01-09 22:19:14 -08:00
Chalard Jean
aad967ed2a Merge "Add PCSCF to LinkProperties."
am: a99e1eeb9d

Change-Id: Ia153067765ea39430f4dfbc49da3cbd92054b8a9
2019-01-09 22:06:46 -08:00
Chalard Jean
a99e1eeb9d Merge "Add PCSCF to LinkProperties." 2019-01-10 05:55:05 +00:00
Remi NGUYEN VAN
b720ab7d1d Merge "Move DhcpServer to NetworkStack app" am: 82ef768e0c
am: 0217604bd3

Change-Id: Ib25c0422fda31c5df7743b481d5f50da209c38fa
2019-01-09 05:27:59 -08:00
Remi NGUYEN VAN
0217604bd3 Merge "Move DhcpServer to NetworkStack app"
am: 82ef768e0c

Change-Id: I5ed78d8b4b9fc5bc8f50bfa77d60e19bd3815a6d
2019-01-09 02:53:48 -08:00
Remi NGUYEN VAN
82ef768e0c Merge "Move DhcpServer to NetworkStack app" 2019-01-09 10:42:48 +00:00
Remi NGUYEN VAN
a35360c1b6 Move DhcpServer to NetworkStack app
Test: atest FrameworksNetTests && atest NetworkStackTests
Bug: b/112869080

Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b
2019-01-09 15:42:16 +09:00
Chalard Jean
fb9d4e1ade Merge "Add nullability annotations to public methods of ConnManager." am: 805e2ad9db
am: 85188cead6

Change-Id: If2e704e1f8ddf504be9e777ec226b2ce524438dc
2019-01-08 00:19:52 -08:00
Chalard Jean
85188cead6 Merge "Add nullability annotations to public methods of ConnManager."
am: 805e2ad9db

Change-Id: I8f5cc35869b4b76404190709206cccd895a1d4b4
2019-01-08 00:10:38 -08:00
Chalard Jean
158702db55 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
2019-01-07 19:35:09 +09:00
Junyu Lai
88539d94e3 Merge "Ignore ipv6 tx traffic on clat uid." am: 926c915708
am: 4d2e21a86c

Change-Id: I0f289ce46462f494adb99628bd504cafb584eeeb
2019-01-04 08:30:44 -08:00
Junyu Lai
4d2e21a86c Merge "Ignore ipv6 tx traffic on clat uid."
am: 926c915708

Change-Id: I181c3c812caa9bcd359fbddf74d14adeb7e83419
2019-01-04 08:13:29 -08:00
Junyu Lai
926c915708 Merge "Ignore ipv6 tx traffic on clat uid." 2019-01-04 09:29:10 +00:00
Mathew Inwood
75f3441060 Merge "Limit access to suspected false positives." am: aeda49d185
am: 350a598d1a

Change-Id: I8e10322e69d2d479079df5cf8fec0287c7c117f1
2019-01-02 05:00:54 -08:00
Mathew Inwood
350a598d1a Merge "Limit access to suspected false positives."
am: aeda49d185

Change-Id: Ib24456aaad850d5aee46dd242513840511942536
2019-01-02 04:48:33 -08:00
Mathew Inwood
bdfc1fcb7a 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
2018-12-28 14:26:35 +00:00
Chalard Jean
130e23f3f0 Merge "[PT17] Small cleanup of PacManager" am: 6da845e999
am: 2d0084fd8f

Change-Id: I7feead64e6fd1c4a02ccaaf4a76f1ad684887e72
2018-12-25 03:18:54 -08:00
Chalard Jean
2d0084fd8f Merge "[PT17] Small cleanup of PacManager"
am: 6da845e999

Change-Id: If5c8f840adaa9dd13e5cf95aedc782913aee9179
2018-12-25 03:08:21 -08:00
Chalard Jean
6da845e999 Merge "[PT17] Small cleanup of PacManager" 2018-12-25 10:55:10 +00:00
Paul Hu
dec63b8473 Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" am: 6f8696cf67
am: 77dfb10a6f

Change-Id: Ic641472bab2e5aa7b443caaac13deae260c3902d
2018-12-21 07:48:38 -08:00
Paul Hu
77dfb10a6f Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs"
am: 6f8696cf67

Change-Id: Ib1f7c272192bf4a6b44d0d7c47267ec0fe0317d6
2018-12-21 07:37:22 -08:00
Paul Hu
6f8696cf67 Merge "Unhide LinkProperties, NetworkCapabilities, NetworkRequest APIs" 2018-12-21 15:21:03 +00:00
Junyu Lai
5d1d75f1ce Merge "Deprecate NetworkInfo" am: 84a764b1f4
am: 3b1eb0acc4

Change-Id: Ia646a8754bcd5ef62573e3b1730df3987bf9fd15
2018-12-21 02:16:39 -08:00
Junyu Lai
3b1eb0acc4 Merge "Deprecate NetworkInfo"
am: 84a764b1f4

Change-Id: I4ac76b4bb3edb85e22440c8bfa4f0979c42c0cbd
2018-12-21 02:06:09 -08:00
Junyu Lai
84a764b1f4 Merge "Deprecate NetworkInfo" 2018-12-21 09:56:39 +00:00
Chalard Jean
d5e95119ad [PT17] Small cleanup of PacManager
Test: runtest
Change-Id: I94a10cbae7f2d87bd8a68ae4f9972a728f4942c3
2018-12-20 18:25:22 +09:00
junyulai
9826e7f292 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
2018-12-20 16:36:10 +08:00
jiayanhong
07ad89f002 Merge "Fixed toString() printing error" am: 9952ebd7d5
am: 50b52d9db8

Change-Id: Ia28e56d8a6b76247d552bcdbf43ef71ac80e313e
2018-12-19 10:06:58 -08:00
jiayanhong
50b52d9db8 Merge "Fixed toString() printing error"
am: 9952ebd7d5

Change-Id: Id0f5d70a4549480fbb192628ce41796e4da04ad7
2018-12-19 09:54:46 -08:00
Treehugger Robot
9952ebd7d5 Merge "Fixed toString() printing error" 2018-12-19 17:39:58 +00:00
Paul Duffin
b1d6edf06c Merge "Add InetAddresses class to API" am: 2f8a9b2c4d
am: 18b313b077

Change-Id: I3e745599be0f81decfe416a71503dc784a895a48
2018-12-18 11:09:15 -08:00
Ken Chen
cfd06c2074 Merge "Remove 'hasDns' parameter" am: fa9ee4fad7
am: b2afafdb9c

Change-Id: I43080dc7922ab6b8b1c61f7a2542dd8cead45bc5
2018-12-18 10:50:11 -08:00
Paul Duffin
18b313b077 Merge "Add InetAddresses class to API"
am: 2f8a9b2c4d

Change-Id: If821b32c686fd603035050c09598384796f72fb2
2018-12-18 10:44:07 -08:00
Ken Chen
b2afafdb9c Merge "Remove 'hasDns' parameter"
am: fa9ee4fad7

Change-Id: I7efc2ff04cf65420b02ddf2cf7a13b640e37ef77
2018-12-18 10:38:59 -08:00
Paul Duffin
2f8a9b2c4d Merge "Add InetAddresses class to API" 2018-12-18 14:11:04 +00:00