Home
last modified time | relevance | path

Searched refs:contentUri (Results 1 – 25 of 103) sorted by relevance

12345

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DAudioStore.java83 Uri contentUri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI; in load() local
88 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
107 Uri contentUri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI; in load() local
113 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
141 Uri contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in load() local
150 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load()
188 Uri contentUri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI; in load() local
193 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
212 Uri contentUri = MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI; in load() local
217 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
[all …]
DVideoStore.java102 Uri contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in load() local
119 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load()
226 Uri contentUri = MediaStore.Video.Media.EXTERNAL_CONTENT_URI; in loadData() local
237 contentUri, projection, selection, selectionArgs, null); in loadData()
285 Uri contentUri = MediaStore.Video.Thumbnails.EXTERNAL_CONTENT_URI; in getThumbnailUri() local
293 contentUri, projection, selection, selectionArgs, null); in getThumbnailUri()
/packages/apps/Messaging/src/com/android/messaging/datamodel/data/
DMessagePartData.java120 protected MessagePartData(final String contentType, final Uri contentUri, in MessagePartData() argument
122 this(null, null, contentType, contentUri, width, height, false /*singlePartOnly*/); in MessagePartData()
129 final Uri contentUri, final int width, final int height) { in MessagePartData() argument
130 this(null, messageText, contentType, contentUri, width, height, false /*singlePartOnly*/); in MessagePartData()
137 final Uri contentUri, final int width, final int height, final boolean singlePartOnly) { in MessagePartData() argument
138 this(null, messageText, contentType, contentUri, width, height, singlePartOnly); in MessagePartData()
145 final String contentType, final Uri contentUri, final int width, final int height, in MessagePartData() argument
150 mContentUri = contentUri; in MessagePartData()
167 final Uri contentUri, final int width, final int height) { in createMediaMessagePart() argument
168 return new MessagePartData(contentType, contentUri, width, height); in createMediaMessagePart()
[all …]
DMediaPickerMessagePartData.java26 final Uri contentUri, final int width, final int height) { in MediaPickerMessagePartData() argument
27 this(startRect, null /* messageText */, contentType, contentUri, width, height); in MediaPickerMessagePartData()
31 final String contentType, final Uri contentUri, final int width, final int height) { in MediaPickerMessagePartData() argument
32 this(startRect, messageText, contentType, contentUri, width, height, in MediaPickerMessagePartData()
37 final Uri contentUri, final int width, final int height, in MediaPickerMessagePartData() argument
39 this(startRect, null /* messageText */, contentType, contentUri, width, height, in MediaPickerMessagePartData()
44 final String contentType, final Uri contentUri, final int width, final int height, in MediaPickerMessagePartData() argument
46 super(messageText, contentType, contentUri, width, height, onlySingleAttachment); in MediaPickerMessagePartData()
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java219 private boolean isVirtualDocument(Uri contentUri) { in isVirtualDocument() argument
221 if (!DocumentsContract.isDocumentUri(getContext(), contentUri)) { in isVirtualDocument()
226 final Cursor metadataCursor = contentResolver.query(contentUri, in isVirtualDocument()
254 public Attachment generateLocalAttachment(Uri contentUri) throws AttachmentFailureException { in generateLocalAttachment() argument
255 if (contentUri == null || TextUtils.isEmpty(contentUri.getPath())) { in generateLocalAttachment()
261 String contentType = contentResolver.getType(contentUri); in generateLocalAttachment()
267 attachment.contentUri = contentUri; in generateLocalAttachment()
268 attachment.thumbnailUri = contentUri; in generateLocalAttachment()
274 ? isVirtualDocument(contentUri) : false; in generateLocalAttachment()
277 final String[] mimeTypes = contentResolver.getStreamTypes(contentUri, "*/*"); in generateLocalAttachment()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java131 public Uri contentUri; field in Attachment
190 contentUri = in.readParcelable(null); in Attachment()
212 contentUri = parseOptionalUri( in Attachment()
234 contentUri = parseOptionalUri(srcJson, AttachmentColumns.CONTENT_URI); in Attachment()
266 contentUri = uri; in Attachment()
314 contentUri = parseOptionalUri(values.getAsString(AttachmentColumns.CONTENT_URI)); in Attachment()
340 values.put(AttachmentColumns.CONTENT_URI, contentUri.toString()); in toContentValues()
363 dest.writeParcelable(contentUri, flags); in writeToParcel()
383 result.put(AttachmentColumns.CONTENT_URI, stringify(contentUri)); in toJSON()
443 return isPresentLocally() && contentUri != null; in canShare()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java181 public void sendMessage(int subId, String callingPkg, Uri contentUri,
204 final SendRequest request = new SendRequest(MmsService.this, subId, contentUri,
220 Uri contentUri, Bundle configOverrides,
243 contentUri, downloadedIntent, callingPkg, configOverrides, MmsService.this);
275 public Uri importMultimediaMessage(String callingPkg, Uri contentUri,
279 return importMms(contentUri, messageId, timestampSecs, seen, read, callingPkg);
365 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri)
369 return addMmsDraft(contentUri, callingPkg);
579 private Uri importMms(Uri contentUri, String messageId, long timestampSecs, in importMms() argument
581 byte[] pduData = readPduFromContentUri(contentUri, MAX_MMS_FILE_SIZE); in importMms()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java192 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in onContextItemSelected() local
193 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in onContextItemSelected()
276 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in clearAllDownloads() local
277 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in clearAllDownloads()
311 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in openCompleteTransfer() local
312 BluetoothOppTransferInfo transInfo = BluetoothOppUtility.queryRecord(this, contentUri); in openCompleteTransfer()
320 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in openCompleteTransfer()
322 transInfo.mTimeStamp, contentUri); in openCompleteTransfer()
326 in.setDataAndNormalize(contentUri); in openCompleteTransfer()
DTestActivity.java269 Uri contentUri = getContentResolver().insert(BluetoothShare.CONTENT_URI, values);
270 Log.v(Constants.TAG, "insert contentUri: " + contentUri);
271 currentInsert = contentUri.getPathSegments().get(1);
281 Uri contentUri =
283 getContentResolver().delete(contentUri, null, null);
290 Uri contentUri =
300 getContentResolver().update(contentUri, updateValues, null, null);
307 Uri contentUri =
316 getContentResolver().update(contentUri, updateValues, null, null);
323 Uri contentUri = Uri.parse(String.valueOf(BluetoothShare.CONTENT_URI));
[all …]
DConstants.java226 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() local
229 context.getContentResolver().update(contentUri, updateValues, null, null); in updateShareStatus()
230 Constants.sendIntentIfCompleted(context, contentUri, status); in updateShareStatus()
234 static void sendIntentIfCompleted(Context context, Uri contentUri, int status) { in sendIntentIfCompleted() argument
238 intent.setDataAndNormalize(contentUri); in sendIntentIfCompleted()
DBluetoothOppObexServerSession.java291 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values); in onPut() local
292 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); in onPut()
295 Log.v(TAG, "insert contentUri: " + contentUri); in onPut()
367 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in onPut()
370 mContext.getContentResolver().update(contentUri, updateValues, null, null); in onPut()
445 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in receiveFile() local
450 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
501 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
DBluetoothOppTransfer.java376 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() local
380 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markShareTimeout()
418 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + info.mId); in markBatchFailed() local
436 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markBatchFailed()
437 Constants.sendIntentIfCompleted(mContext, contentUri, info.mStatus); in markBatchFailed()
849 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in tickShareStatus() local
852 mContext.getContentResolver().update(contentUri, updateValues, null, null); in tickShareStatus()
DBluetoothOppHandoverReceiver.java90 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in onReceive() local
93 Log.d(TAG, "Stopping handover transfer with Uri " + contentUri); in onReceive()
95 context.getContentResolver().delete(contentUri, null, null); in onReceive()
DBluetoothOppObexClientSession.java367 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in processShareInfo() local
373 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in processShareInfo()
384 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in sendFile() local
446 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in sendFile()
500 .update(contentUri, updateValues, null, null); in sendFile()
540 .update(contentUri, updateValues, null, null); in sendFile()
/packages/apps/Messaging/src/com/android/messaging/sms/
DMmsSender.java150 final Uri contentUri = writePduToTempFile(context, pdu, subId); in sendMms() local
157 sentIntent.putExtra(SendMessageAction.EXTRA_CONTENT_URI, contentUri); in sendMms()
169 MmsManager.sendMultimediaMessage(subId, context, contentUri, locationUrl, in sendMms()
175 final Uri contentUri = MmsFileProvider.buildRawMmsUri(); in writePduToTempFile() local
176 final File tempFile = MmsFileProvider.getFile(contentUri); in writePduToTempFile()
217 return contentUri; in writePduToTempFile()
251 final Uri contentUri = MmsFileProvider.buildRawMmsUri(); in downloadMms() local
257 downloadedIntent.putExtra(SendMessageAction.EXTRA_CONTENT_URI, contentUri); in downloadMms()
267 MmsManager.downloadMultimediaMessage(subId, context, contentLocation, contentUri, in downloadMms()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DShareIntentActivity.java78 final Uri contentUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM); in onAttachFragment() local
79 if (UriUtil.isFileUri(contentUri)) { in onAttachFragment()
85 final String contentType = extractContentType(contentUri, intent.getType()); in onAttachFragment()
89 contentUri, intent.getType(), contentType)); in onAttachFragment()
102 if (contentUri != null) { in onAttachFragment()
104 addSharedImagePartToDraft(contentType, contentUri); in onAttachFragment()
110 Assert.fail("Unsupported shared content type for " + contentUri + ": " + contentType in onAttachFragment()
/packages/apps/Messaging/src/android/support/v7/mms/
DMmsManager.java136 public static void sendMultimediaMessage(int subId, Context context, Uri contentUri, in sendMultimediaMessage() argument
141 smsManager.sendMultimediaMessage(context, contentUri, locationUrl, in sendMultimediaMessage()
144 MmsService.startRequest(context, new SendRequest(locationUrl, contentUri, sentIntent)); in sendMultimediaMessage()
159 Uri contentUri, PendingIntent downloadedIntent) { in downloadMultimediaMessage() argument
163 smsManager.downloadMultimediaMessage(context, locationUrl, contentUri, in downloadMultimediaMessage()
167 new DownloadRequest(locationUrl, contentUri, downloadedIntent)); in downloadMultimediaMessage()
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/
DMockContentProvider.java484 public Query expectQuery(Uri contentUri) { in expectQuery() argument
485 return expect(new Query(contentUri)); in expectQuery()
488 public Query expectQuery(String contentUri) { in expectQuery() argument
489 return expectQuery(Uri.parse(contentUri)); in expectQuery()
496 public void expectInsert(Uri contentUri, ContentValues contentValues, Uri resultUri) { in expectInsert() argument
497 mExpectedInserts.add(new Insert(contentUri, contentValues, resultUri)); in expectInsert()
500 public Update expectUpdate(Uri contentUri, in expectUpdate() argument
504 Update update = new Update(contentUri, contentValues, selection, selectionArgs); in expectUpdate()
509 public Delete expectDelete(Uri contentUri) { in expectDelete() argument
510 Delete delete = new Delete(contentUri); in expectDelete()
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java201 Uri contentUri = getUriForIntent(context, accountId); in getAttachmentIntent() local
203 intent.setDataAndType(contentUri, mContentType); in getAttachmentIntent()
210 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId); in getUriForIntent() local
212 contentUri = AttachmentUtilities.resolveAttachmentIdToContentUri( in getUriForIntent()
213 context.getContentResolver(), contentUri); in getUriForIntent()
216 return contentUri; in getUriForIntent()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DMimeType.java59 public static boolean isViewable(Context context, Uri contentUri, String contentType) { in isViewable() argument
66 LogUtils.d(LOG_TAG, "Attachment with null content type. '%s", contentUri); in isViewable()
74 if (contentUri != null) { in isViewable()
75 Utils.setIntentDataAndTypeAndNormalize(mimetypeIntent, contentUri, contentType); in isViewable()
97 contentType, contentUri, mimetypeIntent.getType(), mimetypeIntent.getData()); in isViewable()
DAttachmentUtils.java193 && attachment.contentUri != null ? (AssetFileDescriptor) attachmentFds in cacheAttachmentUri()
194 .getParcelable(attachment.contentUri.toString()) in cacheAttachmentUri()
200 if (attachment.contentUri == null) { in cacheAttachmentUri()
209 … inputStream = context.getContentResolver().openInputStream(attachment.contentUri); in cacheAttachmentUri()
212 attachment.contentUri, attachment.virtualMimeType, null, null); in cacheAttachmentUri()
233 LogUtils.d(LOG_TAG, "Cached %s to %s", attachment.contentUri, cachedFileUri); in cacheAttachmentUri()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DDirectoryTest.java88 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( in testForwardingToLocalContacts() local
91 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalContacts()
113 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( in testForwardingToLocalInvisibleContacts() local
117 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
127 cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DThumbnailLoadTask.java71 final Uri contentUri = attachment.contentUri; in setupThumbnailPreview() local
76 if ((thumbnailUri != null || contentUri != null) in setupThumbnailPreview()
81 task.execute(thumbnailUri, contentUri); in setupThumbnailPreview()
82 } else if (thumbnailUri == null && contentUri == null) { in setupThumbnailPreview()
/packages/apps/TV/src/com/android/tv/util/
DTvProviderUtils.java187 private static boolean addColumnToTable(Context context, Uri contentUri, String columnName) { in addColumnToTable() argument
197 contentUri, in addColumnToTable()
199 contentUri.toString(), in addColumnToTable()
205 Log.w(TAG, "Adding new column failed. Uri=" + contentUri); in addColumnToTable()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DShareVCardActivity.java59 final Uri contentUri = FileProvider.getUriForFile(this, in onServiceConnected() local
61 if (DEBUG) Log.d(LOG_TAG, "exporting to " + contentUri); in onServiceConnected()
63 final ExportRequest request = new ExportRequest(contentUri); in onServiceConnected()

12345