Commit Graph

296852 Commits

Author SHA1 Message Date
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
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
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
Paul Duffin
e3b757a4bf Move JUnit classes from here into external/junit am: 0342ab5b94 am: b9e33cd549
am: f99687ee83

Change-Id: I316f8094588a9849d173648cc3d30cc21ab7e607
2016-11-24 12:10:02 +00:00
Michal Karpinski
e0b7a06d6f Merge "Disable DO single user features when clearDeviceOwner() is called regardless of the amount of users" 2016-11-24 11:59:14 +00:00
Paul Duffin
f99687ee83 Move JUnit classes from here into external/junit am: 0342ab5b94
am: b9e33cd549

Change-Id: I38ad58356388ab09506be9250812cbdb6522ddcd
2016-11-24 11:58:55 +00:00
Paul Duffin
c62c3a51d5 Merge "Move JUnit classes from here into external/junit"
am: 552744390f

Change-Id: I994dc5533d4f1dad35a161e998f57ecab56ab8a3
2016-11-24 11:57:48 +00:00
Paul Duffin
b9e33cd549 Move JUnit classes from here into external/junit
am: 0342ab5b94

Change-Id: I9111fe5e643794452008cf2cad933da0ca15bd00
2016-11-24 11:52:23 +00:00
Paul Duffin
552744390f Merge "Move JUnit classes from here into external/junit" 2016-11-24 11:44:02 +00:00
Andrei Stingaceanu
5cd7efb267 AutoSize TextView (part 1) - minimal end-to-end
Introduced the minimal number of attributes needed
to do autosizing and the autosize functions
bundled in TextView (for now). Note that in this
first version the autosizing can only be controlled
via construction.

Next: introduce getters/setters for the new attributes.

Bug: 32221168
Test: added a minimal smoke-ish CTS which exercises the
      new attributes.

Change-Id: Idf2195f6a600bfb7908b703ea046209b5868c521
2016-11-24 10:59:01 +00:00
TreeHugger Robot
a6fa8e5432 Merge "Change the task layout to better match mocks, add "in" animation" 2016-11-24 04:52:35 +00:00
TreeHugger Robot
ab3225d742 Merge "Introduce android.graphics.ColorSpace" 2016-11-24 04:05:20 +00:00
TreeHugger Robot
42e55d81bd Merge "ConnectivityServiceTest: fix testAvoidBadWifiSettings" 2016-11-24 03:57:01 +00:00
TreeHugger Robot
7149a23c2b Merge "Captive portal systel log improvements" 2016-11-24 03:45:57 +00:00
Romain Guy
68bd5fdd1a Introduce android.graphics.ColorSpace
This class can be used to define color spaces. A color space has a color model
and a profile connection space (CIE XYZ D50). This implementation can be used
to query various properties of RGB color spaces or perform conversions between
various color spaces (RGB, XYZ and Lab).

Refer to the documentation for more details.

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ColorSpaceTest
Bug: 32984164
Change-Id: Ie2117c1212c1375a7d403d3c1afaf73d7c2e0b47
2016-11-23 18:10:04 -08:00
Hugo Benichi
8b025bf108 Captive portal systel log improvements
This patch improves system logging around captive portal detection to
make inspection of bug reports sligthly easier:

- NetworkMonitor now logs by default CMD_CAPTIVE_PORTAL_RECHECK and
  CMD_CAPTIVE_PORTAL_APP_FINISHED. Other system logs are kept off with
  a new VDBG boolean contant,
- NetworkNotificationManager now prints the notification id at
  notification time. This allows to easily correlate show and clear.
- errors in NetworkNotificationManager are logged as Throwable instead
  of through their implicit toString() method.

