Commit Graph

16575 Commits

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

Change-Id: I0d005f5a03fb5c5a8ec46e2df677e838f66bd379
2021-06-15 21:41:38 +00:00
TreeHugger Robot
a17a93ccea Merge "Make inline suggestions tooltip is not magnified" into sc-dev am: cac7ab9c5c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14514105

Change-Id: I5ed34a3dacd098be66e030143e8fc4af41292bca
2021-06-15 21:37:19 +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
be1741df05 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde am: d3438e52c2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: Ica45b66cbe3298d135625448de67973cf5b736e4
2021-06-15 18:30:22 +00:00
TreeHugger Robot
d3438e52c2 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: Ic4629bc93e9540b3d9e150cf256b83571a3baead
2021-06-15 18:19:56 +00:00
TreeHugger Robot
dfc69a5021 Merge "Add BatteryUsageStatsProtoTests to presubmit" into sc-dev am: 0a9650dcde
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14971175

Change-Id: I911b98ffe7a8ac94491509e60bd34a05e3cdb7e2
2021-06-15 18:19:02 +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
7fafc77d61 Merge "Fix jank trigger name on non-english locales" into sc-dev am: 7c6032d0ed am: f51418fcc9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14920937

Change-Id: If03ad1e3fdbe927c1d52b93384ba27ffdf7cfe58
2021-06-14 13:53:00 +00:00
Marcin Oczeretko
f51418fcc9 Merge "Fix jank trigger name on non-english locales" into sc-dev am: 7c6032d0ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14920937

Change-Id: I49e1db14cdbc2a89f5eb3e2034cf89b8b0b49325
2021-06-14 13:43:39 +00:00
Marcin Oczeretko
1e09c2fbda Merge "Fix jank trigger name on non-english locales" into sc-dev am: 7c6032d0ed
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14920937

Change-Id: Ifbd58f49cba8c298255fc701c8242cc35ea00c44
2021-06-14 13:42:50 +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
69ea93aea0 Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b am: 4586f92923
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: Id063a13b6f41715e0e5256c2122dcc9820c34603
2021-06-10 08:27:18 +00:00
Tiger Huang
be91de455b Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: I7377340b7fedc22df682ffbd9675fc5109a506a3
2021-06-10 08:13:42 +00:00
Tiger Huang
4586f92923 Merge "Defer dispatching insets to app if its window frame will be changed soon" into sc-dev am: 50ae7cbf1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14881021

Change-Id: Ifba48a864d7090a46cb300df2ecb567eedc619de
2021-06-10 08:12:08 +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
b04ebc557b Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3 am: a4bea97be4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

Change-Id: I1ec6011b539e4ad12429af650e7f340211c57581
2021-06-09 23:04:04 +00:00
James O'Leary
5b0e67fbb8 Merge changes from topics "quantizer_improved_logic", "reintroduce_scaling_fixes" into sc-dev am: e0970984c8 am: 4084659caf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14802974

Change-Id: I763d6a33675981abad0654f0443e1dffbd84e598
2021-06-09 23:03:57 +00:00
TreeHugger Robot
6e24cfa824 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

Change-Id: I284512efffd1b874b35be4479a7a8b92807a6d7c
2021-06-09 22:46:38 +00:00
TreeHugger Robot
a4bea97be4 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev am: dfbde545f3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14427823

Change-Id: I6b27401db604eb10143912e457e94ff2ca4aec3e
2021-06-09 22:36:45 +00:00
TreeHugger Robot
dfbde545f3 Merge "Hotword: Propagate the DSP DetectedResult." into sc-dev 2021-06-09 22:32:37 +00:00
James O'Leary
4084659caf Merge changes from topics "quantizer_improved_logic", "reintroduce_scaling_fixes" into sc-dev am: e0970984c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14802974

Change-Id: I99e2facf17062876ac1501384ddb9dbbd26a3ef8
2021-06-09 22:30:49 +00:00
James O'Leary
dc4c3fbc4b Merge changes from topics "quantizer_improved_logic", "reintroduce_scaling_fixes" into sc-dev am: e0970984c8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14802974

Change-Id: I85e5f01f2a1ca271a779ea251613dcee87dc16da
2021-06-09 22:29:34 +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
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
Tom Natan
4ea4b9999c Merge "Rename PlatformCompat#setOverridesOnReleaseBuilds to putOverridesOnReleaseBuilds." into sc-dev am: 5977f60c19 am: 68fe52d5de
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424456

Change-Id: I039d343b7677390f81de4d0a7446eeaf78a21a64
2021-06-08 18:41:52 +00:00
Tom Natan
68fe52d5de Merge "Rename PlatformCompat#setOverridesOnReleaseBuilds to putOverridesOnReleaseBuilds." into sc-dev am: 5977f60c19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424456

Change-Id: I01263c401fd743cd13d54a1b946dc36ad0833dce
2021-06-08 18:35:34 +00:00
Tom Natan
5525ee1b6f Merge "Rename PlatformCompat#setOverridesOnReleaseBuilds to putOverridesOnReleaseBuilds." into sc-dev am: 5977f60c19
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14424456

Change-Id: I5d0223158027a0f58b194e2218a740e002ee6637
2021-06-08 18:34:57 +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
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
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
54bbc02dda 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: I4833213060872062cca199f83f8a8965c52baf8d
2021-06-04 05:40:59 +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
de35a77493 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: Ic1004658a7aa3c15c084352f7da63b076b0648f1
2021-06-04 00:18:47 +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
f49177c8f5 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: I13d2a580a29198a82e3d5fc6df9cfa08167c3d0d
2021-06-03 21:31:16 +00: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
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
52a47bf4c6 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: I755013ddb2cbecb0159a24d43083cf2edb1f5366
2021-06-03 18:46:28 +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