128831 Commits

Author SHA1 Message Date
Baligh Uddin
07f14e11a1 Import translations. DO NOT MERGE
Change-Id: Id3aec0b4534311c2ca89dcf86e04566c0cf025c3
Auto-generated-cl: translation import
2014-04-23 12:16:20 -07:00
Selim Cinek
b6e0e1228b Fixed a bug where holes could occur in the new shade.
When a notification was never layouted before and it was the first
child, holes could occur in the shade when dragging down, because its
maximum allowed height was wrongly calculated.

Bug: 14080722
Change-Id: Ia10f9dd95f917d492411aec1da4ae0fc4d8f33d5
2014-04-23 17:50:48 +02:00
Jeff Sharkey
21de56a946 Add directory selection to DocumentsProvider.
Introduce new ACTION_PICK_DIRECTORY that allows users to grant access
to an entire document subtree.  Instead of requiring grants for each
individual document, this leverages new prefix URI permission grants
by defining new "via"-style URIs:

content://com.example/via/12/document/24/

This references document 24 by using a prefix grant given for
document 12.  Internally, we use isChildDocument() to enforce that
24 is actually a descendant (child, grandchild, etc) of 12.  Since
this is an optional API, providers indicate support with
Root.FLAG_SUPPORTS_DIR_SELECTION.

Extend DocumentsUI to support picking directories.  Expose
createDocument() API to work with returned directories.

Offer to canonicalize via-style URIs into direct URIs, generating
exact permission grants along the way.  Override openAssetFile()
to pass through CancellationSignal.  Move testing code into ApiDemos.

Bug: 10607375
Change-Id: Ifffc1cff878870f8152eb6ca0199c5d014b9cb07
2014-04-22 22:18:21 -07:00
Jeff Sharkey
846318a325 Allow prefix-based Uri permission grants.
Define new FLAG_GRANT_PREFIX_URI_PERMISSION which indicates that a
Uri permission grant should also apply to any other Uris that have
matching scheme, authority, and path segments.  For example, a prefix
grant for /foo/ would allow /foo/bar/ but not /foo2/.

Allow persistable and prefix grants to be issued directly through
grantUriPermission().  Relaxing persistable is fine, since it still
requires the receiver to actively take the permission.

