Commit graph android_packages_modules_Co.../Tethering/src
Message SHA1
Merge "Test tethering log dump" am: 0e3371469e am: 3369043fca
Change-Id: I20e8808afefaf0d5964871db976e288191a75ad7

Mark Chien   authored and   Automerger Merge Worker   commited 2020-05-07 03:49:42 +00:00
80aa028b9c
Test tethering log dump
Bug: 145490751
Test: atest TetheringTests
Change-Id: I01fc6969041711f7a15880144ee5eac591086ecd

markchien   commited 2020-05-06 17:00:37 +08:00
146f6055bd
Merge "[SP18.6] Make offload controller poll interval configurable" am: 10c8c21777 am: 6848610485
Change-Id: Iab4a5f883a8357c23375633c16059b38d74b9e9b

Junyu Lai   authored and   Automerger Merge Worker   commited 2020-05-05 10:45:38 +00:00
941fc9ecab
Merge changes from topic "sp18-TestableNetworkStatsProviderCbBinder" am: 80ab95927b am: c44a1ba581
Change-Id: Iceb250d8ba0d31a39538dd59e687ea2d80f4aaba

Junyu Lai   authored and   Automerger Merge Worker   commited 2020-05-05 03:50:52 +00:00
f8cd65936d
[SP18.6] Make offload controller poll interval configurable
Test: atest TetheringTests
Bug: 149467454

Change-Id: I0b07a0b520dedb479bf863fbfe898ae85b84b0f3

junyulai   commited 2020-05-05 11:45:36 +08:00
5475504266
[SP18.5] Create offload controller poll interval to resource
Test: atest TetheringConfigurationTest
Bug: 149467454
Change-Id: I8b4ad920a4945504914d3741a9fba5c096fbf452

junyulai   commited 2020-05-04 14:56:37 +08:00
9606a22037
[SP18.4] Add unit test for polling network stats in OffloadController
Test: atest OffloadControllerTest
Bug: 149467454
Change-Id: I9b9c9c096a2366aaf383d5c2d567db6682f02dad

junyulai   commited 2020-05-04 14:56:37 +08:00
9c50628e95
Merge "[SP18.1] add dependency object to OffloadController" am: c75f373448 am: 30af8e6201
Change-Id: Ic1586dee9e62a3a1484feec91cc66883a12bb90b

Treehugger Robot   authored and   Automerger Merge Worker   commited 2020-04-29 12:45:13 +00:00
912b722290
Merge "[SP18.1] add dependency object to OffloadController"
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-04-29 12:08:22 +00:00
c75f373448
Merge "[SP18] Poll network stats in OffloadController to support data warning" am: d25d88199f am: 73cfbe504e
Change-Id: Ifcdeaaba790ddf9adecd3afb06911c63f1a17ac1

Junyu Lai   authored and   Automerger Merge Worker   commited 2020-04-29 11:40:26 +00:00
a10b3a3a89
Merge "[SP18] Poll network stats in OffloadController to support data warning"
Junyu Lai   authored and   Gerrit Code Review   commited 2020-04-29 11:01:56 +00:00
d25d88199f
[SP18.1] add dependency object to OffloadController
In order to mock constant in unit test, a dependency object is
introduced with minimum code change to achieve this.

Test: atest TetheringTests
Bug: 149467454
Change-Id: I38628daddcb7be7c74846e78d36dc88f065b97d9

junyulai   commited 2020-04-28 18:27:57 +08:00
360c88f238
[SP18] Poll network stats in OffloadController to support data warning
The OEM implemented tether offload does not support
data warning since the HAL only tells the hardware about data limit
but not warning. However, to add such interface in HAL needs OEM to
comply and implement in hardware.

Thus, as a short-term solution, polls network statistics from HAL
and notify upper layer when it reaches the alert quota set by
NetworkStatsService.

Note that when CPU is sleeping, the data warning of tethering offload
will not work since the polling is also suspended.

Test: manual
Test: atest OffloadControllerTest
Bug: 149467454
Change-Id: I2467b64779b74cd5fec73b42fb303584f52cb1cb

junyulai   commited 2020-04-28 18:27:57 +08:00
607fa9efea
Merge "Remove Preconditions usage to stop dependecy with non-updatble class" am: 821089e106 am: cdee1cfe24
Change-Id: I856a936b295426bb2ba219eb4e510f6a2a3ac12b

Mark Chien   authored and   Automerger Merge Worker   commited 2020-04-27 11:17:28 +00:00
db6cf82c14
Merge "Remove Preconditions usage to stop dependecy with non-updatble class"
Mark Chien   authored and   Gerrit Code Review   commited 2020-04-27 10:54:19 +00:00
821089e106
Merge "Unbreak tethering for no offload supported devices" am: cb22e06783 am: 98c0b261f8
Change-Id: I857cf7c9542f2c0f595c3afdbd4db032c0a96392

