150719 Commits

Author SHA1 Message Date
Svetoslav Ganov
b1467faa23 Merge "Using the correct package name for ContentResolver" into lmp-dev 2014-09-11 01:21:21 +00:00
Vinit Deshpande
92d141fbc2 Don't require CONNECTIVITY_INTERNAL check for protected broadcasts
This change removes requirement that sender has this permission for
protected broadcasts (since they can only come from framework)

Bug: 17409667

Change-Id: I3431c20a4ed28b3ba2bfc3cf53772e63a3424a2c
2014-09-10 18:12:41 -07:00
Lajos Molnar
b1644e156d MediaCodec.Image: use image.setCrop() in constructor
This avoids the ReadOnlyBuffer exception for readonly images.

Bug: 17059255
Change-Id: I83de487e8bf60ba09b1cba1c0106191dd741c217
2014-09-10 17:58:09 -07:00
Dianne Hackborn
023b6812ab Merge "Fix issue #17414533: update batterystats occasionally takes a couple..." into lmp-dev 2014-09-11 00:56:41 +00:00
Dianne Hackborn
547f6e1803 Merge "Fix issue #17428001: Fix revokeUriPermissions" into lmp-dev 2014-09-11 00:55:25 +00:00
Lajos Molnar
5b54c9fb2a Merge "add android.util.SizeF.parseSizeF()" into lmp-dev 2014-09-11 00:55:06 +00:00
Jean-Michel Trivi
24499ba7ff am e1f07060: (-s ours) am e825f0ee: am 60f22fbf: Do not restore the media button event receiver
* commit 'e1f07060b8c94cc02309172fb9fb8cd4bd0e35f7':
  Do not restore the media button event receiver
2014-09-11 00:51:32 +00:00
Matthew Williams
03a4da6e8e Add flag to JobParameters for job expired
BUG: 17424511
Introduce an "isOverrideDeadlineExpired" which will allow clients
to know when they are being run due to an expiry.
Nb that we check deadline expiry by checking that the constraints on
the job are not satisfied at execution time. Really this is the same
thing, as a job will not be run without its constraints being met,
unless the job has expired.

Change-Id: I4b91e5b5eadccabd91296d5a5ca66b859dbfaf5c
2014-09-10 17:32:18 -07:00
Jeff Sharkey
9b2d26b683 Consistent clean up of failed installs.
Instead of remembering to add clean-up logic to every install scan
failure case, rely on the fact that we're now throwing for all errors
and use a finally clause to delete data directory when requested.

When clearing data for a package, always try deleting the app data
directories, even if no record of the package exists.  This helps
users recover from UID mismatches without resorting to a full data
wipe.

Bug: 17005516
Change-Id: I352863ef4e468c576ecf136549e21cceae2650d5
2014-09-10 17:32:14 -07:00
Paul Jensen
07ed07459a Make Network.openConnection() share HttpHandlers not OkHttpClients.
HttpHandler and HttpsHandler classes have a lot of bug fixes baked into
them that the Network.openConnection() API should be using, for example
disabling SPDY support.

bug:17420465
Change-Id: I9f1472753a542d1dd6bffde3a60c37a9145098aa
2014-09-11 00:25:50 +00:00
Adam Lesinski
7172bdd77c Merge "Output recent configs in am get-config command" into lmp-dev 2014-09-11 00:24:05 +00:00
Alan Viverette
87610e535d Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-dev 2014-09-11 00:22:10 +00:00
Alan Viverette
07b900fff0 Enable adjustViewBounds on preference icon so that maxWidth is used
BUG: 17437258
Change-Id: I87fcd8bfb5936aaf321f65d2b181a8dfddf3c973
2014-09-10 17:19:18 -07:00
Ricardo Cervera
6c7bc3711f am 4232a59b: am d086db30: Merge "cherrypick from klp-modular-dev docs: Added note on disabling debugging for WebView apps. Bug: 16232761 Change-Id: I6cdc2ef7da87e78ec42a456d232a8e46a26c7365" into klp-modular-docs
* commit '4232a59b083f4062e127b4de4663348b3e08b1bd':
  cherrypick from klp-modular-dev docs: Added note on disabling debugging for WebView apps. Bug: 16232761 Change-Id: I6cdc2ef7da87e78ec42a456d232a8e46a26c7365
2014-09-11 00:19:11 +00:00
Ricardo Cervera
4bb4d66c0e am 02afa734: am a6c12f01: Merge "docs: Fixed minor bug in downloads class. Bug: 16948533" into klp-modular-docs
* commit '02afa7348b7b6b41d24f4d401d07ed3cea4b5066':
  docs: Fixed minor bug in downloads class. Bug: 16948533
2014-09-11 00:19:06 +00:00
Amith Yamasani
8cd28b57ed Apply cross-user restrictions to Shell
Even though Shell user is allowed to perform cross-user actions,
lock that path down if the target user has restrictions imposed by
the profile owner device admin that prevents access via adb.

