Commit Graph

14937 Commits

Author SHA1 Message Date
Songchun Fan
8c7bfcd5ab Merge "Revert "Revert "[incremental/pm] LauncherApps APIs for loading state and progress""" 2020-10-23 17:44:53 +00:00
Treehugger Robot
00a5b9b4d4 Merge "Add a mutability flag to the PendingIntent" am: 2a4ac569b0 am: 0cfb318d10 am: 49a146399c am: a230de92fe
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456120

Change-Id: I1e0adcc9affae154318f2e92a75ce190c97d3b10
2020-10-23 11:24:41 +00:00
Treehugger Robot
a230de92fe Merge "Add a mutability flag to the PendingIntent" am: 2a4ac569b0 am: 0cfb318d10 am: 49a146399c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456120

Change-Id: I7018d8afbd43690810d6b00683c6e7d26091e8ae
2020-10-23 11:11:41 +00:00
Treehugger Robot
2a4ac569b0 Merge "Add a mutability flag to the PendingIntent" 2020-10-23 09:49:27 +00:00
TreeHugger Robot
bcf16c151e Merge "Remove PackageManager.getResourcesForApplicationAsUser API" 2020-10-23 05:52:01 +00:00
TreeHugger Robot
acd46f5672 Merge "IME API: InputConnection#getSurroudingText(int, int, int)" 2020-10-23 03:18:54 +00:00
Hall Liu
cd3ad04afd Expose onEmergencyNumberListChanged, semantics change am: e182543791 am: f8e5b6fd6e am: 266e87e5a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469715

Change-Id: I68d51c9e91f3a2c08a474f7848d4fda1693c21d9
2020-10-22 22:21:18 +00:00
Hall Liu
f8e5b6fd6e Expose onEmergencyNumberListChanged, semantics change am: e182543791
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1469715

Change-Id: I00eef453ff044c5c5bc6878b61277c5e133b3dbe
2020-10-22 20:53:11 +00:00
Jeff Sharkey
a0cdb4ca3f Merge "Migrate hot codepaths to formatSimple()." 2020-10-22 20:31:28 +00:00
Jeff Sharkey
305ef9e1cf Migrate hot codepaths to formatSimple().
The recently added TextUtils.formatSimple() can efficiently format
simple strings, roughly 6.5x faster than using String.format().

This change starts using this new method in hot codepaths identified
from pprof traces, and this CL alone should reduce system_process CPU
usage by 0.24%.  Linked bug has detailed pprof screenshots.

Bug: 170978902
Test: atest FrameworksCoreTests:android.text.TextUtilsTest
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Ie5a21a24be6dfcdb29768fe235e20f050fc111c7
2020-10-22 12:48:13 -06:00
Hall Liu
77b5c5a31b Merge changes from topic "move-emergency-phone-update"
* changes:
  Update docs for onEmergencyNumberListChanged
  Call onOutgoingEmergencyCall only once.
  Expose onEmergencyNumberListChanged, semantics change
2020-10-22 17:13:52 +00:00
Steven Moreland
1d09a22ec4 Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17 am: 742771fdd7 am: e798d05a73 am: d53ccbc7bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: If382fe51b02209c72089b7c0965f63c52fe1614f
2020-10-22 06:11:13 +00:00
Steven Moreland
d53ccbc7bf Merge "Remove declaration of hidl manager -> base dep" am: 4ff4b2ee17 am: 742771fdd7 am: e798d05a73
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1467918

Change-Id: I053f441b90c710a7fed75705b3e170b890acb193
2020-10-22 05:50:54 +00:00
Steven Moreland
4ff4b2ee17 Merge "Remove declaration of hidl manager -> base dep" 2020-10-21 23:14:11 +00:00
Hall Liu
e182543791 Expose onEmergencyNumberListChanged, semantics change
Expose the onEmergencyNumberListChanged method, which seems to have been
left hidden inadvertently when introduced.

Add a new version of onOutgoingEmergencyCall that supplies a
subscription ID and deprecate the old one. Along with this, send
emergency call events from any subscription to all listeners regardless
of which subscription the listener specified.

