Commit Graph

9573 Commits

Author SHA1 Message Date
Sudheer Shanka
53370a7894 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev am: 6bc6e21be7
am: ec9e20a1d9

Change-Id: Ifbc3b63ce0173c7f066ed3f5a360c0cca53f1814
2018-04-23 15:08:39 -07:00
Sudheer Shanka
6bc6e21be7 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev 2018-04-23 21:34:57 +00:00
Sudheer Shanka
e56013aa31 Rate limit battery external stats collection in takeUidSnapshot(s).
Bug: 74146897
Test: atest cts/tests/tests/os/src/android/os/health/cts/SystemHealthManagerTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2e01146718c3ce65d230308097622b958cb2897a
2018-04-23 11:38:36 -07:00
Fyodor Kupolov
b0ad3dd2c6 Merge "Enabled aggregated per-uid stats collection by default" into pi-dev am: 981d61ddf8
am: adb9a96b8e

Change-Id: I76eb5d2c94af5138232142ef603f7da6c088b2fa
2018-04-23 11:09:00 -07:00
TreeHugger Robot
981d61ddf8 Merge "Enabled aggregated per-uid stats collection by default" into pi-dev 2018-04-23 17:49:06 +00:00
Fyodor Kupolov
3f3af617ae Enabled aggregated per-uid stats collection by default
Enabled collection of number of calls per-uid. It has relatively small
overhead. Memory impact is minimal and cpu overhead is also small -
250 ns vs 1500 ns with detailed tracking

Detailed tracking is disabled by default. Controlled by
persist.sys.binder_calls_detailed_tracking

Added commands to reset and enable/disable detailed stats:
dumpsys binder_calls_stats --reset
dumpsys binder_calls_stats --enable-detailed-tracking
dumpsys binder_calls_stats --disable-detailed-tracking

Test: manual
Bug: 75318418
Change-Id: I7c1280c025001b6d2b46e4a37bad841712b6da2f
2018-04-20 16:12:41 -07:00
Mihai Popa
a2d9c7430a Merge "No divider between floating toolbar item groups" into pi-dev am: cbfe423122
am: 33a030ccdf

Change-Id: I767a5453a141f23f794bed4ba00327e24d847515
2018-04-20 10:22:57 -07:00
TreeHugger Robot
cbfe423122 Merge "No divider between floating toolbar item groups" into pi-dev 2018-04-20 16:53:31 +00:00
Mihai Popa
66d41f87ea No divider between floating toolbar item groups
The CL removes the vertical divider that used to exist between adjacent
menu item groups in the floating toolbar, as well as the extra padding
between these, in order to adapt to the new UX requirements. The CL also
centers the text view inside a button, when there is no icon shown at
the left of the text view. This is only relevant when the minimum size
of the button is larger than the text measured width, and we want the
text to be centered inside the button in this case.

Bug: 74032743
Test: manual testing
Change-Id: I309c729eb842d9388066bfb43eb18f33dbfe10b8
2018-04-20 11:05:47 +00:00
Makoto Onuki
c52be80cb7 Merge "Split provider / service dumpsys into platform and non-platform" into pi-dev am: dbdf5df96e
am: c7ed7f0074

Change-Id: I84fd648bf5b47690ab0082516a99c4bbd7be1914
2018-04-19 11:00:05 -07:00
Makoto Onuki
dbdf5df96e Merge "Split provider / service dumpsys into platform and non-platform" into pi-dev 2018-04-19 17:21:48 +00:00
TreeHugger Robot
448663576f Merge "Properly manage explore by touch helper state" 2018-04-19 02:08:27 +00:00
Phil Weaver
02872bb90b Properly manage explore by touch helper state
When a hover exit happens, update state if a virtual
view is being hovered over. Whether or not it has
accessibility focus is not relevant.

Bug: 78008262
Test: atest CtsAccessibilityServiceTestCase
Change-Id: I09038c3daefa766c9276d309c52e4737b2c413d6
2018-04-18 17:11:02 -07:00
TreeHugger Robot
a47c03960b Merge "Make getLanguageFromLocaleString private" 2018-04-18 19:01:05 +00:00
Dieter Hsu
0e14c74f09 Merge "Add rank & count event to notification clicks and dismisses" into pi-dev am: afc909d3ba
am: 64df7a46e0

