Home
last modified time | relevance | path

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

123

/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DAttachment.java131 public Uri contentUri; field in Attachment
182 contentUri = in.readParcelable(null); in Attachment()
203 contentUri = parseOptionalUri( in Attachment()
224 contentUri = parseOptionalUri(srcJson, AttachmentColumns.CONTENT_URI); in Attachment()
250 contentUri = uri; in Attachment()
297 contentUri = parseOptionalUri(values.getAsString(AttachmentColumns.CONTENT_URI)); in Attachment()
322 values.put(AttachmentColumns.CONTENT_URI, contentUri.toString()); in toContentValues()
344 dest.writeParcelable(contentUri, flags); in writeToParcel()
363 result.put(AttachmentColumns.CONTENT_URI, stringify(contentUri)); in toJSON()
422 return isPresentLocally() && contentUri != null; in canShare()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java217 public Attachment generateLocalAttachment(Uri contentUri) throws AttachmentFailureException { in generateLocalAttachment() argument
218 if (contentUri == null || TextUtils.isEmpty(contentUri.getPath())) { in generateLocalAttachment()
224 String contentType = contentResolver.getType(contentUri); in generateLocalAttachment()
232 attachment.contentUri = contentUri; in generateLocalAttachment()
233 attachment.thumbnailUri = contentUri; in generateLocalAttachment()
238 contentUri, new String[]{OpenableColumns.DISPLAY_NAME, OpenableColumns.SIZE}, in generateLocalAttachment()
259 metadataCursor = getOptionalColumn(contentResolver, contentUri, in generateLocalAttachment()
271 getOptionalColumn(contentResolver, contentUri, OpenableColumns.SIZE); in generateLocalAttachment()
276 attachment.size = getSizeFromFile(contentUri, contentResolver); in generateLocalAttachment()
286 attachment.setName(contentUri.getLastPathSegment()); in generateLocalAttachment()
[all …]
/packages/services/Mms/src/com/android/mms/service/
DMmsService.java126 public void sendMessage(long subId, String callingPkg, Uri contentUri,
131 final SendRequest request = new SendRequest(MmsService.this, subId, contentUri,
143 Uri contentUri, Bundle configOverrides,
148 locationUrl, contentUri, downloadedIntent, callingPkg, configOverrides);
212 public Uri importMultimediaMessage(String callingPkg, Uri contentUri,
216 return importMms(contentUri, messageId, timestampSecs, seen, read, callingPkg);
302 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri)
306 return addMmsDraft(contentUri, callingPkg);
429 private Uri importMms(Uri contentUri, String messageId, long timestampSecs, in importMms() argument
431 byte[] pduData = readPduFromContentUri(contentUri, MAX_MMS_FILE_SIZE); in importMms()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
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 …]
DBluetoothOppTransferHistory.java183 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in onContextItemSelected() local
184 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in onContextItemSelected()
253 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in clearAllDownloads() local
254 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in clearAllDownloads()
285 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in openCompleteTransfer() local
286 BluetoothOppTransferInfo transInfo = BluetoothOppUtility.queryRecord(this, contentUri); in openCompleteTransfer()
294 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in openCompleteTransfer()
296 transInfo.mTimeStamp, contentUri); in openCompleteTransfer()
300 in.setDataAndNormalize(contentUri); in openCompleteTransfer()
DBluetoothOppObexServerSession.java292 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values); in onPut() local
293 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); in onPut()
301 if (V) 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()
486 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
DBluetoothOppTransfer.java277 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() local
281 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markShareTimeout()
313 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + info.mId); in markBatchFailed() local
331 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markBatchFailed()
332 Constants.sendIntentIfCompleted(mContext, contentUri, info.mStatus); in markBatchFailed()
683 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in tickShareStatus() local
686 mContext.getContentResolver().update(contentUri, updateValues, null, null); in tickShareStatus()
DConstants.java277 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() local
280 context.getContentResolver().update(contentUri, updateValues, null, null); in updateShareStatus()
281 Constants.sendIntentIfCompleted(context, contentUri, status); in updateShareStatus()
288 public static void sendIntentIfCompleted(Context context, Uri contentUri, int status) { in sendIntentIfCompleted() argument
292 intent.setDataAndNormalize(contentUri); in sendIntentIfCompleted()
DBluetoothOppObexClientSession.java325 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in processShareInfo() local
331 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in processShareInfo()
341 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in sendFile() local
390 mContext1.getContentResolver().update(contentUri, updateValues, null, null); in sendFile()
440 mContext1.getContentResolver().update(contentUri, updateValues, null, in sendFile()
470 mContext1.getContentResolver().update(contentUri, updateValues, in sendFile()
DBluetoothOppManager.java453 final Uri contentUri = mContext.getContentResolver().insert( in insertMultipleShare() local
455 if (V) Log.v(TAG, "Insert contentUri: " + contentUri + " to device: " in insertMultipleShare()
472 final Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, in insertSingleShare() local
474 if (V) Log.v(TAG, "Insert contentUri: " + contentUri + " to device: " in insertSingleShare()
DBluetoothOppHandoverReceiver.java80 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in onReceive() local
82 if (D) Log.d(TAG, "Stopping handover transfer with Uri " + contentUri); in onReceive()
83 context.getContentResolver().delete(contentUri, null, null); in onReceive()
/packages/apps/Email/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()
95 contentType, contentUri, mimetypeIntent.getType(), mimetypeIntent.getData()); in isViewable()
DAttachmentUtils.java191 && attachment.contentUri != null ? (ParcelFileDescriptor) attachmentFds in cacheAttachmentUri()
192 .getParcelable(attachment.contentUri.toString()) in cacheAttachmentUri()
198 if (attachment.contentUri == null) { in cacheAttachmentUri()
206 inputStream = context.getContentResolver().openInputStream(attachment.contentUri); in cacheAttachmentUri()
223 LogUtils.d(LOG_TAG, "Cached %s to %s", attachment.contentUri, cachedFileUri); in cacheAttachmentUri()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java313 final Uri contentUri = data.getUri();
314 if (contentUri == Uri.EMPTY) {
320 mPanoramaViewHelper.showPanorama(CameraActivity.this, contentUri);
322 mPanoramaViewHelper.showRgbz(contentUri);
424 final Uri contentUri = data.getUri();
431 intent.putExtra(Intent.EXTRA_STREAM, contentUri);
436 intent.putExtra(Intent.EXTRA_STREAM, contentUri);
887 Uri contentUri = Storage.getContentUriForSessionUri(sessionUri);
888 if (contentUri == null) {
893 getContentResolver(), contentUri);
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DDirectoryTest.java82 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( in testForwardingToLocalContacts() local
85 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalContacts()
107 Uri contentUri = Contacts.CONTENT_URI.buildUpon().appendQueryParameter( in testForwardingToLocalInvisibleContacts() local
111 Cursor cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
121 cursor = mResolver.query(contentUri, in testForwardingToLocalInvisibleContacts()
DBaseContactsProvider2Test.java796 protected void storeValue(Uri contentUri, long id, String column, String value) { in storeValue() argument
797 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue()
800 protected void storeValue(Uri contentUri, String column, String value) { in storeValue() argument
804 mResolver.update(contentUri, values, null, null); in storeValue()
807 protected void storeValue(Uri contentUri, long id, String column, long value) { in storeValue() argument
808 storeValue(ContentUris.withAppendedId(contentUri, id), column, value); in storeValue()
811 protected void storeValue(Uri contentUri, String column, long value) { in storeValue() argument
815 mResolver.update(contentUri, values, null, null); in storeValue()
818 protected void assertStoredValue(Uri contentUri, long id, String column, Object expectedValue) { in assertStoredValue() argument
819 assertStoredValue(ContentUris.withAppendedId(contentUri, id), column, expectedValue); in assertStoredValue()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DThumbnailLoadTask.java62 final Uri contentUri = attachment.contentUri; in setupThumbnailPreview() local
67 if ((thumbnailUri != null || contentUri != null) in setupThumbnailPreview()
72 task.execute(thumbnailUri, contentUri); in setupThumbnailPreview()
73 } else if (thumbnailUri == null && contentUri == null) { in setupThumbnailPreview()
/packages/apps/Camera2/src/com/android/camera/data/
DLocalMediaData.java109 Uri contentUri, String[] projection, long minimumId, String orderBy, in queryLocalMediaData() argument
114 Cursor cursor = contentResolver.query(contentUri, projection, in queryLocalMediaData()
366 public static LocalData fromContentUri(ContentResolver cr, Uri contentUri) { in fromContentUri() argument
367 List<LocalData> newPhotos = query(cr, contentUri, QUERY_ALL_MEDIA_ID); in fromContentUri()
649 public static LocalData fromContentUri(ContentResolver cr, Uri contentUri) { in fromContentUri() argument
650 List<LocalData> newVideos = query(cr, contentUri, QUERY_ALL_MEDIA_ID); in fromContentUri()
/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/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java401 final String contentUri; in saveAttachment() local
409 contentUri = attUri.toString(); in saveAttachment()
443 contentUri = dm.getUriForDownloadedFile(id).toString(); in saveAttachment()
456 cv.put(AttachmentColumns.CONTENT_URI, contentUri); in saveAttachment()
DUtility.java672 final String contentUri = attachment.getContentUri();
673 if (TextUtils.isEmpty(contentUri)) {
677 final Uri fileUri = Uri.parse(contentUri);
749 public static String[] getRowColumns(Context context, Uri contentUri, String[] projection,
753 Cursor c = cr.query(contentUri, projection, selection, selectionArgs, null);
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DMessageAttachmentBar.java140 attachment.destination, attachment.downloadedSize, attachment.contentUri, in render()
268 getContext(), mAttachment.contentUri, mAttachment.getContentType())) { in onClick()
330 if (mAttachment.contentUri == null) { in viewAttachment()
341 intent, mAttachment.contentUri, contentType); in viewAttachment()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMessageTestUtils.java65 public static Uri contentUri(long attachmentId, Account account) { in contentUri() method in MessageTestUtils
239 public TextBuilder addUidImg(Uri contentUri) { in addUidImg() argument
240 return addTag("img", "src", contentUri.toString()); in addUidImg()
/packages/apps/Browser/src/com/android/browser/
DUploadHandler.java170 private Intent createCameraIntent(Uri contentUri) { in createCameraIntent() argument
171 if (contentUri == null) throw new IllegalArgumentException(); in createCameraIntent()
172 mCapturedMedia = contentUri; in createCameraIntent()

123