Hans Boehm
a15cde59cc
Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7 am: 925ecc3f80 am: 1d550ecd10
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ia212ba95b161d9df0257c3cefab8dd12dacc3e26
2021-02-26 17:35:42 +00:00
Todd Kennedy
e8f95cc1e5
Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192 am: 0e7a0c7ba9 am: 9a03d6f19e am: 5f9160b6cf
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I6604bfc8f1ea2c6b9710459b615158b28a8b0d79
2021-02-26 17:35:27 +00:00
Adam Bookatz
85e74cc4e1
Merge "TEST_MAPPING for BatteryStats" into sc-dev am: 47fe2c6ade
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13562596
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ibd3867d363fe0c70543886fd175ffe72a0cf9d72
2021-02-26 17:34:33 +00:00
Hans Boehm
1d550ecd10
Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7 am: 925ecc3f80
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I3afb617aab80b073b56fa0c61398ae6d42800a75
2021-02-26 17:20:42 +00:00
Todd Kennedy
5f9160b6cf
Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192 am: 0e7a0c7ba9 am: 9a03d6f19e
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I43f7e957d5c50d1762dbc2473eb0380b1ac168e3
2021-02-26 17:20:16 +00:00
Adam Bookatz
47fe2c6ade
Merge "TEST_MAPPING for BatteryStats" into sc-dev
2021-02-26 17:11:40 +00:00
Galia Peycheva
525c824506
Merge "Fix synchronisation in BackgroundBlurDrawable" into sc-dev am: 656d774184
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13518706
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ib53b4a5f5972a3e2ac6cc6286a2f30f316bda745
2021-02-26 14:53:11 +00:00
Galia Peycheva
656d774184
Merge "Fix synchronisation in BackgroundBlurDrawable" into sc-dev
2021-02-26 14:30:04 +00:00
Jeff Sharkey
2092a02d7e
Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a am: 2b3fee42d8 am: 869d848e45
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1600453
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I9df1ccd58f0c94de16a8972d0bd4cf511f182572
2021-02-26 13:21:35 +00:00
Mark Renouf
1036ee23b2
Merge "Long screenshots framework update and API unhide" into sc-dev am: 20bd3d4935
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13429309
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ic631f8c1d77c92d590865783881f2de61bad6566
2021-02-26 13:19:38 +00:00
Jeff Sharkey
869d848e45
Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a am: 2b3fee42d8
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1600453
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Icb05293712e0b6127bda0e8e297e447956ee5aa1
2021-02-26 13:08:55 +00:00
Mark Renouf
20bd3d4935
Merge "Long screenshots framework update and API unhide" into sc-dev
2021-02-26 13:06:47 +00:00
Dmitri Plotnikov
6da67ebebe
Merge "Add UID time-in-state to UidBatteryConsumer" into sc-dev am: 02073550c0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13618629
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I055a28959af4454a5620c6d040501a8a221818be
2021-02-26 05:25:43 +00:00
Dmitri Plotnikov
02073550c0
Merge "Add UID time-in-state to UidBatteryConsumer" into sc-dev
2021-02-26 04:51:40 +00:00
Dmitri Plotnikov
f441fbf774
Add UID time-in-state to UidBatteryConsumer
...
Bug: 158137862
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsProviderTest
Test: atest FrameworksCoreTests:com.android.internal.os.BatteryUsageStatsTest
Change-Id: I8fde2f754deaa0d2c4ebb06b9a2c99d60086bc23
2021-02-25 15:47:20 -08:00
Mark Renouf
8f1b73e183
Long screenshots framework update and API unhide
...
This change includes a series of API review changes. The most
significant update is the addition of cancellation signals to
API methods where needed.
Renames some internal classes and interfaces to support the
API changes and to simplify tests and improve quality.
Test: numerous presubmits
Bug: 175830670
CTS-Coverage-Bug: 180419562
Change-Id: I9b1b950a2779fc902ecf4d6394e3c35171926700
2021-02-25 23:02:17 +00:00
Adam Bookatz
b62859528e
TEST_MAPPING for BatteryStats
...
Creates presubmit test mapping for BatteryStats-related
files.
These tests can be run manually via
atest FrameworksServicesTests:com.android.server.am.BatteryExternalStatsWorkerTest FrameworksServicesTests:com.android.server.am.MeasuredEnergySnapshotTest FrameworksServicesTests:com.android.server.am.BatteryStatsServiceTest FrameworksCoreTests:com.android.internal.os.BatteryStatsTests
Tests that currently fail are marked to be skipped;
they should be addressed by b/180015146.
This is accomplished by introducing a new annotation, @SkipPresubmit.
Test: treehugger presubmit
Bug: 180016384
Change-Id: If01beaa342468aeded660e5766a14391d3ee9bcc
2021-02-25 14:51:01 -08:00
Adam Bookatz
e16101698d
Merge "MeasuredEnergyStats - remove unused accumulate parameter" into sc-dev am: 84fc40ad81
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563507
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Ie5b988fbcad1a5564bbcc66ccb80e93b6ae06b4a
2021-02-25 22:10:07 +00:00
Adam Bookatz
84fc40ad81
Merge "MeasuredEnergyStats - remove unused accumulate parameter" into sc-dev
2021-02-25 21:55:02 +00:00
TreeHugger Robot
783f21bda6
Merge "Convert WifiPowerCalculator to work with BatteryUsageStats" into sc-dev am: 2863f6a40d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13486648
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I6d10027d87c517e9e5f5704e61d59877e64b41fb
2021-02-25 20:27:05 +00:00
TreeHugger Robot
2863f6a40d
Merge "Convert WifiPowerCalculator to work with BatteryUsageStats" into sc-dev
2021-02-25 20:15:38 +00:00
Adam Bookatz
26b0a0864c
MeasuredEnergyStats - remove unused accumulate parameter
...
The parameter was always true (it was a remnant of a previous
approach).
Test: atest FrameworksCoreTests:com.android.internal.power.MeasuredEnergyStatsTest
Bug: 174818228
Change-Id: I3be5392966c3455b2df145044809a581abbf245c
2021-02-25 11:02:17 -08:00
Evan Severson
ecf2837b41
Merge "Expose SensorPrivacy as SystemApi" into sc-dev am: 445abca30e
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13606535
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I310df792ad039f5dad97875457905df8bb1c6602
2021-02-25 18:41:13 +00:00
Evan Severson
445abca30e
Merge "Expose SensorPrivacy as SystemApi" into sc-dev
2021-02-25 18:29:43 +00:00
Galia Peycheva
d129f1e00e
Fix synchronisation in BackgroundBlurDrawable
...
The PositionUpdateListener in BackgroundBlurDrawable is called from
a thread pool to update the position of the BlurRegion. After that,
in frame drawing callback (RenderThread), the Aggregator takes all
the settings in BackgroundBlurDrawable and dispatches them to SF.
However, while the RenderThread is working on frame N, the Ui thread
is working on frame N+1. So when the frame drawing callback is
called on RenderThread for frame N, BackgroundBlurDrawable
might already be holding settings for frame N+1.
In this CL, we fix that by making BackgroundBlurDrawable work only on Ui
thread, while BlurRegion lives only on RenderThread. Just before
drawing, we copy the state of BackgroundBlurDrawable into a BlurRegion.
So when render thread starts doing its thing for frame N, Ui thread can
start setting up BackgroundBlurDrawable for frame N+1. The settings for
frame N are already copied over to BlurRegion. In frame drawing
callback, we take the blur regions if there is a pending update and send
them to SF.
Bug: 167166562
Test: m && atest BlurAggregatorTest
Change-Id: Icec0fa8e97de30b7bad15b97f848ae642076652f
2021-02-25 18:33:33 +01:00
Zoey Chen
200d037595
Merge "[Telephony] Store correct value for multi-sim case - DataEnabled" into sc-dev am: da74086ba4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13612049
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I4d0a9762105e697981b479f4377a266e1bc0e39e
2021-02-25 14:44:52 +00:00
Alex Buynytskyy
99afc66507
Merge "API feedback: getVersion instead of isV2." into sc-dev am: 02492968c6
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676256
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iedc9f7ed0ccd583c462ddb740e38fefed11db9af
2021-02-25 14:35:37 +00:00
Adam Bookatz
32768fd60d
Merge "BatteryStats custom buckets: don't revive dead Uids" into sc-dev am: 0b905b1ef4
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13679511
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2a8954b852f26216bab3bdb21ab44d4e3168c5d4
2021-02-25 14:34:16 +00:00
Zoey Chen
da74086ba4
Merge "[Telephony] Store correct value for multi-sim case - DataEnabled" into sc-dev
2021-02-25 13:31:04 +00:00
Alex Buynytskyy
414d9ecc26
API feedback: getVersion instead of isV2.
...
Bug: 181015045
Fixes: 181015045
Test: atest PackageManagerShellCommandTest PackageManagerShellCommandIncrementalTest IncrementalServiceTest PackageManagerServiceTest ChecksumsTest
Change-Id: I623f73b834759d9a1c599d7c7f3ff585fa75c4aa
2021-02-25 02:06:08 +00:00
Hans Boehm
925ecc3f80
Merge "Add zygote native fork loop" am: 43a9a8089f am: dd81ed70c7
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I11e1abaa50306262ec5b2a19d95b481ef64987cc
2021-02-25 01:14:50 +00:00
Todd Kennedy
9a03d6f19e
Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192 am: 0e7a0c7ba9
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2816514891cb5f4407e5dee6796aafc440102d69
2021-02-25 01:14:31 +00:00
Hans Boehm
dd81ed70c7
Merge "Add zygote native fork loop" am: 43a9a8089f
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1540230
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I92e404bd6ce19df88d832127f738ec8c6305fe74
2021-02-25 00:30:09 +00:00
Todd Kennedy
0e7a0c7ba9
Merge "Add self to owners for SystemConfig.java" am: 4b6dcc5192
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1606874
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If163aef039b83e8337b21b435d7cd801b848ce2a
2021-02-25 00:27:28 +00:00
Adam Bookatz
0b905b1ef4
Merge "BatteryStats custom buckets: don't revive dead Uids" into sc-dev
2021-02-25 00:26:14 +00:00
Hans Boehm
43a9a8089f
Merge "Add zygote native fork loop"
2021-02-25 00:02:19 +00:00
Todd Kennedy
be58aa730b
Add self to owners for SystemConfig.java
...
Change-Id: I812841473d390166ccfca6492ff40d3a324b5599
2021-02-24 23:43:22 +00:00
Evan Severson
0f9d5aea50
Expose SensorPrivacy as SystemApi
...
Rename the apis to be more consistent.
Also expose to test api.
Have the aosp mark that it supports the toggle features by default.
Test: atest CtsSensorPrivacyTestCases
Bug: 162549680
Change-Id: Ib38c16adfc5cec931347e1a1891618983d78248b
2021-02-24 15:39:19 -08:00
Flavio Fiszman
50606c9af2
Merge "Simplify onNotificationClear signature" into sc-dev am: 491cbd85c8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13676888
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: If083b09fabf0ef94cfb25210262d9879d1ab8498
2021-02-24 22:56:52 +00:00
Flavio Fiszman
491cbd85c8
Merge "Simplify onNotificationClear signature" into sc-dev
2021-02-24 22:32:17 +00:00
James O'Leary
2b416cd6c2
Merge "Revert^2 "[framework] Integrate new quantizers"" into sc-dev am: 7edf52d602
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13688547
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5b0263b3b455044636b5a6ff8b322cfc13397760
2021-02-24 22:14:15 +00:00
James O'Leary
7edf52d602
Merge "Revert^2 "[framework] Integrate new quantizers"" into sc-dev
2021-02-24 21:59:47 +00:00
Jeff Sharkey
2b3fee42d8
Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2 am: 4df29fd76a
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1600453
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: Iab3982e777395a9579505ad90b143c3b6c04b6f3
2021-02-24 21:52:33 +00:00
Adam Bookatz
5bb1ec89d3
BatteryStats custom buckets: don't revive dead Uids
...
It is possible for old uids to be reported to BatteryStats
in updateCustomMeasuredEnergyDataLocked().
This can happen, e.g., if a uid was uninstalled between
successive custom energy updates, so that the uid did use non-zero
energy but BatteryStats doesn't care anymore since the uid is gone.
If this happens,
we don't want to recreate any removed Uid objects, so we need
to be careful to only consider Uids that aren't removed.
In practice, this method will only be called after the CPU update,
which means that BatteryStats should already know about all active
uids (assuming they used CPU). Therefore, there shouldn't be any
unknown uids actively using custom energy buckets at this point.
We therefore simply ignore any unknown uids (just log them), on
the assumption that they refer to removed uids or stopped users.
Test: atest BatteryStatsTests
Bug: 180030409
Change-Id: If4fee7a1d11b148ca16d464d6ce4720c5a251130
2021-02-24 21:30:59 +00:00
Jeff Sharkey
4df29fd76a
Merge "Add OWNERS for long screenshots framework code" am: 79bed70aa2
...
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1600453
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I916187da222fa9e100d9beb67866427b10481900
2021-02-24 20:59:35 +00:00
Jeff Sharkey
79bed70aa2
Merge "Add OWNERS for long screenshots framework code"
2021-02-24 19:42:32 +00:00
James O'Leary
9d3ad10eb9
Revert^2 "[framework] Integrate new quantizers"
...
96169052c4
Change-Id: Idefcf279b9fedeeaa29f75e705adfb60f0ad5c8a
2021-02-24 17:09:06 +00:00
Song Hu
5630022884
Merge "Implement dark launch logic for sharesheet aiai model. Route the sharesheet user interaction from PeopleService to Remote Prediction Service, while PeopleService is making inference for sharesheet. It is guarded by the flag "adb shell device_config put systemui dark_launch_remote_prediction_service_enabled true""
2021-02-24 14:14:34 +00:00
Flavio Fiszman
462f2579d5
Simplify onNotificationClear signature
...
Change-Id: Ib944418dea78fb090c70206c34519f9248a02c04
Test: NotifCollectionTest and NotificationManagerServiceTest
Bug: 172575678
2021-02-24 13:31:45 +00:00
Zoey Chen
4d459c28db
[Telephony] Store correct value for multi-sim case - DataEnabled
...
Bug: 180438087
Text: manual and make
Change-Id: I4bcb66d125be582f3392f4c5af1471849a0fe9b1
2021-02-24 18:22:36 +08:00