Commit graph

7,807 commits

Message SHA1
Merge "Add tests to services/tests/net test mapping" am: f4ff6fa293
Change-Id: Id503a2daac1a508095b388aa8524342141571d6e

Automerger Merge Worker   commited 2020-01-31 16:27:45 +00:00
82a2425dad
Merge changes I8b8df509,I856f01f0 am: 5fcfe7cc4f
Change-Id: I04d08ae82530481d6ea49120107772d37fdc1627

Automerger Merge Worker   commited 2020-01-31 16:25:23 +00:00
49bf0c8f8a
Make most of NetworkAgent @SystemApi. am: 298b1ebbf6
Change-Id: Ie36bfb9a1bed114fe628ad6c1b935d587cc3160d

Automerger Merge Worker   commited 2020-01-31 16:25:20 +00:00
cb4da50356
Merge "Add tests to services/tests/net test mapping"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-01-30 06:20:39 +00:00
f4ff6fa293
NetworkAgent: Fix doc build fail by invalid tag
Bug: 138306002
Bug: 139268426
Test: make doc-comment-check-docs

Change-Id: I8b8df5096b90ad10545087ab09f68ecae637aa35
Merged-In: I8b8df5096b90ad10545087ab09f68ecae637aa35

markchien   authored and   Lorenzo Colitti   commited 2020-01-30 03:37:45 +00:00
f4906c8a8c
Make most of NetworkAgent @SystemApi.
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
Test: atest android.net.cts.ConnectivityManagerTest
Change-Id: I856f01f02c35c2f6a886d8b98039e5dfbc48148b
Merged-In: I856f01f02c35c2f6a886d8b98039e5dfbc48148b
(cherry picked from commit 10a12966c2)

sqian   commited 2020-01-29 16:45:03 -08:00
298b1ebbf6
Merge "API changes for IPv6 MTU support"
am: 16cea243ab

Change-Id: I80f206245b9340a9df8b65c0e42413617eecadfb

Sarah Chin   authored and   android-build-merger   commited 2020-01-29 08:08:45 -08:00
96ec4a9377
Merge "API changes for IPv6 MTU support"
Sarah Chin   authored and   Gerrit Code Review   commited 2020-01-29 15:56:09 +00:00
16cea243ab
API changes for IPv6 MTU support
Change mtu->mtuV4 and add mtuV6 for DataProfile and DataCallResult
Add mtu to RouteInfo and update test

Test: atest FrameworksTelephonyTests
Bug: 146668814
Change-Id: I43c7e088e46e40f38d8114548e0fc4e39d7f91cb
Merged-In: I43c7e088e46e40f38d8114548e0fc4e39d7f91cb

Sarah Chin   authored and   Lorenzo Colitti   commited 2020-01-30 00:17:19 +09:00
707c0e96d5
Merge "Add implementation of getInterfaceHash()"
am: 95f9335a7d

Change-Id: I4d69160572a16e8095e31e641d516f322941da7d

Paul Trautrim   authored and   android-build-merger   commited 2020-01-28 21:19:13 -08:00
3230683757
Merge "Add implementation of getInterfaceHash()"
Paul Trautrim   authored and   Gerrit Code Review   commited 2020-01-29 05:12:12 +00:00
95f9335a7d
Add implementation of getInterfaceHash()
Exempt-From-Owner-Approval: cherry-pick from internal
Bug: 136065010
Test: m
Change-Id: I314f19aeca82cc8653eab71c9526ea7a208e6b50
Merged-In: I314f19aeca82cc8653eab71c9526ea7a208e6b50

Paul Trautrim   commited 2020-01-29 14:09:56 +09:00
69929da705
Merge changes I0ac8c022,Ia6ce0608,Ibc030d2a
am: 08c8da2893

Change-Id: I45158becd88d1e38f492a3ad5023aa96fae5ccd3

Jack Yu   authored and   android-build-merger   commited 2020-01-26 22:50:05 -08:00
a9cdea5664
Merge changes I0ac8c022,Ia6ce0608,Ibc030d2a
* changes:
  Fixed the documentation and unit tests
  Disabled the tests
  Added expiration time and deprecation time support

Treehugger Robot   authored and   Gerrit Code Review   commited 2020-01-27 06:39:38 +00:00
08c8da2893
Fixed the documentation and unit tests
Fixed the documentation and re-eanble the
broken unit tests.

