Commit Graph

40491 Commits

Author SHA1 Message Date
Dieter Hsu
afc909d3ba Merge "Add rank & count event to notification clicks and dismisses" into pi-dev 2018-04-18 13:05:43 +00:00
TreeHugger Robot
f921b507ea Merge "Transitionless crashes" into pi-dev 2018-04-18 11:50:03 +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
TreeHugger Robot
a2b4cc9ea0 Merge "Adding Location Request History Foreground Tracking" into pi-dev 2018-04-18 02:33:36 +00:00
TreeHugger Robot
4ea0a5a2df Merge "Remove Persistent proccess without WTFing" into pi-dev 2018-04-18 00:16:24 +00:00
TreeHugger Robot
6b7b171dba Merge "Group suppression shouldn't affect rating limiting" into pi-dev 2018-04-18 00:14:21 +00:00
TreeHugger Robot
1074688a26 Merge "Fix issue #78138020: Improve app ops dumpsys" into pi-dev 2018-04-17 22:34:10 +00:00
TreeHugger Robot
d688e7b15d Merge "Load fallback categories earlier" into pi-dev 2018-04-17 20:21:30 +00:00
Kevin Chyn
7b3e68232c Merge "Log before stopping/removing the current client" into pi-dev 2018-04-17 19:57:51 +00:00
Julia Reynolds
79dfdd6c67 Group suppression shouldn't affect rating limiting
For real this time

Test: runtest systemui-notification
Change-Id: Ia4d771399ca17e9f8dcb386f6f3daff64dc66a69
Fixes: 69300511
2018-04-17 15:38:40 -04:00
TreeHugger Robot
e5c9cc124a Merge "All users will hear charging sounds." into pi-dev 2018-04-17 19:13:11 +00:00
Wyatt Riley
f7075e05e2 Adding Location Request History Foreground Tracking
Improving adb shell dumpsys location in light of
Background Location Limits

Bug: 73598719
Test: atest and on-device verification
Change-Id: I0b24d14f1557a36d9162770c9bc7081d9787d0cf
2018-04-17 12:10:50 -07:00
Chavi Weingarten
8b328b6f16 Merge "Don't start Window enter animation as a result of AWT becoming visible." into pi-dev 2018-04-17 18:16:46 +00:00
TreeHugger Robot
096e0587d2 Merge "Checks that secondary instrumentation ABI matches" into pi-dev 2018-04-17 18:16:18 +00:00
TreeHugger Robot
2331a14867 Merge "Make VR brightness adjustable again." into pi-dev 2018-04-17 18:11:29 +00:00
Todd Kennedy
a63d57ab65 Load fallback categories earlier
At the end of the package manager constructor, we are prepare the data
directories for all installed applications. This creates ApplicationInfo
objects which needs to load categories from the fallback categories provider.
If we're populating the fallback categories during this time, there's a
subtle timing issue where we may return a 'null' category instead of an
Integer.

Change-Id: I974a39029d6c15d3986571e610eb0cd106fdc05c
Fixes: 78128442
Test: Manual. System boots and no crash
2018-04-17 10:40:58 -07:00
Kevin Chyn
a792fa64ff Log before stopping/removing the current client
Fixes: 78108831

Test: try adding accounts 20+ times, no crash observed
Change-Id: I4b5e1352d595efceab2299d6b369517a0840aa1b
2018-04-17 10:38:53 -07:00
chaviw
e390cbd937 Don't start Window enter animation as a result of AWT becoming visible.
There are some cases where AWT becomes visible without an animation. It
will then start a WindowState enter animation if WS is not visible yet.
However, this is problematic since the WS may not be ready to become
visible yet. For example, relayout may not have been called yet to
create a surface and the size of the surface is not yet set. This causes
problems when determining the position of the leash when the animation
is created. Instead allow the WS relayout to handle starting the
enter animation so the WS is set properly.
As for the case where AWT is becoming not visible without an animation, but
WS is still visible, create an exit animation for the WS. This is
because there won't be a client to trigger this animation.

Change-Id: Ic9215a0c96f219f5bc87b16067755af582883a5d
Fixes: 77447982
Test: Issue from bug
2018-04-17 10:06:48 -07:00
Patrick Baumann
eb59580abd Checks that secondary instrumentation ABI matches
This adds checks that the secondary ABI for an instrumentation package
matchs that of its target before using it when forced and warns of
mismatches.

Change-Id: I394427721c83cbd1c3c6af6cee24a93b18d8c65f
Fixes: 77152863
Test: gts-tradefed > run gts -m GtsBackupHostTestCases -a armeabi-v7a do not all fail with NPE
2018-04-17 09:55:47 -07:00
TreeHugger Robot
7168c3baac Merge "StackDivider: Make sure that changed stable insets get dispatched" into pi-dev 2018-04-17 16:29:31 +00:00
TreeHugger Robot
a73a2c347b Merge "Don't crash apps on notification error" into pi-dev 2018-04-17 16:29:24 +00:00
TreeHugger Robot
575fc02edf Merge "Refactored the UserRecyclerGridView to use PagedListView from the car support library. This also surfaced a scrollbar. Additionally, added a touch ripple when you touch a user's picture and disabled the user buttons once a profile is selected" into pi-dev 2018-04-17 15:31:08 +00:00
Julia Reynolds
3ad4cdd107 Don't crash apps on notification error
Apps cannot recover from this error, and crashing is a bad user
experience.

