Commit Graph

567232 Commits

Author SHA1 Message Date
Shawn Lien
65db2bd3b3 Merge "Support Taiwan Covid-19 free short code" 2021-06-01 16:37:10 +00:00
Les Lee
aeff94ee19 Merge "wifi: Use new API for data usage function" 2021-06-01 10:42:08 +00:00
Les Lee
9eb7688535 Merge "carrier data usage: Use carrier template as default policy" 2021-06-01 10:42:08 +00:00
Aaron Huang
ec33ff5b61 Merge "Split out NetworkStack and Tethering permission" 2021-06-01 10:13:34 +00:00
Shawn Lien
1406961d5a Support Taiwan Covid-19 free short code
Add 1922 as a free short code for Taiwan.
1922 sms is a new service announced in 05/19/2021 to streamline the mandatory contact tracing policy during pandemic in Taiwan.

BUG: 189442874
Test: ShortCodes are already in operation as tested.

Signed-off-by: Shawn Lien <shawnlien@google.com>
Change-Id: Ia62f8f9b4c2725109254153af5fdfc108f599dcb
2021-06-01 08:41:25 +00:00
Aaron Huang
6c942b9dc9 Merge "Make sure the PAC script content is sent again" 2021-05-31 10:13:00 +00:00
Treehugger Robot
6963e8d05b Merge "Add permission into Shell for CTS test" 2021-05-31 02:13:24 +00:00
Treehugger Robot
9c8ba975b6 Merge "Revert "Use BinderDeathDispatcher for alarm listeners"" 2021-05-28 00:45:37 +00:00
Treehugger Robot
84d8829d72 Merge changes I77c61f74,I569123ca,Idf70d205,I308ea00b
* changes:
  setCurrentState(DESTROYED) called from main thread
  Enforce setCurrentState calls are on main thread
  Refactor QSTileImpl and remove Dependency.get
  QSTileImpl is set to DESTROYED when handleDestroy
2021-05-27 22:33:27 +00:00
Treehugger Robot
a3c01dcf16 Merge "Drop prebuilt files to android source tree." 2021-05-27 22:11:26 +00:00
Treehugger Robot
49ec135724 Merge "Add API for SHELL command to set the capabilities request timeout." 2021-05-27 21:27:49 +00:00
Treehugger Robot
d64305cc30 Merge "Revert "Reset stack guard after fork from Zygote"" 2021-05-27 19:28:18 +00:00
George Chang
be74a9f6ba Merge "Fix getSelectionModeForCategory" 2021-05-27 16:49:42 +00:00
James.cf Lin
932bf1a357 Add API for SHELL command to set the capabilities request timeout.
Bug: 188440601
Test: atest ImsServiceTest RcsUceAdapterTest
Merged-In: I4df957c97430758c6c84a06601070c3c3e3934e1
Change-Id: I4df957c97430758c6c84a06601070c3c3e3934e1
2021-05-27 22:09:52 +08:00
Anton Hansson
a4afdf092f Merge "Add some warnings and notes about framework's jarjar rules" 2021-05-27 11:23:53 +00:00
Fabian Kozynski
8cf0a2a292 setCurrentState(DESTROYED) called from main thread
Also address timing issues with bouncing calls between 2 handlers. In
particular, make sure that after a tile is DESTROYED, the state doesn't
change anymore due to leftover refreshState calls.

This sometimes would be caused as the result of an earlier tile added as
a callback on something that replies on add.

Make sure that tests that instantiate a QSTileImpl use the main looper
for the passed handler.

Test: atest TileServiceTest BooleanTileServiceTest
Test: manual, open QSCustomizer that destroys tiles
Test: atest SystemUITests
Change-Id: I77c61f743510cdcca54fa37cd26062a3c96bd649
Merged-In: I77c61f743510cdcca54fa37cd26062a3c96bd649
(cherry picked from commit 3744d134ad)
2021-05-26 18:13:02 -07:00
Fabian Kozynski
6af74807f2 Enforce setCurrentState calls are on main thread
These calls need to be done in main thread. Now that it's enforced by
LifecycleRegistry, it should also be enforced here.

Fixes: 162923566
Test: manual
Change-Id: I569123ca240bec24f805ab87dfab25daf3545844
Merged-In: I569123ca240bec24f805ab87dfab25daf3545844
(cherry picked from commit 033a5ef99c)
2021-05-26 18:12:39 -07:00
Fabian Kozynski
e839d9dd73 Refactor QSTileImpl and remove Dependency.get
Dependencies to QSTileImpl are now clearly indicated in the constructor
and fed in by its subclasses.

Test: SystemUITests
Change-Id: Idf70d205613cb31865895f2d11fa02b52fb9a408
Merged-In: Idf70d205613cb31865895f2d11fa02b52fb9a408
(cherry picked from commit 037d3b9563)
2021-05-26 18:12:24 -07:00
Fabian Kozynski
c529168031 QSTileImpl is set to DESTROYED when handleDestroy
This will guarantee that there are no remaining references in the
CallbackController.

