Commit Graph

8634 Commits

Author SHA1 Message Date
Automerger Merge Worker
54a520d22f Merge changes Ibc9b1965,I288ea32f am: 7fa63afe6d
Change-Id: I6eb675ddfa609dcc3031e916ce49959e42cf53f6
2020-02-12 06:25:49 +00:00
Automerger Merge Worker
1021194560 Add a systemapi constructor for NetworkAgent am: 0900154ef5
Change-Id: I3fa3ec32d3c580ba0b7f2d515e08d27dd6af5bcd
2020-02-12 06:25:42 +00:00
Aaron Huang
c2b200e46b Fix invalid usage of javadoc
CP from ag/10125651

Test: this change removes invalid usage
Change-Id: Ibc9b1965ec7aa545c0dae71d741c3802d3a9fa12
Merged-In: I35fc4a814238635fa95981649c27230dda319afa
2020-02-12 06:10:10 +00:00
Roshan Pius
d499517306 NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Change-Id: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
Merged-In: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
2020-02-12 04:42:58 +00:00
Cody Kesting
f2852480a0 Include NetworkCapabilities and LinkProperties in DataStallReport.
DataStallReport is updated to include the NetworkCapabilities and Link
Properties for the Network being reported on. This provides a more
complete picture of the Network conditions when the suspected data stall
was detected.

Bug: 148966398
Test: atest FrameworksNetTests
Change-Id: I913cf18c348b9f688f9d2a3d25a71bc94eb8f000
2020-02-11 08:50:59 -08:00
Chalard Jean
0900154ef5 Add a systemapi constructor for NetworkAgent
Bug: 138306002
Bug: 139268426
Test: atest FrameworksNetTests FrameworksWifiTests FrameworksTelephonyTests
      make doc-comment-check-docs
Change-Id: I288ea32fac07a9a486e2ea451a2c9b098446a74c
Merged-In: I288ea32fac07a9a486e2ea451a2c9b098446a74c
2020-02-11 16:26:10 +08:00
Automerger Merge Worker
dba16a63ca [automerger skipped] Merge "Fix review comments on aosp/1213524" am: 100e0b9a51 -s ours am: 79a71ed587 -s ours am: 6f920f452d -s ours
am skip reason: Change-Id I621cfbe165996c67b201ca2dd2f95a5ab9af10ee with SHA-1 8dd13a8109 is in history

Change-Id: I0fe69f7c3e729f4317b7bbead5d4dc575fa83ba6
2020-02-11 04:05:16 +00:00
Automerger Merge Worker
6f920f452d [automerger skipped] Merge "Fix review comments on aosp/1213524" am: 100e0b9a51 -s ours am: 79a71ed587 -s ours
am skip reason: Change-Id I621cfbe165996c67b201ca2dd2f95a5ab9af10ee with SHA-1 ab2fed7241 is in history

Change-Id: I6a138aa326a628fca7eda309f5627dd47a0ca56e
2020-02-11 03:52:28 +00:00
Automerger Merge Worker
79a71ed587 [automerger skipped] Merge "Fix review comments on aosp/1213524" am: 100e0b9a51 -s ours
am skip reason: Change-Id I621cfbe165996c67b201ca2dd2f95a5ab9af10ee with SHA-1 ab2fed7241 is in history

Change-Id: I1016fc76028aeafa9f15841b4e2951957aa11578
2020-02-11 03:43:38 +00:00
Aaron Huang
100e0b9a51 Merge "Fix review comments on aosp/1213524" 2020-02-11 03:33:08 +00:00
Chalard Jean
75a6104e2a Fix review comments on aosp/1213524
This is necessary to avoid subsequent conflicts.