Test: atest CtsTelecomTestCases:OutgoingCallTest
Bug: 162647577
bug: 165660452
Change-Id: Ia0e10bfb3376ff82d03a6dbc4bf71c22b0ace366
Merged-In: Ia0e10bfb3376ff82d03a6dbc4bf71c22b0ace366
2020-10-21 16:07:04 -07:00
Songchun Fan
56838fba12 Revert "Revert "[incremental/pm] LauncherApps APIs for loading state and progress""
This reverts commit 69475be847.
Also reverts commit Iaf8e2c075f188df95c68824b71362629c6adabfc.

Reason for revert: Trying again but will submit with new tests

BUG: 165841645
Test: atest NexusLauncherOutOfProcTests
Test: atest LauncherAppsSingleUserTest
Test: atest LauncherAppsMultiUserTest
Test: atest LauncherAppsProfileTest
Test: atest LimitAppIconHidingTest
Change-Id: I5ed5871ccddefbd922b3aa3ee4c1ad53cc0bfa9b
2020-10-21 14:20:20 -07:00
Jeff DeCew
ddc2dcce49 Merge changes I6fd9aeec,I296e9d53
* changes:
  Minimize use of header in adjusting notification colors.
  Remove setExpanded from the NotificationHeaderView
2020-10-21 19:12:53 +00:00
TreeHugger Robot
c76708bc68 Merge "Moving alarm service dump to IndentingPrintWriter" 2020-10-21 15:53:43 +00:00
Jeff Sharkey
1992cdb4de Merge changes from topic "oct16c"
* changes:
  Apply fixes for EfficientStrings.
  Apply fixes for EfficientStrings.
  Apply fixes for EfficientStringsChecker.
  Apply fixes for EfficientCollections.
  Trivial refactor for consistent naming.
  Expand formatSimple() to support widths.
  Refinement of EfficientStringsChecker.
2020-10-21 15:27:15 +00:00
Jeff DeCew
858ad2ac33 Minimize use of header in adjusting notification colors.
Also adds support for 'inverted' icons.

Test: atest SystemUITests
Test: manual testing of numerous notification configurations
Change-Id: I6fd9aeec9f5971495d514add2bbb30b50db7d3c1
2020-10-21 10:32:19 -04:00
Jeff DeCew
73e65d4291 Remove setExpanded from the NotificationHeaderView
Test: atest SystemUITests
Change-Id: I296e9d530d2c0ba581828dee0dc2026df0e38c3c
2020-10-21 09:57:07 -04:00
Lan Wei
02b50d4944 IME API: InputConnection#getSurroudingText(int, int, int)
Introduce a new class SurroundingText and a new API in InputConnection
to support retrieving surrounding text as an atomic request.

SurroundingText is the class for wrapping the text and sggestion info.
InputConnection#getSurroudingText() will return an SurroudingText object
if the protocol is supported.

Test: atest FrameworksCoreTests:SurroundingTextTest
Test: atest CtsInputMethodTestCases:BaseInputConnectionTest

BUG: 167947745
Change-Id: I2eb9ef5ba61a0e033007089da80f81548108621e
2020-10-21 13:22:36 +08:00
Jeff Sharkey
f18719bb73 Apply fixes for EfficientStrings.
Refactoring to avoid paying the cost of extra StringBuilder that are
quickly disposed.

Bug: 170978902
Test: none
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: Icd914a63cdadf8123c1e5a5073f85245f0791f0b
2020-10-20 22:00:18 -06:00
Jeff Sharkey
1c08f48253 Apply fixes for EfficientStringsChecker.
The recently-built Error Prone checker has found many instances where
we're always paying the cost of StringBuilder concatenation, even in
the typical cases where preconditions are successfully met.

Benchmarks have shown that even when replacing these with varargs
formatter strings, the default case is 20x faster.

Bug: 170978902
Test: none
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: If8c00bc73467bfb91ec16c162969c9d26ca53646
2020-10-20 22:00:16 -06:00
Jeff Sharkey
df8dc2b4a5 Apply fixes for EfficientCollections.
Drop-in replacements suggested for inefficient collections.  Also
annotate a handful of places where we're unable to update.