Test: none
Bug: 30529567
Change-Id: I088ab04f8efeb5fa2483520141c54e90ff441ba4
2018-04-17 15:27:49 +00:00
Santos Cordon
b12c7e10de Make VR brightness adjustable again.
After some code adjustment, changes to VR's brightness setting
were not respected.  Add code to listen for the changes and clamping
code to support the min & max values for VR brightness.

Bug: 73090564

Test: while in VR mode, verify that the following command updates
brightness: 'adb shell system put screen_brightness_for_vr
<VALUE>'

Change-Id: I1ce411c5b5fff11c40d1a6ac0b20588b69d2e64e
2018-04-17 14:52:29 +00:00
Adrian Roos
935772129d Transitionless crashes
Suppresses app transitions when an activity finishes due to crashing.

Fixes: 70640329
Test: "Dev Tools" > Bad Behavior > Crash main thread, verify there's no transition.
Change-Id: I51c4b98b793794b013c266a1dee3fb2e7faf4bd7
2018-04-17 15:59:50 +02:00
Andrew Scull
d7cea28bbc Merge "LSS: pass secret to AuthSecret HAL when no credential" into pi-dev 2018-04-17 11:04:52 +00:00
Ricky Wai
421ec104af Merge "Do not generate non-primary profile watchlist report" into pi-dev 2018-04-17 10:40:21 +00:00
Andrew Scull
f49794b512 LSS: pass secret to AuthSecret HAL when no credential
If there was once a credential, a secret will have been enrolled. When
the credential is removed, that secret is still enrolled but still needs
to be derived. This adds that derivation in the case that the secret is
enrolled by the user doesn't have a credential.

Bug: 77942316
Test: runtest frameworks-services -c com.android.server.locksettings.SyntheticPasswordTests
Change-Id: I099a9537ab0739830a234b5f4f3721f4e8476571
2018-04-17 10:34:04 +01:00
Aarthi Balachander
608b6e3b07 Refactored the UserRecyclerGridView to use PagedListView from the
car support library.  This also surfaced a scrollbar.
Additionally, added a touch ripple when you touch a
user's picture and disabled the user buttons once a profile is
selected

Test: tested on Mojave
bug: 77870748, 77869522, 77870549
Change-Id: I3706f1089c7c91e8db8d9126a269fd984e2b5dc9
2018-04-16 18:25:26 -07:00
Dianne Hackborn
3b563fcb99 Fix issue #78138020: Improve app ops dumpsys
Now have all the information needed to understand who is
monitoring what.

Bug: 78138020
Test: manual

Change-Id: Idd18eaae64549ac66b52e091f72f786865d93601
2018-04-16 17:22:02 -07:00
Makoto Onuki
d7732b4c8a Merge "Add 1-day sync stats in syncmanager dumpsys." into pi-dev 2018-04-17 00:11:25 +00:00
TreeHugger Robot
4a17a574f6 Merge "InstantAppRegistry: adjust backwards compat cookie sig check." into pi-dev 2018-04-17 00:09:14 +00:00
TreeHugger Robot
c359f49045 Merge "Add tracing for network statistics and policy." into pi-dev 2018-04-17 00:08:41 +00:00
Jeff Sharkey
936c0868f8 Merge "Protect usage data with OP_GET_USAGE_STATS." into pi-dev 2018-04-17 00:04:53 +00:00
TreeHugger Robot
f3015eb0df Merge "Treat named standby states as ceilings of behavioral categories" into pi-dev 2018-04-16 23:48:41 +00:00
Tomasz Wasilczyk
0e07ed14a2 Merge "Remove setDeviceConnectionState hack for radio mute/unmute." into pi-dev 2018-04-16 23:37:10 +00:00
TreeHugger Robot
17d2de09cb Merge "Adds a code when statsd sends intent to getData." into pi-dev 2018-04-16 22:46:03 +00:00
TreeHugger Robot
5291268754 Merge "Remove implementation of deprecated RecoveryController methods." into pi-dev 2018-04-16 22:14:22 +00:00
Julia Reynolds
58a476920f Merge "Remove streams from system_server" into pi-dev 2018-04-16 22:13:07 +00:00
Rubin Xu
ece60739aa Merge "Remove unnecessary disk access when loading synthetic password states" into pi-dev 2018-04-16 21:58:33 +00:00
Dan Cashman
928b70303c InstantAppRegistry: adjust backwards compat cookie sig check.
InstantAppRegistry used to store cookies based on the hash of only
one of the signing certificates out of potentially multiple signing
certificates.  To prevent loss of stored cookie info for an app which
has multiple signing certificates, it needs to check if the stored hash
value corresponded to only one of those certs before this was corrected.
Since the order of signing certificates is not specified, all cert hashes
should be compared to see if one of them matches the stored value.