Test: atest QSTileImplTest CallbackControllerTest
Bug: 160160246

Change-Id: I308ea00b2d24febf9ad0ab1c533c4f3d2f34c675
Merged-In: I308ea00b2d24febf9ad0ab1c533c4f3d2f34c675
(cherry picked from commit c6db4059da)
2021-05-26 18:07:49 -07:00
Benedict Wong
46b35eba73 Merge "Add local log" 2021-05-26 22:43:27 +00:00
Treehugger Robot
e4ea60d580 Merge "Add OWNERS" 2021-05-26 22:31:46 +00:00
Todd Kennedy
769ea23166 Add OWNERS
Change-Id: Ia152457b8d86275b4b9e4e4c2fe55b0bd2667900
Mergec-In: I4b29dab263d02a79d7b1593d35ae28101d33679a
2021-05-26 21:22:35 +00:00
Suprabh Shukla
616e234464 Revert "Use BinderDeathDispatcher for alarm listeners"
This reverts commit 715ecc2bac.

Reason for revert: Causes IAlarmListener objects to leak: b/189091551

Change-Id: I9008db537affb4041be36905c317bdcb5368edc9
Merged-In: I390d9bba37a4040b7e789e0ae04f9980fbed5c12
2021-05-26 20:56:43 +00:00
Seth Moore
d91256af2d Merge "Check for Ignore-AOSP-First commit tag" 2021-05-26 19:17:33 +00:00
Benedict Wong
04319f1eb5 Merge changes I5ce7fe05,I2d5dc5b9,Ibcc4bdc0
* changes:
  Add additional dump information for UnderlyingNetworkTracker
  Copy up/downstream bandwidth and TCP buffer sizes from underlying
  Prevent concurrent modification exceptions in VcnManagementService
2021-05-26 19:13:42 +00:00
Treehugger Robot
8ceda33e96 Merge "Add documentation to Vibrator on foreground/background app behavior" 2021-05-26 18:43:56 +00:00
Christian Wailes
de318d7e67 Revert "Reset stack guard after fork from Zygote"
A performance regression was noticed in go/lem benchmarks for ART.  This
was likely caused by an issue in the related CL in the ART project.

Reason for revert: performance regression
Reverted Changes:
Ie0c81f97f:Remove stack protector from some interpreter funct...
Iaf565a374:Reset stack guard after fork from Zygote

Bug: 168258494
Change-Id: I1a415829b7714ad99014fbc67786c5608c81104c
2021-05-26 18:24:14 +00:00
Seth Moore
f3d78421ba Check for Ignore-AOSP-First commit tag
If the Ignore-AOSP-First tag is in a commit message, it means the
committer is intentionally bypassing the AOSP source of truth. Check
for this tag in the AOSP-first presubmit hook so that devs don't have
to turn off hooks to get past the AOSP-first policy in exceptional
cases.

Bug: 189139990
Change-Id: I18231b93d7f213c13ace0a0af24bb20a394cc50f
Merged-In: I18231b93d7f213c13ace0a0af24bb20a394cc50f
Test: Manual testing with various commit messages
2021-05-26 09:17:27 -07:00
Anton Hansson
df4b33036d Add some warnings and notes about framework's jarjar rules
These rules are explicitly recommended  to be depended on by other
libraries in the bootclasspath, that may depend on the framework's
copy of the hidl library.

Bug: 186804505
Test: presubmit
Merged-In: I09766423782d9bb9408f3d14169d7e5d8f1b5823
Change-Id: I09766423782d9bb9408f3d14169d7e5d8f1b5823
(cherry picked from commit 524bf24977)
2021-05-26 17:03:21 +01:00
Aaron Huang
7d0aa2e651 Split out NetworkStack and Tethering permission
Split the networkstack and tethering permission out of
privapp-permissions-platform.xml so that they can get
overridden properly.

Bug: 151213404
Test: NetworkStackTests
      TetheringTests
Merged-In: Ic5dea321a441c1366f5faf2ecd683a2fa708bc80
Change-Id: Ic5dea321a441c1366f5faf2ecd683a2fa708bc80
2021-05-26 15:33:22 +00:00
Anton Hansson
766605521e Merge "Revert "Inline usage of jarjar_rules.txt"" 2021-05-26 13:57:11 +00:00
Siim Sammul
b0f9a11a8e Merge "Change settings observer for other processes to not pass a userhandle." 2021-05-26 12:53:50 +00:00
Chalard Jean
eb9d9b261e Make sure the PAC script content is sent again
...when the PAC service crashes.

Bug: 185409199
Test: manual
Change-Id: Ic76428f42f37f8552a526190764ad32e2874adb0
2021-05-26 18:52:38 +08:00
Siim Sammul
6d47f7fb10 Change settings observer for other processes to not pass a userhandle.
This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14426680

Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
Merged-In: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
2021-05-26 10:45:16 +00:00
George Chang
4366d81730 Fix getSelectionModeForCategory
NFC_PAYMENT_DEFAULT_COMPONENT is not accessable for market apps
Check if default payment name already registered in settings by NfcService.
Add a new AIDL interface isDefaultPaymentRegistered in INfcCardEmulation.aidl

