Commit Graph

16360 Commits

Author SHA1 Message Date
Soonil Nagarkar
fe40442304 Merge "Add support for excluding tags from restrictions" into sc-dev 2021-05-17 16:46:55 +00:00
Connor O'Brien
83a5e6ed18 Merge "Don't remove UID data in readKernelCpuUid*TimesLocked" into sc-dev 2021-05-14 21:06:02 +00:00
Jeff Sharkey
673a8c593c Merge "Add OWNERS to com.android.internal.app.procstats" am: a469054f27 am: d59dfa2fb1 am: cd6fbb1b4d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691206

Change-Id: Id6b191986617d52228c7d7143a70faeadf8b9259
2021-05-14 19:52:17 +00:00
Jeff Sharkey
cd6fbb1b4d Merge "Add OWNERS to com.android.internal.app.procstats" am: a469054f27 am: d59dfa2fb1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1691206

Change-Id: I9f38ff847d021cb1700ca65e28080e0ebc65b8be
2021-05-14 19:32:54 +00:00
Dmitri Plotnikov
4d78cddfef Merge "Use getUahDischarge when available" into sc-dev 2021-05-14 18:43:38 +00:00
Jeff Sharkey
a469054f27 Merge "Add OWNERS to com.android.internal.app.procstats" 2021-05-14 18:26:22 +00:00
Cyrus Boadway
01cd8a9d0a Merge "Add Widget CUJ parameter to jank monitoring" into sc-dev 2021-05-14 17:40:15 +00:00
Soonil Nagarkar
393d109f64 Add support for excluding tags from restrictions
Allow user restrictions to provide an excluded map of packages and tags
rather than just packages.

Bug: 187421886
Test: manual
Change-Id: I8f90ba6cdd288068664b352fdb540d0f11fe3dfc
2021-05-14 10:35:46 -07:00
Tiffany Nguyen
dcec9f1f38 Merge "Log the battery saver changed atom on initialization." into sc-dev 2021-05-14 01:14:12 +00:00
Dmitri Plotnikov
14bc81b983 Merge "Add stats session end timestamp and duration to BatteryUsageStats" into sc-dev 2021-05-13 23:08:50 +00:00
Dmitri Plotnikov
9f08c607f8 Use getUahDischarge when available
Bug: 188092638
Test: atest FrameworksCoreTests:BatteryChargeCalculatorTest
Change-Id: I66b9d232dcd4c674cd9bd7bae7843ae1124e1c34
2021-05-13 15:38:18 -07:00
Kohsuke Yatoh
c27e46f595 Merge changes I09ac3f34,Id3e36922 into sc-dev
* changes:
  Close FDs / mmap handles promptly.
  Remove unused IFontManager#updateFontFile().
2021-05-13 20:42:10 +00:00
Alexander Dorokhine
c09e57ce61 Merge "Link framework-appsearch against the module_current SDK." into sc-dev 2021-05-13 20:03:08 +00:00
Dmitri Plotnikov
c076e7112e Add stats session end timestamp and duration to BatteryUsageStats
Bug: 187223764
Test: atest FrameworksCoreTests:BatteryStatsTests
Change-Id: Iba97050c067cae7945276798273dd328fe040ef9
2021-05-13 11:49:09 -07:00
Kohsuke Yatoh
77e80b860c Remove unused IFontManager#updateFontFile().
The caller was removed in
commit 3de07491d3
This CL also does some cleanup:
- Extract OtfFontFileParser to a separate file.
- Remove boilerplate in UpdatableFontDirTest.

Bug: 187879195
Test: m -j
Test: atest FrameworksServicesTests:UpdatableFontDirTest
Change-Id: Id3e369222c35f550c6d53e8649ab07647701c070
2021-05-13 16:23:47 +00:00
Tiffany Nguyen
64dd223ed1 Log the battery saver changed atom on initialization.
In order for the predicate to be read from the beginning, we need to
ensure the value has some initial state after device reboot
and after logging service starts up.

