Commit Graph

15845 Commits

Author SHA1 Message Date
TreeHugger Robot
82d7412314 Merge "Further reduce LM memory cost" into sc-dev am: d2191dbad6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13545880

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8dd157ecadf13724d68ddd197c155014e74d7f37
2021-02-22 22:16:08 +00:00
TreeHugger Robot
d2191dbad6 Merge "Further reduce LM memory cost" into sc-dev 2021-02-22 21:29:42 +00:00
Rafal Slawik
b3c8890111 Merge "Manage time_in_state tracking from one place" into sc-dev am: e4244b9d73
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13580619

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I2c54dcf44bd581d9cda10fa28c5c97f721e42b4c
2021-02-22 20:55:43 +00:00
Rafal Slawik
e4244b9d73 Merge "Manage time_in_state tracking from one place" into sc-dev 2021-02-22 19:44:45 +00:00
Soonil Nagarkar
514b570725 Merge "Added attribution tag to note listener" into sc-dev am: 7aa01124c4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563045

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8f5abdec24ce6c2d2ebcf317e2a520c0b95e183a
2021-02-22 17:35:13 +00:00
Soonil Nagarkar
7aa01124c4 Merge "Added attribution tag to note listener" into sc-dev 2021-02-22 17:25:24 +00:00
Rafal Slawik
e7f1410a90 Manage time_in_state tracking from one place
Move functionality related to CPU time_in_state tracking to the
KernelCpuBpfTracking class:
- when to attach the eBPF program to start tracking
- provide available CPU frequencies
- provide CPU cluster (policy) information
- unify the interface of KernelCpuTotalBpfMapReader with other readers

This removes the dependency on the power profile when reading the
information about available frequencies and clusters. It also reduces
the code duplication for transforming that information in
StatsPullAtomService.

Bug: 179485697
Test: existing tests pass
Test: atest CpuStatsTests
Test: cmd stats pull-source 10010
Test: cmd stats pull-source 10095
Test: cmd stats pull-source 10096
Test: cmd stats pull-source 10098
Test: atest FrameworksCoreTests
Change-Id: I17041014343da167b8bdf027ad83887e78ba5c2d
2021-02-22 10:37:58 +00:00
TreeHugger Robot
c1fd0badfc Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev am: 863e3fee2b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13556589

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ia6c80f20a5ac02b2cc9c892bedfa78b5c479fb94
2021-02-21 20:12:50 +00:00
TreeHugger Robot
863e3fee2b Merge "Measured energy for Ambient Display in BatteryUsageStats" into sc-dev 2021-02-21 19:08:28 +00:00
Dmitri Plotnikov
5363df4157 Merge "Copy custom measured power to BatteryUsageStats" into sc-dev am: 919528f401
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13564227

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I7c3c00c53721aaf0604cf718dbcb16961fe525c6
2021-02-21 18:35:11 +00:00
Dmitri Plotnikov
66a11604f5 Copy custom measured power to BatteryUsageStats
Bug: 158137862
Test: atest FrameworksCoreTests:com.android.internal.os.CustomMeasuredPowerCalculatorTest
Change-Id: I53a974baf773f35eb212f234755c553be45336ce
2021-02-20 13:38:48 -08:00
TreeHugger Robot
356c359096 Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev am: 9fb89c22ca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13538912

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I157de70b2b18f5c909712d575ebf8a64f59c2e7b
2021-02-20 21:13:34 +00:00
TreeHugger Robot
9fb89c22ca Merge "Add discharge power estimates to BatteryUsageStats" into sc-dev 2021-02-20 20:34:33 +00:00
Evan Rosky
da8c4c40b0 Merge "Don't rotate inputflinger's display" into sc-dev am: aa1d38db25
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13488460

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ibd72b7734f59bf0b25800392245ebe04ddd95f08
2021-02-20 02:09:31 +00:00
Evan Rosky
aa1d38db25 Merge "Don't rotate inputflinger's display" into sc-dev 2021-02-20 01:46:25 +00:00
Chloris Kuo
e7fdc59600 Merge "NAS Feedback API Change" into sc-dev am: f8cc3c16d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563511

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I1820ffeb35b0865d54b6434ddb3c83384067b176
2021-02-19 23:18:34 +00:00
Chloris Kuo
f8cc3c16d8 Merge "NAS Feedback API Change" into sc-dev 2021-02-19 22:41:40 +00:00
Soonil Nagarkar
ab220fee70 Added attribution tag to note listener
Add attribution tag information for listeners on noteOps().