Bug: 155703208
Test: none
Exempt-From-Owner-Approval: trivial refactoring
Change-Id: I48b600508df8160ac9b40fea7afca974b2c972f6
2020-10-20 21:57:00 -06:00
Suprabh Shukla
2511a5420f Moving alarm service dump to IndentingPrintWriter
IndentingPrintWriter provides more consistent formatting and syntax.
Removing any unused legacy methods.

Test: Build, flash and manually inspect the output of:
adb shell dumpsys alarm

Fixes: 171340137
Change-Id: I8adb9280ed3c8c835562c2c158e0bfb668f8b1cb
2020-10-20 20:11:56 -07:00
Steven Moreland
fb52599e8a Remove declaration of hidl manager -> base dep
This dependency is fictitious: hidl manager actually contains a static
copy of hidl base for convenience. Separate libraries were created
later (e.g. android.hidl.manager-java-shallow) in order for users of
these libraries to specify the exact deps they need.

Fixes: 170710203
Test: boot and check logs

:) adb logcat | grep android.hidl.manager-V1.0-java.jar
10-21 00:42:53.173   328   328 D ApplicationLoaders: Created zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:17.322   329   329 D ApplicationLoaders: Created zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:31.920  2250  2250 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:38.884  2847  2847 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:41.010  2923  2923 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar
10-21 00:43:42.146  3044  3044 D ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.hidl.manager-V1.0-java.jar

Change-Id: I024a1b16570bdceb7bef5b2e718c65155c675b4a
2020-10-21 00:52:13 +00:00
TreeHugger Robot
fac9815386 Merge changes from topic "window_context"
* changes:
  Use WindowContext in GlobalScreenshot
  scrollCapture: Avoid crash if host window doesn't exist
  Refactor names of internal scrollcapture interfaces
2020-10-20 20:42:08 +00:00
TreeHugger Robot
44fcf11175 Merge "Call DecorView.drawableChanged() in PhoneWindow.setBackgroungDrawable" into rvc-qpr-dev am: 7ce178e6cb am: bf26b5a9f4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12685846

Change-Id: I6305948aea70c8283c2670caad61a1a6699b174c
2020-10-20 18:06:29 +00:00
TreeHugger Robot
bf26b5a9f4 Merge "Call DecorView.drawableChanged() in PhoneWindow.setBackgroungDrawable" into rvc-qpr-dev am: 7ce178e6cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12685846

Change-Id: I438591f2faa40c9ab80a8d774b48de7e7a1f9e1b
2020-10-20 17:44:47 +00:00
TreeHugger Robot
7ce178e6cb Merge "Call DecorView.drawableChanged() in PhoneWindow.setBackgroungDrawable" into rvc-qpr-dev 2020-10-20 17:24:35 +00:00
TreeHugger Robot
28a1dccf2e Merge "Increase BatteryStats delay" 2020-10-20 03:59:30 +00:00
Treehugger Robot
b0c41a1b0c Merge "Merge redfin/bramble support." 2020-10-19 23:20:09 +00:00
Philip Cuadra
f8178cc6a2 Increase BatteryStats delay
Decrease the frequency with which BatteryStats collection is done
due to wakelocks in order to decrease the total CPU time used by
BatteryStats collection.

Bug 168254386
Test: local build + boot

Change-Id: I508bbc10b1f3891252f0618b457b1fc0e653c868
2020-10-19 14:01:21 -07:00
Treehugger Robot
1673d15519 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722 am: 72864d2930 am: 968582e45f am: cb2ebfc692 am: c59b81c978
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461087

Change-Id: Ib58c1acbb9629a6654eb8e1666872974f0c75944
2020-10-19 19:35:19 +00:00
Treehugger Robot
c59b81c978 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722 am: 72864d2930 am: 968582e45f am: cb2ebfc692
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461087

Change-Id: I3a0abc3172b06e201535876bf01d37ed357853af
2020-10-19 19:21:50 +00:00
Zoran Jovanovic
5b23d15d37 OMS: Add config_signature policy handling am: 0f942f99ca am: 98f8388042 am: 1dd9fa3689
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453997