Bug: 175040249

Test: Manual
Change-Id: Id42f655f3fb42ef3e1ea0cf7bc7b2e536417de7d
Merged-In: Id42f655f3fb42ef3e1ea0cf7bc7b2e536417de7d
2021-05-13 14:33:28 +00:00
Cyrus Boadway
60dc9196e3 Add Widget CUJ parameter to jank monitoring
Android S introduces a new Quickstep animation for launching an activity
from an app widget. This is a similar but distinct CUJ to
LAUNCHER_APP_LAUNCH_FROM_ICON.

Bug: 169042867
Test: presubmit
Change-Id: I3338d31eb2ed74aef0b0697c6070ab7b422514ba
2021-05-13 13:04:42 +00:00
Siim Sammul
8aa9913e66 Change settings observer for other processes to not pass a userhandle.
Bug: 180584913
Test: Not a functionality change
Change-Id: Ibf0442f9de45694e33131c0ac327d840eea8fbfe
2021-05-13 12:39:31 +00:00
Dmitri Plotnikov
b5d43c6b71 Merge "Do realistic data mocking in BluetoothPowerCalculatorTest" into sc-dev 2021-05-13 01:22:04 +00:00
TreeHugger Robot
1e1c864bc1 Merge "Fix BatteryStats Screen On timer reset" into sc-dev 2021-05-13 00:55:43 +00:00
Michael Wachenschwanz
96906f72e3 Fix BatteryStats Screen On timer reset
StopwatchTimer reset uses elapsedRealtime not uptime

Bug: 187844042
Test: builds + boots
Change-Id: I82286d74fef6256971361e70a787a2b39a7cbba4
2021-05-12 16:19:02 -07:00
Dmitri Plotnikov
9828eb9044 Do realistic data mocking in BluetoothPowerCalculatorTest
Bug: 187461241
Test: atest FrameworksCoreTests:BluetoothPowerCalculatorTest

Change-Id: I7974bd2ba434855a4b30e47b3e68e0a0569eb3f5
2021-05-12 16:09:27 -07:00
Dmitri Plotnikov
dd9dcdfb72 Merge "Fix device-level wakelock battery attribution" into sc-dev 2021-05-12 22:52:41 +00:00
Dmitri Plotnikov
59dd00ce46 Fix device-level wakelock battery attribution
Bug: 187844042
Test: atest FrameworksCoreTests:WakelockPowerCalculatorTest
Change-Id: I4e14d962db37adeafb793022b50da0065628238c
2021-05-12 14:21:12 -07:00
Connor O'Brien
0602a88a8f Merge "Log less on negative deltas in kernel CPU time readers" into sc-dev 2021-05-12 18:53:33 +00:00
Alexander Dorokhine
c0bf81a526 Link framework-appsearch against the module_current SDK.
This requires removal of all hidden APIs from the framework code.

Preconditions are jarjar'd into the jar.
Other APIs are replaced with system-visible equivalents.

Bug: 181787682
Bug: 146218515
Test: Presubmit
Change-Id: I6649bed3260ac08a0f66abd7a8ec545c401761fe
2021-05-12 11:34:51 -07:00
Siim Sammul
c0c44e6f03 Merge "Store the collected binder latency samples in buckets to form a histogram. Add the ability to generate histograms with varying bucket counts and sizes." am: e3873010be am: 65c37c7b1c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1703090

Change-Id: I927dc49ffeebf19bb355816f5f5f47ecd150fdb8
2021-05-12 10:13:16 +00:00
PETER LIANG
74a435858a Merge changes from topic "a11y_floating_menu_migration_tooltip" into sc-dev
* changes:
  Add the new migration tooltip for accessibility floating menu.(2/n)
  Add the new migration tooltip for accessibility floating menu.(1/n)
  Add key ACCESSIBILITY_FLOATING_MENU_MIGRATION_TOOLTIP_PROMPT.