Change-Id: Iaca38ea5698f750a53d1987929a36ae1de4f035a
2018-04-18 06:31:01 -07:00
Dieter Hsu
afc909d3ba Merge "Add rank & count event to notification clicks and dismisses" into pi-dev 2018-04-18 13:05:43 +00:00
Dieter Hsu
d39f0d52dc Add rank & count event to notification clicks and dismisses
For click/action click/dismiss, passing rank(0-based) and
count at the time of the actions to events.

Bug: 70724602
Test: runtest systemui-notification
Test: atest packages/SystemUI/tests/src/com/android/systemui/statusbar/notification
Change-Id: I07c440f84ccb745f744eb4e317881b72d2b41683
2018-04-18 03:28:48 +00:00
Julia Reynolds
3d0717898c Merge "Exclude system notifications from visual suppression" into pi-dev am: f9e4ccfe87
am: 8acacb7057

Change-Id: I7ad77aa40dce38bd56ea6b471ad88fa2f4d22747
2018-04-17 14:25:00 -07:00
Makoto Onuki
0b575a3cdf Split provider / service dumpsys into platform and non-platform
Also extend the timeout to 60 seconds.
- Because each provider / service dump may time out, the total time should relatively be large.

Bug: 78017892
Fix: 78017892

Test: Manual test with the following dumpsys commands:
dumpsys activity provider all
dumpsys activity provider all-platform
dumpsys activity provider all-non-platform
dumpsys activity provider com.android.providers.contacts/com.android.providers.contacts.VoicemailContentProvider
dumpsys activity provider com.android.providers.contacts/.VoicemailContentProvider
dumpsys activity provider contacts
dumpsys activity provider voicemail
dumpsys activity provider 4d45a78

dumpsys activity service all
dumpsys activity service all-platform
dumpsys activity service all-non-platform
dumpsys activity service bluetooth

Test: atest /android/pi-dev/frameworks/base/core/tests/coretests/src/com/android/internal/util/DumpTest.java
Test: atest /android/pi-dev/frameworks/base/core/tests/coretests/src/com/android/internal/util/ParseUtilsTest.java

Test: Manual test with "adb bugreport" with adding sleep(10s) to ProviderMap.dumpProvider()

Change-Id: I00bce0090b8dbb947d7f8b1e5d01bb8a70d84bd8
2018-04-17 10:41:40 -07:00
Julia Reynolds
aa96cf3460 Exclude system notifications from visual suppression
But silence them by saying them cannot bypass DND.

Test: atest SystemUITests
Bug: 77656914
Change-Id: I044696cfdcef0e4a14be21173949612480722236
2018-04-17 15:27:35 +00:00
Dmitry Dementyev
51806c9862 Merge "Remove implementation of deprecated RecoveryController methods." into pi-dev am: 5291268754
am: 88a9786359

Change-Id: I6ba172a7f56904ba603ed816d1a32f3357d4563f
2018-04-16 16:12:43 -07:00
TreeHugger Robot
5291268754 Merge "Remove implementation of deprecated RecoveryController methods." into pi-dev 2018-04-16 22:14:22 +00:00
Jeff Sharkey
ca4ea18363 Merge "Revert "Revert "OP_GET_USAGE_STATS should be noted, not checked.""" into pi-dev am: f78b8ce258
am: 563a57bcf9

Change-Id: I9b5b2fc72188258326cc875457886370cb20e4fd
2018-04-16 10:31:41 -07:00
Jeff Sharkey
9415b11aca Merge "Revert "OP_GET_USAGE_STATS should be noted, not checked."" into pi-dev am: e0fe6df357
am: 0cd9173ad3

Change-Id: I82d0ba458b4caf71bd7bf6719b027bd89767709d
2018-04-16 10:17:37 -07:00
Jeff Sharkey
d9311198e1 Revert "Revert "OP_GET_USAGE_STATS should be noted, not checked.""
This reverts commit bd2a9a2915.

Reason for revert: ijpedowitz@

