Commit Graph

8590 Commits

Author SHA1 Message Date
Eugene Susla
1b3876a619 Merge "API for CDM wake-up opt-in" 2020-12-11 21:18:52 +00:00
Jeff Sharkey
3ae096f1be Merge "Additional per-file OWNERS for shared directories." am: 8b102a5988 am: 7a9f3e10de am: 845bfdd0ba
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Id32f96bb4acc5bd3a41cfd0750abfbba274c42cb
2020-12-11 10:51:09 +00:00
Eugene Susla
205637383c API for CDM wake-up opt-in
Bug: 168052577
Test: presubmit
Change-Id: I1cd1728099ddf374db4cf0e59f748ea3b655e1ba
2020-12-10 18:57:17 -08:00
Christopher Tate
546878fbdf Don't suggest now-deprecated APIs
Suggest getAvailableBlocksLong() instead of the now-deprecated
getAvailableBlocks() method.

Bug: 174799449
Test: m offline-sdk-docs
Change-Id: I34a36e00c3d1a16898b0a6f0a21e4cab9feb0d02
2020-12-10 22:53:07 +00:00
Dmitri Plotnikov
57fbbae2be Merge "Convert CpuPowerCalculator from using BatterySipper to UidBatteryConsumer" 2020-12-10 19:50:20 +00:00
Jeff Sharkey
7db7b68b9d Merge "Add per-file OWNERS for BatteryStats" 2020-12-10 19:00:08 +00:00
Dmitri Plotnikov
3ff453a944 Add per-file OWNERS for BatteryStats
Manual merge of https://r.android.com/1520758

Test: N/A

Change-Id: Ie9eef7eed7f097113074c3c5f3f7a7084a55f97b
2020-12-10 10:58:56 -08:00
Rafal Slawik
689247c294 Merge "Combine uids for CpuTimePerUidFreq atom" 2020-12-10 17:53:29 +00:00
Jeff Sharkey
845bfdd0ba Merge "Additional per-file OWNERS for shared directories." am: 8b102a5988 am: 7a9f3e10de
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1523618

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9df0f96893728df43b3ae402ac69ec3e02079f51
2020-12-10 16:32:34 +00:00
Jeff Sharkey
e2cc3f8bec Additional per-file OWNERS for shared directories.
Iteration based on areas of tree where detailed ownership was found
to be missing during routine code reviews.

Also add more detailed examples to OWNERS.md.

Bug: 174932174
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I46ccef33b34594181ae8dc62973d68020f827d6b
2020-12-10 08:37:23 -07:00
TreeHugger Robot
0ba049d769 Merge "Create parcelable VibratorInfo to expose HAL profile" 2020-12-10 15:13:38 +00:00
TreeHugger Robot
85c84a7c07 Merge "Implement setAlwaysOn to IVibratorManagerService" 2020-12-10 12:50:11 +00:00
Rafal Slawik
e69ade3545 Combine uids for CpuTimePerUidFreq atom
The puller for the atom frequently fails. We believe it is due to the
size of the pulled atoms. No metric can be correctly build from this
atom.

To reduce the size, we apply transformations that we would likely
perform when analyzing this data. We combine times for all shared app
gids together and combine times for the same apps. We also exclude
isolated uids which are frequently recycled and removed from the
underlying data source.

If these optimization do not help, we will need to introduce different
atoms.

Bug: 157535126
Test: cmd stats pull-source 10010
Change-Id: I0d9a18c78f456e1b0f9d7ad322f15354ead9f02b
2020-12-10 09:48:23 +00:00
Dmitri Plotnikov
e786140e74 Convert CpuPowerCalculator from using BatterySipper to UidBatteryConsumer
Bug: 158137862
Test: Start Settings app, navigate to Apps, pick an app, navigate to Battery

Change-Id: I1ce3d1a0ece5419384c366e908523312651877ee
2020-12-09 18:17:18 -08:00
Dmitri Plotnikov
0ad8cb5966 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628 am: d8a9268460
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I74d7cc2d030f7a6e78d8c7e9903a48e93301c5c3
2020-12-09 03:26:47 +00:00
Dmitri Plotnikov
d8a9268460 Merge "Add per-file OWNERS for BatteryStats" am: cac4499628
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1520758

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d258d326af6662a7e8d1dcaa1bbbeffdc19da94
2020-12-09 03:06:09 +00:00
Dmitri Plotnikov
c5afcc503b Add per-file OWNERS for BatteryStats
Test: N/A