If the profile owner has imposed DISALLOW_DEBUGGING_FEATURES, don't
allow the shell user to make the following types of calls:
start activities, make service calls, access content providers,
send broadcasts, block/unblock packages, clear user data, etc.

Bug: 15086577
Change-Id: I9669fc165953076f786ed51cbc17d20d6fa995c3
2014-09-10 17:15:06 -07:00
Yigit Boyar
e91f7c0219 Add support for default content description in DecorToolbar
Bug: 16888338
Change-Id: I0f3f8fcd39cfd29d239801392dd712869749aecf
2014-09-10 17:12:28 -07:00
Dianne Hackborn
652973fca8 Fix issue #17414533: update batterystats occasionally takes a couple...
...hundred milliseconds.

Rework the locking so that no critical paths block on the cpu collection.

Change-Id: Ie615a033f7f8b523b67abee62c581d1a8fce324c
2014-09-10 17:11:22 -07:00
Alan Viverette
5878076456 Use Calendar day of week rather than Time in SimpleMonthView
BUG: 17377360
Change-Id: I685f35b760c049edaa8934eccaf5ce1bbf326cf2
2014-09-10 17:09:13 -07:00
Ricardo Cervera
4232a59b08 am d086db30: Merge "cherrypick from klp-modular-dev docs: Added note on disabling debugging for WebView apps. Bug: 16232761 Change-Id: I6cdc2ef7da87e78ec42a456d232a8e46a26c7365" into klp-modular-docs
* commit 'd086db30d0f097f34eae0a9a3d443e11cc230d62':
  cherrypick from klp-modular-dev docs: Added note on disabling debugging for WebView apps. Bug: 16232761 Change-Id: I6cdc2ef7da87e78ec42a456d232a8e46a26c7365
2014-09-11 00:06:13 +00:00
Ricardo Cervera
02afa7348b am a6c12f01: Merge "docs: Fixed minor bug in downloads class. Bug: 16948533" into klp-modular-docs
* commit 'a6c12f0189c92b556fd7c3af3d8466d9b6d828c9':
  docs: Fixed minor bug in downloads class. Bug: 16948533
2014-09-11 00:06:10 +00:00
ztenghui
512e643ce8 Re-triangulate the spot shadow.
Fix the valid umbra detection.

This looks better b/c every vertex will have one ray shooting at it, such that
we don't miss the corner.

This performs better too, due to the polygon intersection is removed and less ray
intersection. 2x performance for rect and circle for spot shadow in test app.

    b/17288227
    b/15598793
    b/16712006

Change-Id: I4a5ee397b9e192e93c8e35e6260b499e3e38a6f4
2014-09-10 17:05:59 -07:00
Deepanshu Gupta
145bc2d067 LayoutLib: support font weights.
Also fixes a shader delegate method.

Change-Id: I86be80ab55d04760084d5bf39235f2ee4de7be23
2014-09-10 17:01:16 -07:00
Ricardo Cervera
d086db30d0 Merge "cherrypick from klp-modular-dev docs: Added note on disabling debugging for WebView apps. Bug: 16232761 Change-Id: I6cdc2ef7da87e78ec42a456d232a8e46a26c7365" into klp-modular-docs 2014-09-10 23:57:47 +00:00
Ricardo Cervera
a6c12f0189 Merge "docs: Fixed minor bug in downloads class. Bug: 16948533" into klp-modular-docs 2014-09-10 23:57:16 +00:00
Alan Viverette
c3a63c1fbb Copy opaque over shape in GradientDrawable copy constructor
BUG: 17433604
Change-Id: I8eeba8bd68930db178545a3b25e29c3c45ae1f79
2014-09-10 16:54:02 -07:00
Craig Stout
e988ee1eb2 Omit appearing views that have a parent that is also appearing.
b/17460766

Change-Id: Ib3fe619e271688c93a5cd4cb4d557e6cca5baa34
2014-09-10 23:44:30 +00:00
Alan Viverette
593f2d33bb Merge "Fix docs and nulling behavior for TextView.setCompoundDrawables" into lmp-dev 2014-09-10 23:31:04 +00:00
Alan Viverette
7ff0270e7d Merge "Make SearchView styles public, remove public Holo styles added in L" into lmp-dev 2014-09-10 23:29:13 +00:00
ztenghui
2e17d2b232 Bring back the fillAlpha and strokeAlpha.
At the same time, remove the group alpha since we did not follow the convention
that group's alpha should apply together, not separately to each elements.

b/17393626

Change-Id: Idfc071414213583924961dc8ea760d6fb317873c
2014-09-10 16:26:48 -07:00
Alan Viverette
5aaa7788d5 Merge "Only force drawing in RippleDrawable when necessary" into lmp-dev 2014-09-10 23:26:06 +00:00
Dianne Hackborn
192679a7d3 Fix issue #17428001: Fix revokeUriPermissions
You can now revoke permissions that were granted to you.

