Commit Graph

9547 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
adb59a0126 Merge "Remove duplicate code from InputMethodUtils" 2018-04-10 23:13:36 +00:00
Yohei Yukawa
08a3ecea32 Remove duplicate code from InputMethodUtils
This is a follow up CL to my CL [1], which originally aimed to revert
the CL [2] that added several methods into InputMethodUtils but could
not because those methods were already used in other places.

Interestingly we already have almost the same code in
InputMethodAndSubtypeUtil in SettingsLib package on which those other
projects can depend on. Hence this CL removes InputMethodUtils' ones
to avoid code duplication.

Although in future we may move the logic back to framework internal,
at the moment it is more important to reduce code duplication.

Note that this CL also ports existing test cases for those two
functions from FrameworksCoreTests to RunSettingsLibRoboTests in
GoogleTruth style.

 [1]: I122a8f69b2f75a9af85e14b66db764c5d153040e
      ca7809507c
 [2]: I01f5fafbbcfe3e3f5313829162ec011eaf2ad991
      2028ddaa50

Fixes: 73056657
Test: atest InputMethodUtilsTest
Test: make RunSettingsLibRoboTests -j
Test: prebuilts/checkstyle/checkstyle.py -f frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/inputmethod/InputMethodAndSubtypeUtilTest.java
Change-Id: Iad926ffd9806482a5aef0d8c20d2049be40d03c9
2018-04-10 14:50:53 -07:00
Mathew Inwood
04194fef78 Configurable sampling rate for hidden API access log events.
To reduce log spam, we do not log all hidden API accesses. This CL allows
configuration of the sampling rate of the log events so it can be tweaked
later if necessary.

Test: m
Test: $ adb shell settings put global hidden_api_access_log_sampling_rate 65536
Bug: 64382372
Bug: 77517571
Change-Id: I659c22bd504564da58d972f94b774a9af4039386
2018-04-10 16:57:07 +01:00
Mihai Popa
17f91d5413 Fix ripple effect for floating toolbar menu items
A corner radius was set for the floating toolbar in
Ifcf4cff1f38fd18b7dbb4c1802390e3beb92cd3c. This produced a bug, where
the ripple effect set on the floating toolbar menu items was expanding
outside the corners when these were pressed.

This CL sets the menu items container to clip to outline, such that the
ripple effect of the menu items will be clipped.

Bug: 77547543
Test: manual testing
Change-Id: Ib43a6c719aab1403273f47e559433c9856b4f8b4
2018-04-10 16:10:16 +01:00
TreeHugger Robot
1a19481e27 Merge "Deprecate InputMethodUtils#isSystemIme() part 1" 2018-04-09 22:02:46 +00:00
Yohei Yukawa
fd70fe8fe1 Deprecate InputMethodUtils#isSystemIme() part 1
There are not a small number of files that import InputMethodUtils
just to use InputMethodUtils#isSystemIme() is necessary.

In order to make InputMethodUtils purely an internal utility library,
it would make much more sense if the logic is implemented as a private
API of InputMethodInfo, like methods like
InputMethodInfo#isAuxiliaryIme(), rather than in a static method of
InputMethodUtils.

This is a purely mechanical refactoring.  There should be no behavior
change.

Bug: 77730201
Test: atest FrameworksCoreTests:com.android.internal.inputmethod.InputMethodUtilsTest
Change-Id: I9c8518988787b748ebb35fc86fe6beee1d6c633d
2018-04-08 12:19:56 -07:00
Mike Ma
a15aa6e2fd Merge "Fix ambient display time unit error" into pi-dev 2018-04-06 19:32:20 +00:00
TreeHugger Robot
bcccb1aff5 Merge "Switch to Saturated color mode when Accessibility transforms are active" into pi-dev 2018-04-06 17:12:01 +00:00
Mike Ma
e074da1804 Fix ambient display time unit error
Treated return value from mStats.getScreenDozeTime as ms, but indeed it
is us.
Fixes: 77655868
Test: manual

