Commit Graph

2704 Commits

Author SHA1 Message Date
Lei Yu
77d71f800f Merge "Use merged NetworkTemplate to query data usage" into qt-dev
am: 35fcd6b0e3

Change-Id: I1030f49eb9e24ad8bc4a10c3ab8890c34d20f8f6
2019-05-14 17:51:03 -07:00
Lei Yu
3c6fb30f24 Use merged NetworkTemplate to query data usage
This CL uses merged NetworkTemplate so that it shows correct
data for carrier which is a virtual that has multiple
subscriberId under the hood.

By doing this, this CL also adds several hidden API so settings
can query by NetworkTemplate directly.

Fixes: 120566366
Test: RunSettingsLibRoboTests
Change-Id: I8b747697933c75b48b14387adafb5ac9ca165926
2019-05-13 11:42:23 -07:00
android-build-team Robot
092c18a7c6 Snap for 5556694 from 454dede91146557fa10c7b245bb61174cb2f012e to rvc-release
Change-Id: I75976e652e90b57a8f5216a8313330a0aab0dc70
2019-05-11 03:18:37 +00:00
Junyu Lai
8b26882951 Merge changes Ibff278a6,If6d537a3 am: 33e236823f am: a865058628
am: bf5b7628c5

Change-Id: Ib9ef9ff5c943c4502b91feaa2690f0838215809d
2019-05-10 02:36:04 -07:00
Junyu Lai
bf5b7628c5 Merge changes Ibff278a6,If6d537a3 am: 33e236823f
am: a865058628

Change-Id: Ic51f3b32375378ff74bdd54d1f36569b277fc80f
2019-05-09 23:30:19 -07:00
Xin Li
7d8ede8836 [automerger skipped] DO NOT MERGE - Merge Pie Bonito/Sargo into master. am: e963030676 -s ours am: bd1a8961e2 -s ours
am: 884a1ada47 -s ours
am skip reason: subject contains skip directive

Change-Id: If1ca678ef3942f98d1e68a28a59a2831de27b919
2019-05-09 21:26:56 -07:00
Treehugger Robot
33e236823f Merge changes Ibff278a6,If6d537a3
* changes:
  Revert "Add NATT keepalive resources and methods into IpSecService"
  Revert "[KA11] Verify fd ownership and allocate resource for NattKeepalive"
2019-05-10 01:42:26 +00:00
Xin Li
884a1ada47 [automerger skipped] DO NOT MERGE - Merge Pie Bonito/Sargo into master. am: e963030676 -s ours
am: bd1a8961e2 -s ours
am skip reason: subject contains skip directive

Change-Id: I862d40111b2e525e5838bf09e169c8c3f416633b
2019-05-09 17:16:31 -07:00
Junyu Lai
75eabfeb7c Revert "Add NATT keepalive resources and methods into IpSecService"
This reverts commit 4aac3e9e48.

Reason for revert: Adds dependency between IpSecService and
                   ConnectivityService may lead to future deadlock
		   problems. Uses a simpler approach instead,
		   hence the solution is not needed.
		   See aosp/954040.

Change-Id: Ibff278a6eee666cd85dba81c2bed94d568679b02
2019-05-10 00:58:18 +08:00
Xin Li
e963030676 DO NOT MERGE - Merge Pie Bonito/Sargo into master.
Bug: 131756210
Change-Id: I77a701deda4935526ad452564f9bda77af345f46
2019-05-09 09:27:04 -07:00
Lorenzo Colitti
f730a8ad8d Merge "Add IPsec checks for IPSEC_TUNNEL feature" into qt-dev am: 22e0b2c514
am: 707fc41210

Change-Id: I0f3376eec642800542b5e516a02aef286be6f614
2019-05-09 01:30:52 -07:00
Lorenzo Colitti
707fc41210 Merge "Add IPsec checks for IPSEC_TUNNEL feature" into qt-dev
am: 22e0b2c514

Change-Id: I9bd0fa3958c63a148af98abfe7cc6e4301cf01c2
2019-05-08 21:20:19 -07:00
Lorenzo Colitti
22e0b2c514 Merge "Add IPsec checks for IPSEC_TUNNEL feature" into qt-dev 2019-05-09 03:25:35 +00:00
android-build-team Robot
2320f2b9a2 Snap for 5546569 from 5654efd4cb1d5ccc1d3a2c9973725e4c675ac236 to rvc-release
Change-Id: I379d3d541a48cd079621866e277a71914f91eb63
2019-05-09 03:08:32 +00:00
Lorenzo Colitti
21f699b1a1 [automerger skipped] Merge "Add EPROTONOSUPPORT to IpSecManager SSE map" into qt-dev am: a1a0653dab -s ours
am: d50abfdae5 -s ours
am skip reason: change_id Iec3d5fc4a9bcad7c104414afefae775232d46558 with SHA1 7e9c1ceadd is in history