Test: LinkAddressTest
Bug: 142949345
Merged-In: I0ac8c022f70cdf9305c183996c2464a8e04ba5ae
Change-Id: I0ac8c022f70cdf9305c183996c2464a8e04ba5ae
(cherry picked from commit b0097603c6)

Jack Yu   commited 2020-01-26 21:37:36 -08:00
7782a0d893
Disabled the tests
Will re-enable after fixing the negative time issue

Test: LinkAddressTest

Bug: 148257086
Merged-In: Ia6ce0608a2ce95be980e4f9ea62315076c4453be
Change-Id: Ia6ce0608a2ce95be980e4f9ea62315076c4453be
(cherry picked from commit ae0809b118)

Jack Yu   commited 2020-01-26 21:34:00 -08:00
a72b3dc32d
Added expiration time and deprecation time support
Added link address deprecation time and expiration
time for SSC mode 3 support.

Bug: 135717900
Bug: 142949345
Test: LinkAddressTest

Merged-In: Ibc030d2a70ded66e00dd3bdae209609b9118de78
Change-Id: Ibc030d2a70ded66e00dd3bdae209609b9118de78
(cherry picked from commit 01494a73e2)

Jack Yu   commited 2020-01-26 21:32:12 -08:00
1fe4b30aa9
Merge "Fix javadoc build break s/line/link/"
am: 7a1b5c02c1

Change-Id: Iba1f8ec62784f68bc415690ccf5966445c9b3542

Cody Kesting   authored and   android-build-merger   commited 2020-01-24 10:55:47 -08:00
3360ea4c60
Merge "Fix javadoc build break s/line/link/"
Cody Kesting   authored and   Gerrit Code Review   commited 2020-01-24 18:37:51 +00:00
7a1b5c02c1
Merge "Add API for apps to check if they are the network owner"
am: 584869a699

Change-Id: I1316c7fccd9b7a35ff6d8a79a8afa13644d9ab54

Qingxi Li   authored and   android-build-merger   commited 2020-01-24 10:24:12 -08:00
4a9782699d
Merge "Add API for apps to check if they are the network owner"
Qingxi Li   authored and   Gerrit Code Review   commited 2020-01-24 18:12:52 +00:00
584869a699
Fix javadoc build break s/line/link/
Bug: 148248781
Test: compilation
Change-Id: I9df208a9b063b71b2f6cc3099005d1ab38044cd2
Merged-in: I9df208a9b063b71b2f6cc3099005d1ab38044cd2

Nathan Harold   authored and   Cody Kesting   commited 2020-01-24 09:43:03 -08:00
bbb48c6c38
Add API for apps to check if they are the network owner
This CL extends NetworkCapabilities#mEstablishingVpnAppUid
to the network owner app UID and introduces a new public API
to get this owner app's UID.

Bug: 142072839
Test: atest FrameworksNetTests
Change-Id: Id83cdea62b89b586aff74e51e3fee60e53d37d4c

Qingxi Li   commited 2020-01-24 17:28:23 +00:00
bb3347b118
Merge "Add AIDL for registering ConnectivityDiagnosticCallbacks." am: 8f1c6d2bfd
Change-Id: I5e53fec27728a65e05c7fdf7501dee1052c52e78

Automerger Merge Worker   commited 2020-01-24 16:39:47 +00:00
a358c3c92b
Merge "Define ConnectivityDiagnosticsCallback IBinder impl." am: b9db44d909
Change-Id: I1d60026a7b31af2bc329187685780744c20d7c8c

Automerger Merge Worker   commited 2020-01-24 16:39:32 +00:00
47b9f70ebd
Merge changes I7065d081,Ic7c3a331,Ia432057b am: 3b219bf784
Change-Id: I1e5d79606f63540f2d9ae3187057e2ba84f4dcb8

Automerger Merge Worker   commited 2020-01-24 16:38:56 +00:00
6043cc09ed
Allows the caller to specify configuration by TetheringRequest am: cc1bc1b1a4
Change-Id: I2595221b08eb389dcbe8643f3839707a15bc6ac0

Automerger Merge Worker   commited 2020-01-24 16:38:45 +00:00
1817c9fc4d
Make TetheringManager to system API am: eeea0be5b7
Change-Id: I9660401878cdbc2feedc7e950f4f02538ca070eb