Change-Id: Ic9838a2fca3f49a6f5a669bd1970dcc7560fb5e2
2018-04-05 17:29:42 -07:00
Selim Cinek
9acd673c0d Migrated the Person class to its own file
Because we are expecting usage of Person across
other surfaces, we migrate the class out
of he Notification class which is already incredibly
huge.

Test: Migrated existing cts test
Change-Id: Ia487ae7965b5ca2b016245d21faa63e3b4628344
Fixes: 75980526
2018-04-05 17:21:11 -07:00
TreeHugger Robot
d7c3ba204c Merge "Ensured that the reply icon isn't showing on HUNS" into pi-dev 2018-04-05 23:57:11 +00:00
Vishwath Mohan
5ab3cf8bec Merge "Rename BiometricDialog to BiometricPrompt." into pi-dev 2018-04-05 21:23:32 +00:00
TreeHugger Robot
822ce4f3aa Merge "Activity interceptor dialog for suspended apps" into pi-dev 2018-04-05 21:15:19 +00:00
Vishwath Mohan
ecf00cedb6 Rename BiometricDialog to BiometricPrompt.
Renamed to BiometricPrompt per API-council feedback.

Bug: 77494933
Test: m -j70
Change-Id: Ifed2b8f3439a7e671e0ce46d3a7db9f24871b16a
2018-04-05 10:41:19 -07:00
Kevin
79ed9ecff3 Turn off notification in-line images for low ram devices
Bug: 77598694
Change-Id: Icdd4c2ef790d2d657f7670fa8c1b8b39b7aa62e4
Fix: 77598694
Test: manual, tested notification on gobo and sailfish
2018-04-05 10:17:45 -07:00
Suprabh Shukla
3c3af1406e Activity interceptor dialog for suspended apps
Added an AlertActivity to intercept the start for an activity belonging
to a suspended app. More details will be shown if the suspending app
also defines an activity to handle the API action
SHOW_SUSPENDED_APP_DETAILS.

Test: Added tests to existing classes. Can be run via:
atest com.android.server.pm.SuspendPackagesTest
atest com.android.server.pm.PackageManagerSettingsTests
atest com.android.server.pm.PackageUserStateTest

Bug: 75332201
Change-Id: I85dc4e9efd15eedba306ed5b856f651e3abd3e99
2018-04-04 18:40:19 -07:00
TreeHugger Robot
a926126a8b Merge "Frameworks: In the kill handler, ensure the logging handler was run" into pi-dev 2018-04-04 15:04:37 +00:00
Mike Ma
2873d59e0b Merge "Register broadcast receiver at runtime instead" into pi-dev
am: 806be6b602

Change-Id: I3375ae095ef08830ea1892c3652832d17308340d
2018-04-03 18:51:08 -07:00
Andreas Gampe
bae0bb191e Merge "Frameworks: In the kill handler, ensure the logging handler was run" am: c0ac9e916f
am: c9740fb393

Change-Id: Ie65982c54312c3eb854a4e663fe7bd0ff22c92c5
2018-04-03 13:41:25 -07:00
Andreas Gampe
c9740fb393 Merge "Frameworks: In the kill handler, ensure the logging handler was run"
am: c0ac9e916f

Change-Id: Ica29cdf9a4b17b6cec957093c35b735d64568029
2018-04-03 13:29:06 -07:00
Mike Ma
fbc01fcbd5 Register broadcast receiver at runtime instead
Cannot find class when registering Usb connection broadcast receiver
in AndroidManifest, causing system process to crash. Switch to
register receiver at runtime when boot complete.

Fixes: 77274266
Test: Manually plug & unplug usb cable, and reboot device
Test: Verify usb_data appears in batterystats dump
Test: Verify there is no crash log
Change-Id: If4a9e85aa81173ad6d8cb6ce28cc030814c520a5
2018-04-03 12:32:56 -07:00