Change-Id: I6bd69e682abcd0c6b2310506ccd6b225a26f1bb4
2019-05-08 02:49:24 -07:00
Lorenzo Colitti
d50abfdae5 [automerger skipped] Merge "Add EPROTONOSUPPORT to IpSecManager SSE map" into qt-dev
am: a1a0653dab -s ours
am skip reason: change_id Iec3d5fc4a9bcad7c104414afefae775232d46558 with SHA1 7e9c1ceadd is in history

Change-Id: Ifb346ddf63b0d6547f3c67110c17c630f3aa72c9
2019-05-08 02:37:04 -07:00
Jordan Liu
74620136df Merge changes into qt-dev-plus-aosp
am: 5b5a0240a6

Change-Id: I40ec10f3beaea50cf9abf2b5825a40436c620f58
2019-05-07 19:26:01 -07:00
Benedict Wong
e9763752c7 Add IPsec checks for IPSEC_TUNNEL feature
This patch adds checks to ensure that the IPSEC_TUNNEL feature flag is
enabled.

Bug: 117183273
Test: Compiles & tests passing
Change-Id: I2699dda29e1eed139bc6fd1b70071e5ab33cad88
2019-05-08 00:11:28 +00:00
Android Build Merger (Role)
5b5a0240a6 Merge changes into qt-dev-plus-aosp 2019-05-07 22:19:43 +00:00
Benedict Wong
c45974b0d6 Add EPROTONOSUPPORT to IpSecManager SSE map
This change maps EPROTONOSUPPORT to the list of error codes that map to
UnsupportedOperationException in IpSecManager.

Bug: 80103456
Test: Compiles, CTS tests ran
Change-Id: Iec3d5fc4a9bcad7c104414afefae775232d46558
Merged-In: Iec3d5fc4a9bcad7c104414afefae775232d46558
(cherry picked from commit dcbc670688d815ce89954765fac46aa2ad6d8adb)
2019-05-07 14:32:17 -07:00
android-build-team Robot
0625be3e26 Snap for 5518923 from d480edf1f79c13bcc201768a39a1b4495c3f1ed0 to rvc-release
Change-Id: I553015efeb0e6a92a42bc9a9f34695f407cdcd00
2019-05-01 03:06:23 +00:00
Benedict Wong
e6096f4b8e Merge "Add EPROTONOSUPPORT to IpSecManager SSE map" am: 7050ce9434 am: 533559234e
am: 7a2cf07c8d

Change-Id: Iabb278381ed66d7423ad374a717b0b5a41d39846
2019-04-29 17:41:49 -07:00
Benedict Wong
7a2cf07c8d Merge "Add EPROTONOSUPPORT to IpSecManager SSE map" am: 7050ce9434
am: 533559234e

Change-Id: I23e0b56529b9df23558002ddb9e6210d711228cf
2019-04-29 14:16:30 -07:00
Benedict Wong
533559234e Merge "Add EPROTONOSUPPORT to IpSecManager SSE map"
am: 7050ce9434

Change-Id: I9ab4161e2b04615ce782c89cd9e99d98cdbdc92d
2019-04-29 13:35:37 -07:00
android-build-team Robot
4e276ebeb2 Snap for 5503049 from 0ca782e26d821a9db1d04b68dc4bfcbfa6afd913 to rvc-release
Change-Id: I3002020942c057e22aed6f9dc4dcca27d5508177
2019-04-25 03:12:24 +00:00
Benedict Wong
7e9c1ceadd Add EPROTONOSUPPORT to IpSecManager SSE map
This change maps EPROTONOSUPPORT to the list of error codes that map to
UnsupportedOperationException in IpSecManager.

