Commit Graph

296881 Commits

Author SHA1 Message Date
Julia Reynolds
32c97ef3c8 Blocked packages can't create channels.
Test: runtest systemui-notification
Change-Id: I3f0560a71adc33d9881021f920ce2824b96ddc14
2016-11-28 14:34:29 -05:00
Julia Reynolds
f57de46d0b Allow apps to set vibrations pattern for channels
Test: runtest systemui-notification, cts
Change-Id: I9125e9c437e3888ba7e7582bb3557635a2aea893
2016-11-28 14:34:29 -05:00
TreeHugger Robot
776a2402fa Merge "Revert "Introduce RoughtimeClient"" 2016-11-28 17:54:37 +00:00
Jerome Gaillard
6c1fbdfea7 Merge "Override TextServicesManager in layoutlib" 2016-11-28 17:46:55 +00:00
Nick Kralevich
c66cc5166e Merge "Revert more integrity check changes." 2016-11-28 17:02:59 +00:00
TreeHugger Robot
a694330668 Merge "Hide work messages even when main user isn't secure" 2016-11-28 17:00:57 +00:00
Nicolas Prévot
22b2a81f75 Merge "Send callbacks to DO when a user is added or removed." 2016-11-28 16:50:08 +00:00
Julia Reynolds
1bbd133d7c Merge "Allow listeners more snoozing options." 2016-11-28 16:40:30 +00:00
Darren Krahn
10a092d9a3 Revert "Introduce RoughtimeClient"
This reverts commit 89ef028898.

Change-Id: I74826aa6990891df3be4f931b242398824c370d1
2016-11-28 16:19:40 +00:00
Jerome Gaillard
056f4223a2 Merge "Fix layoutlib to reflect recent changes in platform code" 2016-11-28 16:02:35 +00:00
Jerome Gaillard
f149ca784d Override TextServicesManager in layoutlib
When a TextServicesManger is required in layoutlib, provide a fake
one.

Test: Run layoutlib tests
Change-Id: I8c25f4919a2e97b56f705b59747e81cb6f45b07b
2016-11-28 15:54:55 +00:00
Robin Lee
50a9ad2be8 Hide work messages even when main user isn't secure
For example if user 0 has no lock screen set, but the work user does,
and the "hide all notifications while locked" field is set, we should
hide those notifications because they are supposed to be hidden behind
the work lock screen.

Fix: 32585026
Test: statusbartest/NotificationTestList.java
Change-Id: I29243f683fd4ef2d5fc71a40cd1e37ee29c5679c
2016-11-28 15:14:19 +00:00
Julia Reynolds
b6c1f99bd9 Allow listeners more snoozing options.
(snooze indeterminately and unsnooze)

Test: runtest systemui-notification and cts tests in same topic.
Change-Id: I5ce74638f55ed796bc6b26af167b32b0040f4222
2016-11-28 08:53:14 -05:00
Nicolas Geoffray
e1cb95bbee Merge "Use the new refined DexOptNeeded codes." am: d7e597a2e7 am: 99ae18486c am: 51b40ee3eb
am: fbeca51bc9

Change-Id: I7f6578d517a77dd24ab5dc785b7fdd0ab8fd5946
2016-11-28 13:48:24 +00:00
Nicolas Geoffray
fbeca51bc9 Merge "Use the new refined DexOptNeeded codes." am: d7e597a2e7 am: 99ae18486c
am: 51b40ee3eb

Change-Id: Iad8ab08d0e41a9ef6e373a9b2052f32b552c0ea7
2016-11-28 13:40:14 +00:00
Nicolas Geoffray
51b40ee3eb Merge "Use the new refined DexOptNeeded codes." am: d7e597a2e7
am: 99ae18486c

Change-Id: I4d6a7a5ad56ce0e6d91620fc63f05faad8348e78
2016-11-28 13:32:50 +00:00
Nicolas Geoffray
99ae18486c Merge "Use the new refined DexOptNeeded codes."
am: d7e597a2e7

Change-Id: I58fbb54b94350e633fdd38cfb984de87a1862fd2
2016-11-28 13:25:06 +00:00
Nicolas Geoffray
d7e597a2e7 Merge "Use the new refined DexOptNeeded codes." 2016-11-28 13:15:56 +00:00
Jerome Gaillard
f666c0e2ea Fix layoutlib to reflect recent changes in platform code
Test: Layoutlib tests
Change-Id: I81964233a9e580ccee9c9e9b0cf3525babf30bd4
2016-11-28 10:40:33 +00:00
Nicolas Geoffray
79c9e06320 Use the new refined DexOptNeeded codes.
bug: 30937355
Test: device boots, messages are printed correctly
Change-Id: Ia5274e3659471c2a52244d5838d207d407e79023
2016-11-28 08:51:36 +00:00
Nick Kralevich
cd941213a2 Revert more integrity check changes.
The integrity checking features never shipped as part of a release.
Delete the stale code.

