Commit Graph

13233 Commits

Author SHA1 Message Date
Bryce Lee
216b50ad97 Merge "Remove temporary logging." into pi-dev 2018-04-16 17:36:45 +00:00
Benjamin Miller
cc12c5fb11 Doc change: removed reference to the reverted Password Blacklist feature.
Bug: 73750934
Test: make ds-docs and inspected HTML output.

Change-Id: I545ef13219dc994a4f157cc6f2380eac59331498
2018-04-16 13:45:54 +00:00
Bryce Lee
1d0d514dac Remove temporary logging.
This changelist reverts the following CLs that added temporary
logging:
d946f86f12
a33c13df13
e7b2f6920b

Fixes: 71506345
Test: presubmit
Change-Id: Icfc016a752e5ac2bfb1537be67cda1c4ea3e6442
2018-04-13 10:30:01 -07:00
TreeHugger Robot
b672c1f97c Merge "Fix pinned slices returning different Uris." into pi-dev 2018-04-13 02:48:39 +00:00
Jason Monk
199286b084 Fix pinned slices returning different Uris.
Test: cts
Bug: 77980070
Change-Id: I3c5ba18e40a58371e2c9ccade9d565b38ad12a54
2018-04-12 20:05:27 -04: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
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
Rohan Shah
8e7f23a74c Merge "[Notif] Allow locking importance on notification" into pi-dev 2018-04-12 14:49:11 +00:00
Wale Ogunwale
fb10508cfa Merge "Clean up APIs before declaring API 28." into pi-dev 2018-04-12 12:19:56 +00:00
TreeHugger Robot
aab3304a22 Merge "Fix broken target SDK checks." into pi-dev 2018-04-12 04:40:06 +00: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
Jeff Sharkey
3990ee1c9f Clean up APIs before declaring API 28.
As part of finalizing an SDK, we need to ensure that no new APIs are
marked @Deprecated, since they're typically cleanup that someone
forgot to finish.

Someone forgot to replace Slice.getTimestamp() with Slice.getLong().

Bug: 77588754
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: Ic0ec91a43d161a69c1e840c42046ad500b7aeca0
2018-04-11 13:49:21 -06:00
TreeHugger Robot
c2375d9b3d Merge "Fix docs and bug in SliceManager#bindSlice" into pi-dev 2018-04-11 17:52:22 +00:00
Colin Cross
fcbbb72603 Merge "Revert "Update docs to match encryption requirements"" into pi-dev 2018-04-11 17:28:39 +00:00
Colin Cross
4da1774894 Revert "Update docs to match encryption requirements"
This reverts commit cebb55ea9d.

Reason for revert: broke docs builds

Change-Id: I3a4b8d274141efec90fae2ed0b9324194288c635
2018-04-11 17:27:24 +00:00
TreeHugger Robot
6b317915e8 Merge "StatsManager throws exceptions" into pi-dev 2018-04-11 17:02:06 +00:00
Jason Monk
5ffacd06ac Fix docs and bug in SliceManager#bindSlice
Test: cts
Change-Id: I812af1eda072c2af0b29454a05ea777d8f4c3c62
Fixes: 73123733
2018-04-11 10:05:57 -04:00
Florian Mayer
f1657a827f Merge "Address API comments on NetworkStats#getDefaultNetwork." into pi-dev 2018-04-11 13:55:51 +00:00
Robert Berry
bfa13fe76f Merge "Update docs to match encryption requirements" into pi-dev 2018-04-11 13:49:45 +00:00
Lenka Trochtova
27fd8217c1 Hide mandatory backup's API.
Bug: 77801801
Bug: 73750212
Bug: 64012357

Test: make RunFrameworksServicesRoboTests
Test: cts-tradefed run cts -m CtsDevicePolicyManagerTestCases --test
com.android.cts.devicepolicy.DeviceOwnerTes
cts-tradefed run cts -m CtsBackupHostTestCase

