129117 Commits

Author SHA1 Message Date
Martijn Coenen
aa1492d1d8 Dynamic AID registration APIs for HCE.
Adds a set of APIs that allows applications
to dynamically register and unregister AID groups
for HCE and Secure Element based services.

Change-Id: I08e9423dff405955cb725c87423c953a7dbe5c72
2014-04-23 20:21:32 +00:00
John Spurlock
17880ef81f Avoid panel "flip" animations when possible.
Bug:14271219
Change-Id: I91632c073497718e2fd53ad172ec805f54514696
2014-04-23 16:13:56 -04:00
Deepanshu Gupta
fbfeb1a90b Fix style warnings in RenderSessionImpl
Change-Id: I9d3cb23e4ea692f737a3e3d6c18cc8de18b66a3c
2014-04-23 13:07:44 -07:00
Alan Viverette
6f6e64a7a3 Merge "Add null bg check to switch" 2014-04-23 19:54:04 +00:00
Alan Viverette
aec98fee14 Add null bg check to switch
BUG: 14271950
Change-Id: I6f4833c916ddc8d939f5bfa6ab7b1ed1993e862e
2014-04-23 12:51:16 -07:00
Deepanshu Gupta
5c1d432729 Merge "Add view cookies for action bar menus." 2014-04-23 19:50:00 +00:00
Emily Bernier
9c32cd498a Fix build.
Don't link to MANAGE_USERS permission in Javadoc.

Change-Id: Iad1391a0281a3fad06529a86b277f787791e94fc
2014-04-23 15:42:10 -04:00
Deepanshu Gupta
1001961f90 Add view cookies for action bar menus.
The change adds the view cookies for the menus rendered in the action
bar. This enables the IDE to map the menu to the relevant XML Tag in the
menu xml and show the highlighting accordingly.

Change-Id: Idcfc263a8ebe0a4f25afa3a1eb085fa628fd03ca
2014-04-23 12:27:30 -07:00
Baligh Uddin
07f14e11a1 Import translations. DO NOT MERGE
Change-Id: Id3aec0b4534311c2ca89dcf86e04566c0cf025c3
Auto-generated-cl: translation import
2014-04-23 12:16:20 -07:00
Baligh Uddin
6b5a2f97b7 Import translations. DO NOT MERGE
Change-Id: Ic8c5ae13c6ed3ad711170586a245452195c6d963
Auto-generated-cl: translation import
2014-04-23 12:12:46 -07:00
Baligh Uddin
0547bafcbb Import translations. DO NOT MERGE
Change-Id: I71ec42f4923a70bc8e34f16a55ffeb5f63e92ec8
Auto-generated-cl: translation import
2014-04-23 12:05:40 -07:00
Baligh Uddin
a7e81e4421 Import translations. DO NOT MERGE
Change-Id: Icd10d420151ef81797ebe9a5d67eabb122e6cb2e
Auto-generated-cl: translation import
2014-04-23 11:53:59 -07:00
Craig Mautner
5723febadc Merge "Introduce PersistableBundle" 2014-04-23 18:48:56 +00:00
Emily Bernier
8a0fa6e823 Merge "Allow device or profile owner app to modify user restrictions." 2014-04-23 18:27:45 +00:00
Baligh Uddin
b43b108355 Import translations. DO NOT MERGE
Change-Id: I99c697cc9974820312756fa89f51e3cf821401e2
Auto-generated-cl: translation import
2014-04-23 11:27:35 -07:00
Baligh Uddin
473a973054 Import translations. DO NOT MERGE
Change-Id: I486facdbdbfdc4cafe23f0412e7b548a11792480
Auto-generated-cl: translation import
2014-04-23 11:21:37 -07:00
Emily Bernier
7a2b4d11c7 Allow device or profile owner app to modify user restrictions.
Currently this is gated on being a system or root app with the
MANAGE_USERS permission; third-party MDM apps set as device or profile
owner should have this ability as well.

Bug: 13585295

