Commit Graph

16958 Commits

Author SHA1 Message Date
TreeHugger Robot
7c73cc1f6e Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c am: 40c5c91871
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: Ic5c75dcc71639e01c919e66cad134d339699b8ba
2021-06-15 21:33:54 +00:00
TreeHugger Robot
cac7ab9c5c Merge "Make inline suggestions tooltip is not magnified" into sc-dev 2021-06-15 21:22:09 +00:00
TreeHugger Robot
36628604bc Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde am: c42ccdd692
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: I97f6073cc2d3a2d8dd0d74c73aba2a95b57c41f0
2021-06-15 18:29:51 +00:00
Dmitri Plotnikov
b2baae41c2 Add BatteryUsageStatsProtoTests to presubmit
Bug: 189221904
Test: atest --test-mapping frameworks/base/core/java/android/os
Test: atest --test-mapping frameworks/base/core/java/com/android/internal/os
Change-Id: Id279e899a19c81726cabb5e134a199bb3c367475
2021-06-14 18:56:55 -07:00
Marcin Oczeretko
e244c8d6d3 Merge "Fix jank trigger name on non-english locales" into sc-dev am: 7c6032d0ed am: ff49189eab
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14920937

Change-Id: I431b5118cf6034788f125000fe5771c04ed23923
2021-06-14 13:52:39 +00:00
Marcin Oczeretko
7c6032d0ed Merge "Fix jank trigger name on non-english locales" into sc-dev 2021-06-14 13:28:03 +00:00
Tiger Huang
0667ac5b91 Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b am: d0c6024002
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: Ie99d5ce746f009423f0e84c375dc801f34fb8b6d
2021-06-10 08:26:00 +00:00
Tiger Huang
50ae7cbf1b Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev 2021-06-10 07:55:53 +00:00
TreeHugger Robot
a68c88e681 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3 am: accafd4628
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

Change-Id: Icbd4f765b3030a5d832452dc9fadcff6413687b0
2021-06-09 23:03:54 +00:00
James O'Leary
af6abee8ce Merge changes from topics "quantizer_improved_logic", "reintroduce_scaling_fixes" into sc-dev am: e0970984c8 am: d30dca1080
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14802974

Change-Id: Iee86fe9d7b0ec23d32f7eb62cb529c5f541260a3
2021-06-09 23:03:39 +00:00
TreeHugger Robot
dfbde545f3 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev 2021-06-09 22:32:37 +00:00
TYM Tsai
0a496a2aa0 Make inline suggestions tooltip is not magnified
Because the tooltip is part of suggestions on keyboard, it should be the
same as keyboard that is not magnified by the accessibility magnifier
when the magnifier is full screen mode.

Bug: 183462449
Test: Manual
Test: atest CtsAutoFillServiceTestCases
Change-Id: I3cfd84357b556a85c2788776d3966cf94d4a981d
2021-06-10 02:16:19 +08:00
Marcin Oczeretko
f98fd1a7c8 Fix jank trigger name on non-english locales
Specify en-us locale when calling string.format to generate the trigger name.

Bug: b/190614325
Test: build
Change-Id: I9f83dd0d7cacafa683884d2551f48ac3cc19ac89
2021-06-09 19:02:28 +01:00
James O'Leary
d1bc261d8d Quantizer improvements
The original versions of these quantizers landed a couple months back,
and they were fine. Since then, we've had several opportunities to
iterate on them. This change lands improvements from those iterations.
TL;DR: 18% faster, big bug fix to WSMeans, code is cleaner (hopefully)

- QuantizerMap indexes an image's pixels, 'unique-ing' them by reducing
the pixel array to a map with keys of colors, and values of population.
This allows other quantizers to operate much more quickly: instead of
working on each pixel individually, they're able to operate in bulk.
- QuantizerWu uses flat arrays instead of 3D arrays and is more
understandable IMHO.
- QuantizerWsmeans has speed improvements, most importantly, it has a
big bug fix. When a Kmeans-based quantizer algo starts, it must first
assign the pixels to any one of the starting clusters. The original
implementation decided what cluster to assign a pixel to by finding the
cluster closest to the pixel. However, the algo terminates if no pixels
moved after one iteration of the algorithm, and since the pixels were
already in the cluster closest to them, the algo would immediately
terminate before it actually figured out where the cluster moved to
after pixels were assigned to it, and had a chance to move pixels around
based on that.
- Funnily enough, even though this _should_ mean Wsmeans got a lot
slower since it has to do more iterations, it is actually 16% faster

Additionally, during review of this CL:
An accidental dependency on iteration order of a Set was introduced,
causing inconsistent initialization of the mPoints array, creating
inconsistent results from the quantizer.

Removing the dependency on hashes of float[], and avoiding Maps
altogether, removes a dependency on hash codes of pointers that existed
during review, making it easier to have verifiable consistency across
iterations. This also improves speed slightly, from 55 ms to 39 ms
(tested on sunfish, first 9 wallpapers in Landscapes, City Scapes, and
Art categories, and averaged)