Change-Id: Ie9eef7eed7f097113074c3c5f3f7a7084a55f97b
2020-12-08 16:38:23 -08:00
TreeHugger Robot
b1e041d5b5 Merge "Support multi-channel FF vibration effect for input device." 2020-12-08 23:33:24 +00:00
Jeff Sharkey
0ab7007631 resolve merge conflicts of 358f0d4fc8 to master
Bug: 174932174
Test: I solemnly swear I tested this conflict resolution.
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Change-Id: I9262a08ffc1ccede8e519d0eed90ed2bfcf0232c
2020-12-08 11:01:05 -07:00
Jeff Sharkey
358f0d4fc8 Merge changes from topic "dec5" am: c2793cf12b am: 9af6ac78b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2776a545a24f007ccb4b9ee14705978571265ef3
2020-12-08 16:43:19 +00:00
Jeff Sharkey
24d251403b Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c am: c7c4a74a78
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5120a3701af3564f363900b20bca75f3ad2a854c
2020-12-08 16:43:17 +00:00
Jeff Sharkey
9af6ac78b0 Merge changes from topic "dec5" am: c2793cf12b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519384

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ifdc390f5ae046c515a30158f3f55b831be147547
2020-12-08 16:05:11 +00:00
Jeff Sharkey
c7c4a74a78 Improve OWNERS coverage across frameworks/base/. am: fab0ab3c9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1519383

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0211462ecbcd9ad66f66af87e31cf12e1582fc65
2020-12-08 16:01:16 +00:00
Jeff Sharkey
c2793cf12b Merge changes from topic "dec5"
* changes:
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
  Improve OWNERS coverage across frameworks/base/.
2020-12-08 15:39:59 +00:00
Jeff Sharkey
52b9862f87 Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script that
identifies relevant "include" directives.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
Change-Id: I3480ddf2fe7ba3dfb922b459d4da01fa17a2c813
2020-12-08 08:36:28 -07:00
Jeff Sharkey
fab0ab3c9c Improve OWNERS coverage across frameworks/base/.
As general background, OWNERS files expedite code reviews by helping
code authors quickly find relevant reviewers, and they also ensure
that stakeholders are involved in code changes in their areas.

Some teams under frameworks/base/ have been using OWNERS files
successfully for many years, and we're ready to expand them to cover
more areas.  Here's the historical coverage statistics for the last
two years of changes before these new OWNERS changes land:

-- 56% of changes are fully covered by OWNERS
-- 17% of changes are partially covered by OWNERS
-- 25% of changes have no OWNERS coverage

Working closely with team leads, we've now identified clear OWNERS on
a per-package basis, and we're using "include" directives whenever
possible to to simplify future maintenance.  With this extensive
effort, we've now improved our coverage as follows:

-- 98% of changes are fully covered by OWNERS
-- 1% of changes are partially covered by OWNERS
-- 1% of changes have no OWNERS coverage

This specific change is automatically generated by a script from
detailed ownership information confirmed by team leads.

Bug: 174932174
Test: manual
Exempt-From-Owner-Approval: refactoring with team leads buy-in
Merged-In: I9789c97c1de8e5d962b48c29c57d82fe83729eba
Change-Id: I9789c97c1de8e5d962b48c29c57d82fe83729eba
2020-12-08 08:36:27 -07:00
Adam Bookatz
cd28137020 Merge "Generic Test profile on debuggable builds" 2020-12-07 23:13:29 +00:00
Treehugger Robot
f4f42950c9 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da am: c661b70d60 am: 848458fae1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: I8df231d1a87fa0ddd63b609cf42834b24b7177e6
2020-12-07 21:02:20 +00:00
Adam Bookatz
cb01739074 Generic Test profile on debuggable builds
We introduce a new profile type for testing purposes.
It can be used for testing non-managed profiles, which
currently only have partial support.
It is only available on debuggable (userdebug/eng).

Bug: 170249807
Test: manual (adb shell pm create-user --user-type android.os.usertype.profile.TEST Name)
Change-Id: I37f593bbcaa9059f3afdc8668c2065bc623aa125
2020-12-07 09:41:41 -08:00
Anton Hansson
60fc6b2406 Merge "Add VERSION_CODES constant for S" am: dfe33cb756 am: 230a340757
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513731

Change-Id: I3ead6dc8599c4327b15138de931bd3c8392f8953
2020-12-07 17:33:37 +00:00
Anton Hansson
230a340757 Merge "Add VERSION_CODES constant for S" am: dfe33cb756
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513731

Change-Id: Ib41868f0c19d300fbbf0f5cc3cbf922ef4ece5b8
2020-12-07 14:48:36 +00:00
Anton Hansson
dfe33cb756 Merge "Add VERSION_CODES constant for S" 2020-12-07 14:12:20 +00:00
Treehugger Robot
848458fae1 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da am: c661b70d60
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: I9cab7d61cfe9fcf6e551b6c225bd36fd222b1753
2020-12-07 08:22:22 +00:00
Treehugger Robot
c661b70d60 Merge "Throw BadParcelableException from set/getParcelable" am: 294dd8f1da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1503133