Automerger Merge Worker   commited 2020-01-24 16:38:38 +00:00
6ea097c34e
Merge "Add AIDL for registering ConnectivityDiagnosticCallbacks."
Cody Kesting   authored and   Gerrit Code Review   commited 2020-01-24 16:38:22 +00:00
8f1c6d2bfd
Merge "Define ConnectivityDiagnosticsCallback IBinder impl."
Cody Kesting   authored and   Gerrit Code Review   commited 2020-01-24 16:38:08 +00:00
b9db44d909
Merge changes I7065d081,Ic7c3a331,Ia432057b
* changes:
  Add API for tethering clients change
  Allows the caller to specify configuration by TetheringRequest
  Make TetheringManager to system API

Lorenzo Colitti   authored and   Gerrit Code Review   commited 2020-01-24 16:23:18 +00:00
3b219bf784
Allows the caller to specify configuration by TetheringRequest
This is initial work to allow caller to pass their prefered
configuration to start tethering. Caller may able to specify the
downstream interface ipv4 address with dhcp server disabled for
static IP configuration, or able to exempt entitlement check if
they have permission in follow up CL.

Bug: 141256482
Test: -atest TetheringTest
      -ON/OFF wifi tethering

Change-Id: Ic7c3a33195bbd7e72f9b8e73fa148be476b87bf3
Merged-In: Ic7c3a33195bbd7e72f9b8e73fa148be476b87bf3

markchien   authored and   Lorenzo Colitti   commited 2020-01-24 23:39:50 +09:00
cc1bc1b1a4
Make TetheringManager to system API
Also deprecated tethering APIs in ConnectivityManager.
Will have follow up change to remove @hide tethering function in
ConnectivityManager.

Bug: 145093446
Bug: 148038547
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ia432057bf9056727c4a0ca97d160a49274d33581
Merged-In: Ia432057bf9056727c4a0ca97d160a49274d33581

markchien   authored and   Lorenzo Colitti   commited 2020-01-24 23:39:49 +09:00
eeea0be5b7
Add AIDL for registering ConnectivityDiagnosticCallbacks.
ConnectivityService needs to allow for registering and unregistering
ConnectivityDiagnosticsCallbacks as part of ConnectivityDiagnostics API.
These methods will be used by ConnectivityDiagnosticsManager so that
privileged applications can receive notifications on network events by
the system.

Bug: 146444622
Test: compiles
Change-Id: Id00b30af5692db5eef47d0d948897148578d3b32

Cody Kesting   commited 2020-01-23 11:30:04 -08:00
9c69dd4ebb
Define ConnectivityDiagnosticsCallback IBinder impl.
An IBinder implementation of the ConnectivityDiagnosticsCallback AIDL is
needed so that apps can receive notfications with their registered
callbacks for callbacks coming from ConnectivityService.

Bug: 143187964
Bug: 147848028
Test: compiles
Test: atest FrameworksNetTests
Change-Id: Ie62678f794d81e1edee68977ec684a911b5070b7

Cody Kesting   commited 2020-01-23 11:30:04 -08:00
f259e358f1
Merge "Add list of Administrator UIDs to NetworkCapabilities."
am: c3ce33eaa9

Change-Id: I7e5d0950ba99419d83fed6922a8f29aa530d4b00

Cody Kesting   authored and   android-build-merger   commited 2020-01-23 10:18:02 -08:00
d2945fdcf7
Merge "Add list of Administrator UIDs to NetworkCapabilities."
Cody Kesting   authored and   Gerrit Code Review   commited 2020-01-23 17:52:58 +00:00
c3ce33eaa9
Merge "Define Bundle keys for ConnectivityDiagnostics."
am: 0fd8b96249

Change-Id: I2a5ac28aea190d06dc2e7e6f8bb9950e0a18e3f7

Nathan Harold   authored and   android-build-merger   commited 2020-01-23 08:43:27 -08:00
546778d792
Merge "Define Bundle keys for ConnectivityDiagnostics."
Nathan Harold   authored and   Gerrit Code Review   commited 2020-01-23 16:34:16 +00:00
0fd8b96249
Define Bundle keys for ConnectivityDiagnostics.
ConnectivityDiagnosticsManager defines several callbacks that can be
invoked for registered ConnectivityDiagnosticsCallback instances.
onConnectivityReport and onDataStallSuspected include ConnectivityReport
and DataStallReport, respectively, both of which contain a
PersistableBundle to be used for passing information from the
NetworkStack module to the registered callback. When values will be
consistently passed inside these bundles, their keys are defined inside
ConnectivityReport and DataStallReport.