This conceptually reverts the following commits:

  * c7d64c134a
  * ee2b492832

Test: Device boots and no obvious problems.
Change-Id: I8d1589b38ddbcdf26f5132476b8cdfba7ef439cd
2016-11-27 15:21:35 -08:00
Mahaver Chopra
d0835e45f7 Merge "Add provisioning successful intent" 2016-11-25 19:15:35 +00:00
Rubin Xu
d39d4d7d38 Fix boot loop when upgrading direclty from L to N am: bfc7faaf35 am: 492f5263a4 am: 873c99c30b
am: 5adffe2c77

Change-Id: I9ae16f0de5b6f71d8343db369528c27a40d36be4
2016-11-25 18:32:24 +00:00
Rubin Xu
5adffe2c77 Fix boot loop when upgrading direclty from L to N am: bfc7faaf35 am: 492f5263a4
am: 873c99c30b

Change-Id: I8e4bb65a0880cbf2089ce5e82e6a972238b6ea31
2016-11-25 18:28:20 +00:00
Rubin Xu
873c99c30b Fix boot loop when upgrading direclty from L to N am: bfc7faaf35
am: 492f5263a4

Change-Id: I62f538737c1946aae3fb64555d425c379340bef1
2016-11-25 18:24:55 +00:00
Rubin Xu
492f5263a4 Fix boot loop when upgrading direclty from L to N
am: bfc7faaf35

Change-Id: Iaaf32f1c6fd70dd394252f963d87897899fb2e55
2016-11-25 18:20:48 +00:00
Griff Hazen
586bc60a0b Merge "Workaround for javac compilation issue of lambda code" 2016-11-25 17:39:40 +00:00
TreeHugger Robot
bbef8cdd2a Merge "Logging when the new batch of network logs broadcast is sent to DO" 2016-11-25 17:16:38 +00:00
Jerome Gaillard
e5208dd0ac Merge "Update allwidgets golden image" 2016-11-25 16:59:14 +00:00
Mahaver Chopra
3c58cfe2d9 Add provisioning successful intent
Add a new activity intent action which will be launched after
provisioning has successfully completed.

Currently when provisioning is done we junt send an ordered broadcast
for PO and a normal brodcast for DO case. This results in HOME screen
being launched for 2 sec. To remove this jank we have introduced a
new intent action which can be directly received by the DPC in their
post provisioning activity.

Test: b/33138551, this bug tracks the cts coverage for the new action.

Bug: 30956199
Change-Id: I889b0cec74799bb7be93de48d46d5da68f17be92
2016-11-25 16:29:44 +00:00
TreeHugger Robot
6c1ac686e6 Merge "Allow DO to access bookkeeping information about its own actions" 2016-11-25 16:00:37 +00:00
Michal Karpinski
bcf1c58ec2 Logging when the new batch of network logs broadcast is sent to DO
Test: this only adds a log message
Bug: 29748723
Change-Id: I07ca1613c26a34517f5a452ca848aa763a48f8a0
2016-11-25 15:30:15 +00:00
Diego Perez
5017ece983 Update allwidgets golden image
Test: Updating existing test
Change-Id: Ie66abc77ec6013a8094d6b8be2666b69c973a295
(cherry picked from commit 48d6ec53f9c75571217880ef77902f582723418b)
2016-11-25 12:36:12 +00:00
Jerome Gaillard
8deff10ff9 Merge "Fix shadow painting in layoutlib" 2016-11-25 12:04:03 +00:00
Bartosz Fabianowski
8d76e72251 Allow DO to access bookkeeping information about its own actions
The getLastSecurityLogRetrievalTime(), getLastBugReportRequestTime()
and getLastNetworkLogRetrievalTime() methods are meant to be used by
system code. However, there is no harm in allowing the DO to access the
information they return - because it is information about actions that
the DO itself took.

The advantage of opening up these methods to the DO is that we can
CTS-test them.

Bug: 32692748
Test: DevicePolicyManager unit test + CTS test in separate CL

