Home
last modified time | relevance | path

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

1234

/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.java156 public void sendMessage(int subId, String callingPkg, Uri contentUri,
171 final SendRequest request = new SendRequest(MmsService.this, subId, contentUri,
186 Uri contentUri, Bundle configOverrides,
200 contentUri, downloadedIntent, callingPkg, configOverrides, MmsService.this);
231 public Uri importMultimediaMessage(String callingPkg, Uri contentUri,
235 return importMms(contentUri, messageId, timestampSecs, seen, read, callingPkg);
321 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri)
325 return addMmsDraft(contentUri, callingPkg);
522 private Uri importMms(Uri contentUri, String messageId, long timestampSecs, in importMms() argument
524 byte[] pduData = readPduFromContentUri(contentUri, MAX_MMS_FILE_SIZE); in importMms()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransferHistory.java189 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in onContextItemSelected() local
190 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in onContextItemSelected()
267 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in clearAllDownloads() local
268 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in clearAllDownloads()
299 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in openCompleteTransfer() local
300 BluetoothOppTransferInfo transInfo = BluetoothOppUtility.queryRecord(this, contentUri); in openCompleteTransfer()
308 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in openCompleteTransfer()
310 transInfo.mTimeStamp, contentUri); in openCompleteTransfer()
314 in.setDataAndNormalize(contentUri); in openCompleteTransfer()
DTestActivity.java268 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);
287 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/"
297 getContentResolver().update(contentUri, updateValues, null, null);
303 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/"
312 getContentResolver().update(contentUri, updateValues, null, null);
318 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "");
[all …]
DConstants.java269 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() local
272 context.getContentResolver().update(contentUri, updateValues, null, null); in updateShareStatus()
273 Constants.sendIntentIfCompleted(context, contentUri, status); in updateShareStatus()
280 public static void sendIntentIfCompleted(Context context, Uri contentUri, int status) { in sendIntentIfCompleted() argument
284 intent.setDataAndNormalize(contentUri); in sendIntentIfCompleted()
DBluetoothOppObexServerSession.java295 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values); in onPut() local
296 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); in onPut()
298 if (V) Log.v(TAG, "insert contentUri: " + contentUri); in onPut()
358 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in onPut()
361 mContext.getContentResolver().update(contentUri, updateValues, null, null); in onPut()
436 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in receiveFile() local
441 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
483 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
DBluetoothOppTransfer.java356 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() local
360 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markShareTimeout()
392 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + info.mId); in markBatchFailed() local
410 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markBatchFailed()
411 Constants.sendIntentIfCompleted(mContext, contentUri, info.mStatus); in markBatchFailed()
782 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in tickShareStatus() local
785 mContext.getContentResolver().update(contentUri, updateValues, null, null); in tickShareStatus()
DBluetoothOppObexClientSession.java325 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in processShareInfo() local
331 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in processShareInfo()
342 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in sendFile() local
391 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in sendFile()
440 mContext1.getContentResolver().update(contentUri, updateValues, null, in sendFile()
472 mContext1.getContentResolver().update(contentUri, updateValues, in sendFile()
DBluetoothOppHandoverReceiver.java79 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in onReceive() local
81 if (D) Log.d(TAG, "Stopping handover transfer with Uri " + contentUri); in onReceive()
82 context.getContentResolver().delete(contentUri, null, null); in onReceive()
/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/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/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/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/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapContent.java2169 Uri contentUri = Uri.parse(mBaseUri + BluetoothMapContract.TABLE_MESSAGE); in msgListing() local
2170 emailCursor = mResolver.query(contentUri, in msgListing()
2204 Uri contentUri = Uri.parse(mBaseUri + BluetoothMapContract.TABLE_MESSAGE); in msgListing() local
2205 imCursor = mResolver.query(contentUri, in msgListing()
2329 Uri contentUri = Uri.parse(mBaseUri + BluetoothMapContract.TABLE_MESSAGE); in msgListingSize() local
2330 Cursor c = mResolver.query(contentUri, BluetoothMapContract.BT_MESSAGE_PROJECTION, in msgListingSize()
2346 Uri contentUri = Uri.parse(mBaseUri + BluetoothMapContract.TABLE_MESSAGE); in msgListingSize() local
2347 Cursor c = mResolver.query(contentUri, in msgListingSize()
2418 Uri contentUri = Uri.parse(mBaseUri + BluetoothMapContract.TABLE_MESSAGE); in msgListingHasUnread() local
2419 Cursor c = mResolver.query(contentUri, BluetoothMapContract.BT_MESSAGE_PROJECTION, in msgListingHasUnread()
[all …]
/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()
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DDictionaryBackupAgent.java192 private void restoreDictionary(BackupDataInput data, Uri contentUri) { in restoreDictionary() argument
261 getContentResolver().delete(contentUri, Words.WORD + "=? and " in restoreDictionary()
264 getContentResolver().delete(contentUri, Words.WORD + "=? and " in restoreDictionary()
267 getContentResolver().insert(contentUri, cv); in restoreDictionary()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java339 final Uri contentUri = data.getData().getUri();
340 if (contentUri == Uri.EMPTY) {
346 mPanoramaViewHelper.showPanorama(CameraActivity.this, contentUri);
348 mPanoramaViewHelper.showRgbz(contentUri);
453 final Uri contentUri = item.getData().getUri();
460 intent.putExtra(Intent.EXTRA_STREAM, contentUri);
465 intent.putExtra(Intent.EXTRA_STREAM, contentUri);
909 Uri contentUri = Storage.getContentUriForSessionUri(sessionUri);
910 if (contentUri == null) {
914 PhotoItem newData = mPhotoItemFactory.queryContentUri(contentUri);
[all …]

1234