diff options
author | Jeff Sharkey <jsharkey@android.com> | 2013-07-30 17:08:39 -0700 |
---|---|---|
committer | Jeff Sharkey <jsharkey@android.com> | 2013-07-30 22:55:23 -0700 |
commit | 20d96d8aff2193d548977e23ce5158657cac94e0 (patch) | |
tree | b650fadd3425d2b72a4ef6d9e0f180596b5b54f1 /api | |
parent | 5259ffba255b38728a20e28aa6ba029416d0e925 (diff) | |
download | frameworks_base-20d96d8aff2193d548977e23ce5158657cac94e0.zip frameworks_base-20d96d8aff2193d548977e23ce5158657cac94e0.tar.gz frameworks_base-20d96d8aff2193d548977e23ce5158657cac94e0.tar.bz2 |
Define storage roots, external GUIDs, creation.
Allow storage backends to publish multiple roots into the UI, which
are defined by a directory GUID, type, and label details. Update
external provider to surface a primary external storage root, and
switch to burning file path into the returned GUIDs so they remain
durable.
Added insert, update, and delete support to external provider. Adds
file extensions to display names when needed to match MIME type.
Add flags for searching and deletion, and extras for Cursor
pagination. Add directory creation dialog to UI. Opening a document
always gives write access.
Change-Id: I9bea1aa0dcde909a5ab86aefeece7451ab920cf1
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/api/current.txt b/api/current.txt index 6bb40e1..09c2385 100644 --- a/api/current.txt +++ b/api/current.txt @@ -20245,15 +20245,25 @@ package android.provider { ctor public DocumentsContract(); method public static android.net.Uri buildContentsUri(android.net.Uri); method public static android.net.Uri buildDocumentUri(java.lang.String, java.lang.String); - method public static android.net.Uri buildSearchUri(java.lang.String, java.lang.String); + method public static android.net.Uri buildRootsUri(java.lang.String); + method public static android.net.Uri buildSearchUri(android.net.Uri, java.lang.String); method public static android.graphics.Bitmap getThumbnail(android.content.ContentResolver, android.net.Uri, android.graphics.Point); method public static boolean renameDocument(android.content.ContentResolver, android.net.Uri, java.lang.String); + field public static final java.lang.String EXTRA_HAS_MORE = "has_more"; + field public static final java.lang.String EXTRA_REQUEST_MORE = "request_more"; field public static final java.lang.String EXTRA_THUMBNAIL_SIZE = "thumbnail_size"; field public static final int FLAG_SUPPORTS_CREATE = 1; // 0x1 + field public static final int FLAG_SUPPORTS_DELETE = 4; // 0x4 field public static final int FLAG_SUPPORTS_RENAME = 2; // 0x2 - field public static final int FLAG_SUPPORTS_THUMBNAIL = 4; // 0x4 + field public static final int FLAG_SUPPORTS_SEARCH = 16; // 0x10 + field public static final int FLAG_SUPPORTS_THUMBNAIL = 8; // 0x8 field public static final java.lang.String MIME_TYPE_DIRECTORY = "vnd.android.cursor.dir/doc"; + field public static final java.lang.String PARAM_QUERY = "query"; field public static final java.lang.String ROOT_GUID = "0"; + field public static final int ROOT_TYPE_DEVICE = 3; // 0x3 + field public static final int ROOT_TYPE_DEVICE_ADVANCED = 4; // 0x4 + field public static final int ROOT_TYPE_SERVICE = 1; // 0x1 + field public static final int ROOT_TYPE_SHORTCUT = 2; // 0x2 } public static abstract interface DocumentsContract.DocumentColumns implements android.provider.OpenableColumns { @@ -20263,6 +20273,15 @@ package android.provider { field public static final java.lang.String MIME_TYPE = "mime_type"; } + public static abstract interface DocumentsContract.RootColumns { + field public static final java.lang.String AVAILABLE_BYTES = "available_bytes"; + field public static final java.lang.String GUID = "guid"; + field public static final java.lang.String ICON = "icon"; + field public static final java.lang.String ROOT_TYPE = "root_type"; + field public static final java.lang.String SUMMARY = "summary"; + field public static final java.lang.String TITLE = "title"; + } + public final deprecated class LiveFolders implements android.provider.BaseColumns { field public static final java.lang.String ACTION_CREATE_LIVE_FOLDER = "android.intent.action.CREATE_LIVE_FOLDER"; field public static final java.lang.String DESCRIPTION = "description"; |