Bug: 147249364
Test: compiles
Test: atest FrameworksNetTests
Change-Id: Icc6bd4337865692b6ca7c18eacabff59ba3a5bb9

Cody Kesting   authored and   Nathan Harold   commited 2020-01-23 00:49:17 -08:00
bfc074595d
Add list of Administrator UIDs to NetworkCapabilities.
Adds a list of administrator UIDs to NetworkCapabilties. The carrier
privilege permission model allows multiple uids to be granted
network-management privileges via certificates stored on a SIM card or
in CarrierConfigManager. The current NetworkCapabilities only allows a
single uid to be stored to track the owner of the network - this change
remedies that discrepancy.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: I3169d31e0270c976a720e80363cb268cbafd0455

Cody Kesting   commited 2020-01-22 23:59:56 -08:00
fc16f69943
Merge "Fix generic inferred type argument."
am: ad1698053e

Change-Id: I5ac5579440d309c583debe5ce876721a84460c84

Cody Kesting   authored and   android-build-merger   commited 2020-01-22 22:45:49 -08:00
7d1b37fc4f
Merge "Fix generic inferred type argument."
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-01-23 06:39:57 +00:00
ad1698053e
Merge changes from topic "add-ikev2-vpn-types"
am: adb79e3b39

Change-Id: I205121bbd8ef8adbe5e7a5ea1c57bbcac0efae0e

Benedict Wong   authored and   android-build-merger   commited 2020-01-22 22:09:41 -08:00
1f3f2daefc
Fix generic inferred type argument.
Test: compiles.
Test: atest FrameworksNetTests
Change-Id: I0dffb3f44fb465ac8bae3c41f26176e86f65e825

Cody Kesting   commited 2020-01-22 20:26:08 -08:00
27bf53f89c
Add VpnManger API surface
This change adds the VpnManager, which will be used by apps to install
profiles for all platform VPN types (currently only IKEv2).

Bug: 143325939
Test: Compiles, FrameworksNetTests passing.
Change-Id: I57f854d0a5b18358f3541c24ca0cd8aed03fd7a1

Benedict Wong   commited 2020-01-22 19:24:24 -08:00
ec7b665e6e
Add Ikev2VpnProfile as public API
This change adds configuration classes for Platform VPNs, with the
extensibility for further platform VPNs to be added in future.

Profile validity is checked upon construction, and upon changing
conversion from VpnProfile instances. Internal storage and method calls
all use VpnProfiles to allow for reuse of existing infrastructure.
However, when Platform VPN implementations are started, the internal
VpnProfile will be converted back into the respective
PlatformVpnProfile for validity checking.

Bug: 143325939
Test: Compiles, FrameworksNetTests passing.
Change-Id: I3c375fb08c132fc062e893c375f5c36460122162

Benedict Wong   commited 2020-01-22 19:23:01 -08:00
4416f38e4f
Add additional fields to VpnProfile for profile-based IKEv2/IPsec VPNs
This commit adds the fields required to support IKEv2/IPsec VPNs. Other
fields will be reused where possible.

Bug: 143221465
Test: Compiles, new tests written for parcel/unparcel, encode/decode
Change-Id: I4c0e8fb934e75548424a15bbfb35c2ea9a3a57bc

Benedict Wong   commited 2020-01-22 19:23:00 -08:00
ab91804e53
Merge changes from topic "connectivity-diagnostics-system-server"
am: fd47d34d34

Change-Id: I48a9f1f734b5e2dd4f7ed91c052cec5c8c62c076

Cody Kesting   authored and   android-build-merger   commited 2020-01-22 19:10:05 -08:00
05bea2cbd5
Merge changes from topic "connectivity-diagnostics-system-server"
* changes:
  Add ConnectivityDiagnosticsManager to System Server.
  Make DataStallReport Parcelable.
  Make ConnectivityReport Parcelable.

Cody Kesting   authored and   Gerrit Code Review   commited 2020-01-23 01:56:33 +00:00
fd47d34d34