Change-Id: I7699755309b3fbff7c3fec2a06a0f409fd4087de
2018-04-11 12:33:28 +02:00
Lorenzo Colitti
6dba3936a2 Address API comments on NetworkStats#getDefaultNetwork.
Bug: 76449091
Test: android.app.usage.cts.NetworkUsageStatsTest passes
Change-Id: I7f21e0bd7bc4b726058fc2e25542ff2c3173fabe
2018-04-11 10:11:12 +00:00
TreeHugger Robot
2188383b8a Merge "Review of suspend/unsuspend APIs" into pi-dev 2018-04-11 07:36:38 +00:00
Remi NGUYEN VAN
788f87dab6 Merge "Do not register callback for < MIN_THRESHOLD_BYTES" into pi-dev 2018-04-11 03:18:57 +00:00
TreeHugger Robot
555767b616 Merge "API Review: Rename getStandbyBucket to getAppStandbyBucket" into pi-dev 2018-04-11 02:38:26 +00:00
TreeHugger Robot
46d03c2914 Merge "Ensure colors for active permission icons" into pi-dev 2018-04-11 02:22:01 +00:00
Bookatz
4f71629002 StatsManager throws exceptions
When StatsManager fails to connect to statsd, it now throws an exception
for the caller to catch. It also throws an exception of the config being
added is of an unreadable format.

Due to backwards compatibility issues, the old APIs could not be
changed, so new ones were made to replace the old ones. The old ones are
now temporary and will be removed when the compatibility issue is
resolved.

Bug: 77648233
Test: gts-tradefed run gts-dev --module GtsStatsdHostTestCases
Change-Id: Ibea05883a29b9b3ef9927d2f8fe295eb99832ab7
2018-04-10 19:07:32 -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
Jason Monk
2d3932eb4d List<SliceSpec> -> Set<SliceSpec>
Test: update-api
Bug: 73123786
Change-Id: I5668023eda0efcadf40a20259a92624e6680659f
2018-04-10 20:25:51 -04:00
Jason Monk
9107b53c6d Merge "Revert "List<SliceSpec> -> Set<SliceSpec>"" into pi-dev 2018-04-11 00:00:26 +00:00
Jason Monk
e280990dd6 Revert "List<SliceSpec> -> Set<SliceSpec>"
This reverts commit e2a04b3ea4.

Bug: 73123786
Change-Id: I1f09893fb3c68650340495f2833eb678099a895f
2018-04-11 00:00:04 +00:00
Jason Monk
ae42e1d0c2 Merge "List<SliceSpec> -> Set<SliceSpec>" into pi-dev 2018-04-10 23:23:43 +00:00
Jeff Sharkey
aa1a911d9a Fix broken target SDK checks.
Consider an app targeting the final API 28, but running on an older
build where "P" is still API 10000.  Those apps need to be treated as
legacy apps.

In general, the logical pattern that should be used when enforcing
target SDK behaviors is below.

