Commit Graph

93011 Commits

Author SHA1 Message Date
Remi NGUYEN VAN
4293455fd1 Merge "Add LinkProps and NetworkCaps methods to SystemApi" am: 4bde11491b
am: 563c545187

Change-Id: Ic15474fe0b7da8062114367ec4f692e30e73d549
2019-01-22 03:27:36 -08:00
Remi NGUYEN VAN
563c545187 Merge "Add LinkProps and NetworkCaps methods to SystemApi"
am: 4bde11491b

Change-Id: I7ba317e49a6ad7a7413d9ff4e312aed0b700e695
2019-01-22 03:14:19 -08:00
Remi NGUYEN VAN
2f58858d1a Merge "Add NetworkStack metrics to system API" am: 8586a43f31
am: 2aa1bbe018

Change-Id: I8d711dcf76935d28d8a610d6a18da77cea77268e
2019-01-22 00:18:58 -08:00
Remi NGUYEN VAN
2aa1bbe018 Merge "Add NetworkStack metrics to system API"
am: 8586a43f31

Change-Id: I686e0ffb8d226d9245f1ef6c04bbc8d586c61e81
2019-01-22 00:09:31 -08:00
Remi NGUYEN VAN
94a055737e Add LinkProps and NetworkCaps methods to SystemApi
Added methods are used by the NetworkStack.

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: I8822d43c1a4981ca39289525685b3f975fb0e8d5
2019-01-22 16:57:16 +09:00
Remi NGUYEN VAN
8586a43f31 Merge "Add NetworkStack metrics to system API" 2019-01-22 07:48:39 +00:00
Remi NGUYEN VAN
d0436c7114 Merge "Add NetworkMonitor constants to SystemApi" am: c3a6317b0b
am: 95b523ce8a

Change-Id: I0281ff981cbd5d26a2f2874db23244bebad9c66b
2019-01-21 19:25:05 -08:00
Remi NGUYEN VAN
95b523ce8a Merge "Add NetworkMonitor constants to SystemApi"
am: c3a6317b0b

Change-Id: Ic9591f31c6f2b7e613a78fa32311412952be26b8
2019-01-21 19:15:59 -08:00
Remi NGUYEN VAN
c3a6317b0b Merge "Add NetworkMonitor constants to SystemApi" 2019-01-22 03:03:37 +00:00
Remi NGUYEN VAN
42079df1cc Merge "Add startActivityAsUser to SystemApi" am: 3f4873baef
am: 54ec5162de

Change-Id: I665295721ff7b2eb41f29c96ce2a64844a08705e
2019-01-21 18:25:57 -08:00
Remi NGUYEN VAN
54ec5162de Merge "Add startActivityAsUser to SystemApi"
am: 3f4873baef

Change-Id: I14e63dbb8ded7cd858c45b12034637bbe403a618
2019-01-21 18:16:56 -08:00
Remi NGUYEN VAN
3f4873baef Merge "Add startActivityAsUser to SystemApi" 2019-01-22 02:01:29 +00:00
Remi NGUYEN VAN
a359fc3948 Merge "Add IIpClient API for IpClient" am: 60b9ad2ec3
am: e89f53330a

Change-Id: I58d8725a1f43f42d364a53ca80d86e3f65e6cf63
2019-01-21 17:32:12 -08:00
Remi NGUYEN VAN
e89f53330a Merge "Add IIpClient API for IpClient"
am: 60b9ad2ec3

Change-Id: I56befc787ef7d25f6e0cd6f2faa523c8f24773c0
2019-01-21 17:23:32 -08:00
Remi NGUYEN VAN
60b9ad2ec3 Merge "Add IIpClient API for IpClient" 2019-01-22 01:10:17 +00:00
Remi NGUYEN VAN
6134d99bce Merge changes I5a6174a4,Idfbfdf54 am: 33a04d0ff9
am: 8898e7c094

Change-Id: Ibbbf2445fa4094733227f4ece643160fb7ca7c46
2019-01-21 15:56:22 -08:00
Remi NGUYEN VAN
8898e7c094 Merge changes I5a6174a4,Idfbfdf54
am: 33a04d0ff9

Change-Id: Ia42c7690a527ecddf90468749e112897207175dc
2019-01-21 15:48:17 -08:00
Remi NGUYEN VAN
c4c5079a09 Merge "Add fields used by NetworkStack to the API" am: 79a6d5e30c
am: 4bf93bb9c4

Change-Id: I5b7cce21b8692184f9d6121f0641bc2318370671
2019-01-21 15:47:28 -08:00
Remi NGUYEN VAN
4bf93bb9c4 Merge "Add fields used by NetworkStack to the API"
am: 79a6d5e30c

