- May 13, 2020
-
-
Jooyung Han authored
Modules contributing mainline modules (APK/APEX) should set min_sdk_version as well as apex_available. For now setting min_sdk_version doesn't change build outputs. But build-time checks will be added soon. Bug: 145796956 Bug: 150999716 Test: m Merged-In: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044 Change-Id: Ifaecb49a47a1f43edea3ea06e1cf704a177d1044 (cherry picked from commit 33aa294e96f13906f596e427b96652fe80cf199b)
-
- May 08, 2020
-
-
markchien authored
To exempt from entitlement check, caller need to hold TETHER_PRIVILEGED permission. Bug: 141256482 Test: atest TetheringTests Change-Id: I2eb37f5e92f5f5150a7fb7c25b945e28704d27a0 Merged-In: I2eb37f5e92f5f5150a7fb7c25b945e28704d27a0
-
Mark Chien authored
Bug: 141256482 Test: atest TetheringTests Merged-In: I0cf337625cee31a47879c59e9b18657ea7624eb4 Change-Id: I0cf337625cee31a47879c59e9b18657ea7624eb4
-
Mark Chien authored
-
- May 07, 2020
-
-
Mark Chien authored
-
Mark Chien authored
1. Change ArraySet usage to BitSet 2. Change mCellularUpstreamPermitted to mLastCellularUpstreamPermitted. Before this change: a member variable(mCellularUpstreamPermitted) is used to check whether cellular upstream is permitted, the code must ensure to update this variable once entitlement result is changed or the entitlement check is triggered but does not have a result yet. In this change: Instead of storing the information about whether cellular is permitted in a member variable. The information is recalculated every time when user call isCellularUpstreamPermitted(). Now isCellularUpstreamPermitted() is always be used to check whether cellular upstream is permitted no matter inside or outside EntitlementManager. This make the code be easier to maintain that we do not need to care when mCellularUpstreamPermitted need to be updated because the information would be recalculated every time. And the recalculation is lock free because this is only used inside tethering while running in the same thread. Bug: 141256482 Test: atest TetheringTests Merged-In: Ic83f42ff4eec38adf039d55d80fcb9b0f16373cc Change-Id: Ic83f42ff4eec38adf039d55d80fcb9b0f16373cc
-
Jeongik Cha authored
Test: m nothing Bug: 133526962 Original-Change: https://android-review.googlesource.com/1301313 Merged-In: I507f40866d04db5ed3361831e01eaa4dfaf20bed Change-Id: I507f40866d04db5ed3361831e01eaa4dfaf20bed
-
Mark Chien authored
Bug: 145490751 Test: atest TetheringTests Merged-In: I01fc6969041711f7a15880144ee5eac591086ecd Change-Id: I01fc6969041711f7a15880144ee5eac591086ecd
-
markchien authored
Bug: 155604224 Test: build Change-Id: I4147173b5f3668491ff9cb7f1f86715b036d6d4b
-
- May 06, 2020
-
-
Anton Hansson authored
-
- May 05, 2020
-
-
Anton Hansson authored
This adds checking of module api compatibility to the individual module api rules. Until now, this checking has been done via the monolithic metalava runs which we are aiming to get rid of. Now is a good time to do this because we can compare them to the just finalized version 30 API, which we have no diffs with. Baseline the existing wifi failures that metalava fails to find in the previous API. Bug: 144149403 Test: m checkapi Change-Id: Id222895daa3a769c265965b052a17d5a1ca18462
-
Junyu Lai authored
Test: atest TetheringTests Bug: 149467454 Change-Id: I0b07a0b520dedb479bf863fbfe898ae85b84b0f3 Merged-In: I0b07a0b520dedb479bf863fbfe898ae85b84b0f3 (cherry picked from commit 8371fa281839d5b1a1027936f2f83e59bf5301a3)
-
junyulai authored
Test: atest TetheringConfigurationTest Bug: 149467454 Change-Id: I8b4ad920a4945504914d3741a9fba5c096fbf452 Merged-In: I8b4ad920a4945504914d3741a9fba5c096fbf452 (cherry-picked from aosp/1299413)
-
junyulai authored
Test: atest OffloadControllerTest Bug: 149467454 Change-Id: I9b9c9c096a2366aaf383d5c2d567db6682f02dad Merged-In: I9b9c9c096a2366aaf383d5c2d567db6682f02dad (cherry-picked from aosp/1295347)
-
junyulai authored
This is a no-op refactoring to adapt new test provider callback. Also this patch adapts TestLooper to allow better control on delay messages that will be verified in subsequent tests. Test: atest OffloadControllerTest Bug: 149467454 Change-Id: Icfd6ff289d6689ae2d5753d3fe472516c808dc7a Merged-In: Icfd6ff289d6689ae2d5753d3fe472516c808dc7a (cherry-picked from aosp/1295346)
-
- May 02, 2020
-
-
Bill Yi authored
-
- May 01, 2020
-
-
Bill Yi authored
Auto-generated-cl: translation import Change-Id: Ib973f0e381ec0c90f5983a266341444cf919bbea
-
- Apr 30, 2020
-
-
Anton Hansson authored
This makes the filenames of the disted artifacts (api txts and stubs) match the module name of the modules they're from. This matches the naming scheme used by java_sdk_library, which should make the future transition to this build rule easier. Bug: 149293194 Test: lunch sdk_phone_armv7 && m sdk dist && find out/dist/apistubs Change-Id: I076f30931bf2524d57703873cd7de25b3f23b457
-
Anton Hansson authored
It was using the systemapi stub defaults, but should be using the module_lib default. Bug: 144149403 Test: m Change-Id: Iaab154d9d71900284d92d518a086fc1227c00d5c
-
Junyu Lai authored
* changes: [SP18.1] add dependency object to OffloadController [SP18] Poll network stats in OffloadController to support data warning
-
Treehugger Robot authored
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 Merged-In: I38628daddcb7be7c74846e78d36dc88f065b97d9 (cherry picked from commit 29aee20b)
-
Junyu Lai authored
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 Merged-In: I2467b64779b74cd5fec73b42fb303584f52cb1cb (cherry picked from commit 93660e38)
-
- Apr 28, 2020
-
-
Remi NGUYEN VAN authored
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 Merged-In: Id9b71784e5f6294d203230e57737979e063ff0f8 Change-Id: Id9b71784e5f6294d203230e57737979e063ff0f8
-
Mark Chien authored
-
- Apr 27, 2020
-
-
TreeHugger Robot authored
-
Mark Chien authored
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 Merged-In: Id0dcec44f362f79bc8c046d722635687a7388aa2 Change-Id: Id0dcec44f362f79bc8c046d722635687a7388aa2
-
Mark Chien authored
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) Merged-In: Ie0a32a9062c722327a27c6de13e3bb8d9588bebb Change-Id: Ie0a32a9062c722327a27c6de13e3bb8d9588bebb
-
Bill Yi authored
Auto-generated-cl: translation import Change-Id: I08496ebb9bad7c95a6e9df43ef57c55a9956c9d8
-
- Apr 23, 2020
-
-
Paul Hu authored
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 Merged-In: Ib980aca154036828abdab35e3bb11d42f85ff610 (cherry picked from commit 2eb66bdb, aosp/1290334)
-
Paul Hu authored
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 Merged-In: Ic7cbebe54a38af5b5c4639eb7641a20de6864a26 (cherry picked from commit fa882fdb, aosp/1292438)
-
Paul Hu authored
-
- Apr 22, 2020
-
-
Bill Yi authored
Change-Id: I4b3a8cf8d738bf6f680258f1ebd77d894dc986cd Auto-generated-cl: translation import
-
Mark Chien authored
-
Paul Hu authored
-
Mark Chien authored
Bug: 148636687 Test: atest NetworkStaticLibTests Test: atest TetheringCoverageTests Merged-In: I8cd9dbc9fe163583ff1d016c9262546949105b80 Change-Id: I8cd9dbc9fe163583ff1d016c9262546949105b80
-
Paul Hu authored
-
Paul Hu authored
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)
-
Treehugger Robot authored
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
-
Paul Hu authored
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)
-