Dmitri Plotnikov
041ab63598
Add BatteryUsageStatsQuery parameters: time range am: c24fb81627 am: 7703f73516
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922773
Change-Id: I91d52f5313c6390b5dd13560c08defc3c2e95984
2021-06-17 17:50:19 +00:00
Dmitri Plotnikov
6b6c08ef43
Implement BatteryUsageStatsStore am: f7e7d084ee am: 72a9116d5d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922032
Change-Id: I2d4e0641b494dcf2a168e552b4c79780fa1d9484
2021-06-17 17:50:15 +00:00
Dmitri Plotnikov
7703f73516
Add BatteryUsageStatsQuery parameters: time range am: c24fb81627
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922773
Change-Id: If06f6990b1e64ade4043759628447ffd1c771ba5
2021-06-17 17:42:55 +00:00
Dmitri Plotnikov
72a9116d5d
Implement BatteryUsageStatsStore am: f7e7d084ee
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14922032
Change-Id: I5db17e054223a5b2612efc1d55c798d025d655eb
2021-06-17 17:42:53 +00:00
Fiona Campbell
b53055188f
Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev am: d77459a21f am: 0052dcef93
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14551803
Change-Id: Iabaddbe0c15fd538d6b29d0d3a5b3790147c9819
2021-06-17 14:05:57 +00:00
Fiona Campbell
0052dcef93
Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev am: d77459a21f
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14551803
Change-Id: I7cb6750bf25d644c7c244b6bcc4d79bbc5a90559
2021-06-17 13:54:59 +00:00
Fiona Campbell
d77459a21f
Merge "Fix memory leak in BrightnessSynchronizer" into sc-dev
2021-06-17 13:41:45 +00:00
Dmitri Plotnikov
c24fb81627
Add BatteryUsageStatsQuery parameters: time range
...
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsProviderTest
Change-Id: If370360695a3f0327f07457abac1fd02164864e1
Merged-In: If370360695a3f0327f07457abac1fd02164864e1
(cherry picked from commit 6ea400b27c )
2021-06-17 05:24:37 +00:00
Dmitri Plotnikov
f7e7d084ee
Implement BatteryUsageStatsStore
...
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryUsageStatsStoreTest
Change-Id: I66bbb173f402e795c900ccf3bc82b8fb210142a4
Merged-In: I66bbb173f402e795c900ccf3bc82b8fb210142a4
(cherry picked from commit 2a0460f701 )
2021-06-17 05:24:24 +00:00
TreeHugger Robot
f71c4ac3d4
Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6 am: 8b164133d0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045
Change-Id: I60a9093912f0adfc7c3876c56201c827ef4746b7
2021-06-16 16:59:47 +00:00
TreeHugger Robot
7f4b4a05e2
Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045
Change-Id: I9ac1d16b7b03ceb43c0584c60d3978a214c28666
2021-06-16 16:50:21 +00:00
TreeHugger Robot
8b164133d0
Merge changes from topic "cuj-sysui-launches" into sc-dev am: b538b60ea6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14965045
Change-Id: I26803319f43b8d88ac4511e65f622871f80dc431
2021-06-16 16:49:58 +00:00
TreeHugger Robot
b538b60ea6
Merge changes from topic "cuj-sysui-launches" into sc-dev
...
* changes:
Instrument SysUI app launches
Add SysUI app launches CUJ to InteractionJankMonitor
2021-06-16 16:45:48 +00:00
Jordan Demeulenaere
00b6fa549d
Add SysUI app launches CUJ to InteractionJankMonitor
...
Bug: 191002773
Test: make build
Change-Id: I9e3e72c5d0d242ca0a7b562be80f1d243fbb5704
2021-06-16 15:26:42 +02:00
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
78bb87d1c6
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: I690b8b91aed71839ce7b19c32e7de209cb08a863
2021-06-15 21:36:45 +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
Fiona Campbell
37427762b3
Fix memory leak in BrightnessSynchronizer
...
Previously, a queue would be written to, a lot more often than items
were removed from it. This caused it to grow massively.
This cl changes the way that the synchronizer works, updating both
values when needed and avoiding potential race conditions.
It's relevant to note that mDisplayManager.setBrightness will only change the value if it is different, but Settings.System.putIntForUser will set it regardless, therefore causing a second "int changed" message to be sent.
Bug: 177523959
Test: manual
Test: loop this command: adb shell settings put system screen_brightness \
$((RANDOM%100))
Test: loop this command: adb shell settings put system \
screen_brightness_float 0.$((RANDOM%100))
Change-Id: I6cafb48c204ce5245c4450a6098473e06c334667
2021-06-15 16:13:04 +01: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