2021-05-12 02:59:10 +00:00
Jeff DeCew
aeddbdc7c9 Merge changes I11400a55,I49461363,Ia18b2dc3,I8c554755 into sc-dev
* changes:
  Simplify SmartReplyView padding layout logic
  Smart action buttons now have 8dp corner radius
  Fix measure logic so that priority children can have more than 1/N space.
  Update the style of emphasized notification actions.
2021-05-11 22:35:37 +00:00
Connor O'Brien
0419d437c7 Don't remove UID data in readKernelCpuUid*TimesLocked
In both of these cases (removed isolated UID and nonexistent user) the
affected UID has already previously been enqueued in
mPendingRemovedUids and so all underlying cpu time data will be
cleared together after 5 minutes. Clearing the different sets of times
separately is buggy due to creating inconsistency among the
KernelCpuUid*TimeReaders. Removing data in these functions also
defeats the 5-minute delay that was intended to give statsd a chance
to read the data for removed UIDs.

Also update BatteryStatsCpuTimesTest to reflect the new behavior

Bug: 182272121
Test: atest com.android.internal.os.BatteryStatsTests shows no new
failures
Change-Id: I5719aecd5603cd9cecfbf75cede5eceeda8d0f5b
Signed-off-by: Connor O'Brien <connoro@google.com>
2021-05-11 15:19:29 -07:00
Connor O'Brien
3f8d333016 Log less on negative deltas in kernel CPU time readers
Logging the second, third etc. negative delta detected for a single
UID increases logging without a clear debugging benefit vs. just
noting the UIDs with at least one negative delta.

Bug: 182272121
Change-Id: Ia7c6994203493467d07eeb8092da1679864dc89e
Signed-off-by: Connor O'Brien <connoro@google.com>
2021-05-11 15:19:29 -07:00
Michael Wachenschwanz
7d8d752737 Merge "Wipe BatteryStats on Custom Power Bucket change" into sc-dev 2021-05-11 20:02:25 +00:00
TreeHugger Robot
ab367ab510 Merge "AttachedSurfaceControl: Respond to API feedback." into sc-dev 2021-05-11 19:13:05 +00:00
Siim Sammul
fff7124d3a Store the collected binder latency samples in buckets to form a
histogram. Add the ability to generate histograms with varying bucket
counts and sizes.

This is a direct cherrypick with no changes

Bug: 179999191
Test: unit tests

Change-Id: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
Merged-In: I58d3cbdd9ae43c8da121ec41d994b077e29bb371
(cherry picked from commit dcd3dc69a1)
2021-05-11 15:52:04 +00:00
Marcin Oczeretko
af586a1465 Merge "Count the overall number of missed frames" into sc-dev 2021-05-11 09:09:40 +00:00
Winson Chung
d011237d39 Merge "Add test api to gc system and sysui" into sc-dev 2021-05-11 05:02:35 +00:00
Charles Chen
c8bf38ce25 Merge "Fix IME switch dialog crash on Dual rootDA display" into sc-dev 2021-05-11 04:08:49 +00:00
Michael Wachenschwanz
fa2a4f44bd Wipe BatteryStats on Custom Power Bucket change
If the supported OTHER EnergyConsumers change after a reboot, the
MeasuredEnergyStats from the reboot can no longer be considered valid.

Bug: 178504428
Test: atest FrameworksCoreTests:com.android.internal.power.MeasuredEnergyStatsTest
Change-Id: I2561c459c0b2a881661bd2913f9413a2cbd96abb
2021-05-10 18:55:47 -07:00
Jeff DeCew
c6d567d239 Fix measure logic so that priority children can have more than 1/N space.
The priority previously just put the view at the front of the list, which ensured that super long user-provided actions couldn't cause the priority action at the end to be truncated.  However, this still meant that a priority action at the start whose text would have it be longer than 1/3 of the action space would be capped at 1/3 instead of taking on some of the user-defined child's space.