Since exact- and prefix-match grants for the same Uri can coexist,
we track them separately using a new UriGrant key.  (Consider the
case where an app separately extends READ|PREFIX and WRITE for
the same Uri: we can't let that become READ|WRITE|PREFIX.)

Fix revoke to always take away persisted permissions.  Move prefix
matching logic to Uri and add tests.  Add new flags to "am" tool, and
various internal uses around Intent and Context.  Switch some lagging
users to ArraySet.

Bug: 10607375
Change-Id: Ia8ce2b88421ff9f2fe5a979a27a026fc445d46f1
2014-04-22 21:06:49 -07:00
Andrew Solovay
fb5d9f3381 am e4593554: am 32117212: am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit 'e4593554ddcdaeb93a6d624fbd6641c4624de536':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:55:21 +00:00
Andrew Solovay
e4593554dd am 32117212: am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit '32117212fc48872b557044ff25ba6b8d9ace5738':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:51:48 +00:00
Andrew Solovay
32117212fc am 6c5bfa2f: am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit '6c5bfa2f348f1d55cbff5f8f2bd61e88ac2d01ee':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:47:50 +00:00
Andrew Solovay
6c5bfa2f34 am 026c82b1: Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
* commit '026c82b1916a9e2b48b9ff62ffeb935d63935a68':
  Doc: Fixed a code sample to use standard methods. Also some formatting tweaks.
2014-04-23 02:44:06 +00:00
Andrew Solovay
026c82b191 Doc: Fixed a code sample to use standard methods. Also some formatting
tweaks.

Added blank lines for readability, and broke some long lines
so code samples don't need a scroll bar.

(Update: Fixed indentation that I broke on a code sample.)

Bug: 14045051
Change-Id: I1cf08b899ec55f9093545e71861c84120e4b56a1
2014-04-22 19:29:07 -07:00
Baligh Uddin
d064424e2f am 128f5efa: (-s ours) am 89ed56fa: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '128f5efa7680b0a21e17c1a7ad7351ee031a4fd1':
  Import translations. DO NOT MERGE
2014-04-23 02:20:28 +00:00
Alan Viverette
2b38072e1f Merge "Add ripple to switches, radio buttons, check boxes, seek bars" 2014-04-23 02:19:20 +00:00
Baligh Uddin
a822d393bf am 97f9607f: (-s ours) am d14bb3cf: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '97f9607fccaa958c2e9304f3d2f2157fa6e1a694':
  Import translations. DO NOT MERGE
2014-04-23 02:15:35 +00:00
Baligh Uddin
3e1668fd04 am b38d00d5: (-s ours) am abd2a4a4: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'b38d00d5793bcb176683f89f70ae36768373fe49':
  Import translations. DO NOT MERGE
2014-04-23 02:15:31 +00:00
Baligh Uddin
6e1ac37150 am c1c6de3f: (-s ours) am c2c527a6: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'c1c6de3f918d4feb7c60534fe2fc76566a7aa215':
  Import translations. DO NOT MERGE
2014-04-23 02:15:28 +00:00
Baligh Uddin
d104a377ab am 6c8e9296: (-s ours) am 13c48fba: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '6c8e9296c35ec88b5093d4f5553252ee0f244141':
  Import translations. DO NOT MERGE
2014-04-23 02:15:24 +00:00
Baligh Uddin
d66b10db01 am e22700ac: (-s ours) am 611dd7b7: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'e22700ac5bda54aed59193b6f8fad838830ab0aa':
  Import translations. DO NOT MERGE
2014-04-23 02:15:21 +00:00
Baligh Uddin
c925a37100 am 9ee5df4b: (-s ours) am 4516c695: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '9ee5df4b126d9f61dd5deeff60e5682d3acfa699':
  Import translations. DO NOT MERGE
2014-04-23 02:15:17 +00:00
Baligh Uddin
22ee2fe70b am 0d0bbe4e: (-s ours) am 2d45d4de: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '0d0bbe4e1280bdd51529fd84e9e4a5bedfbc806e':
  Import translations. DO NOT MERGE
2014-04-23 02:15:13 +00:00
Baligh Uddin
3411339b1f am c72133a4: (-s ours) am 5eb7136d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'c72133a485459bdb85e8401ad3b4335ae1e2fbea':
  Import translations. DO NOT MERGE
2014-04-23 02:15:10 +00:00
Baligh Uddin
b86eb2b8b7 am ed8c4096: (-s ours) am 71b82aed: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'ed8c4096192b247d431bde149518ef87ba7e331a':
  Import translations. DO NOT MERGE
2014-04-23 02:15:06 +00:00
Baligh Uddin
4ae0268ec5 am 44cbb9f2: (-s ours) am 2d6e077d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '44cbb9f2294184c28542300d2b3e3f0b1ff96178':
  Import translations. DO NOT MERGE
2014-04-23 02:15:03 +00:00
Baligh Uddin
59bb0de92f am b491f832: (-s ours) am 42c0488a: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'b491f8323893fb751a1b1291ec3f66cdb73ed8c2':
  Import translations. DO NOT MERGE
2014-04-23 02:14:59 +00:00
Baligh Uddin
3a1c6b7301 am 61f9ac26: (-s ours) am 9dbd2eeb: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '61f9ac26fdc1f044c8a5b1541babcffe88ba548b':
  Import translations. DO NOT MERGE
2014-04-23 02:14:55 +00:00
Baligh Uddin
128f5efa76 am 89ed56fa: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '89ed56fa6c5951e4ce7ea555ae8f90c65b2daa2d':
  Import translations. DO NOT MERGE
2014-04-23 02:13:29 +00:00
Baligh Uddin
97f9607fcc am d14bb3cf: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'd14bb3cfb95e5bebb181ec9ed08295f25b87a94f':
  Import translations. DO NOT MERGE
2014-04-23 02:08:22 +00:00
Baligh Uddin
b38d00d579 am abd2a4a4: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'abd2a4a44923c28111bdf9ccb59e5557f0deafeb':
  Import translations. DO NOT MERGE
2014-04-23 02:08:19 +00:00
Baligh Uddin
c1c6de3f91 am c2c527a6: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit 'c2c527a6f4b3629ea271ef5444292a02e2d9a17e':
  Import translations. DO NOT MERGE
2014-04-23 02:08:13 +00:00
Baligh Uddin
6c8e9296c3 am 13c48fba: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '13c48fba164a977bbf4ef64434427bab297421bf':
  Import translations. DO NOT MERGE
2014-04-23 02:08:10 +00:00
Baligh Uddin
e22700ac5b am 611dd7b7: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '611dd7b70a809ac766e4e1675a4ae1a115cf6cdf':
  Import translations. DO NOT MERGE
2014-04-23 02:08:07 +00:00
Baligh Uddin
9ee5df4b12 am 4516c695: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '4516c695b2d8fdbc7dc0427a98841805e47f1e16':
  Import translations. DO NOT MERGE
2014-04-23 02:08:04 +00:00
Baligh Uddin
0d0bbe4e12 am 2d45d4de: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '2d45d4de489563907aebe8bb29c3b965749fe81e':
  Import translations. DO NOT MERGE
2014-04-23 02:08:00 +00:00
Baligh Uddin
c72133a485 am 5eb7136d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '5eb7136de95111983bef2357e2543730f66cde03':
  Import translations. DO NOT MERGE
2014-04-23 02:07:57 +00:00
Baligh Uddin
ed8c409619 am 71b82aed: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '71b82aedca5c8d38bed8f3f75d3c71f82cedcd3b':
  Import translations. DO NOT MERGE
2014-04-23 02:07:54 +00:00
Baligh Uddin
89ed56fa6c Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:07:52 +00:00
Baligh Uddin
44cbb9f229 am 2d6e077d: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '2d6e077d1db0da9a008ff6014ebbb555c30a7c47':
  Import translations. DO NOT MERGE
2014-04-23 02:07:51 +00:00
Baligh Uddin
b491f83238 am 42c0488a: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '42c0488a4b4db802161dc60a0bd16d2e5bc6afbe':
  Import translations. DO NOT MERGE
2014-04-23 02:07:48 +00:00
Baligh Uddin
61f9ac26fd am 9dbd2eeb: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-modular-dev
* commit '9dbd2eebf9095c4513b333a1ccce12e7d4523bd1':
  Import translations. DO NOT MERGE
2014-04-23 02:07:45 +00:00
Alan Viverette
6195660681 Add ripple to switches, radio buttons, check boxes, seek bars
BUG: 14231772
Change-Id: Ie40eac9f68815294460175965a999dd75f4144b5
2014-04-22 19:07:06 -07:00
Baligh Uddin
d14bb3cfb9 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:01:10 +00:00
Baligh Uddin
abd2a4a449 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:01:06 +00:00
Baligh Uddin
c2c527a6f4 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:01:03 +00:00
Baligh Uddin
13c48fba16 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:01:03 +00:00
Baligh Uddin
611dd7b70a Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:01:03 +00:00
Baligh Uddin
4516c695b2 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:57 +00:00
Baligh Uddin
2d45d4de48 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:57 +00:00
Baligh Uddin
5eb7136de9 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:55 +00:00
Baligh Uddin
71b82aedca Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:55 +00:00
Baligh Uddin
2d6e077d1d Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:48 +00:00
Baligh Uddin
42c0488a4b Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:44 +00:00
Baligh Uddin
9dbd2eebf9 Merge "Import translations. DO NOT MERGE" into klp-modular-dev 2014-04-23 02:00:41 +00:00