Bug: 180111317
Test: none
Change-Id: I39ae9af893b8c81b1d832c4c3dc876f16ffc301f
2021-02-19 13:17:59 -08:00
Jeff Sharkey
fbbe693527 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2 am: e7280d82d6 am: 792ba79a87
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ie6bb193d30ed1f35d25a37fdfdf7fcb46f4287af
2021-02-19 19:34:26 +00:00
Jeff Sharkey
792ba79a87 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2 am: e7280d82d6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I5d5e8a2e59a7a4619a284ac15e004e73e9f291af
2021-02-19 19:20:23 +00:00
Jeff Sharkey
e7280d82d6 Merge "Add OWNERS for palette library" am: 2a1600625c am: 43ae72c0f2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1596851

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I3c3112d0c50c4f26b73db77ac4a6e02553466d61
2021-02-19 19:15:46 +00:00
James O'Leary
2964b50d79 Add OWNERS for palette library
- dupin@ landed the folder & code in it originally
- good idea to move review off the plates of generic frameworks/base
OWNERS

Change-Id: I03a1e8ec00d5b658ee026a44038703e5b31ca52e
2021-02-19 18:04:06 +00:00
Dmitri Plotnikov
fc0ba64301 Add discharge power estimates to BatteryUsageStats
Bug: 158137862
Test: atest DischargedPowerCalculatorTest
Change-Id: I68e8ad491d92dca08bb7c49fadf663dd48ee2b90
2021-02-18 16:47:42 -08:00
Dmitri Plotnikov
8c2e375c1f Measured energy for Ambient Display in BatteryUsageStats
Bug: 178140704
Test: atest FrameworksCoreTests:com.android.internal.os.AmbientDisplayPowerCalculatorTest

Change-Id: I1a573c3e380777637b7c0466aa78a4cab4c05887
2021-02-18 14:25:50 -08:00
Greg Kaiser
e8b3bbe11c Merge "Revert "Throw IllegalArgumentException when calling"" 2021-02-18 14:44:25 +00:00
Josh Gao
a14cb037d5 Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a am: a1b7331722 am: c78b8d8dac
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I97c11ec415ea6e8d1cb1b7f2be0ce4bfcaa951ca
2021-02-18 11:20:20 +00:00
Josh Gao
c78b8d8dac Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a am: a1b7331722
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I490ba33c58b47c29f0c828bd0f1bcbe7f1eb24c0
2021-02-18 10:49:24 +00:00
Josh Gao
a1b7331722 Merge "Add proto tombstones to Dropbox." am: 3361ca6c56 am: 093e8d266a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590892

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I828d8f22f643513cce2841470e272cc22231b138
2021-02-18 10:24:39 +00:00
Josh Gao
3361ca6c56 Merge "Add proto tombstones to Dropbox." 2021-02-18 08:41:55 +00:00
Evan Rosky
1db6aa54ae Don't rotate inputflinger's display
This "undoes" the rotation in incoming displayviewports
so that inputflinger always works in the orientation the display
grew-up in

It also modifies existing gesture-monitors to deal with unrotated
coordinates

This is behind a flag:
   adb shell setprop persist.debug.per_window_input_rotation 1

Bug: 179274888
Test: phone should work like normal
      atest MotionEventTest (coretests)
Change-Id: Iaa7ff7d62e9f756af2c9c622ec508c5e538ec8bd
2021-02-17 17:52:40 -08:00
Josh Gao
f4c51f3771 Add proto tombstones to Dropbox.
Bug: http://b/159164105
Test: treehugger
Change-Id: I9f14482f693c9645d72a93d4a966909bf797533a
2021-02-17 17:40:49 -08:00
Greg Kaiser
1caea4a95a Revert "Throw IllegalArgumentException when calling"
This reverts commit eb3e2b3b10.

Reason for revert: Setup Wizard crashing and not able to complete when trying to verify a previous PIN

Bug: 180328449
Change-Id: I04de866699db7febf430b5662bf2638c06e3a72b
Test: Locally reverted this CL and was able to have Setup Wizard successfully ask for and verify PIN.
2021-02-18 01:02:04 +00:00
TreeHugger Robot
0ed2cdb1dd Merge changes I474cd019,I8d87c1da,I90ebad48 into sc-dev am: 2cc5ce22b5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13563057

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I53791fa59a2418d4ba2c9186098c41c56cb635d1
2021-02-18 00:27:53 +00:00
Chloris Kuo
024505545c NAS Feedback API Change
Add onNotificationFeedbackReceived API and Notification#hasImage

Test: CtsLegacyNotification29TestCases
Test: atest com.android.systemui.statusbar.notification
Test: atest AssistantFeedbackControllerTest
Bug: 177032312
Change-Id: I5e95e7794290ba40c1a1ac0b77d8eb09572f4a01
2021-02-17 14:18:05 -08:00
Michael Wachenschwanz
af23d81ff2 Make CpuPowerCalculator's Estimators available to com.android.internal
BatteryStats needs the power_profile Cpu constants to smear the measured
CPU Cluster energies across UIDs. Using the CpuPowerProfileCalculator to
get the calculation decreases the chance of someone accidentally
diverging estimated and measured CPU power calculations.