Test: none needed
Change-Id: I6e2cd9188e0e4bd7c71c6c56635f192dce73f325
Merged-In: I621cfbe165996c67b201ca2dd2f95a5ab9af10ee
2020-02-10 08:28:04 +00:00
Automerger Merge Worker
338913f260 Merge "rm libbinderthreadstate" am: fc72c2ee39 am: 40c31cb9ee am: a209886365
Change-Id: I167e26697d1356280cec9c5eefb361359f6da4a8
2020-02-09 23:54:34 +00:00
Automerger Merge Worker
a209886365 Merge "rm libbinderthreadstate" am: fc72c2ee39 am: 40c31cb9ee
Change-Id: I25aacc3f1cd9c3544e90934c37cff5a973a7bd7b
2020-02-09 23:44:07 +00:00
Automerger Merge Worker
40c31cb9ee Merge "rm libbinderthreadstate" am: fc72c2ee39
Change-Id: Ib7de947aa4ee5b349c9576355869702ac94d8624
2020-02-09 23:27:45 +00:00
Treehugger Robot
fc72c2ee39 Merge "rm libbinderthreadstate" 2020-02-09 23:06:21 +00:00
Automerger Merge Worker
cdf4ba24f4 Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 30394e2a2b am: ad0dc3c5b3 am: 7484cb5180
Change-Id: Ia51cd7174e24744c8b2d3566f9e7b12f47504564
2020-02-09 07:34:46 +00:00
Automerger Merge Worker
41170a6c11 Merge "[NS A42] Move writing to the reassignment to the computation" am: 358eb47a06 am: 52aa90906f am: 2ce8a2baf3
Change-Id: If7fc3f8d859cfa7ba0bb7d638dbe5cae741cae71
2020-02-09 07:34:27 +00:00
Automerger Merge Worker
7484cb5180 Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 30394e2a2b am: ad0dc3c5b3
Change-Id: Id7ed8f80307d2e1252195a6aef62e51d0c4e7f27
2020-02-09 07:21:19 +00:00
Automerger Merge Worker
2ce8a2baf3 Merge "[NS A42] Move writing to the reassignment to the computation" am: 358eb47a06 am: 52aa90906f
Change-Id: Iebe3dbd3b98f4b92486e86c48b0e50b6713b2aa6
2020-02-09 07:20:57 +00:00
Automerger Merge Worker
ad0dc3c5b3 Merge "[NS A43] Separate updating the linger timer and sending LOSING" am: 30394e2a2b
Change-Id: I4b8e7eec2df77d04700582542d6f3f2fb455c2af
2020-02-09 07:06:13 +00:00
Automerger Merge Worker
52aa90906f Merge "[NS A42] Move writing to the reassignment to the computation" am: 358eb47a06
Change-Id: Ic04c72d0720bb53a38329dbcbc75cd914e1296c0
2020-02-09 07:05:54 +00:00
Chalard Jean
30394e2a2b Merge "[NS A43] Separate updating the linger timer and sending LOSING" 2020-02-09 06:51:06 +00:00
Chalard Jean
358eb47a06 Merge "[NS A42] Move writing to the reassignment to the computation" 2020-02-09 06:50:48 +00:00
Automerger Merge Worker
aea4937e79 Merge "[NS A41] Cut out a function to update NAI info" am: 2d45ce0b69 am: 5c78cd3eac am: 1a43b229dd
Change-Id: Ie40f6e1428a7d3a98bb2b83bb6ac9f9224aa3de7
2020-02-09 05:45:49 +00:00
Automerger Merge Worker
1a43b229dd Merge "[NS A41] Cut out a function to update NAI info" am: 2d45ce0b69 am: 5c78cd3eac
Change-Id: If22b44893c33c3640a85eed7e6dc0ce888018059
2020-02-09 05:33:29 +00:00
Automerger Merge Worker
5c78cd3eac Merge "[NS A41] Cut out a function to update NAI info" am: 2d45ce0b69
Change-Id: I668fe3095ee9184b50db83d8f52f572dc57cfa1f
2020-02-09 05:09:07 +00:00
Chalard Jean
2d45ce0b69 Merge "[NS A41] Cut out a function to update NAI info" 2020-02-09 04:56:37 +00:00
Automerger Merge Worker
a026c149f3 Merge "Fix typo in ConnectivityDiagnosticsManager constant." am: 1e304edffd am: 80b276cbae am: d8dd480bbf
Change-Id: I0677a6a31defcb6412f132dcbbfd54f02c82baf7
2020-02-07 17:37:44 +00:00
Automerger Merge Worker
d8dd480bbf Merge "Fix typo in ConnectivityDiagnosticsManager constant." am: 1e304edffd am: 80b276cbae
Change-Id: Iab752a848a8017fbfdc4517502d5a39d8201a682
2020-02-07 17:22:37 +00:00
Automerger Merge Worker
80b276cbae Merge "Fix typo in ConnectivityDiagnosticsManager constant." am: 1e304edffd
Change-Id: Icaae03ca1895de4012deed1c1b81b16fad4ba439
2020-02-07 17:08:20 +00:00
Cody Kesting
1e304edffd Merge "Fix typo in ConnectivityDiagnosticsManager constant." 2020-02-07 16:57:19 +00:00
TreeHugger Robot
188bf74fd6 Merge "Use framework-tethering-stub instead of framework-tethering" 2020-02-07 11:32:23 +00:00
Steven Moreland
81c1f1dcc3 rm libbinderthreadstate
This library is empty, and its functionality has moved
into libbinder/libhwbinder.

Bug: 148692216
Test: N/A
Change-Id: I3ee973cef68281cb57b4912b4b66c798b5d9d715
2020-02-06 13:23:47 -08:00
Roshan Pius
97b7e89d55 Merge changes from topic "network_specifier_uid_packageName"
* changes:
  Wifi/WifiAware NetworkSpecifier: Stop storing uid/packageName
  NetworkRequest: Embed requestor uid & packageName
2020-02-06 19:08:51 +00:00
Automerger Merge Worker
fb73ce0c01 Merge "Use waitForIdle() to wait for Threaded processing." am: 75c1d97c4c am: 9970964bb1 am: 471de383b1
Change-Id: I0d7cbe58f55e25e552f6ae17ffd19cb79f86fe45
2020-02-06 16:38:11 +00:00
Automerger Merge Worker
981a960961 [automerger skipped] Merge "Fire ConnectivityDiagnostics callbacks on Connectivity reported." am: 0b3645740c am: 56fc4328d6 am: 6574dcd23c -s ours
am skip reason: Change-Id Icc6bcf7a2411133d8ecd7477bc351dad9333f24f with SHA-1 3eb07d4e7f is in history