Bug: 187533622
Test: Post Notify2 app's Call style w/ Screen action; notice that "Decline" is not truncated.

Change-Id: Ia18b2dc366ba7cac13ed845acac59d89206e7d5e
2021-05-10 21:55:04 -04:00
Jeff DeCew
2ca6b4399a Update the style of emphasized notification actions.
* This removed many of the differences between CallStyle and emphasized actions.
* These actions are now pill shaped with a solid bg color, no stroke, less height, less spacing between, and wrapping content instead of splitting space equally.

Fixes: 187533622
Test: manual testing with Notify, Notify2, and Clock (using timers and alarms)
Change-Id: I8c554755755c59f2756870f7cd2e0c533d22d823
2021-05-10 21:41:52 -04:00
Dmitri Plotnikov
7b32d78264 Merge "Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats" into sc-dev 2021-05-11 01:24:56 +00:00
Menghan Li
f774ba0dac Merge "Apply dark theme for volume key shortcut warning dialog" into sc-dev 2021-05-11 00:57:44 +00:00
Peter_Liang
0ca995f360 Add the new migration tooltip for accessibility floating menu.(2/n)
Patch Action:
1.Linkify the text related to migration tooltip.
2.Create the component name of the sub setting of
Accessibility button let framework side could launch to
the corresponding setting page.

Bug: 175365399
Test: atest AccessibilityShortcutControllerTest AnnotationLinkSpanTest AccessibilityFloatingMenuTooltipViewTest MigrationTooltipViewTest
Change-Id: I2af5aaa5cf1789f406f423c64c91f0e23c31e6eb
2021-05-11 08:13:09 +08:00
Dmitri Plotnikov
e43992bbdb Convert BatteryStats.dumpLocked from BatteryStatsHelper to BatteryUsageStats
Bug: 162380414
Test: atest FrameworksCoreTests:BatteryUsageStatsTest

Change-Id: Icb508c60e037ee983c0ebde5905ec0a08fe648c3
2021-05-10 15:20:18 -07:00
Siim Sammul
e29e864c6f Merge "Create BinderLatencyObserver to collect binder call latency stats. Pushing these as a metric will come in a future change." am: 60cd2fa626 am: 0e29db726c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1697178

Change-Id: I0af62c50b32487734cc49a0f649c544728179593
2021-05-10 21:03:50 +00:00
Winson Chung
3d5b012471 Add test api to gc system and sysui
Bug: 186268407
Test: Presubmit
Test: adb shell cmd statusbar run-gc
Change-Id: Ie0567e1a75f6c991d226b5f90f1b126139b6be44
2021-05-10 13:13:06 -07:00
Siim Sammul
5e6453dc94 Create BinderLatencyObserver to collect binder call latency stats.
Pushing these as a metric will come in a future change.

This is a direct cherrypick with no changes.

Test: unit tests

Change-Id: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
Merged-In: I8a123f7aed7c0ce416814372f2287b04a8a04ac0
(cherry picked from commit 8d0ecde2b8)
2021-05-10 16:53:05 +00:00
Jorim Jaggi
5f6968d277 Merge "Correctly start tracing only where we are counting frames" into sc-dev 2021-05-10 15:37:28 +00:00
menghanli
208c172515 Apply dark theme for volume key shortcut warning dialog
Bug: 186076332
Test: Manual testing
Change-Id: I602e19af16baa466c29bdd3fde21e5b14024c26a
2021-05-10 11:19:16 +08:00
Jeff DeCew
21e2de2d4c Merge changes I7275175e,I4422c7e7 into sc-dev
* changes:
  Small tweaks to improve messaging/conversation appearance.
  Correct the centering of the conversation avatars when badged
2021-05-07 15:30:34 +00:00