Change-Id: I61d21b13b9ec66fc0cb497ec2007ee732461d448
2014-04-23 14:20:15 -04:00
Selim Gurun
a3bb66a75e Tune down the linkify false positive rate
Bug: 14066316

Tune down the false positive rate by restricting gTLD pattern a little bit.

Change-Id: I7bd39633d3267930593bd7231f764c110293301f
2014-04-23 11:17:20 -07:00
John Spurlock
4e8cf1508f Merge "Quick settings: interim tile shuffle." 2014-04-23 17:46:45 +00:00
Alan Viverette
40619ae801 Prevent new ripples when max reached
BUG: 14270202
Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d
2014-04-23 10:33:47 -07:00
Allen Hair
59d2b43ad0 Fixed shell manifest to use correct permission.
Changed RENDER_STATS to FRAME_STATS. There is no RENDER_STATS
permission.

Change-Id: Iaf81b9e5a1580108da2d58e9c00a77a2b1093fdf
2014-04-23 10:23:07 -07:00
John Spurlock
0f407279ff Quick settings: interim tile shuffle.
Ensure BT and location appear in 3x3 mode, by:
 - Adding the three conditional accessibility tiles at the end
 - Moving BT and location above airplane mode (available via global actions)
   and zen mode (sorry).

Bug:14162372
Change-Id: I6d79a7442f091d58643c5124cfe0dcbf6e3cd46f
2014-04-23 13:22:59 -04:00
Alan Viverette
70ad9bc033 Fix null and bounds checks
BUG: 14271950
BUG: 14271753
BUG: 14270202
Change-Id: I8708107d3803b170a323f584a268ea6b096458ce
2014-04-23 10:20:11 -07:00
Neil Fuller
ceb5d17f6a am d720ef54: am caf6497b: am 683cf1bf: Merge "Changes to support asynchronous close interruption"
* commit 'd720ef541d06be87de3b3e03c1e7fb349299a21f':
  Changes to support asynchronous close interruption
2014-04-23 16:51:47 +00:00
Neil Fuller
d720ef541d am caf6497b: am 683cf1bf: Merge "Changes to support asynchronous close interruption"
* commit 'caf6497b9a0347da7d5acbe678adc2c8187176c0':
  Changes to support asynchronous close interruption
2014-04-23 16:48:34 +00:00
Neil Fuller
caf6497b9a am 683cf1bf: Merge "Changes to support asynchronous close interruption"
* commit '683cf1bffe33f49f26d46201f96cd2eff60e8192':
  Changes to support asynchronous close interruption
2014-04-23 16:45:15 +00:00
Neil Fuller
683cf1bffe Merge "Changes to support asynchronous close interruption" 2014-04-23 16:41:17 +00:00
Neil Fuller
43582df3db Changes to support asynchronous close interruption
This change contains fixes to base from libcore change
I37de3e7d1a005a73821221e6156d10b95c595d7a

Bug: 13927110

Change-Id: I2d96e50307611c269dcf47886cd4d976854da8fc
2014-04-23 16:40:35 +00:00
Jorim Jaggi
e84d544fe4 Merge "Move redaction logic showing from Keyguard to PhoneStatusBar." 2014-04-23 16:24:04 +00: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
Jorim Jaggi
1568250853 Move redaction logic showing from Keyguard to PhoneStatusBar.
This removes a race condition and makes redaction more stable.

Change-Id: I4084cdf490c0e52fe26f45cb00524e0876a068bc
2014-04-23 17:02:25 +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
Craig Mautner
719e6b1670 Introduce PersistableBundle
The PersistableBundle class is similar to Bundle except that only
objects that have meaning across reboots can be stored and there
is a limited number of types that can be stored. More
specifically Binders, FileDescriptors, Parcelables, Booleans,
Bytes, Shorts, Chars, CharSequences, Floats, and ArrayLists
cannot be stored.

Fixes bug 13736007.

Change-Id: If6595b2e6fd92af6b7f60c4f7140ae867c258794
2014-04-22 19:15:33 -07: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