Mark Chien   authored and   Automerger Merge Worker   commited 2020-04-27 09:12:37 +00:00
a35751fb3e
Merge "Unbreak tethering for no offload supported devices"
Mark Chien   authored and   Gerrit Code Review   commited 2020-04-27 08:42:36 +00:00
cb22e06783
Unbreak tethering for no offload supported devices
Catch NoSuchElementException to unbreak no offload devices.

To consistent with fetching offload config service, retry fetcheing
offload control service.
b/152430668#comment4 assert that the fetch will be retried only
if the service is installed on the device.

Bug: 155026033
Test: run TetheringCoverageTests in virtual devices(do not support
offload)

Change-Id: Ie0a32a9062c722327a27c6de13e3bb8d9588bebb

markchien   commited 2020-04-27 14:47:56 +08:00
6b3afbe447
Merge "Address comments on NetworkStack AIDL v6" am: 9b687b94a4 am: fb8a431cc5
Change-Id: Id385210ccd8d08bc2d15e964bbca25c452a3cde8

Remi NGUYEN VAN   authored and   Automerger Merge Worker   commited 2020-04-24 12:19:37 +00:00
6be926b580
Merge "Address comments on NetworkStack AIDL v6"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2020-04-24 11:56:32 +00:00
9b687b94a4
Address comments on NetworkStack AIDL v6
Address issues found during AIDL review:
 - Rename clientAddr to singleClientAddr
 - Do not use a ParcelableBundle for notifyNetworkTested or
   notifyDataStallSuspected; instead use AIDL parcelables for stronger
   backwards compatibility guarantees.

Test: atest NetworkMonitorTest ConnectivityServiceTest
      ConnectivityServiceIntegrationTest, manual
Bug: 153500847
Change-Id: Id9b71784e5f6294d203230e57737979e063ff0f8

Remi NGUYEN VAN   commited 2020-04-24 18:52:02 +09:00
aba3d2ebeb
Remove Preconditions usage to stop dependecy with non-updatble class
Stop depending on Preconditions that is not released on the same cadence
as the module, and is maintained as part of the framework.

Bug: 148636687
Test: atest TetheringTests NetworkStackNextTests

Change-Id: Id0dcec44f362f79bc8c046d722635687a7388aa2

markchien   commited 2020-04-24 00:47:56 +08:00
b9c19778f4
Merge "[TNU09] Adjust restricted notification" am: 3db6cae8d4 am: 19575361f2
Change-Id: I4488ed76a4c9859d6d947953d132e63c0366810e

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-23 08:28:53 +00:00
be2d888a81
Merge "[TNU09] Adjust restricted notification"
Paul Hu   authored and   Gerrit Code Review   commited 2020-04-23 07:50:34 +00:00
3db6cae8d4
[TNU09] Adjust restricted notification
1. Let restricted notification that can be dismissed.
2. Only put up restricted notification when any of tethering is
   activating.

Bug: 154214549
Test: atest TetheringTests
Change-Id: Ib980aca154036828abdab35e3bb11d42f85ff610

paulhu   commited 2020-04-23 00:17:28 +08:00
03142a0568
Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls" am: 83ba9531d7 am: 319db1af8b
Change-Id: I099944752fc3006c1e98750dd46dbebf5e50789f

Philip P. Moltmann   authored and   Automerger Merge Worker   commited 2020-04-22 15:19:14 +00:00
8d5c1d7efb
Merge "Set attributionTag for noteOp(WRITE_SETTINGS) calls"
Philip P. Moltmann   authored and   Gerrit Code Review   commited 2020-04-22 14:58:13 +00:00
83ba9531d7
Merge "[TNU08] Remove the "tethering is on" notification" am: 3680357420 am: 6296583f61
Change-Id: Ie49b39eaf0170ecb74043dfba2cdc5b115a1477d

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-22 06:05:12 +00:00
2026b5addb
Merge "[TNU08] Remove the "tethering is on" notification"
Paul Hu   authored and   Gerrit Code Review   commited 2020-04-22 05:37:17 +00:00
3680357420
Merge "Retry the call that fetches the tethering offload HAL." am: 70ad9d4161 am: 9a3b6faf37
Change-Id: I4e26a29bcddd04c3f7c93e754637f935746c30ff

Treehugger Robot   authored and   Automerger Merge Worker   commited 2020-04-21 15:16:43 +00:00
a533866d24
Merge "Retry the call that fetches the tethering offload HAL."
Treehugger Robot   authored and   Gerrit Code Review   commited 2020-04-21 14:45:39 +00:00
70ad9d4161
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