Change-Id: If371a1a419404433930dbc732d4c84037b6fa0d5
2020-02-06 16:37:18 +00:00
Automerger Merge Worker
5a307c2cd6 [automerger skipped] Merge "Implement INetworkMonitorCallbacks#notifyDataStallSuspected." am: daeccbf13e am: 1c80a4d95b am: c9da381fcc -s ours
am skip reason: Change-Id I70320bdda9855dced31e08e6a0b25329fb5cb535 with SHA-1 a1bb47a768 is in history

Change-Id: I2f2eef92341a4341a7fb8a20c32aec3c11e2d442
2020-02-06 16:37:01 +00:00
markchien
273a3e1c54 Use framework-tethering-stub instead of framework-tethering
The non-updatable part of the platform now is built with
framework-tethering-stub, which is a stub library of
framework-tethering.

Bug: 147200698
Test: m
Change-Id: I97ef83f7f9b4c1376f373713036f5256318f1050
2020-02-07 00:27:26 +08:00
Automerger Merge Worker
471de383b1 Merge "Use waitForIdle() to wait for Threaded processing." am: 75c1d97c4c am: 9970964bb1
Change-Id: I1d648dd7d700230afab893336ef853a41717ba80
2020-02-06 16:23:10 +00:00
Automerger Merge Worker
6574dcd23c Merge "Fire ConnectivityDiagnostics callbacks on Connectivity reported." am: 0b3645740c am: 56fc4328d6
Change-Id: I44d75efacebae77914eda6da7efaaf11676e71fc
2020-02-06 16:22:50 +00:00
Automerger Merge Worker
c9da381fcc Merge "Implement INetworkMonitorCallbacks#notifyDataStallSuspected." am: daeccbf13e am: 1c80a4d95b
Change-Id: Iebcb87445b9bb7b36052c62160b4069b76432a18
2020-02-06 16:21:44 +00:00
Automerger Merge Worker
9970964bb1 Merge "Use waitForIdle() to wait for Threaded processing." am: 75c1d97c4c
Change-Id: Ida71ad5d045f87dd11877dc93d42885333bba336
2020-02-06 16:10:28 +00:00
Automerger Merge Worker
56fc4328d6 Merge "Fire ConnectivityDiagnostics callbacks on Connectivity reported." am: 0b3645740c
Change-Id: I60d418afb145238981c17cc9a29ff57dc42c1ff0
2020-02-06 16:10:05 +00:00
Automerger Merge Worker
1c80a4d95b Merge "Implement INetworkMonitorCallbacks#notifyDataStallSuspected." am: daeccbf13e
Change-Id: I20aab2e77056df67df5bf9e9d6bd1888cf17a558
2020-02-06 16:08:33 +00:00
Cody Kesting
75c1d97c4c Merge "Use waitForIdle() to wait for Threaded processing." 2020-02-06 15:54:53 +00:00
Cody Kesting
0b3645740c Merge "Fire ConnectivityDiagnostics callbacks on Connectivity reported." 2020-02-06 15:54:06 +00:00
Cody Kesting
daeccbf13e Merge "Implement INetworkMonitorCallbacks#notifyDataStallSuspected." 2020-02-06 15:47:26 +00:00
Roshan Pius
a098ec4171 NetworkRequest: Embed requestor uid & packageName
Add the requestorUid & requestorPackageName fields to
NetworkCapabilities. This is populated by CS when
a new network request is received.
These 2 requestor fields are also optionally used for network
matching. All of the regular app initiated requests will have the
requestor uid and package name set by connectivity service. Network
agents can optionally set the requestorUid and requestorPackageName
to restrict the network created only to the app that requested the network.

This will help removing the necessity for the various specifiers to embed
the uid & package name info in the specifier for network matching.

Note: NetworkSpecifier.assertValidFromUid() is deprecated & removed in
favor of setting the uid/package name on the agent to restrict the
network to a certain app (useful for wifi peer to peer API & wifi aware).

Bug: 144102365
Test: Verified that wifi network request related CTS verifier tests
pass.
Test: Device boots up and connects to wifi networks
Change-Id: I207c446108afdac7ee2c25e6bbcbc37c4e3f6529
2020-02-06 07:36:29 -08:00
Chalard Jean
8fd82aea7e [NS A43] Separate updating the linger timer and sending LOSING
This will be necessary because updating the linger timer is
what lets the network agent know whether the network is

Test: ConnectivityServiceTest
Change-Id: I9b5a36f6d5eac5a404eff6740cd8f4dcbb0c2786
2020-02-06 18:04:13 +09:00
Chalard Jean
383f5ef79a [NS A42] Move writing to the reassignment to the computation
...instead of the side effect loop. This is a no-op refactoring.

Test: ConnectivityServiceTest
Change-Id: I8308d55eaff080efb22a7a43142492545e626cf5
2020-02-06 18:04:09 +09:00