Add new Intent API for associating a ClipData with an Intent.

Allows applications to propagate multiple URI grants through an
Intent.

Later on, we should probably redefine the share actions to be
based on this ClipData with the old extras-based approach only
there for compatibility.  Even if we don't do that, though, this
allows you to do a multi-select share that grants multiple URI
permissions by stuffing the URIs in a ClipData.

Also add some documentation in various places telling people how
they can grant URI permissions.

Change-Id: Id4ba8e72c11caf7e1f1f438cb7af058d1586a37c
This commit is contained in:
Dianne Hackborn
2012-03-08 13:57:23 -08:00
parent c8462e322b
commit 21c241e061
14 changed files with 397 additions and 89 deletions

View File

@ -477,7 +477,8 @@ class AlarmManagerService extends IAlarmManager.Stub {
: bs.filterStats.entrySet()) {
pw.print(" "); pw.print(fe.getValue().count);
pw.print(" alarms: ");
pw.println(fe.getKey().getIntent().toShortString(false, true, false));
pw.println(fe.getKey().getIntent().toShortString(
false, true, false, true));
}
}
}