Bug: 80103456
Test: Compiles, CTS tests ran
Change-Id: Iec3d5fc4a9bcad7c104414afefae775232d46558
2019-04-24 21:31:01 +00:00
android-build-team Robot
328ec53ad3 Snap for 5499065 from 065adafc6571843bc70f00f10dae37301e1d7013 to rvc-release
Change-Id: Ib35beac431e0b272e8e39d2306f44ac8c0a98837
2019-04-24 03:22:26 +00:00
Chenbo Feng
7e729bdaa5 [automerger skipped] Merge "Ask netd to swap stats map before reading" into qt-dev am: 197077dc8f -s ours
am: 811f91f337 -s ours
am skip reason: change_id I8fa37c26bec23ffca0b29b679e72ba1189f557f1 with SHA1 876218abcb is in history

Change-Id: I863180a63bcbaa7f7ed76fc759e2f8f2dae1d764
2019-04-23 18:23:54 -07:00
Chenbo Feng
bc13d2e0b0 [automerger skipped] Merge "Add a lock to protect persistent stats snapshot" into qt-dev am: 8e7794e97b -s ours
am: 2c8ab195b0 -s ours
am skip reason: change_id I73851336452110afb74d6dd1ca5e50047d5b3d4a with SHA1 57f207b1c7 is in history

Change-Id: Id3eca996369f20b684f2d3d0436a79288193c7b0
2019-04-23 15:27:25 -07:00
Chenbo Feng
811f91f337 [automerger skipped] Merge "Ask netd to swap stats map before reading" into qt-dev
am: 197077dc8f -s ours
am skip reason: change_id I8fa37c26bec23ffca0b29b679e72ba1189f557f1 with SHA1 876218abcb is in history

Change-Id: I48dc5783885a97a0b0c975202c5878c058695524
2019-04-23 15:13:56 -07:00
TreeHugger Robot
197077dc8f Merge "Ask netd to swap stats map before reading" into qt-dev 2019-04-23 21:57:09 +00:00
Chenbo Feng
2c8ab195b0 [automerger skipped] Merge "Add a lock to protect persistent stats snapshot" into qt-dev
am: 8e7794e97b -s ours
am skip reason: change_id I73851336452110afb74d6dd1ca5e50047d5b3d4a with SHA1 57f207b1c7 is in history

Change-Id: I30d66ea36a7beee9ccf940c547c47a6f7220e0a2
2019-04-23 12:23:12 -07:00
TreeHugger Robot
8e7794e97b Merge "Add a lock to protect persistent stats snapshot" into qt-dev 2019-04-23 18:19:06 +00:00
Chenbo Feng
10fac71887 Ask netd to swap stats map before reading
To avoid protentail race problem between netd and system_server when
reading the network stats map. Always inform netd before reading the
stats and let netd to do a swap between active stats map and inactive
stats map. So the system_server can safely remove the stats after
reading.

Bug: 126620214
Test: android.app.usage.cts.NetworkUsageStatsTest
      android.net.cts.TrafficStatsTest

Change-Id: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
Merged-In: I8fa37c26bec23ffca0b29b679e72ba1189f557f1
(cherry picked from commit f729cb5fd654a0f099128734f849800fde9ba525)
2019-04-23 14:21:32 +00:00
Chenbo Feng
aeb31b53c6 Add a lock to protect persistent stats snapshot
Since the network stats could be polled from multiple services at
runtime, it is not thread safe for networkStatsFactory to hold a
persistent stats snapshot without any protection. Use a internal lock to
prevent concurrent modification on mPersistentSnapshot to fix the
problem.

Bug: 124764595
Test: android.app.usage.cts.NetworkUsageStatsTest
      android.net.cts.TrafficStatsTest

Change-Id: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I73851336452110afb74d6dd1ca5e50047d5b3d4a
Merged-In: I22afb46f17697e8b6359d4f593802e0f4b95db8b
(cherry picked from commit 25243b4eb93c234412a35f9e5d9f1649f8964f83)
2019-04-23 14:21:05 +00:00
android-build-team Robot
cb56e50387 Snap for 5495088 from f2949eb28c7eaa937273e31e723902bb16d738fd to rvc-release
Change-Id: I39dbfb7b0866784c515adaa2e9455719b4d152d7
2019-04-23 03:04:04 +00:00
Benedict Wong
34c3ba6be7 Merge "Add NATT keepalive resources and methods into IpSecService" am: c345527430 am: 70e5117542
am: 5dd6a60745

Change-Id: I65a8e6d4b4d7c8ccbd708eb3bc16a19becfff43c
2019-04-22 14:11:15 -07:00
Benedict Wong
5dd6a60745 Merge "Add NATT keepalive resources and methods into IpSecService" am: c345527430
am: 70e5117542

