Commit Graph

1530 Commits

Author SHA1 Message Date
Mark Chien
09adc8056f [automerger skipped] Merge "Retry the call that fetches the tethering offload HAL." into rvc-dev am: 1794d0559d -s ours am: d4853ebf81 -s ours
am skip reason: Change-Id I093f127d90b2aa1b13eb0748378a24726d419472 with SHA-1 83a814eb31 is in history

Change-Id: I9956e293db4978f09cdedd6998b0fe6013230c7a
2020-04-22 08:43:23 +00:00
Mark Chien
2091af4fe9 [automerger skipped] Merge "Retry the call that fetches the tethering offload HAL." into rvc-dev am: 1794d0559d am: ef5c55fa7a -s ours
am skip reason: Change-Id I093f127d90b2aa1b13eb0748378a24726d419472 with SHA-1 06e440101b is in history

Change-Id: I5356a92165bfc22d2fcf781e2d63ebfdc47ced71
2020-04-22 08:43:05 +00:00
Paul Hu
18b8719621 Merge "[TNU07] Remove unused resources" into rvc-dev am: a7c5d5707a
Change-Id: Ie8ee09bfcef93de9d834f5d81928bb1408398791
2020-04-22 08:34:41 +00:00
Paul Hu
81919d9bb8 [automerger skipped] Merge "[TNU07] Remove unused resources" into rvc-dev am: a7c5d5707a -s ours
am skip reason: Change-Id Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60 with SHA-1 01a9451cb4 is in history

Change-Id: Ie6bd7be2ff4b2b3885e51d2cb2fa060c8e5fb08e
2020-04-22 08:33:46 +00:00
paulhu
8981563137 Add TetheredClient tests
Test APIs below:
getAddresses()
getMacAddress()
getTetheringType()
AddressInfo.getAddress()
AddressInfo.getHostname()
AddressInfo.writeToParcel(android.os.Parcel, int)

Bug: 153614365
Bug: 153613717
Test: atest TetheringTests
Change-Id: Ic7cbebe54a38af5b5c4639eb7641a20de6864a26
2020-04-22 16:32:58 +08:00
Mark Chien
d4853ebf81 [automerger skipped] Merge "Retry the call that fetches the tethering offload HAL." into rvc-dev am: 1794d0559d -s ours
am skip reason: Change-Id I093f127d90b2aa1b13eb0748378a24726d419472 with SHA-1 06e440101b is in history