For applying behavior to legacy apps:
    // BROKEN
    if (targetSdkVersion <= Build.VERSION_CODES.N_MR1) {
    // CORRECT
    if (targetSdkVersion < Build.VERSION_CODES.O) {

For applying behavior to new apps:
    // BROKEN
    if (targetSdkVersion > Build.VERSION_CODES.N_MR1) {
    // CORRECT
    if (targetSdkVersion >= Build.VERSION_CODES.O) {

Bug: 77865751
Test: builds, boots
Change-Id: Ia83bd446a940751d51a6542c7a5b9cca174c5296
2018-04-10 15:18:15 -06:00
Julia Reynolds
b887b23ad3 Ensure colors for active permission icons
Test: manual
Change-Id: I74c91109efaacad4f7743681877b874f77bda630
Fixes: 74512508
2018-04-10 17:01:00 -04:00
TreeHugger Robot
02db955ed8 Merge changes I3a35ed86,I74a9c767 into pi-dev
* changes:
  Update incorrect documentation
  Ringer toggle should obey theme color
2018-04-10 20:17:28 +00: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
Jason Monk
e2a04b3ea4 List<SliceSpec> -> Set<SliceSpec>
Test: update-api
Bug: 73123786
Change-Id: Ia618a35fbe81d2aeb5f58d58add0a14069f21bed
2018-04-10 19:23:34 +00:00
Julia Reynolds
82a9cf60f3 Update incorrect documentation
Test: make
Change-Id: I3a35ed86600b3b12ced4aecc35a0415e8e05a502
Fixes: 77862126
2018-04-10 14:59:19 -04:00
Amith Yamasani
ff1575f059 API Review: Rename getStandbyBucket to getAppStandbyBucket
Change-Id: Ifa0f5d0dba95d8bc6c2af814649594e9ca4a6c47
Fixes: 76831039
Test: Builds
2018-04-10 09:28:38 -07: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
Julia Reynolds
9aa1c9e925 Add link to onboarding screen
Test: runtest systemui-notification
Bug: 77658931
Change-Id: I70210b5d5e0de27ff38a6b2f5d8201266b6ec4d6
2018-04-10 08:47:07 -04:00
Remi NGUYEN VAN
d06a9004ed Do not register callback for < MIN_THRESHOLD_BYTES
This also avoids returning a nonzero multipath preference
if remaining data is low but nonzero.

Bug: b/72877610
Change-Id: I2459ded06de77d284ae1fe81a60d9e1df56b0c26
Fixes: b/72877610
Test: Tests in go/ag/3842960 pass
2018-04-10 10:27:00 +09:00
Suprabh Shukla
45b9e40a4f setPackagesSuspended now overwrites all the state
Earlier setPackagesSuspended ignored the rest of the paramters when
suspend state did not change. This was a problem because then there was
no good way to update the other parameters without unsuspending the app,
which is not desirable.
Removed setSuspendedPackageAppExtras as now they can be update with this
api.
Also sending broadcasts when packages get unsuspended due to suspending
package removed.

Test: Existing tests pass:
atest com.android.server.pm.PackageUserStateTest
atest com.android.server.pm.SuspendPackagesTest
atest com.android.server.pm.PackageManagerSettingsTests

Bug: 77522553
Change-Id: I72a3c228d3d65c430e242da97b2bc6997ec6a135
2018-04-09 17:49:54 -07:00
TreeHugger Robot
6a66f4e8cf Merge "Helper methods for settings screen" into pi-dev 2018-04-09 18:52:25 +00:00
TreeHugger Robot
d565f04957 Merge "Expose TestAPIs needed by GtsOsTestCases" into pi-dev 2018-04-09 15:57:42 +00:00
TreeHugger Robot
6f34a9b2d3 Merge "NO PARTIAL RERUN: Do not return recycled bitmaps" into pi-dev 2018-04-09 14:32:41 +00:00
TreeHugger Robot
fdef00a5ae Merge "Update Javadoc of setLockTaskEnabled to reflect known issue" into pi-dev 2018-04-09 13:39:31 +00:00
Julia Reynolds
47f4280b4f Helper methods for settings screen
Bug: 77657376
Test: make -j RunSettingsRoboTests
Change-Id: I2002cf98f26312e074c40c085044c60f7ce52ff7
2018-04-09 08:47:39 -04:00
Eric Sandness
5ab98de315 Permission Check For DPM.getPermittedAccessibilityServices
Require the callers of DPM.getPermittedAccessibilityServices(userId) to
hold the MANAGE_USERS permission.  The only known callers of this API
are settings apps that already hold this permission.

Bug: 62343414
Test: com.android.server.devicepolicy.DevicePolicyManagerTest
Test: com.google.android.gts.devicepolicy.DeviceOwnerTest
Test: Manually checked accessibility settings in DO and PO modes
Change-Id: I8ee3f876fcaffa63636645f0f59709cd147254ef
2018-04-09 07:47:13 +00:00