Bug: 73739156
Test: android.appsecurity.cts.InstantCookieHostTest#testCookieValidWhenSingedWithTwoCerts
Change-Id: I2d616ca7ba60104f0b009d23e8eb4e7f525362fd
2018-04-16 14:18:48 -07:00
Christopher Tate
f215971e83 Treat named standby states as ceilings of behavioral categories
For purposes of alarm dispatch & job execution, intermediate standby
states are now treated as the ceilings of the range associated with each
bucket, rather than as the floor.  So, for example, a value that is
between STANDBY_BUCKET_WORKING_SET and STANDBY_BUCKET_ACTIVE is now
treated as equivalent to STANDBY_BUCKET_WORKING_SET.

Bug: 77154340
Test: atest CtsJobSchedulerTestCases
Change-Id: I84d010863eecaac011dd117205980254487bfa64
2018-04-16 19:45:54 +00:00
Jeff Sharkey
00072395e2 Add tracing for network statistics and policy.
These trace points surround areas of heavy lifting to help us debug
code that might be taking longer than expected.  (For example, slow
getting data from eBPF, slow recording into data structures, slow
writing to disk, or slow evaluating policy.)

Typical timings on a taimen:

performPollLocked:   25.5ms
snapshotUid:          4.4ms
snapshotXt:           1.4ms
[persisting]:        13.4ms
updateNotifications:  3.3ms

Bug: 77908520, 77808546, 77853238, 77154412
Test: builds, boots
Change-Id: I072bfecffee01eeec7e4cbad439bd1cdc166febc
2018-04-16 13:31:32 -06:00
Makoto Onuki
9498621f41 Add 1-day sync stats in syncmanager dumpsys.
The stats currently shown in sync manager dumpsys is the total *since wipe* so
they're usually pretty much useless.

So let's add "today" and "yesterday" stats too.

- Also add "# failures" and "# cancels".
- Also split up SERVER to OTHER and FEED (i.e. subscribedfeeds).

Bug: 76035392
Test: Boot, run some sync, then do "cmd content reset-today-stats"
- Also tested with actually setting the clock to 23:59 and wait
- Check the result with "dumpsys content".

Sample output:
=======================================================================
Authority                                           Syncable  Enabled  Stats  Loc  Poll  Per  Feed  User  Othr  Tot  Fail  Can  Time  Last Sync            Backoff
------------------------------------------------------------------------------------------------------------------------------------------------------------------
com.android.calendar                                1         true     Total  0    0     0    1     0     7     8    0     2    8s    FEED SUCCESS
                                                                       Today                  1           5     6               7s    2018-04-12 15:21:24
                                                                       Yestr                                                    0s
com.android.chrome                                  0         false    Total  0    0     0    0     0     0     0    0     0    0s
                                                                       Today                                                    0s

Change-Id: Id0ea42435a9f759e47d4b9490292759270f8e9a5
2018-04-16 12:23:26 -07:00
Tomasz Wasilczyk
1923eb9193 Remove setDeviceConnectionState hack for radio mute/unmute.
Bug: 77863406
Test: it builds, it didn't work anyway
Change-Id: Ib77d34d4c425e341faa52c6e99f7e289be04f433
2018-04-16 11:56:00 -07:00
Jeff Sharkey
6b64925737 Protect usage data with OP_GET_USAGE_STATS.
APIs that return package usage data (such as the new StatsManager)
must ensure that callers hold both the PACKAGE_USAGE_STATS permission
and the OP_GET_USAGE_STATS app-op.

Add noteOp() method that can be called from native code.

Also add missing security checks on command interface.

Bug: 77662908, 78121728
Test: builds, boots
Change-Id: Ie0d51e4baaacd9d7d36ba0c587ec91a870b9df17
2018-04-16 12:44:32 -06:00
TreeHugger Robot
8f308fd4e3 Merge "Add logging to ScheduleConditionProvider" into pi-dev 2018-04-16 17:38:34 +00:00
Bryce Lee
216b50ad97 Merge "Remove temporary logging." into pi-dev 2018-04-16 17:36:45 +00:00
Julia Reynolds
2f49696247 Remove streams from system_server
Test: runtest systemui-notification
Change-Id: I9ceaabfe6ac5fd64a4f93ca6f4521b7caf0c222d
Fixes: 77972263
2018-04-16 13:17:01 -04:00
Jeff Sharkey
f78b8ce258 Merge "Revert "Revert "OP_GET_USAGE_STATS should be noted, not checked.""" into pi-dev 2018-04-16 16:54:32 +00:00