Change-Id: I8d1e2822473aca0876b098287bc9a0c3746080d5
2020-04-22 08:32:54 +00:00
Mark Chien
ef5c55fa7a Merge "Retry the call that fetches the tethering offload HAL." into rvc-dev am: 1794d0559d
Change-Id: I6f290f13edb540aeda3a9a1f3395234a50ac78b3
2020-04-22 08:32:41 +00:00
Paul Hu
a7c5d5707a Merge "[TNU07] Remove unused resources" into rvc-dev 2020-04-22 08:31:41 +00:00
paulhu
7e514020b5 Add TetheringCommonTests
Bug: 153614365
Bug: 153613717
Test: atest TetheringTests TetheringCoverageTests
Change-Id: If7c933ec0c72943312cd37bfc66918f10a5504a9
2020-04-22 16:15:33 +08:00
Paul Hu
127ee5920f [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
Merged-In: Ife3915837b6b7b83d3eaaa84b71b6409ff37b71c
(cherry picked from commit 0171c07d05dd2625c6dcfd47977a701ddc2d5d36, aosp/1289107)
2020-04-22 07:00:16 +00:00
Treehugger Robot
83a814eb31 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
Merged-In: I093f127d90b2aa1b13eb0748378a24726d419472
Change-Id: I093f127d90b2aa1b13eb0748378a24726d419472
2020-04-22 06:59:12 +00:00
Paul Hu
ef34159909 [TNU07] Remove unused resources
Some strings are not used, so just remove them.

Bug: 154445061
Test: atest TetheringTests
Change-Id: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
Merged-In: Ie67f7f4d0863d58c4c5206e445c1dbdfe3f65f60
(cherry picked from commit 59eeedc045aaaa0c7d5b97277d25f64cce254464, aosp/1289100)
2020-04-22 06:58:17 +00:00
Paul Hu
15cb89d750 Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420 am: 6296583f61 am: 2026b5addb am: 9f7b74cf09
Change-Id: Ib2ebc34630d3e5fef01d7c35a13030ea40f266cc
2020-04-22 06:23:36 +00:00
Paul Hu
9f7b74cf09 Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420 am: 6296583f61 am: 2026b5addb
Change-Id: I5e6b648396b3d130388cbd9d46d3ff7674c2a533
2020-04-22 06:05:27 +00:00
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
b4640d6f18 Merge "[TNU07] Remove unused resources" am: 967bced940 am: 9591b7f9b6 am: eca31b587a am: 55c87aca35
Change-Id: I13104b4235932f231687a5725e50d359507cd49e
2020-04-22 03:46:06 +00:00
Paul Hu
55c87aca35 Merge "[TNU07] Remove unused resources" am: 967bced940 am: 9591b7f9b6 am: eca31b587a
Change-Id: Id1f39d4ebf656415d4ab6ca0c4b8f85bbea54ca4
2020-04-22 03:26:41 +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
76c474fb35 [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 8aff1adbe0 -s ours am: b253520351 -s ours am: 7ca45dcc82 -s ours am: d4da8c017a -s ours
am skip reason: subject contains skip directive

Change-Id: I77dd694bc6832401b388f2d2e1f4dc6e3eb2e416
2020-04-21 20:02:31 +00:00
Bill Yi
d4da8c017a [automerger skipped] Merge "Import translations. DO NOT MERGE" am: 8aff1adbe0 -s ours am: b253520351 -s ours am: 7ca45dcc82 -s ours
am skip reason: subject contains skip directive

Change-Id: I81d14c277f0cc378875a0dcaeb326d3704cf49a1
2020-04-21 19:48:22 +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
0010cf3df6 Merge "Retry the call that fetches the tethering offload HAL." am: 70ad9d4161 am: 9a3b6faf37 am: a533866d24 am: 16148b2b2c
Change-Id: Id002866c428b7b88742c5e8bd501594108de86e3
2020-04-21 15:53:48 +00:00
Treehugger Robot
16148b2b2c Merge "Retry the call that fetches the tethering offload HAL." am: 70ad9d4161 am: 9a3b6faf37 am: a533866d24
Change-Id: Ic6cf3e1cbc77eb4afe7d2b9a7238bd2b8c6eb379
2020-04-21 15:38:42 +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
b1c690b60b Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7 am: 960eb03b46 am: b38ffab19b am: 2dbfa9052b
Change-Id: I8a6d3c61a65e4297d2bc89610b02ec5f11c3e304
2020-04-21 10:50:33 +00:00
TreeHugger Robot
304ba520dd [automerger skipped] Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev am: 3baf9409d5 -s ours am: 846de3551c -s ours am: 53dc67ee8c -s ours am: 0533ccbb35 -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 0f0e3a99f1 is in history

Change-Id: Iaeaeb34b75e2c519488cb730f6d3353cd1c9f058
2020-04-21 10:45:11 +00:00
Amit Mahajan
905298b80c [automerger skipped] DO NOT MERGE Remove references of telephony-stubs. am: 0f0e3a99f1 am: 94f4579986 am: 37cc05c9d7 -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 0f0e3a99f1 is in history

Change-Id: I0848ea4f2db62db19c5d9bdf0d3aa91f27829ec3
2020-04-21 10:43:02 +00:00
Jiyong Park
d5d0d42e02 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7 am: 960eb03b46 am: a6bad97cd0
Change-Id: I2df9f5316c7b1dfdad9cdfeb1f293f812b9d2c03
2020-04-21 10:24:12 +00:00
Jiyong Park
2dbfa9052b Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7 am: 960eb03b46 am: b38ffab19b
Change-Id: I3a68ec2d9b0d335873016a679424c9bc163945fa
2020-04-21 10:22:54 +00:00
TreeHugger Robot
508fb96b46 [automerger skipped] Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev am: 3baf9409d5 -s ours am: 846de3551c -s ours am: bfdfab7595 -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 0f0e3a99f1 is in history

Change-Id: I687d7e2a24fe0a5ff0bfe9295b1fd52ffe575782
2020-04-21 10:19:40 +00:00
Amit Mahajan
8740a7c54d [automerger skipped] DO NOT MERGE Remove references of telephony-stubs. am: 0f0e3a99f1 -s ours am: 24cb80c64d -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 ee27d55295 is in history

Change-Id: Iaffd5aafbf541dce72111b7084c0a40be943f6e6
2020-04-21 10:19:07 +00:00
TreeHugger Robot
0533ccbb35 [automerger skipped] Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev am: 3baf9409d5 -s ours am: 846de3551c -s ours am: 53dc67ee8c -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 0f0e3a99f1 is in history

Change-Id: I3852ea09664107b6d60bd1a20a60ddc34cb52c77
2020-04-21 10:17:42 +00:00
Amit Mahajan
37cc05c9d7 DO NOT MERGE Remove references of telephony-stubs. am: 0f0e3a99f1 am: 94f4579986
Change-Id: Ifb826d7e9d656606e14e74c80f0a3fb6687da7b7
2020-04-21 10:17:25 +00:00
Jiyong Park
a6bad97cd0 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7 am: 960eb03b46
Change-Id: I6e7be2aa7749b16ce2f7f9a0a18ba912afc254d6
2020-04-21 10:17:12 +00:00
Jiyong Park
960eb03b46 Merge "Mark some aidl_interface modules as unstable" into rvc-dev am: fc7d16b3c7
Change-Id: I1693261f829fe4b40dbe2d0e11b7e88916582476
2020-04-21 10:11:46 +00:00
TreeHugger Robot
bfdfab7595 [automerger skipped] Merge "DO NOT MERGE Remove references of telephony-stubs." into rvc-dev am: 3baf9409d5 -s ours am: 846de3551c -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 0f0e3a99f1 is in history

Change-Id: Ia505e4b363bf0135c0ceeb04a412ca006cf087a9
2020-04-21 10:01:56 +00:00
Amit Mahajan
24cb80c64d [automerger skipped] DO NOT MERGE Remove references of telephony-stubs. am: 0f0e3a99f1 -s ours
am skip reason: Change-Id I1812818c3d49463c3840a98212bbab58a110359a with SHA-1 ee27d55295 is in history

Change-Id: I0734280b867eff50722ce77e02a6dacd55fbb098
2020-04-21 10:01:28 +00:00
TreeHugger Robot
846de3551c [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 0f0e3a99f1 is in history

Change-Id: I0fe8def6b2a53241381001e4d1c17a573ed9c8e7
2020-04-21 09:57:23 +00:00
markchien
90b45356d6 Include NetworkStaticLibTestsLib into tethering coverage test
Bug: 148636687
Test: atest NetworkStaticLibTests
Test: atest TetheringCoverageTests
Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
2020-04-21 09:50:28 +00:00
Philip P. Moltmann
64343b0b8d Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests TetheringTests:TetheringServiceTest
Bug: 136595429
Merged-In: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Change-Id: Ic3d937e7bb5141798234ed5b2852c1f768e97495
2020-04-20 18:00:03 -07:00
Amit Mahajan
0f0e3a99f1 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-20 16:48:33 +00:00