Bug: 189931209
Test: ran performance tests with VariationalKMeansQuantizer,
the previous Celebi = Wu + Wsmeans quantizer, and the new Celebi =
new Wu + new Wsmeans quantizers, over 100 iterations. Wu speed is
roughly the same, Wsmeans is 18%. Verified quantizer output is stable
for the same input pixels, run 100,000 times for each of two wallpapers.
Change-Id: I3324d29860c098ea1fd602b8d4197837e732f4f1
2021-06-09 13:33:41 -04:00
Dmitri Plotnikov
0429fc7527 Merge changes I3c27deb5,If3703606,I66bbb173
* changes:
  Implement battery_usage_stats_before_reset pull atom
  Add BatteryUsageStatsQuery parameters: time range
  Implement BatteryUsageStatsStore
2021-06-09 17:21:30 +00:00
Tiger Huang
7be2a4c964 Defer dispatching insets to app if its window frame will be changed soon
If the frames of insets source window and the frame of an app window
are changed in the same layout pass, we should dispatch the insets
calculated from the new insets source frames and the new app window
frame. So when the app frame is not up-to-date, we defer dispatching
insets to the app.

Fix: 160732586
Test: Add logs to check if we dispatch the correct insets to apps while
      rotating the display.
Change-Id: Ic9e71d8eabde51067b740b35404ae7c9b68228d7
2021-06-09 15:52:39 +08:00
Ahaan Ugale
603ea83bd7 Hotword: Propagate the DSP DetectedResult.
Fix: 190572818
Test: atest CtsVoiceInteractionTestCases
Change-Id: I8a109f6540cf8c342b827464ccc2beabd99d1b9c
2021-06-08 23:33:47 -07:00
Dmitri Plotnikov
0d25efa419 Implement battery_usage_stats_before_reset pull atom
Bug: 187223764
Test: m statsd_testdrive; statsd_testdrive 10111
Change-Id: I3c27deb57672d962f1029219b50d21d784c997b7
2021-06-08 15:41:19 -07:00
Dmitri Plotnikov
6ea400b27c Add BatteryUsageStatsQuery parameters: time range
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: If370360695a3f0327f07457abac1fd02164864e1
2021-06-08 13:45:41 -07:00
Dmitri Plotnikov
2a0460f701 Implement BatteryUsageStatsStore
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsStoreTest

Change-Id: I66bbb173f402e795c900ccf3bc82b8fb210142a4
2021-06-08 11:56:27 -07:00
Tom Natan
f50a7a3364 Merge "Rename PlatformCompat#setOverridesOnReleaseBuilds to putOverridesOnReleaseBuilds." into sc-dev am: 5977f60c19 am: 2d8a672870
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424456

Change-Id: I36bf82ffaf6d780c4c650a5df81b5bb2767ae035
2021-06-08 18:50:23 +00:00
tomnatan
1752194766 Rename PlatformCompat#setOverridesOnReleaseBuilds to putOverridesOnReleaseBuilds.
Bug: 190495884
Test: atest FrameworksServicesTests:PlatformCompatTest
Change-Id: I0b84732b5639b199f11b50b993ed3da4b3df1eda
2021-06-08 15:45:16 +00:00
Treehugger Robot
29102277cb Merge "Do not canonicalize overlay config test paths" am: e2ddd9d277 am: 4c656c86bb am: f22f8c702d am: 63480e3b79
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1725991

Change-Id: I368cb0a913ac53919d4d02c7c08a978d9b89c74c
2021-06-04 18:34:40 +00:00
Treehugger Robot
63480e3b79 Merge "Do not canonicalize overlay config test paths" am: e2ddd9d277 am: 4c656c86bb am: f22f8c702d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1725991

Change-Id: Icce4a5a026fffa62bddfd50bf79602059cecf4cc
2021-06-04 18:13:55 +00:00
Treehugger Robot
f22f8c702d Merge "Do not canonicalize overlay config test paths" am: e2ddd9d277 am: 4c656c86bb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1725991

Change-Id: I5806544243cc7e849e2612c217d73a659e40412b
2021-06-04 17:50:31 +00:00
Treehugger Robot
e2ddd9d277 Merge "Do not canonicalize overlay config test paths" 2021-06-04 17:04:49 +00:00
Wu Ahan
e3d691dcb5 Merge changes from topic "unlock_jank_instrument" into sc-dev am: 924618b41c am: a8631c1486 am: 9ba1512b2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14419588

Change-Id: I782cfdcdcf2a04da831b5a4b7057fd1ff151610b
2021-06-04 11:17:36 +00:00
Joe Bolinger
d361a6bbd2 Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev am: 896ac3e18f am: 9c613a484d am: 28b70ca276
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823790

Change-Id: Ib224bbcf91f451e5d8c69dd65d627e3c991b08d4
2021-06-04 11:14:17 +00:00
Jing Ji
9b2a5fab1e Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev am: d1c9c0785c am: 700394acca am: 8636637660
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804421

Change-Id: Ia87f03d389bb069a0836e892d6f45fe491752b5e
2021-06-04 11:02:28 +00:00
Wu Ahan
9ba1512b2d Merge changes from topic "unlock_jank_instrument" into sc-dev am: 924618b41c am: a8631c1486
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14419588