Change-Id: I9a1872059edc715b10bbd2d653e45420d43331c3
2014-09-10 16:20:24 -07:00
Chris Craik
12981923b8 Merge "Additional layer logging" into lmp-dev 2014-09-10 23:19:08 +00:00
Chris Craik
bfd1cd6209 Additional layer logging
bug:17208461

Track layer's last known state.

Change-Id: Ic1799191f5839a1d6cc56f598f2ac2671dc27a6f
2014-09-10 16:10:24 -07:00
Alan Viverette
362f984df3 Make SearchView styles public, remove public Holo styles added in L
We shouldn't adding styles for a deprecated theme. Also this cleans up
the removed public resources for easier deletion later.

BUG: 17455273
Change-Id: I2c5caf354aab91463702f25c38f0dd29c153ba44
2014-09-10 16:05:35 -07:00
Svetoslav
e03ddd0bcc Merge "Fix a crash in print spooler." into lmp-dev 2014-09-10 23:00:42 +00:00
Svetoslav
c65510a7bc Merge "Accessibilty support for the print UI." into lmp-dev 2014-09-10 22:59:50 +00:00
Jeff Sharkey
2e52871211 Merge "Manage mode shouldn't block for other providers." into lmp-dev 2014-09-10 22:39:45 +00:00
Eric Laurent
ea9aa9a282 Merge "AudioEffect JNI: fix queryEffects()" into lmp-dev 2014-09-10 22:37:26 +00:00
Jeff Sharkey
c9d7150680 Manage mode shouldn't block for other providers.
When loading DocumentsUI in management mode (for Downloads), we
normally focus on a single authority and let the other providers
keep loading async.  However, when one of the providers kicks a
change notification, we end up blocking the main thread.

Simple fix is to move the blocking into the AsyncTask.

Bug: 17452691
Change-Id: Ie5212ad825b7df719690b29941c9ae9ba2cabe4b
2014-09-10 15:27:59 -07:00
Xin Guan
2bcb97bfb5 Using the correct package name for ContentResolver
Change-Id: I0518391f7262c78043fbd42ddfefef0f2451382c
2014-09-10 15:19:16 -07:00
Eric Laurent
4fc28d78cb AudioEffect JNI: fix queryEffects()
Some effects supported by the platform may not be
returned to JAVA layer because not visible by applications.
The size of the array of effect descriptors
returned must be adjusted so that no entry in the array is null.

Bug: 17453177.
Change-Id: I3baaacf24bcb0fa45ce50461a1ac3d6eaa67f4b9
2014-09-10 15:05:03 -07:00
Adam Lesinski
65e76d1200 Output recent configs in am get-config command
Change-Id: Ic516e73d2e72ac0dc3136f7226cedd851fe22b85
2014-09-10 15:02:59 -07:00
Svetoslav
3ef8e203c8 Fix a crash in print spooler.
1. Leftover code was setting the state to configuring
   before initialization is complete.

2. We were not cancelling the print job if cancelled
   when initializing.

3. The remote print document was cancelled even if
   doing nothing.

bug:17451600

Change-Id: I79a80b723af8537da260012470748b4e8831fd9e
2014-09-10 15:00:11 -07:00
Dianne Hackborn
92a5b0d59f Fix issue #16794553: Duplicate ArrayMap entries in Bundle...
...can lead to launching of un-exported activities

We now validate the array map after unparcelling to make sure there
are no duplicate keys.

And to make up for the performance overhead this introduces, I switched
the parcelling/unparcelling code to write keys as explicit string
objects rather than generic values.  There was no reason to use generic
values since the write method itself only accepts an array map with
String keys.

Change-Id: I57bda9eb79ceaaa9c1b94ad49d9e462b52102149
(cherry picked from commit cee4cdad307071a8ff9a3e2189bf9e6fcc417222)
2014-09-10 21:55:27 +00:00
George Mount
05c4f7ad76 Merge "Fix ArrayIndexOutOfBoundsException." into lmp-dev 2014-09-10 21:47:58 +00:00
Tao Bai
bebc56209d Merge "Revise createIntent and parseResult API." into lmp-dev 2014-09-10 21:43:04 +00:00
John Spurlock
66c0d0cb8c Merge "QS: Fix NPE path inside cell tile." into lmp-dev 2014-09-10 21:40:43 +00:00
John Spurlock
f7f00ea9d3 QS: Fix NPE path inside cell tile.
Bug:17456632
Change-Id: Ifc859cf8c1620152fd333d3a92bcd1a47ac1d7e7
2014-09-10 17:34:56 -04:00
Craig Mautner
ebcd9189e3 Merge "Wait for animation complete before completing boot" into lmp-dev 2014-09-10 21:33:43 +00:00