Commit Graph

4365 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
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
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
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
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
TreeHugger Robot
5291268754 Merge "Remove implementation of deprecated RecoveryController methods." into pi-dev 2018-04-16 22:14:22 +00: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
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
e0fe6df357 Merge "Revert "OP_GET_USAGE_STATS should be noted, not checked."" into pi-dev 2018-04-16 16:50:06 +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
Dmitry Dementyev
745d2c98f9 Remove implementation of deprecated RecoveryController methods.
Bug: 78021839
Test: manual
Change-Id: I8a8a23f1cc14e7b9ffe1e758b6f35906d1a5cf2f
2018-04-14 13:37:07 -07:00
TreeHugger Robot
8d1ff46dfc Merge "Don't create recovery snapshot until it contains at least one key." into pi-dev 2018-04-14 16:39:30 +00:00
Jeff Sharkey
64bbb2014e Merge "OP_GET_USAGE_STATS should be noted, not checked." into pi-dev 2018-04-13 23:58:44 +00:00
Jason Parks
a668c66301 Merge "Allow Device Owners/Profile Owners to set the interruption filter." into pi-dev 2018-04-13 19:56:20 +00: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
Dmitry Dementyev
925f026cc1 Don't create recovery snapshot until it contains at least one key.
Bug: 77931409
Test: atest RecoveryControllerHostTest
Change-Id: Ibd239cbd21a756a00c33e3cd0100b389b88d38b0
2018-04-13 11:02:10 -07:00
Bo Zhu
c3aefbd7f8 Use Scrypt to hash all passwords in RecoverableKeyStore
Bug: 77325751
Test: runtest frameworks-services -p
    com.android.server.locksettings.recoverablekeystor

Change-Id: Ifd934593a2161e397eac77b682e3f4bb2d518822
2018-04-12 15:19:57 -07:00
TreeHugger Robot
5d1db91ecb Merge "Add method to get blocked app count" into pi-dev 2018-04-12 20:43:10 +00:00
Dmitry Dementyev
6ce8408618 Merge "Don't store deprecated trustedHardwarePublicKey field." into pi-dev 2018-04-12 19:14:26 +00:00
Jason Parks
50322ff031 Allow Device Owners/Profile Owners to set the interruption filter.
Bug: 75972410
Test: atest FrameworksUiServicesTests
Test: runtest systemui-notification
Test: atest CtsAdminTestCases:DevicePolicyManagerTest
Change-Id: Ie8d3deadd13de094f4c2a679f8ef0b1aa804dec0
2018-04-12 12:57:24 -05:00
Julia Reynolds
e273f08c0b Add method to get blocked app count
So we can sure it in settings

Test: runtest systemui-notification
Bug: 73018368
Change-Id: Ib0185e97f8e1cec1864ca1e4efb23bf8db097901
2018-04-12 13:48:49 -04:00
Julia Reynolds
eac2da20b0 Pre P apps can't change new fields
Screen off means fullscreen intents, lights, and ambient
in P but pre-P mean only lights and full screen intents.

Test: runtest systemui-notification, cts
Change-Id: I83857b5df2f669751df34d58aa645f4102b8e0e4
Fixes: 77470790
2018-04-12 11:13:46 -04:00
Rohan Shah
8e7f23a74c Merge "[Notif] Allow locking importance on notification" into pi-dev 2018-04-12 14:49:11 +00:00
Ricky Wai
5da40c7ba5 Do not generate non-primary profile watchlist report
Test: atest com.android.server.net.watchlist.WatchlistLoggingHandlerTests
Test: Install an app on work profile only, that app does not showing in watchlist report
Bug: 77895316
Change-Id: If3991278c281ce216763e2359118420731437431
2018-04-12 13:18:49 +01:00
Rohan Shah
590e1b2aa5 [Notif] Allow locking importance on notification
Currently locking  only works on channel - this CL allows doing
so on the overarching notification too. Added locking field in
appropriate places in record and surfaced it to other bits via
the RankingHelper.

Test: Visually, reproduced organically (+ deleting /data/ files)
Fixes: 77775657
Change-Id: Ie46093921dd6c1ae3533ded7b87faaa475a631e4
2018-04-11 21:57:49 -04:00
TreeHugger Robot
3e5b5076a2 Merge "Updating strings for activity interceptor dialog" into pi-dev 2018-04-11 23:39:46 +00:00
TreeHugger Robot
f0b9fbebc0 Merge "APIs to disable data usage notifications." into pi-dev 2018-04-11 23:05:03 +00:00
Jeff Sharkey
0a5570d49d APIs to disable data usage notifications.
Certain carriers have requested the ability to disable the warning,
limit, and rapid data usage notifications shown by the OS, so give
them that ability on a per-subId basis.  (The notifications are still
enabled by default.)

Unhide NOT_CONGESTED to match setSubscriptionOverrideCongested().

Fix bug in getPrimarySubscriptionPlanLocked() to find the first
currently active plan; the first non-recurring plan may be no longer
active.  Fix bug in SubscriptionPlan which allowed invalid negative
or zero-length Period objects.