Bug: 77662908
Change-Id: I596d330d64942105f447bb613012bb11e281a805
Exempt-From-Owner-Approval: keep tests passing
2018-04-16 16:50:34 +00:00
Jeff Sharkey
bd2a9a2915 Revert "OP_GET_USAGE_STATS should be noted, not checked."
This reverts commit 5a8bcd9031.

Reason for revert: ijpedowitz@

Bug: 77662908
Change-Id: I5dd0ad5038df90ea8a80ba6f583ee46fb24600c2
Exempt-From-Owner-Approval: keep tests passing
2018-04-16 16:39:55 +00:00
Jeff Sharkey
de1cacf9ad Merge "OP_GET_USAGE_STATS should be noted, not checked." into pi-dev am: 64bbb2014e
am: 830af174ed

Change-Id: I808449f6122ae54e590d7bc2338ad140a47cca33
2018-04-14 18:53:15 -07:00
Dmitry Dementyev
745d2c98f9 Remove implementation of deprecated RecoveryController methods.
Bug: 78021839
Test: manual
Change-Id: I8a8a23f1cc14e7b9ffe1e758b6f35906d1a5cf2f
2018-04-14 13:37:07 -07:00
Yohei Yukawa
e9eff660e0 Make getLanguageFromLocaleString private
As part of effort to lock down the use of InputMethodUtils only within
the core system components, this CL removes the dependency on
InputMethodUtils#getLanguageFromLocaleString() from the Settings UI
code.

At high level, there should be no user visible behavior change.

Bug: 77730201
Test: atest SettingsLibTests:com.android.settingslib.inputmethod.InputMethodSubtypePreferenceTest
Change-Id: I92cc0b0808f3e40ab92b60ec783ad218141f2bbd
2018-04-13 16:28:20 -07:00
Jeff Sharkey
5a8bcd9031 OP_GET_USAGE_STATS should be noted, not checked.
Per email feedback, we should be using "noteOp" instead of "checkOp"
when testing if caller holds OP_GET_USAGE_STATS, so that we record
that caller used the operation.

Bug: 77662908
Test: builds, boots
Exempt-From-Owner-Approval: keep tests passing
Change-Id: I3a60345d590534fdbc2c1248e0d30dc85a5d6772
2018-04-13 19:32:25 +00:00
Lucas Dupin
d5024ccbb1 Merge "Fix measurement of list with single item" into pi-dev am: beefded4c7
am: 34ac9aa7f7

Change-Id: I9f382c343d725160c101d3dacda9120819801853
2018-04-12 19:40:05 -07:00
TreeHugger Robot
beefded4c7 Merge "Fix measurement of list with single item" into pi-dev 2018-04-13 02:09:27 +00:00
Lucas Dupin
fc7036cb21 Fix measurement of list with single item
Change-Id: I2474410b7374155bbbe5de0c757e9017f52746e5
Fixes: 72656378
Test: visual
2018-04-12 17:45:29 -07:00
Selim Cinek
c5ae11b044 Merge "Changed the appearance of phone call notifications" into pi-dev am: e0a25acf08
am: aab697426c

Change-Id: I0ca3ceadf4480b3d1524802d7c1ad0c60e1df2ec
2018-04-12 17:14:20 -07:00
TreeHugger Robot
e0a25acf08 Merge "Changed the appearance of phone call notifications" into pi-dev 2018-04-12 21:01:16 +00:00
Selim Cinek
396cacaaa8 Changed the appearance of phone call notifications
The old design didn't work at all because of various
paddings. The new design adds more paddings and a
new button style

Fixes: 72814598
Test: runtest systemui
Change-Id: I4b4ac0790afe45db97f912740446c6da09620be3
2018-04-12 11:09:23 -07:00
Makoto Onuki
a31a1c67f4 Merge "Add stats logging to ServiceManager and NPMS" into pi-dev am: a26e755900
am: fa3a2acfbc

Change-Id: I30bea4b59318ac1871293739c6c5f2d9b7551fb1
2018-04-11 19:01:30 -07:00
TreeHugger Robot
a26e755900 Merge "Add stats logging to ServiceManager and NPMS" into pi-dev 2018-04-12 01:13:07 +00:00
Suprabh Shukla
b1d40ed244 Merge "Updating strings for activity interceptor dialog" into pi-dev am: 3e5b5076a2
am: 87615abce6