Change-Id: I549313a474f53c9e679f6b30dc9fb1cfe87ba929
2021-06-04 10:52:45 +00:00
Joe Bolinger
28b70ca276 Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev am: 896ac3e18f am: 9c613a484d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823790

Change-Id: I955d7a878a8e8a917e633efa902e89ffedfc7dbb
2021-06-04 10:44:45 +00:00
Jing Ji
8636637660 Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev am: d1c9c0785c am: 700394acca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804421

Change-Id: If595e3a720f8ff79c0bbbeaf581ac08b98944ac7
2021-06-04 10:41:19 +00:00
Wu Ahan
a8631c1486 Merge changes from topic "unlock_jank_instrument" into sc-dev am: 924618b41c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14419588

Change-Id: Ie9e92295519be25bcdbaf889d0a16cfd40075a98
2021-06-04 05:38:13 +00:00
Wu Ahan
924618b41c Merge changes from topic "unlock_jank_instrument" into sc-dev
* changes:
  Instrument jank and latency of the unlock animation of lockscreen
  Support configuration as parameter while beginning the instrumentation
2021-06-04 04:19:38 +00:00
Joe Bolinger
9c613a484d Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev am: 896ac3e18f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14823790

Change-Id: Ia43474de4d06c8809543f51d36c7198e445e0d3c
2021-06-04 00:17:25 +00:00
Joe Bolinger
896ac3e18f Merge "Fix feedback and animations for face to fingerprint fallback authentication." into sc-dev 2021-06-04 00:12:40 +00:00
Joe Bolinger
9f685a9fa7 Fix feedback and animations for face to fingerprint fallback authentication.
Bug: 189164072
Test: atest com.android.systemui.biometrics com.android.server.biometrics
Change-Id: I7fe8085dc4a4994c591bb4be20309ffb46bb06e9
2021-06-03 14:41:29 -07:00
Jing Ji
700394acca Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev am: d1c9c0785c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14804421

Change-Id: Idf5b8833ea8efa7496d6647300459a4410fca9bd
2021-06-03 21:29:21 +00:00
Jing Ji
d1c9c0785c Merge "Remove some system_server_wtf in proc stats tracking" into sc-dev 2021-06-03 21:15:33 +00:00
Jeff DeCew
92e85d9eff Merge "Always highlight unread count" into sc-dev am: 834bf3a8e0 am: 07952f728a am: 9735947558
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805378

Change-Id: If0e8adaf2dc58a31a1134561fdff774540924c76
2021-06-03 19:35:04 +00:00
Jeff DeCew
9735947558 Merge "Always highlight unread count" into sc-dev am: 834bf3a8e0 am: 07952f728a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805378

Change-Id: I8d9592ad564523e848e5276815e4848f3045bc3a
2021-06-03 19:02:06 +00:00
Jeff DeCew
07952f728a Merge "Always highlight unread count" into sc-dev am: 834bf3a8e0
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805378

Change-Id: If94087c14df737d6cc60e7f5c4e0b7d5fc06c36e
2021-06-03 18:43:38 +00:00
Jeff DeCew
834bf3a8e0 Merge "Always highlight unread count" into sc-dev 2021-06-03 18:16:26 +00:00
Jeff DeCew
84b5f7c714 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev am: a39cdd1273 am: 87e78d4d30 am: c8c94630b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805375

Change-Id: Icfd3545603b7bd7abc159f7c99bbe3399c8ce581
2021-06-03 17:58:22 +00:00
Dmitri Plotnikov
e012266a38 Merge "Store binder thread CPU times in the summary parcel" into sc-dev am: 80efce1f41 am: 002a897990 am: b96389df9d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737123

Change-Id: Ia0dc806f6b913255bd2fa51bb9bdf7617099c19c
2021-06-03 17:57:45 +00:00
Jeff DeCew
c8c94630b3 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev am: a39cdd1273 am: 87e78d4d30
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805375

Change-Id: I8b5bc1a235b7f87ef18db95795ad7c7067cb6fdf
2021-06-03 17:44:48 +00:00
Dmitri Plotnikov
b96389df9d Merge "Store binder thread CPU times in the summary parcel" into sc-dev am: 80efce1f41 am: 002a897990
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737123

Change-Id: Ie278eede6b189d2e8b0aeebb3d03c2b8d94e5b01
2021-06-03 17:44:27 +00:00
Jeff DeCew
87e78d4d30 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev am: a39cdd1273
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14805375

Change-Id: I29d07b8eb7d1c5952513476a3f2289691fbeb13d
2021-06-03 17:25:42 +00:00
Dmitri Plotnikov
002a897990 Merge "Store binder thread CPU times in the summary parcel" into sc-dev am: 80efce1f41
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14737123

Change-Id: Idc3e9c95d9634bf77394c54d99cd429f3bb0b726
2021-06-03 17:25:07 +00:00
Jeff DeCew
a39cdd1273 Merge "Remove redundant margin update, which caused infinite layout loop." into sc-dev 2021-06-03 17:04:50 +00:00