Home | History | Annotate | Download | only in app

Lines Matching full:uri

26 import android.net.Uri;
43 * request that a URI be downloaded to a particular destination file. The download manager will
77 * URI to be downloaded.
79 public final static String COLUMN_URI = "uri";
97 * Uri where downloaded file will be stored. If a destination is supplied by client, that URI
99 * generated URI once the download has started.
139 * The URI to the corresponding entry in MediaProvider for this downloaded entry. It is
309 * This class contains all the information necessary to request a new download. The URI is the
314 * on external storage (see {@link #setDestinationUri(Uri)}.
329 private Uri mUri;
330 private Uri mDestinationUri;
341 * @param uri the HTTP URI to download.
343 public Request(Uri uri) {
344 if (uri == null) {
347 String scheme = uri.getScheme();
349 throw new IllegalArgumentException("Can only download HTTP URIs: " + uri);
351 mUri = uri;
355 * Set the local destination for the downloaded file. Must be a file URI to a path on
364 public Request setDestinationUri(Uri uri) {
365 mDestinationUri = uri;
403 mDestinationUri = Uri.withAppendedPath(Uri.fromFile(base), subPath);
649 Cursor runQuery(ContentResolver resolver, String[] projection, Uri baseUri) {
650 Uri uri = baseUri;
694 return resolver.query(uri, projection, selection, selectionArgs, orderBy);
717 private Uri mBaseUri = Downloads.Impl.CONTENT_URI;
750 Uri downloadUri = mResolver.insert(Downloads.CONTENT_URI, values);
844 * Get the DownloadProvider URI for the download with the given ID.
846 Uri getDownloadUri(long id) {
885 private Uri mBaseUri;
887 public CursorTranslator(Cursor cursor, Uri baseUri) {
994 // return client-provided file URI for external download
1004 return Uri.fromFile(new File(localPath)).toString();
1007 // return content URI for cache download