Bug: 77851691, 77506882, 77662747
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest android.telephony.cts.SubscriptionManagerTest
Exempt-From-Owner-Approval: SDK deadline, responding to API feedback
Change-Id: Ib6e6dbadd5022937c3f0661ab4b66aa617f0b5af
2018-04-11 22:07:40 +00:00
Daniel Cashman
960a0c6c57 Merge "Add SigningInfo class to expose package signing details." into pi-dev 2018-04-11 19:21:07 +00:00
Bryce Lee
6f14dc95cf Merge "Ensure ActivityStack's cached resumed activity is updated." into pi-dev 2018-04-11 17:00:26 +00:00
TreeHugger Robot
02fea072ab Merge "Added gamma correction tests." into pi-dev 2018-04-11 14:48:17 +00:00
Bryce Lee
90d388aebd Merge "Move container focusability logic to ActivityStackSupervisor." into pi-dev 2018-04-11 14:23:39 +00: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
Suprabh Shukla
96212bca06 Review of suspend/unsuspend APIs
Clarified the package extras bundle returned from
getSuspendedPackageAppExtras.
Moved the bundle arg to the last in LauncherApps.onPackagesSuspended and
clarified the contents of the Bundle.
isPackageSuspended(String) now throws a NameNotFoundException if the
package is not found.
Also, removed a permission check from isPackageSuspendedForUser.

Test: builds, boots, existing tests:
atest com.android.server.pm.SuspendPackagesTest

Bug: 77518983, 77517955, 77507744, 77801528
Change-Id: I06b5f69f8f8a079c206863cb6122e90be58366cd
2018-04-10 17:34:12 -07:00
Dmitry Dementyev
ebdd19c773 Don't store deprecated trustedHardwarePublicKey field.
Bug:77873515
Test: apct
Change-Id: I990203781587f1747af514725014bc6b5bf1e517
2018-04-10 16:10:14 -07:00
Dan Cashman
5c9f527e33 Add SigningInfo class to expose package signing details.
Attempt to simplify the exposure of package signing information via
PackageInfo by creating a new class and corresponding methods for
querying a package's signing information.

Bug: 74831530
Test: PkgInstallSignatureVerificationTest
Change-Id: Idbc008b41a921f89cefb224b26f910da4d238dea
2018-04-10 22:19:20 +00:00
Bryce Lee
84730a0a0c Ensure ActivityStack's cached resumed activity is updated.
ActivityStack stores a reference to its resumed activity for quicker
future reference. Currently, children must inform the ActivityStack
of any movement in order to properly set this value. We are missing
cases today, causing stale values to persist.

This changelist addresses by updating the stack's paused and resumed
activity references whenever the ancestor stack changes when a task
or activity's parent is changed.

Change-Id: I5ef6db6af3d7e304012c54afa996fbfff28e9110
Fixes: 75992227
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests#testResumedActivityFromActivityReparenting
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests#testPrimarySplitScreenToFullscreenWhenMovedToBack
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests#testFinishPipActivityWithTaskOverlay
2018-04-10 15:08:29 -07:00
Bryce Lee
65317bac02 Merge "Properly remove activity from task on start failure." into pi-dev 2018-04-10 21:56:08 +00:00
Bryce Lee
7b851cc7ff Move container focusability logic to ActivityStackSupervisor.
A number of factors are considered across the container hierarchy
when determining whether the container can be focused. Previously,
windowing mode consideration was added to the activity record, but
not stack. This led to inconsistent behavior when queried.

This changelist combines the logic and moves it to
ActivityStackSupervisor, where it can be invoked by any container.

Change-Id: I0d16faa069fd05500d39cd1619de9f8c488daa25
Fixes: 77708107
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests#testFocusability
Test: atest CtsActivityManagerDeviceTestCases:android.server.am.lifecycle.ActivityLifecycleTests#testPausedWhenRestartedFromInNonFocusedStack
2018-04-10 14:53:13 -07:00
TreeHugger Robot
e901d69ea6 Merge "setPackagesSuspended now overwrites all the state" into pi-dev 2018-04-10 20:15:24 +00:00
TreeHugger Robot
964631d1a7 Merge "Slice permissions++" into pi-dev 2018-04-10 19:41:41 +00:00
Adrian Roos
0767375727 Merge "WindowLayout: Layout IN_SCREEN floating windows in screen" into pi-dev 2018-04-10 17:53:32 +00:00
Dan Gittik
c8a6db8c10 Added gamma correction tests.
Test: atest BrightnessMappingStrategy

Fixes: 77578319

Change-Id: Ic8a693a71cf8de14fb5bfdf0325f3aefe537438d
2018-04-10 18:24:29 +01:00
TreeHugger Robot
0e675bd901 Merge "Exempt tests for hidden APIs." into pi-dev 2018-04-10 16:34:05 +00:00
Jason Monk
bf3eedcc6b Slice permissions++
New permissions system for slices. Its up a little disk space at the
optimization of CPU/Mem usage, and most importantly doesn't have a
limit on the number that can exist.

Test: runtest --path frameworks/base/services/tests/uiservicestests
Test: runtest --path cts/tests/tests/slices
Test: manual grant through SliceBrowser
Bug: 77323760
Change-Id: Ie601bca042a7b28113a511383ca7e3a35c7c8c71
2018-04-10 10:50:42 -04:00
TreeHugger Robot
082147cfe1 Merge "Added system-wide minimum brightness curve." into pi-dev 2018-04-10 11:28:44 +00:00
Remi NGUYEN VAN
ed0da5189c Merge "Clamp multipath quota to 0 if roaming." into pi-dev 2018-04-10 10:12:56 +00:00