Commit Graph

661 Commits

Author SHA1 Message Date
Paul Hu
2026b5addb Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420 am: 6296583f61
Change-Id: Ie49b39eaf0170ecb74043dfba2cdc5b115a1477d
2020-04-22 06:05:12 +00:00
Paul Hu
6296583f61 Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420
Change-Id: I74d7c888f450e7f00000f30c63ff5cf05f6a968a
2020-04-22 05:51:36 +00:00
Paul Hu
3680357420 Merge "[TNU08] Remove the "tethering is on" notification" 2020-04-22 05:37:17 +00:00
Paul Hu
eca31b587a Merge "[TNU07] Remove unused resources" am: 967bced940 am: 9591b7f9b6
Change-Id: Ia658f8bdb13f882e7d09f477efdd24f49fc50e68
2020-04-22 03:13:30 +00:00
Paul Hu
9591b7f9b6 Merge "[TNU07] Remove unused resources" am: 967bced940
Change-Id: I5b70685523a21512ee171c8c6285a1a09f207abc
2020-04-22 02:55:07 +00:00
Paul Hu
967bced940 Merge "[TNU07] Remove unused resources" 2020-04-22 02:33:46 +00:00
Bill Yi
7ca45dcc82 [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 8aff1adbe0 -s ours am: b253520351 -s ours
am skip reason: subject contains skip directive

Change-Id: I960e61f3ab7a4a905416cae118b2f0fd810674cb
2020-04-21 19:32:40 +00:00
Bill Yi
b253520351 [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 8aff1adbe0 -s ours
am skip reason: subject contains skip directive

Change-Id: I119719b9bda586c72df735dfc7e390e018bbaaba
2020-04-21 19:16:00 +00:00
Bill Yi
8aff1adbe0 Merge "Import translations. DO NOT MERGE" 2020-04-21 18:55:16 +00:00
Treehugger Robot
a533866d24 Merge "Retry the call that fetches the tethering offload HAL." am: 70ad9d4161 am: 9a3b6faf37
Change-Id: I4e26a29bcddd04c3f7c93e754637f935746c30ff
2020-04-21 15:16:43 +00:00
Treehugger Robot
9a3b6faf37 Merge "Retry the call that fetches the tethering offload HAL." am: 70ad9d4161
Change-Id: I55db0f2bf111558dff4ec3bdd6698dc97c849e1c
2020-04-21 15:04:29 +00:00
Treehugger Robot
70ad9d4161 Merge "Retry the call that fetches the tethering offload HAL." 2020-04-21 14:45:39 +00:00
Lorenzo Colitti
06e440101b Retry the call that fetches the tethering offload HAL.
The CL that moved the initialization of the tethering offload
config HAL from C++ to Java caused the code not to retry
fetching the service if it is not ready when tethering is
started. This is because the C++ version of getService() retries,
but the Java version only retries if getService(true) is called.

Make the new code retry as well.

b/152430668#comment4 asserts that the fetch will be retried only
if the service is installed on the device, so the retries should
be attempted (and thus should not have any startup time impact)
on devices that do not support tethering offload.

Bug: 152430668
Test: builds, boots, tethering offload works
Change-Id: I093f127d90b2aa1b13eb0748378a24726d419472
2020-04-21 22:22:54 +09:00
Jiyong Park
ab5feb498e [automerger skipped] Merge "Mark some aidl_interface modules as unstable" am: 77a58cde80 am: cbf274fd51 -s ours
am skip reason: Change-Id I1257c66de6dd42b2d32d47ed74cb2878f79d14fb with SHA-1 6c9c10c91e is in history

Change-Id: I3fdea3f044636f1c17931a50f0ff76bb2ce21251
2020-04-20 10:50:00 +00:00
Jiyong Park
cbf274fd51 Merge "Mark some aidl_interface modules as unstable" am: 77a58cde80
Change-Id: I67e3ef3d698c8f36e04718f630d4d70a915fc0bb
2020-04-20 10:26:36 +00:00
paulhu
57f26333a8 [TNU08] Remove the "tethering is on" notification
All carriers discarded the requirement to put up a standing
notification when tethering is on. Thus, remove the "tethering
is on" notification.

Bug: 154438388
Test: atest TetheringTests
Change-Id: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c
2020-04-20 16:10:08 +08:00
paulhu
01a9451cb4 [TNU07] Remove unused resources
Some strings are not used, so just remove them.

Bug: 154445061
Test: atest TetheringTests
Change-Id: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
2020-04-20 15:52:11 +08:00
Jiyong Park
de93db8570 Mark some aidl_interface modules as unstable
With b/152655547, all aidl_interface modules are considered as stable
unless it is explicitly with "unstable: true". This change marks the
aidl_interface that are not used across updatable module bounraries
as unstable, so that the build system does not run the API
dumping/checking on them.

Exempt-From-Owner-Approval: cherry-pick from internal

Bug: 152655547
Test: m
Merged-In: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
(cherry picked from commit 6c9c10c91e)
Change-Id: I1257c66de6dd42b2d32d47ed74cb2878f79d14fb
2020-04-20 07:44:52 +00:00
Jiyong Park
49eeb6c7d8 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7
Change-Id: I87f2b5384ad7f82374597a75de4595e380564e55
2020-04-20 05:23:12 +00:00
Jiyong Park
fc7d16b3c7 Merge "Mark some aidl_interface modules as unstable" into rvc-dev 2020-04-20 03:23:06 +00:00
TreeHugger Robot
1f093888f1 [automerger skipped] Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev am: 3baf9409d5 -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 69f3fa3729 is in history

Change-Id: I6ff4c3d99b7f036ed7c0234e5a6b8f6bd696ebd6
2020-04-18 06:44:59 +00:00
TreeHugger Robot
3baf9409d5 Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev 2020-04-18 06:16:44 +00:00
TreeHugger Robot
bb2bc6c096 [automerger skipped] Merge "[TNU06] Add roaming notification" into rvc-dev am: 56ef0ea4b6 -s ours
am skip reason: Change-Id I74b4f87c2f6aad09e05d3f2a779f880396885953 with SHA-1 1f66261a3c is in history

Change-Id: I8f9dec057658a2726fbcf576f584eee55e900db8
2020-04-17 18:46:03 +00:00
Chalard Jean
4580c83253 [TNU06] Add roaming notification
Warn user of potential data charges if the backhaul is
cellular and user is roaming.

Bug: 145629001
Test: atest TetheringTests
Change-Id: I74b4f87c2f6aad09e05d3f2a779f880396885953
Merged-In: I74b4f87c2f6aad09e05d3f2a779f880396885953
(cherry picked from commit 1af69e5b8f339bde5b70886d80960ce22c847245, aosp/1237026)
2020-04-17 17:14:12 +00:00
Chalard Jean
bc380e0215 Merge "[TNU06] Add roaming notification" am: 565160c302 am: 8f365b0b13
Change-Id: Ia02ca67be0a103e980be6a4c7a0ed66836716d51
2020-04-17 16:28:53 +00:00
Chalard Jean
8f365b0b13 Merge "[TNU06] Add roaming notification" am: 565160c302
Change-Id: I8f66563665375bdde40b59c997b9aba197f04dbd
2020-04-17 16:17:50 +00:00
paulhu
1f66261a3c [TNU06] Add roaming notification
Warn user of potential data charges if the backhaul is
cellular and user is roaming.

Bug: 145629001
Test: atest TetheringTests
Change-Id: I74b4f87c2f6aad09e05d3f2a779f880396885953
2020-04-17 21:25:54 +08:00
Paul Hu
fa5d45614b [automerger skipped] Merge "[TNU05.1] Address aosp/1237036 leftover comments" into rvc-dev am: 5da521b457 -s ours
am skip reason: Change-Id Ife738339aeae00d2063fea6918b50204daef24fc with SHA-1 1317e27e91 is in history

Change-Id: I3e83abed81dbb6ee37e4f0545462f2365d162778
2020-04-17 01:15:49 +00:00
Paul Hu
5e9c40c012 [TNU05.1] Address aosp/1237036 leftover comments
Bug: 147818698
Test: atest TetheringTests
Change-Id: Ife738339aeae00d2063fea6918b50204daef24fc
Merged-In: Ife738339aeae00d2063fea6918b50204daef24fc
(cherry picked from commit c638ae6436509df092ab8814bb5b64591878229d, aosp/1287133)
2020-04-16 16:51:00 +00:00
Mark Chien
8fb063eab4 [automerger skipped] Merge "Remove sendMessage inside EntitlementManager" into rvc-dev am: f9a1c42408 -s ours
am skip reason: Change-Id I0a376d28b123eaab2e8d00a98a4719ce983d3bb2 with SHA-1 a1a0be93f0 is in history

Change-Id: I18801202ca02270291d3e04cef2622bddc5a6bcc
2020-04-16 10:25:36 +00:00
Mark Chien
f9a1c42408 Merge "Remove sendMessage inside EntitlementManager" into rvc-dev 2020-04-16 09:57:22 +00:00
Paul Hu
eef15b96ac Merge "[TNU05.1] Address aosp/1237036 leftover comments" am: 14fb7f6fac am: a91e5e5da6
Change-Id: I56a0ce98beed6797486e26a5148ee3685a3ae0ef
2020-04-16 09:04:57 +00:00
Paul Hu
a91e5e5da6 Merge "[TNU05.1] Address aosp/1237036 leftover comments" am: 14fb7f6fac
Change-Id: I9276b698b97d317ba465ab162d191c05841593e0
2020-04-16 08:39:20 +00:00
Paul Hu
472ed1f496 [automerger skipped] Merge "[TNU05] Add no upstream notification" into rvc-dev am: b06fc85269 -s ours
am skip reason: Change-Id Ic6557f9f7703337596100cd6a477fd7239217166 with SHA-1 648fc2c8ea is in history

Change-Id: I737875975042fd9e3a28aa0275707be6d1425751
2020-04-16 08:36:25 +00:00
Paul Hu
14fb7f6fac Merge "[TNU05.1] Address aosp/1237036 leftover comments" 2020-04-16 08:25:24 +00:00
Mark Chien
30c0da71b0 Remove sendMessage inside EntitlementManager
EntitlementManager and its callers(Tethering and UpstreamNetworkMonitor)
run in the same threads.

Bug: 141256482
Test: atest TetheringTests
Merged-In: I0a376d28b123eaab2e8d00a98a4719ce983d3bb2
Change-Id: I0a376d28b123eaab2e8d00a98a4719ce983d3bb2
2020-04-16 08:08:04 +00:00
Paul Hu
43902ad1d8 [automerger skipped] Merge "Add TetheringCoverageTests" am: baf4513d45 am: d7269fc22b -s ours
am skip reason: Change-Id I1f2a50f16894b05e988476520ba25baba0b60d88 with SHA-1 d1ebb1e348 is in history

Change-Id: If929d2f89253a13370f5c99295d59811bb2f4038
2020-04-16 06:47:19 +00:00
Paul Hu
af6a2a33f5 [TNU05] Add no upstream notification
Reminder user of unavailable tethering status if there is no
internet access.

Bug: 147818698
Test: atest TetheringTests
Change-Id: Ic6557f9f7703337596100cd6a477fd7239217166
Merged-In: Ic6557f9f7703337596100cd6a477fd7239217166
(cherry picked from commit ac1b098acc504b60e85b3dcd22941f4e293865ae, aosp/1237036)
2020-04-16 06:43:19 +00:00
paulhu
1317e27e91 [TNU05.1] Address aosp/1237036 leftover comments
Bug: 147818698
Test: atest TetheringTests
Change-Id: Ife738339aeae00d2063fea6918b50204daef24fc
2020-04-16 14:39:12 +08:00
Paul Hu
d7269fc22b Merge "Add TetheringCoverageTests" am: baf4513d45
Change-Id: I5683724edc60b5c3de326f75488f3eb738aaef47
2020-04-16 06:27:43 +00:00
Paul Hu
baf4513d45 Merge "Add TetheringCoverageTests" 2020-04-16 06:00:07 +00:00
Mark Chien
59b47f9fca [automerger skipped] Merge "Do not stop IpServer when recieve wifi ap disabling state." into rvc-dev am: b28fd19f26 -s ours
am skip reason: Change-Id I8b65f621abe20799a3a0d410ba1f06368746ee49 with SHA-1 bdf1003c3b is in history

Change-Id: I509ef90e3be236b7a3fcc35242d79e3d5cf7093d
2020-04-16 03:26:36 +00:00
Mark Chien
d8a80a418d Merge "Remove sendMessage inside EntitlementManager" am: b4624df935 am: 2acc78a6a9
Change-Id: Ia582129af14366051e81f3d5b77cb018f453a2ee
2020-04-16 02:47:22 +00:00
Mark Chien
2acc78a6a9 Merge "Remove sendMessage inside EntitlementManager" am: b4624df935
Change-Id: Idf6401f994aa6f1dee01420eec8c951bc3893863
2020-04-16 02:24:18 +00:00
Mark Chien
8c98b3d35e Do not stop IpServer when recieve wifi ap disabling state.
This is used to fix the race when quickly OFF/ON wifi tethering.
When IpServer is started/stopped, there is callback update tethering
interface status. Before this change, IpServer is stopped when wifi
ap is disabling. Then the next startTethering may fail in wifi because
wifi is in disabling state.
Error pattern: WifiService: Tethering is already active.
No unitest for this CL but it fixed the CtsTetheringTest flakty rate
than around 30% to 0 for more than 100 runs.

Bug: 153925821
Test: atest CtsTetheringTest --iteration 100
Merged-In: I8b65f621abe20799a3a0d410ba1f06368746ee49
Change-Id: I8b65f621abe20799a3a0d410ba1f06368746ee49
2020-04-16 02:09:48 +00:00
Mark Chien
b4624df935 Merge "Remove sendMessage inside EntitlementManager" 2020-04-16 02:07:55 +00:00
Paul Hu
7c789f41eb Merge "[TNU05] Add no upstream notification" am: b353c7eac3 am: 7cda806393
Change-Id: Ib65eeed784189e669cc5c22537671deb8d35a9e5
2020-04-16 01:59:03 +00:00
Paul Hu
7cda806393 Merge "[TNU05] Add no upstream notification" am: b353c7eac3
Change-Id: Id93a2eef90804bcbd35398f9633600fc858be2b1
2020-04-16 01:47:34 +00:00
Paul Hu
b353c7eac3 Merge "[TNU05] Add no upstream notification" 2020-04-16 01:31:06 +00:00
Amit Mahajan
ee27d55295 DO NOT MERGE Remove references of telephony-stubs.
Since it's not used for now.

Test: TH
Bug: 153304048
Merged-in: I1812818c3d49463c3840a98212bbab58a110359a
Change-Id: I1812818c3d49463c3840a98212bbab58a110359a
2020-04-15 17:55:52 -07:00