Change-Id: Iaf2dfea8263a1c7e78130222126e2ebbaa84fedd
2019-01-21 15:36:17 -08:00
Remi NGUYEN VAN
33a04d0ff9 Merge changes I5a6174a4,Idfbfdf54
* changes:
  Acquire lock to write NetworkStackConnector
  Allow Bluetooth to bind to NetworkStack
2019-01-21 23:31:07 +00:00
Remi NGUYEN VAN
bf1ecd1957 Add startActivityAsUser to SystemApi
Normal applications do not have permissions to use this method.

Test: m
Bug: 112869080
Merged-In: I693b3bf56f3be71f0790776e3aad5694717786ef
Change-Id: Ibe91c1bc4c94883a313e799cb0a37db7696fc62e
2019-01-22 08:27:21 +09:00
Remi NGUYEN VAN
7b84fb336f Add NetworkStack metrics to system API
Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Ie52c55f248c173e2a5ee603ecd004fbac9004ac1
2019-01-21 23:24:41 +00:00
Remi NGUYEN VAN
79a6d5e30c Merge "Add fields used by NetworkStack to the API" 2019-01-21 23:20:26 +00:00
Chalard Jean
39f2eb4abd Merge changes I2ddfef0c,I49bee0c9 am: ca046e898b
am: a6109ea3a0

Change-Id: I552730badc910df5f5a48c2ded6566071b604783
2019-01-21 11:18:35 -08:00
Remi NGUYEN VAN
bba39913f8 Merge "Add stable AIDL parcelables for IIpClient API" am: 7bf90a1f97
am: 4294a0f939

Change-Id: Ifae5ae9e6e396452ce4c432d8aa613d03ba59824
2019-01-21 11:09:28 -08:00
Chalard Jean
a6109ea3a0 Merge changes I2ddfef0c,I49bee0c9
am: ca046e898b

Change-Id: I54b43a6fe240d00d0e530a8777bdb9f452a2b539
2019-01-21 11:01:47 -08:00
Remi NGUYEN VAN
4294a0f939 Merge "Add stable AIDL parcelables for IIpClient API"
am: 7bf90a1f97

Change-Id: Id3e39ed932161941f953c2f38d1ce9ed0afcc785
2019-01-21 10:56:19 -08:00
Remi NGUYEN VAN
800e843862 Acquire lock to write NetworkStackConnector
As Java reference writes are atomic, the previous code should not have
issues, but since mConnector is marked @GuardedBy it could trigger
static analysis.

Test: m
Change-Id: I5a6174a4f32c349e593d0a16d58293d608a487c7
2019-01-21 23:21:40 +09:00
Remi NGUYEN VAN
31f1d0cd8d Add fields used by NetworkStack to the API
Test: m
Bug: 112869080
Change-Id: I59f6d5ae8a601b7496548b87f137a577f2365a37
2019-01-21 23:03:25 +09:00
Kenny Guy
6cbfa79805 Update SQLiteQueryBuilder to match aosp-master and internal master
SQLiteQueryBuilder.appendWhere and appendWhereEscapeString
has @NonNull in master and aosp-master however not in staging.
This breaks the build in staging now the tool that generates
current.txt includes annotations in the signatures.

Test: lunch aosp_taimen-userdebug && make -j
Change-Id: Iea1728a13f2ed651533328b09517dfb6ad381130
2019-01-21 13:22:25 +00:00
Remi NGUYEN VAN
7731c5bae2 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
2019-01-21 21:11:15 +09:00
Chalard Jean
ca046e898b Merge changes I2ddfef0c,I49bee0c9
* changes:
  [MS08] Read back attributes and blobs.
  [MS07] Implement storeNetworkAttributes and storeBlob.
2019-01-21 09:34:41 +00:00
Remi NGUYEN VAN
a5d31f53b6 Add IIpClient API for IpClient
The API will be used to interact with IpClient once it is moved to the
NetworkStack process.
This change keeps compatibility with the previous API so that clients
can be migrated independently.

Test: atest FrameworksNetTests NetworkStackTests
Bug: b/112869080
Change-Id: I57d8164afae849230bbc0e25f17859c0b22d0f29
2019-01-21 18:25:46 +09:00
Remi NGUYEN VAN
69b967f5d0 Allow Bluetooth to bind to NetworkStack
Test: flashed, verified bluetooth tethering gets IP address
Bug: b/112869080
Change-Id: Idfbfdf54754fea46eb0099b9b9a3bdc29dd241e0
2019-01-21 18:25:01 +09:00
Chalard Jean
91549b6d1b [MS07] Implement storeNetworkAttributes and storeBlob.
Test: New tests in IpMemoryStore
Bug: 113554482