Bug: 180079165
Test: tbd
Change-Id: I474cd019d177bd07f2ae48a47b83a82e4074ed4f
2021-02-17 11:38:40 -08:00
Michael Wachenschwanz
0726d59bc5 Add cpu proc file read throttling enabling/disabling
To properly attribute the new MeasureEnergy data for CPU, the cpu kernel
uid file reads needs to occur everytime the CPU MeasuredEnergy is read.
If throttling is necessary, it will need to be handled by
BatteryExternalStatsWorker for both the cpu kernel file reads and the
MeasuredEnergy read to make sure the data is in sync.

Bug: 180079165
Test: atest FrameworksCoreTests:com.android.internal.os.KernelCpuUidUserSysTimeReaderTest
Change-Id: I90ebad48d780872a611605689e0d25678da66f27
2021-02-17 08:48:52 -08:00
Siim Sammul
339cc43adb Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." 2021-02-17 10:30:25 +00:00
Treehugger Robot
f7678be6bf Merge "Cleanup of Zygote files" am: 6fca4110dc am: c91fb923a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1590611

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I43db62c8e3a3f648f45cc985d132437af6759c3c
2021-02-16 21:19:14 +00:00
Siim Sammul
8d0ecde2b8 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

Test: unit tests

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
2021-02-16 20:02:33 +00:00
Kohsuke Yatoh
8016ebc616 Merge "Add FontManager#updateFontFamily() API." into sc-dev am: d3279fa99c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13549207

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib859c77383b5d5d1821dc52efac884f6cc6d02ed
2021-02-16 18:46:25 +00:00
Kohsuke Yatoh
d3279fa99c Merge "Add FontManager#updateFontFamily() API." into sc-dev 2021-02-16 18:32:58 +00:00
Chris Wailes
c31c4f9b31 Cleanup of Zygote files
This CL cleans up some warnings in the ZygoteInit.java and
ZygoteServer.java files.  These warnings were mostly about unused
variables, protection class changes, and dead code.  Some changes
to code in Zygote.java and ZygoteConnection.java were needed due to
function signature changes.

Test: Built and booted image
Merged-In: I6ba33cfcb4729a75dbbd4f908f4b46110d3bb991
Change-Id: I6ba33cfcb4729a75dbbd4f908f4b46110d3bb991
2021-02-16 10:23:47 -08:00
Kohsuke Yatoh
c2008e8aac Add FontManager#updateFontFamily() API.
Bug: 179103383
Test: atest CtsGraphicsTestCases:FontFamilyUpdateRequestTest
Test: atest CtsGraphicsTestCases:FontFileUpdateRequestTest
Test: atest CtsGraphicsTestCases:FontManagerTest
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Test: atest UpdatableSystemFontTest
Change-Id: I0103784c72d60567675daf73e95e4d716f091e4a
2021-02-16 07:06:33 -08:00
Benjamin Franz
b6e30c03d8 Merge "Add versioning to app compat framework" am: 80bbdfd100 am: 4fb9af6ced am: 8964ef6743 am: 4c5134f3da
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585009

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iec36e1091805d1b201a29fa3dbbb9809cb2e754a
2021-02-16 13:34:23 +00:00
Benjamin Franz
4c5134f3da Merge "Add versioning to app compat framework" am: 80bbdfd100 am: 4fb9af6ced am: 8964ef6743
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585009

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I8d349a5f76f496503e328a4fc70e051a2ccca2b6
2021-02-16 13:26:45 +00:00
Benjamin Franz
8964ef6743 Merge "Add versioning to app compat framework" am: 80bbdfd100 am: 4fb9af6ced
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1585009

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I14b38edb7136852c5ecf78e0a4ad0266c77a453a
2021-02-16 12:51:34 +00:00
Benjamin Franz
80bbdfd100 Merge "Add versioning to app compat framework" 2021-02-16 11:48:36 +00:00
TreeHugger Robot
f7b4273bff Merge "Check CPU time_in_state from one place" into sc-dev am: e2d93d3e79
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13554286

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I025747ad5c52ea1876f65c09c074e7bd189cab8a
2021-02-16 11:30:04 +00:00
TreeHugger Robot
e2d93d3e79 Merge "Check CPU time_in_state from one place" into sc-dev 2021-02-16 11:15:26 +00:00
Galia Peycheva
afccd69e59 Merge "Add window background blur public api" into sc-dev am: de2e513209
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/13431944

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ide24b0414efe7af90784d93bd67fbd20233a0501
2021-02-15 13:02:48 +00:00