Change-Id: I3affb5bdbb0c3f980b6606d728668e74c31646d0
2019-04-22 13:44:20 -07:00
Benedict Wong
70e5117542 Merge "Add NATT keepalive resources and methods into IpSecService"
am: c345527430

Change-Id: I97e7451959d619f42d68a5c29cca410bf0740852
2019-04-22 13:31:52 -07:00
Chalard Jean
a2a6e08245 [automerger skipped] Merge "Restrict access to dangerous methods to <= P" into qt-dev am: f3a812858c -s ours
am: 0ea6659635 -s ours
am skip reason: change_id I95107f7b628eecb54e9f4411785186b668e9f3d8 with SHA1 b3dbc3f845 is in history

Change-Id: Iea63d9398078fcd421f93b78b62ca5e87e77f939
2019-04-22 00:42:55 -07:00
Chalard Jean
0ea6659635 [automerger skipped] Merge "Restrict access to dangerous methods to <= P" into qt-dev
am: f3a812858c -s ours
am skip reason: change_id I95107f7b628eecb54e9f4411785186b668e9f3d8 with SHA1 b3dbc3f845 is in history

Change-Id: I18b0c3f0f36f39e8cc758b98c3e8c44a23b69f25
2019-04-22 00:32:19 -07:00
TreeHugger Robot
f3a812858c Merge "Restrict access to dangerous methods to <= P" into qt-dev 2019-04-22 07:14:10 +00:00
Benedict Wong
4aac3e9e48 Add NATT keepalive resources and methods into IpSecService
This change adds a new NATTKeepalive resource type, along with the
associated allocation/deallocation. Additionally, this change allows
ReferenceCountedResource(s) to not be binder-linked, to allow the
ConnectivityService to verify ownership and allocate a NattKeepalive
without double-registering for binder-death notifications.

Bug: 125517194
Test: IpSecService frameworks tests ran
Change-Id: I8293f79940ad57dabb6f2b9de5e334d06b869443
2019-04-19 11:17:21 -07:00
android-build-team Robot
b4443c5fa4 Snap for 5480946 from 0d5aa545b79c6b3dcb67a10f91e4faeea91ad81b to rvc-release
Change-Id: I9fa7cff4683519923163918eb0f07944b1fd1c98
2019-04-18 03:06:26 +00:00
Chalard Jean
d66c1869f4 [automerger skipped] Merge "Move TrafficStats tags for the network stack constants" am: d2eb7f71b8 am: 2c28ee4cb8 -s ours
am: 19a6b5c027 -s ours
am skip reason: change_id I4882686a86e7c6d42f4b0619b921d02619ed6d4c with SHA1 cf0e250114 is in history

Change-Id: I3e682721ed3e8a574d84d12baf84cc2d6c097412
2019-04-17 00:06:14 -07:00
Chalard Jean
19a6b5c027 [automerger skipped] Merge "Move TrafficStats tags for the network stack constants" am: d2eb7f71b8
am: 2c28ee4cb8 -s ours
am skip reason: change_id I9b648ed6c687d56db61a54570c7880c51c1bae51 with SHA1 1c9c56a164 is in history

Change-Id: If30091ab2a164d01cab11fdd7e6e3aeaa805082c
2019-04-16 23:19:28 -07:00
Chalard Jean
2c28ee4cb8 Merge "Move TrafficStats tags for the network stack constants"
am: d2eb7f71b8

Change-Id: I13ba9e3077bb4ec28229a09f2d4747a43c281bcc
2019-04-16 23:08:07 -07:00
Chalard Jean
d2eb7f71b8 Merge "Move TrafficStats tags for the network stack constants" 2019-04-17 05:45:56 +00:00
Chalard Jean
8a93ab8eef Move TrafficStats tags for the network stack constants
As per API council feedback, these constants should live in
a place that is private to the network stack, only with a
range defined in system API.

Bug: 129433383
Test: m
Change-Id: I84a90f84a9af6fef4667ee4d512ebd0413222086
Merged-In: I4882686a86e7c6d42f4b0619b921d02619ed6d4c
Merged-In: I9b648ed6c687d56db61a54570c7880c51c1bae51
2019-04-17 05:45:40 +00:00
android-build-team Robot
fef38d72c9 Snap for 5476456 from 8790a10d4fe5b1b00a29a1501931dbb450676632 to rvc-release
Change-Id: Ibbd3c1f728203527149d0930ad610407a09f13a8
2019-04-17 03:07:11 +00:00