Change-Id: Ic33f14d23c84a7eb45fd7815873c7c94290b5f6c
2018-04-11 17:06:33 -07:00
TreeHugger Robot
3e5b5076a2 Merge "Updating strings for activity interceptor dialog" into pi-dev 2018-04-11 23:39:46 +00:00
Makoto Onuki
49392d335a Add stats logging to ServiceManager and NPMS
ServiceManager:
- Do an event log every N getService() calls with total time spent
in getService().
where N = 100 for core UIDs and 200 for other apps.

- Do an event log if getService() takes longer than N ms.
where N = 10 for core UIDs and 50 for other apps.

... with some extra throttling.

NPMS:
- Do the basic "stats logger" log for updateNetworkEnabledNL() and
isUidNetworkingBlocked()

This CL also enhances StatsLogegr so it now can show the slowest call
and the max # of calls per-second.

Bug: 77853238
Test: Manual test:
- Insert a SIM card
- Set data limit
- toggle airplane mode
- toggle wifi
- toggle mobile data

Then
- "dumpsys netpolicy" and "dumpsys activity processes" and check the stats
- also check "adb logcat -b all | grep ' service_manager'"

Change-Id: I5789541063f95d0eac501189816c8604a4571ba0
2018-04-11 16:37:57 -07:00
Mihai Popa
8218633841 Merge "Fix ripple effect for floating toolbar menu items" into pi-dev am: 6afcf2fb4d
am: 6c909a6681

Change-Id: I0e005a74068848ac535d5fa5dbbd3a241ac1f4c7
2018-04-11 15:37:40 -07:00
Mihai Popa
6afcf2fb4d Merge "Fix ripple effect for floating toolbar menu items" into pi-dev 2018-04-11 22:14:51 +00:00
Mathew Inwood
070eeaf375 Merge "Configurable sampling rate for hidden API access log events." into pi-dev am: fb55bd8706
am: d39b02157b

Change-Id: I135d9a3bb38c238185763dd14ef103ea860fbb1a
2018-04-11 10:43:38 -07:00
Mathew Inwood
fb55bd8706 Merge "Configurable sampling rate for hidden API access log events." into pi-dev 2018-04-11 16:45:19 +00:00
TreeHugger Robot
a75c41bd45 Merge "Deprecate InputMethodUtils#isSystemIme() part 3" 2018-04-11 15:03:46 +00:00
Kenny Guy
d04a72ac71 Add logging for smart replies in notifications. am: 23991105bd
am: 8f1810645f

Change-Id: I80db2ab8ddb846aa6df4d057cd7bbc0af33a34f6
2018-04-11 04:45:28 -07:00
Kenny Guy
23991105bd Add logging for smart replies in notifications.
Log the first time a notification with smart
replies is visible.
Log each click on a smart reply.

Test: atest SystemUITests
Bug: 72153458
Change-Id: I6dc498871000dbb9af978567db3d258b20978781
2018-04-11 10:09:03 +01:00
Suprabh Shukla
c401f155f0 Updating strings for activity interceptor dialog
Updated to more descriptive title and button text.
The default message dialog will also show the suspending app name.

Test: atest \
com.android.server.pm.SuspendPackagesTest#testInterceptorActivity

Bug: 75332201
Change-Id: Ica77fb04874a8e32fe0d82ac27a9babd3b186f8d
2018-04-10 21:54:02 -07:00
Yohei Yukawa
c823b634cc Deprecate InputMethodUtils#isSystemIme() part 3
With my previous two CLs [1][2], InputMethodUtils#isSystemIme() is
used nowhere. Hence we can safely remove this unused method.

 [1]: I9c8518988787b748ebb35fc86fe6beee1d6c633d
      fd70fe8fe1
 [2]: I33a8489c0597bd881dd8b68b28fc0d99109c11a5
      a3401f2cb0222d058f452885109071e9fd70a6be

Bug: 77730201
Test: compile
Change-Id: I959209c5fef7e9653e09333e860e763f0d4c262c
2018-04-10 21:52:03 -07:00