Change-Id: If26fbc900b82beeab1f68d6e68c7eb1903ee9db9
2020-12-07 08:13:58 +00:00
Treehugger Robot
294dd8f1da Merge "Throw BadParcelableException from set/getParcelable" 2020-12-07 07:32:29 +00:00
Manish Singh
3b8d8bc781 Introduce new preference indicating user control.
If the user enables this, then that means that we will respect user's
choices for all the preferences, i.e. we will not update the preferences
based on the updates from server.
On the other hand, if it's disabled, then the rest of the preferences
would not be considered.  And we'd decide their values based on the
values from the DeviceConfig (which in turn come from the server).

Also, renaming the set prop key for enabling-transcode to match the one
in DeviceConfig - transcode_enabled.

Also, the "transcode_enable_all" controller now enables (instead of
disabling) the global level transcoding.

BUG:169327180

Test: manual testing.

Change-Id: I183b3b5496b647943be377c02c8c9e2a0df71752
2020-12-06 23:37:15 +00:00
TreeHugger Robot
b7cee931e2 Merge "Add SystemMemory pulled atom in statsd" 2020-12-04 22:05:46 +00:00
Lais Andrade
61ddb9473f Create parcelable VibratorInfo to expose HAL profile
This parcelable will replace the separated methods hasAmplitudeControl,
areEffectsSupported and arePrimitiveSupported from VibratorService.

VibratorManagerService will return this single parcelable, per vibator
id, to represent the HAL profile of that individual vibrator and be used
by Vibrator.java to explose some of that to the public API.

Bug: 167946816
Test: atest VibratorInfoTest
      atest VibratorManagerServiceTest
Change-Id: I09c191dd15a3cf38122ec6dc87b2d73f46c8cde6
2020-12-04 16:26:02 +00:00
Lais Andrade
9e755fb3fe Implement setAlwaysOn to IVibratorManagerService
This implementation supports synced CombinedVibrationEffect instances
with prebaked effects only.

This implementation adds some vibration checks from VibratorService to
VibratorManager, and wires the implementation of VibratorController
native service to IVibratorManager.

Bug: 167946816
Bug: 131311651
Test: atest FrameworksServiceTests:VibratorManagerServiceTest
Change-Id: I8da10c7903e91bba30b11fe46515121858fb5211
2020-12-04 16:24:31 +00:00
Dmitri Plotnikov
75affe2132 Merge "Introduce BatteryUsageStats API" 2020-12-04 00:00:46 +00:00
Dmitri Plotnikov
bfe822007b Introduce BatteryUsageStats API
Bug: 158137862
Test: Start Settings app, navigate to Apps, pick an app, navigate to Battery

Change-Id: I8da8cc9501e01282b855f1bee6032911d91aaf77
2020-12-03 10:42:41 -08:00
Ioannis Ilkos
83b88de75e Add SystemMemory pulled atom in statsd
Initial implementation of kernel-level memory metrics

Bug: 149462065
Bug: 172201884
Test: statsd_testdrive
Change-Id: I9c0e24f2771ce398942845af6934f0cbc64044c0
2020-12-03 13:54:53 +00:00
Xin Li
9e27e114af Merge "Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855" into stage-aosp-master 2020-12-03 03:18:49 +00:00
Treehugger Robot
61f71c3d88 Merge "Update comment for new proto directory" am: 777d7d838a am: 9f5b01e691 am: 1592b52b91
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513316

Change-Id: Iee4145492ba8f6821b1e0ddeb97e6205e778fd1a
2020-12-02 15:25:42 +00:00
Treehugger Robot
1592b52b91 Merge "Update comment for new proto directory" am: 777d7d838a am: 9f5b01e691
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1513316

Change-Id: I6123688f943713d9baf1d98ebbe59ae86f6d6426
2020-12-02 14:29:42 +00:00
Treehugger Robot
777d7d838a Merge "Update comment for new proto directory" 2020-12-02 13:08:47 +00:00
Xin Li
d31ee38811 Merge rvc-qpr-dev-plus-aosp-without-vendor@6881855
Bug: 172690556
Merged-In: I78222391b83a4add8e964340ec08bb8a1306e1c6
Change-Id: I28bbf40820674675ccf765c912aa8140d3f74ab2
2020-12-02 00:38:58 -08:00
Treehugger Robot
70edf54d81 Merge "Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()" am: c0b44fca8b am: bd2f82c88c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1406256

Change-Id: I44114ea2abcba197c8614c1e93db8b28faf16afe
2020-12-01 18:07:01 +00:00
Treehugger Robot
c0b44fca8b Merge "Deprecated UserManager.getUsers(excludeDying) / added getAliveUsers()" 2020-12-01 16:52:45 +00:00
Zimuzo Ezeozue
46e59fe8b3 Merge "Fixed a race contidion in StorageManagerService" am: 782ef476df am: c6536c8794 am: 93a82398b0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1508499

Change-Id: If6b1b4d78b28e70e7739726e70089d485c15f7c4
2020-12-01 11:55:33 +00:00