Change-Id: I1470fca2a82b9955f7aed5e8b50220bea8b56fc9
2016-11-25 12:36:20 +01:00
Jerome Gaillard
2dd5018a0f Merge "Add missing ServiceNotFoundException class" 2016-11-24 21:49:48 +00:00
Jerome Gaillard
03221c248b Merge "Store failure thumbnails in CWD/out/failures" 2016-11-24 21:48:57 +00:00
Narayan Kamath
96444acc85 Merge "PackageManager: Fix incorrect usage of flags." 2016-11-24 18:06:55 +00:00
TreeHugger Robot
8d4527db19 Merge "Add getBindDeviceAdminTargetUsers API" 2016-11-24 18:02:23 +00:00
Nicolas Prevot
e95c2817f7 Send callbacks to DO when a user is added or removed.
BUG:32764090
Test: manual
Change-Id: Icfac801fd2c9670f3d68cf6971f7aba2332dbb6b
2016-11-24 17:18:25 +00:00
Jerome Gaillard
d38fffd38d Store failure thumbnails in CWD/out/failures
When a test fails in layoutlib, store the resulting png files in
out/failures subdirectory of the current working directory.
That avoids the risk of collisions if tests for several branches
of layoutlib are run at the same time.

Test: Run tests in layoutlib with at least one failing test
Change-Id: I31594a871e481e6aa410a165926ce544dc7ddcf2
(cherry picked from commit 82ebb9058479de56860f348ab969160e0d8294b6)
2016-11-24 16:43:30 +00:00
Jerome Gaillard
555fcd5579 Fix shadow painting in layoutlib
Shadows could be painted outside of the allowed drawing region
for the components for which they are the shadow.

Bug: http://b.android.com/215402
Change-Id: I2d2821b745147f3723e8f11d648094fcd684fe51
(cherry picked from commit 9702fffc768db43d0aba4fb1bea54af50af11361)
2016-11-24 16:42:12 +00:00
Narayan Kamath
84e347f01f PackageManager: Fix incorrect usage of flags.
assertPackageIsValid was checking policyFlags (which are PackageParser
parseFlags) for flags defined in the SCAN_* values. This was always
subtly and non-visibly broken, but turned into a full scale breakage
when change 5b29ecad48 was merged, and
one of the flags that *happened* to have the same value in the PARSE_
and SCAN_ flagset changed.

Test: make, boot, update system app, update playstore app.
Bug: 33124572
Bug: 33126202

Change-Id: I482f420b2a9c8af38b17d174f1a2ec36c762f58e
2016-11-24 16:25:30 +00:00
Jerome Gaillard
e3607d2cc7 Add missing ServiceNotFoundException class
This class was added in ServiceManager.java in commit 49ca529a85.
Layoutlib rewrites the entire ServiceManager class, so it also
needs to define ServiceNotFoundException.

Test: TestDelegates.testMethodDelegates
Change-Id: Ia68399e8baa973ae961eabe929ca3d1019f20ba7
2016-11-24 16:24:28 +00:00
Esteban Talavera
fc291bcbe0 Add getBindDeviceAdminTargetUsers API
Add getBindDeviceAdminTargetUsers API. To be used
for the device or profile owner in a COMP setup to
know the UserHandle of their instance running on
the other profile.

Bug: 31952368,33033966
Test:  cts-tradefed run cts --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerPlusManagedProfileTest

Change-Id: I05c9ac0f6c3cdce1ec17cf2910ca7a7214064af2
2016-11-24 16:15:44 +00:00
Paul Duffin
5ce42bba50 Merge "Move JUnit classes from here into external/junit" am: 552744390f am: c62c3a51d5 am: a7f974794b
am: 0ba033ade6

Change-Id: I24fd90d6043275cf0bbe5bbb7fda65d5a5ccb395
2016-11-24 14:12:18 +00:00
Paul Duffin
d5fd01c89a Move JUnit classes from here into external/junit am: 0342ab5b94 am: b9e33cd549 am: f99687ee83
am: e3b757a4bf

Change-Id: Ib11a330ca65e9c2d2904993cbd67e604b2b80d5d
2016-11-24 14:08:54 +00:00
Paul Duffin
0ba033ade6 Merge "Move JUnit classes from here into external/junit" am: 552744390f am: c62c3a51d5
am: a7f974794b

Change-Id: Ic71192ff8c485e2ae3fe5a2befceeb45c4ed73c0
2016-11-24 14:08:20 +00:00
Andrei Stingaceanu
595e83395d Merge "AutoSize TextView (part 1) - minimal end-to-end" 2016-11-24 14:06:12 +00:00
Paul Duffin
a7f974794b Merge "Move JUnit classes from here into external/junit" am: 552744390f
am: c62c3a51d5

Change-Id: I9c260108edea555dc75811b7d343ec33655397d9
2016-11-24 14:03:04 +00:00