Test: $ runtest frameworks-net
Bug: 32198726
Change-Id: Id74a9912880083d41e27753240e781595081ff7a
2016-11-24 10:36:04 +09:00
Jiabin Huang
76949b7339 Merge "TIF: Add support for more linux dvb device path." 2016-11-24 01:01:38 +00:00
Etan Cohen
260823eba4 Merge "[AWARE] Move manager tests from service to manager directory" am: 018f6ec16f am: f74733a367 am: cd4be8b7e0
am: 28d58e1c95

Change-Id: Ie6ea910839b577914e56b0718345e45db16ab146
2016-11-24 00:19:16 +00:00
Etan Cohen
28d58e1c95 Merge "[AWARE] Move manager tests from service to manager directory" am: 018f6ec16f am: f74733a367
am: cd4be8b7e0

Change-Id: I47e247992f6084dfbabc898e58b9ade435626f16
2016-11-24 00:11:35 +00:00
Etan Cohen
cd4be8b7e0 Merge "[AWARE] Move manager tests from service to manager directory" am: 018f6ec16f
am: f74733a367

Change-Id: Ieae5bc0feb90671fc04db07a644696f90907cea3
2016-11-23 23:57:02 +00:00
Etan Cohen
f74733a367 Merge "[AWARE] Move manager tests from service to manager directory"
am: 018f6ec16f

Change-Id: I795e75882ac702c3637afa43ba2f73d612d74661
2016-11-23 23:50:27 +00:00
Mark Renouf
44ec5744f6 Disables swipe-to-dismiss windows for input methods on Wear am: 5514d77e7d am: 8f21ddf9e1
am: cbc723a857

Change-Id: I7d786972f9c00d3a5cbc73077fd0bc6345fca9ea
2016-11-23 23:47:13 +00:00
Sergei Vasilinetc
d7310ee338 Merge "Introduce Bitmap.Config.Hardware with @hide annotation" 2016-11-23 23:43:45 +00:00
Etan Cohen
018f6ec16f Merge "[AWARE] Move manager tests from service to manager directory" 2016-11-23 23:42:30 +00:00
Mark Renouf
cbc723a857 Disables swipe-to-dismiss windows for input methods on Wear am: 5514d77e7d
am: 8f21ddf9e1

Change-Id: I7c79cfd069f7be37d0de5d807ec1ffc02da6dbe4
2016-11-23 23:34:59 +00:00
Mark Renouf
8f21ddf9e1 Disables swipe-to-dismiss windows for input methods on Wear
am: 5514d77e7d

Change-Id: I077b0e253fa26981970f9c13a87c560edfd93957
2016-11-23 23:21:02 +00:00
Manu Cornet
e138bd1955 Change the task layout to better match mocks, add "in" animation
This only adds an animation when transitioning into recents. "Out"
animations will come later as they need to be run in parallel with
launching the activity not to introduce any latency.

Test: Open recents on sw600dp device, check recents layout/animations
Bug: 32101881
Change-Id: I367f8e5c106cd06d2a7833c165ecb960a7821ed9
2016-11-23 14:48:30 -08:00
Jerome Gaillard
6edc28bf72 Merge "Fix tests when running from the command line" 2016-11-23 22:48:24 +00:00
Mark Renouf
44b97824c9 Disables swipe-to-dismiss windows for input methods on Wear am: 5514d77e7d am: 97a7d79d6b
am: 7e0facaac6

Change-Id: If6c7fd7831c1f57e55962d855c3f0cedfdd1e1af
2016-11-23 19:43:16 +00:00
Mark Renouf
7e0facaac6 Disables swipe-to-dismiss windows for input methods on Wear am: 5514d77e7d
am: 97a7d79d6b

Change-Id: Ib0708cc821f587f3e1c2143965ce188aef1764a0
2016-11-23 19:38:43 +00:00
Mark Renouf
97a7d79d6b Disables swipe-to-dismiss windows for input methods on Wear
am: 5514d77e7d

Change-Id: I75954a8a10bd5c18446bc38a742e3a6175c26df3
2016-11-23 19:33:44 +00:00