Change-Id: I49bee0c903247e77ab93517efbe44548313cf1a4
2019-01-21 15:21:09 +09:00
Remi NGUYEN VAN
6b0b2b735e Add stable AIDL parcelables for IIpClient API
Test: atest FrameworksNetTests NetworkStackTests
Bug: b/112869080
Change-Id: Ia4ac1eb482850a06c4dc1b6c1fe55d33d4087388
2019-01-21 12:54:24 +09:00
Nandana Dutt
ec3ce57698 Merge "Pass in calling UID and package to dumpstate" am: bc6e433ae4
am: ae97716377

Change-Id: Ie1126fb68184c7789fe969b008ee1550d4424809
2019-01-19 06:11:19 -08:00
Nandana Dutt
ae97716377 Merge "Pass in calling UID and package to dumpstate"
am: bc6e433ae4

Change-Id: I1bf6f1053d088af55d35164207e5167c806db686
2019-01-19 05:59:00 -08:00
Treehugger Robot
bc6e433ae4 Merge "Pass in calling UID and package to dumpstate" 2019-01-19 13:48:29 +00:00
Nate Fischer
f85e6546e6 WebView: clean up onReceivedSslError docs
am: 9f726cd280

Change-Id: Id927f42978e86296710995c9d445ac7ce168e265
2019-01-18 17:22:01 -08:00
xueliang.zhong
b67858ba35 Merge "Quiet SNaN inputs in Half.toFloat()" am: a879fd8b02
am: fea7e9f20d

Change-Id: If0cdc41993d42759cd04fbf12fcb45e4ccc7acb7
2019-01-18 16:32:01 -08:00
Jayachandran Chinnakkannu
58a61cc734 Merge "Cellular data stall recovery based on networkStatus" am: 44631dfc26
am: e9dc415e2b

Change-Id: I2e381e9215a2d8f036a0de4f021573688250c142
2019-01-18 15:43:03 -08:00
xueliang.zhong
fea7e9f20d Merge "Quiet SNaN inputs in Half.toFloat()"
am: a879fd8b02

Change-Id: I9ad4e399a81121ec0e59d8aa1af4cd05866c12cb
2019-01-18 15:38:15 -08:00
Jayachandran Chinnakkannu
e9dc415e2b Merge "Cellular data stall recovery based on networkStatus"
am: 44631dfc26

Change-Id: Ibe4c78717d5b0f0a0709c5271c7974ac79cb9a6f
2019-01-18 15:19:23 -08:00
Treehugger Robot
a879fd8b02 Merge "Quiet SNaN inputs in Half.toFloat()" 2019-01-18 23:18:15 +00:00
Jayachandran C
8ef41bf34f Cellular data stall recovery based on networkStatus
This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8
2019-01-18 22:52:16 +00:00
Nate Fischer
9f726cd280 WebView: clean up onReceivedSslError docs
No change to logic, only docs.

This adds {@link}'s for references to SslErrorHandler methods, improving
readability. This also clarifies this API is only called for recoverable
errors.

Fixes: 123042566
Test: m offline-sdk-docs
Change-Id: I0e94c9903e638e2fce59f35ec76eb5566e7ad875
2019-01-18 13:00:33 -08:00
Etan Cohen
82083c8a15 Merge "[CS] Add an option to block sensitive network specifier" am: 895ef965f5
am: 787525e951

Change-Id: I64f17aebbfe1820b42aa33b487b17e65ba734ab3
2019-01-17 21:24:03 -08:00
Etan Cohen
787525e951 Merge "[CS] Add an option to block sensitive network specifier"
am: 895ef965f5

Change-Id: Idedbc2ec564bd1ab65a3bb466ea4f20bb849648f
2019-01-17 21:14:54 -08:00
Etan Cohen
836ad571eb [CS] Add an option to block sensitive network specifier
Network specifiers are used for 2 purposes:

- As part of network requests to specify more information on the type
  of requested networks.
- On network agents to specify information about their networks.

The network specifiers of the requests and agents are matched to each
other. However, the agent network specifier may contain sensitive
information which we do not want forwarded to any app.

This CL adds an option to strip out this agent network specifier before
the network capabilities are forwarded to the app.

Bug: 122160111
Test: atest ConnectivityServiceTest (frameworks/base/tests/net)
Test: atest frameworks/base/tests/net
Test: atest frameworks/opt/net/wifi/tests/wifitests
Test: atest frameworks/opt/telephony/tests/telephonytests
Test: atest frameworks/opt/net/ethernet/tests
Test: atest android.net.cts - some flakiness!
Test: act.py ThroughputTest
Test: act.py DataPathTest
Test: atest SingleDeviceTest (cts)
Change-Id: If08d312ff814bdde1147518f923199e6349503d5
2019-01-17 16:30:05 -08:00