HomeSort by relevance Sort by last modified time
    Searched refs:contentUri (Results 1 - 25 of 82) sorted by null

1 2 3 4

  /frameworks/base/core/java/android/content/
ContentUris.java 84 public static long parseId(Uri contentUri) {
85 String last = contentUri.getLastPathSegment();
104 * @param contentUri to start with
109 public static Uri withAppendedId(Uri contentUri, long id) {
110 return appendId(contentUri.buildUpon(), id).build();
  /external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowContentUris.java 13 public static Uri withAppendedId(Uri contentUri, long id) {
14 return Uri.withAppendedPath(contentUri, String.valueOf(id));
18 public static long parseId(Uri contentUri) {
19 if (!contentUri.isHierarchical()) {
22 String path = contentUri.getLastPathSegment();
  /packages/apps/Camera2/src/com/android/camera/data/
DataUtils.java 29 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) {
33 Cursor cursor = contentResolver.query(contentUri, proj, null, null, null);
  /packages/apps/Gallery2/src_pd/com/android/gallery3d/util/
LightCycleHelper.java 45 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) {
52 public static long getModifiedTimeFromURI(ContentResolver contentResolver, Uri contentUri) {
  /packages/apps/Camera2/src_pd/com/android/camera/util/
PhotoSphereHelper.java 79 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) {
86 public static long getModifiedTimeFromURI(ContentResolver contentResolver, Uri contentUri) {
  /packages/apps/UnifiedEmail/src/com/android/mail/compose/
AttachmentsView.java 210 * @param contentUri
214 public Attachment generateLocalAttachment(Uri contentUri) throws AttachmentFailureException {
217 String contentType = contentResolver.getType(contentUri);
218 if (contentUri == null || TextUtils.isEmpty(contentUri.getPath())) {
228 attachment.contentUri = contentUri;
229 attachment.thumbnailUri = contentUri;
234 contentUri, new String[]{OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE},
255 metadataCursor = getOptionalColumn(contentResolver, contentUri,
    [all...]
  /cts/tests/tests/content/src/android/content/cts/
SearchRecentSuggestionsProviderTest.java 57 final Uri contentUri = Uri.parse(uriStr);
60 Cursor c = s.query(contentUri, null, null, selArgs, null);
64 c = s.query(contentUri, null, null, selArgs, null);
68 c = s.query(contentUri, null, null, selArgs, null);
72 c = s.query(contentUri, null, null, selArgs, null);
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
MimeType.java 62 public static boolean isViewable(Context context, Uri contentUri, String contentType) {
69 LogUtils.d(LOG_TAG, "Attachment with null content type. '%s", contentUri);
74 LogUtils.d(LOG_TAG, "content type '%s' is blocked. '%s", contentType, contentUri);
82 if (contentUri != null) {
83 Utils.setIntentDataAndTypeAndNormalize(mimetypeIntent, contentUri, contentType);
103 contentType, contentUri, mimetypeIntent.getType(), mimetypeIntent.getData());
AttachmentUtils.java 192 && attachment.contentUri != null ? (ParcelFileDescriptor) attachmentFds
193 .getParcelable(attachment.contentUri.toString())
199 if (attachment.contentUri == null) {
200 // The contentUri of the attachment is null. This can happen when sending a
203 LogUtils.d(LOG_TAG, "contentUri is null in attachment: %s", attachment);
204 throw new FileNotFoundException("Missing contentUri in attachment");
207 inputStream = context.getContentResolver().openInputStream(attachment.contentUri);
224 LogUtils.d(LOG_TAG, "Cached %s to %s", attachment.contentUri, cachedFileUri);
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
BluetoothOppTransferHistory.java 180 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId);
181 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri);
249 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId);
250 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri);
277 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId);
278 BluetoothOppTransferInfo transInfo = BluetoothOppUtility.queryRecord(this, contentUri);
286 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri);
288 transInfo.mTimeStamp, contentUri);
292 in.setDataAndNormalize(contentUri);
Constants.java 276 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
279 context.getContentResolver().update(contentUri, updateValues, null, null);
280 Constants.sendIntentIfCompleted(context, contentUri, status);
287 public static void sendIntentIfCompleted(Context context, Uri contentUri, int status) {
291 intent.setDataAndNormalize(contentUri);
BluetoothOppHandoverReceiver.java 80 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id);
82 if (D) Log.d(TAG, "Stopping handover transfer with Uri " + contentUri);
83 context.getContentResolver().delete(contentUri, null, null);
TestActivity.java 132 * BluetoothShare.DIRECTION_OUTBOUND); final Uri contentUri =
134 * Log.v(Constants.TAG, "insert contentUri: " + contentUri);
172 * String id = contentUri.getPathSegments().get(1); Log.v(Constants.TAG,
268 Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values);
269 Log.v(Constants.TAG, "insert contentUri: " + contentUri);
270 currentInsert = contentUri.getPathSegments().get(1);
279 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/"
281 getContentResolver().delete(contentUri, null, null)
    [all...]
BluetoothOppObexServerSession.java 292 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values);
293 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1));
301 if (V) Log.v(TAG, "insert contentUri: " + contentUri);
367 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
370 mContext.getContentResolver().update(contentUri, updateValues, null, null);
445 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
450 mContext.getContentResolver().update(contentUri, updateValues, null, null);
486 mContext.getContentResolver().update(contentUri, updateValues, null, null);
  /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
DirectoryPartition.java 138 public void setContentUri(String contentUri) {
139 mContentUri = contentUri;
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DirectoryTest.java 82 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter(
85 Cursor cursor = mResolver.query(contentUri,
107 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter(
111 Cursor cursor = mResolver.query(contentUri,
121 cursor = mResolver.query(contentUri,
  /packages/apps/Email/tests/src/com/android/emailcommon/mail/
MessageTestUtils.java 40 * .text("<body>").uriImg(contentUri).text("</body>").build("</html");
65 public static Uri contentUri(long attachmentId, Account account) {
236 * @param contentUri content uri object
239 public TextBuilder addUidImg(Uri contentUri) {
240 return addTag("img", "src", contentUri.toString());
  /cts/tests/tests/provider/src/android/provider/cts/
MediaStore_Audio_Artists_AlbumsTest.java 43 Uri contentUri = MediaStore.Audio.Artists.Albums.getContentUri(
45 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null));
48 contentUri = MediaStore.Audio.Artists.Albums.getContentUri(
50 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null));
  /development/scripts/app_engine_server/
memcache_zipserve.py 148 # the uri that follows the intl/lang substring(contentUri)
154 contentUri = sections[2]
155 logging.info(' Content URI is [%s]...', contentUri)
163 reqUri = contentUri
171 contentUri = reqUri
177 did_redirect = self.ProcessManualRedirects(contentUri, langName, isIntl)
198 self.CreateResponse(contentUri, langName, False, resetLangCookie)
216 def ProcessManualRedirects(self, contentUri, langName, isIntl):
231 contentUri: The relative URI (without leading slash) that was requested.
234 isIntl: True if contentUri originally contained an intl prefix
    [all...]
  /packages/apps/Email/src/com/android/email/
AttachmentInfo.java 190 * resolve from attachmentUri to contentUri)
194 Uri contentUri = getUriForIntent(context, accountId);
196 intent.setDataAndType(contentUri, mContentType);
203 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId);
205 contentUri = AttachmentUtilities.resolveAttachmentIdToContentUri(
206 context.getContentResolver(), contentUri);
209 return contentUri;
  /frameworks/opt/vcard/java/com/android/vcard/
VCardComposer.java 321 public boolean init(final Uri contentUri, final String selection,
323 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder, null);
327 * @param contentUri Uri for obtaining the list of contactId. Used with
339 public boolean init(final Uri contentUri, final String selection,
342 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder,
353 * contentUri, projection, selection, selectionArgs, sortOrder);
367 * @param contentUri Uri for obtaining the list of contactId. Used with
383 public boolean init(final Uri contentUri, final String[] projection,
386 if (!ContactsContract.AUTHORITY.equals(contentUri.getAuthority())) {
387 if (DEBUG) Log.d(LOG_TAG, "Unexpected contentUri: " + contentUri)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java 132 public Uri contentUri;
183 contentUri = in.readParcelable(null);
204 contentUri = parseOptionalUri(
225 contentUri = parseOptionalUri(srcJson, AttachmentColumns.CONTENT_URI);
250 contentUri = uri;
296 contentUri = parseOptionalUri(values.getAsString(AttachmentColumns.CONTENT_URI));
320 values.put(AttachmentColumns.CONTENT_URI, contentUri.toString());
341 dest.writeParcelable(contentUri, flags);
360 result.put(AttachmentColumns.CONTENT_URI, stringify(contentUri));
419 return isPresentLocally() && contentUri != null
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ThumbnailLoadTask.java 63 final Uri contentUri = attachment.contentUri;
68 if ((thumbnailUri != null || contentUri != null)
78 task.execute(thumbnailUri, contentUri);
79 } else if (thumbnailUri == null && contentUri == null) {
  /packages/apps/HTMLViewer/src/com/android/htmlviewer/
HTMLViewerActivity.java 103 String contentUri = "file".equals(uri.getScheme())
106 mWebView.loadUrl(contentUri);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 403 String contentUri = null;
410 contentUri = attUri.toString();
439 contentUri = dm.getUriForDownloadedFile(id).toString();
449 cv.put(AttachmentColumns.CONTENT_URI, contentUri);
458 if (contentUri != null && attachment.mContentId != null) {
465 String srcContentUri = " src=\"" + contentUri + "\"";

Completed in 2445 milliseconds

1 2 3 4