Bug: 189178386
Test: atest CtsNfcTestCases
Change-Id: I0a09c9763d39c8e0b9b28df85603bdc7f281669d
2021-05-26 18:17:40 +08:00
Tianjie Xu
6890be9218 Merge "Add an error code for RoR failure due to no network" 2021-05-26 03:47:58 +00:00
vichang
efc3806b1c Merge "Refactor ddm ChunkHandler utility methods from libcore to framework" 2021-05-26 00:26:20 +00:00
Benedict Wong
fc3b6231a6 Add local log
This change adds a local log buffer to the VcnManagementService,
ensuring that if the system-wide log buffer saturates, some basic VCN
logs are retained

Bug: 188842647
Test: atest FrameworksVcnTests
Test: adb shell dumpsys vcn_management
Change-Id: Ib250e38fc5a034a6d2a327b2ee159e7186a15ada
Merged-In: Ib250e38fc5a034a6d2a327b2ee159e7186a15ada
(cherry picked from commit 370cc2f6a0)
2021-05-25 15:49:00 -07:00
Benedict Wong
61d7ab9455 Add additional dump information for UnderlyingNetworkTracker
This change adds additional dump information to facilitate the
resolution of bug reports.

Additionally, this method cleans up dump formatting.

Bug: 188842647
Test: atest FrameworksVcnTests
Test: adb shell dumpsys vcn_management
Change-Id: I5ce7fe05eb21a89c2034079223ef44f05db2a087
Merged-In: I5ce7fe05eb21a89c2034079223ef44f05db2a087
(cherry picked from commit 02cb0d7b45)
2021-05-25 15:48:50 -07:00
Benedict Wong
e237e35dff Copy up/downstream bandwidth and TCP buffer sizes from underlying
This change copies the relevant pieces of information used to tune the
system for performance

Bug: 188943592
Test: atest FrameworksVcnTests
Change-Id: I2d5dc5b9000fa9d0da9d34772b3704110694c526
Merged-In: I2d5dc5b9000fa9d0da9d34772b3704110694c526
(cherry picked from commit 9d92b77ad7)
2021-05-25 15:48:40 -07:00
Benedict Wong
5c5b485013 Prevent concurrent modification exceptions in VcnManagementService
In order to prevent concurrent modifications from triggering an
exception in the dump, proxy it to the handler thread.

Adding locks was considered, but would require auditing all callbacks
and proxying them to the handler threads in order to ensure lock
inversion and deadlocks never occur.

Bug: 188840899
Test: FrameworksVcnTests
Test: adb shell dumpsys vcn_management
Change-Id: Ibcc4bdc06301dd77260adaa0c086529f8f524679
Merged-In: Ibcc4bdc06301dd77260adaa0c086529f8f524679
(cherry picked from commit f8ce665d9f)
2021-05-25 15:48:29 -07:00
Treehugger Robot
1050f27b56 Merge "Add OWNERS for StorageStats related code." 2021-05-25 22:47:21 +00:00
Brad Ebinger
e2540fd31f Merge "Remove the deprecated SipDelegate methods pertaining to Dialogs" 2021-05-25 20:48:31 +00:00
Paul Duffin
442283ace3 Merge "Move conscrypt related hidden API flag file contents" 2021-05-25 18:25:37 +00:00
Christian Wailes
2df0b0fd74 Merge "Reset stack guard after fork from Zygote" 2021-05-25 17:47:39 +00:00
Steven Moreland
58787794eb Merge "Revert "binder: race condition by parcel finalize"" 2021-05-25 17:23:35 +00:00
Anton Hansson
637b1d65e2 Revert "Inline usage of jarjar_rules.txt"
This reverts commit 1461c6ef55.

Reason for revert: b/186804505
Bug: 186804505
Test: presubmit
Merged-In: I055f4075ac7728dfed5877286624a9600c90a38f
Change-Id: Ie1f100883c3ad6bb6f2f9a308647e4e5268b02d5
2021-05-25 16:56:48 +00:00
Siim Sammul
e900587533 Merge "Add a version of SettingsObserver to BinderCallsStats and make it public so it could be used to collect binder latency data from bluetooth and telephony." 2021-05-25 16:52:23 +00:00
Andrei-Valentin Onea
6dcc612d7a Merge "Add PLATFORM_COMPAT_SERVICE to SystemServiceRegistry" 2021-05-25 16:21:14 +00:00
Siim Sammul
8cecd22d29 Add a version of SettingsObserver to BinderCallsStats and make it public so it could be
used to collect binder latency data from bluetooth and telephony.

This is a direct cherry pick from internal with no changes: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/14236409

Test: latency collection is unit tested, this is just an alternative settings configuration
Bug: 180584913
Change-Id: Ide51afb7eb26a96c7692bceb0a22585a74f08aa7
Merged-In: Ide51afb7eb26a96c7692bceb0a22585a74f08aa7
2021-05-25 15:20:22 +01:00