Change-Id: I6eb6791bc9ab2e8ee8b50404e5d2e9bb9eb77e9e
2020-10-19 19:21:41 +00:00
Mark Renouf
749b6360a1 Refactor names of internal scrollcapture interfaces
Renames to better align with use and existing naming patterns.
Using 'connection' to avoid confusion as to control flow or
roles. (A connection is direct from SystemUI --> App process)

IScrollCaptureClient -> IScrollCaptureConnection
IScrollCaptureController -> IScrollCaptureCallbacks

Test: atest FrameworksCoreTests:ScrollCaptureConnectionTest \
          FrameworksCoreTests:ScrollCaptureTargetResolverTest \
          ScrollCaptureTest

Change-Id: I9afd33109f6718b61d172ce3e4b3bb5d71a2897e
2020-10-19 14:48:32 -04:00
Treehugger Robot
968582e45f Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722 am: 72864d2930
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461087

Change-Id: I573b7ca2340c71afe3be78ab92e91f37a4266695
2020-10-19 18:39:10 +00:00
Zoran Jovanovic
98f8388042 OMS: Add config_signature policy handling am: 0f942f99ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453997

Change-Id: I779b6c73a37b0ccd42afa1b899a2b6e4a3c17f92
2020-10-19 18:28:24 +00:00
Treehugger Robot
89eed4d26d Merge "AutoBrightness: Remove handler's messages before send." am: b3230cd639 am: b5d7cf8e9e am: 8ba0cd74bf am: 4611a2da49
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456125

Change-Id: Iba3f08683af6a3cf18e0f9405bced0f05a6ccc95
2020-10-19 18:15:39 +00:00
Treehugger Robot
4611a2da49 Merge "AutoBrightness: Remove handler's messages before send." am: b3230cd639 am: b5d7cf8e9e am: 8ba0cd74bf
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456125

Change-Id: I2961477c0d13707961906eaab49aff5444d63339
2020-10-19 18:02:37 +00:00
Treehugger Robot
72864d2930 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722
* changes:
  Fix <overlay-config-signature> comments
  Fix non-inclusive OMS test language
  Remove malloc/free for inline overlay values
  OMS: Add config_signature policy handling
2020-10-19 17:57:33 +00:00
Wei Wang
d6eb7b3b7f Merge "SysUI: add a flag to control location indicators behavior." 2020-10-19 17:38:17 +00:00
Treehugger Robot
b5d7cf8e9e Merge "AutoBrightness: Remove handler's messages before send." am: b3230cd639
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1456125

Change-Id: I1619a994ebcffca22281aeaeb2347c0dabb240a7
2020-10-19 17:28:24 +00:00
Xin Li
6922a97ee2 Merge redfin/bramble support.
Bug: 171218636
Merged-In: I25b60e5225247a335cdc0dcd751de47374cdcfbb
Change-Id: Ibc9bb80173f3ba92f91973e047a7451587b67235
2020-10-19 10:08:16 -07:00
Treehugger Robot
b3230cd639 Merge "AutoBrightness: Remove handler's messages before send." 2020-10-19 16:42:15 +00:00
Andrei-Valentin Onea
021aedcbf4 Merge "Add enabledSince support for compat changes" am: c90a797b8e am: 33edcd4dbc am: bcf00b61dd am: 6eb084ed32
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1450823

Change-Id: I597f9b8028c2af4d1e09a5e0d7db237e80fa3ca3
2020-10-19 15:53:58 +00:00
Andrei-Valentin Onea
6eb084ed32 Merge "Add enabledSince support for compat changes" am: c90a797b8e am: 33edcd4dbc am: bcf00b61dd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1450823

Change-Id: Ia5d2e78398f907f45d0904927974a403f8476b22
2020-10-19 15:26:01 +00:00
Andrei-Valentin Onea
33edcd4dbc Merge "Add enabledSince support for compat changes" am: c90a797b8e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1450823

Change-Id: I9da4af4172ed8c13582c27e0e4394cbd3caa0d72
2020-10-19 14:37:29 +00:00