Lorenzo Colitti   commited 2020-04-21 22:22:54 +09:00
06e440101b
Set attributionTag for noteOp(WRITE_SETTINGS) calls
Test: atest FrameworksNetTests TetheringTests:TetheringServiceTest
Bug: 136595429
Merged-In: I33f787644c44d7b0e5ce17a433820cfcd985cdfb
Change-Id: Ic3d937e7bb5141798234ed5b2852c1f768e97495

Philip P. Moltmann   commited 2020-04-20 18:00:03 -07:00
64343b0b8d
[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

paulhu   commited 2020-04-20 16:10:08 +08:00
57f26333a8
Merge "[TNU06] Add roaming notification" am: 565160c302 am: 8f365b0b13
Change-Id: Ia02ca67be0a103e980be6a4c7a0ed66836716d51

Chalard Jean   authored and   Automerger Merge Worker   commited 2020-04-17 16:28:53 +00:00
bc380e0215
[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

paulhu   commited 2020-04-17 21:25:54 +08:00
1f66261a3c
Merge "[TNU05.1] Address aosp/1237036 leftover comments" am: 14fb7f6fac am: a91e5e5da6
Change-Id: I56a0ce98beed6797486e26a5148ee3685a3ae0ef

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-16 09:04:57 +00:00
eef15b96ac
Merge "[TNU05.1] Address aosp/1237036 leftover comments"
Paul Hu   authored and   Gerrit Code Review   commited 2020-04-16 08:25:24 +00:00
14fb7f6fac
[TNU05.1] Address aosp/1237036 leftover comments
Bug: 147818698
Test: atest TetheringTests
Change-Id: Ife738339aeae00d2063fea6918b50204daef24fc

paulhu   commited 2020-04-16 14:39:12 +08:00
1317e27e91
Merge "Remove sendMessage inside EntitlementManager" am: b4624df935 am: 2acc78a6a9
Change-Id: Ia582129af14366051e81f3d5b77cb018f453a2ee

Mark Chien   authored and   Automerger Merge Worker   commited 2020-04-16 02:47:22 +00:00
d8a80a418d
Merge "Remove sendMessage inside EntitlementManager"
Mark Chien   authored and   Gerrit Code Review   commited 2020-04-16 02:07:55 +00:00
b4624df935
Merge "[TNU05] Add no upstream notification" am: b353c7eac3 am: 7cda806393
Change-Id: Ib65eeed784189e669cc5c22537671deb8d35a9e5

Paul Hu   authored and   Automerger Merge Worker   commited 2020-04-16 01:59:03 +00:00
7c789f41eb
Merge "[TNU05] Add no upstream notification"
Paul Hu   authored and   Gerrit Code Review   commited 2020-04-16 01:31:06 +00:00
b353c7eac3
Merge "Do not stop IpServer when recieve wifi ap disabling state." am: 197e35198d am: 7018843a2e
Change-Id: Ia0e60d2e72e2fe94ea14e30cb80a4c24e9b7b75c

Mark Chien   authored and   Automerger Merge Worker   commited 2020-04-15 17:28:27 +00:00
b90f7a5c5c
Remove sendMessage inside EntitlementManager
EntitlementManager and its callers(Tethering and UpstreamNetworkMonitor)
run in the same threads.

Bug: 141256482
Test: atest TetheringTests
Change-Id: I0a376d28b123eaab2e8d00a98a4719ce983d3bb2

markchien   authored and   Mark Chien   commited 2020-04-15 02:29:21 +00:00
a1a0be93f0
[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

paulhu   commited 2020-04-15 01:25:37 +08:00
648fc2c8ea
Change tethering file structure to respect its package name
Bug: 145099347
Test: atest TetheringTests
      atest CtsTetheringTest
Change-Id: I544ab9480bbaa5e18e030d21a28ab4c4a7265795

markchien   authored and   Mark Chien   commited 2020-04-14 12:25:03 +00:00
1acfb0125c
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
Change-Id: I8b65f621abe20799a3a0d410ba1f06368746ee49

markchien   authored and   Mark Chien   commited 2020-04-14 10:42:32 +00:00
bdf1003c3b
Merge "Don't crash when receiving an RTM_DELNEIGH or NUD_FAILED." am: 941a53ce91 am: 81dd21611d
Change-Id: Ie7060e6408acd73f1a5d2456d030a1958df32847

Lorenzo Colitti   authored and   Automerger Merge Worker   commited 2020-04-14 09:21:19 +00:00
dd43e05b6e
Merge "Don't crash when receiving an RTM_DELNEIGH or NUD_FAILED."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2020-04-14 08:22:30 +00:00
941a53ce91