/packages/apps/Messaging/src/com/android/messaging/datamodel/data/ |
D | MessagePartData.java | 120 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 …]
|
D | MediaPickerMessagePartData.java | 26 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/ |
D | AttachmentsView.java | 217 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/apps/UnifiedEmail/src/com/android/mail/providers/ |
D | Attachment.java | 131 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/Messaging/src/com/android/messaging/sms/ |
D | MmsSender.java | 150 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/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferHistory.java | 183 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()
|
D | TestActivity.java | 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); 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 …]
|
D | Constants.java | 287 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() local 290 context.getContentResolver().update(contentUri, updateValues, null, null); in updateShareStatus() 291 Constants.sendIntentIfCompleted(context, contentUri, status); in updateShareStatus() 298 public static void sendIntentIfCompleted(Context context, Uri contentUri, int status) { in sendIntentIfCompleted() argument 302 intent.setDataAndNormalize(contentUri); in sendIntentIfCompleted()
|
D | BluetoothOppObexServerSession.java | 288 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values); in onPut() local 289 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); in onPut() 291 if (V) Log.v(TAG, "insert contentUri: " + contentUri); in onPut() 351 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in onPut() 354 mContext.getContentResolver().update(contentUri, updateValues, null, null); in onPut() 429 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in receiveFile() local 434 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile() 476 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
|
D | BluetoothOppHandoverReceiver.java | 80 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()
|
D | BluetoothOppTransfer.java | 279 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() local 283 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markShareTimeout() 315 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + info.mId); in markBatchFailed() local 333 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markBatchFailed() 334 Constants.sendIntentIfCompleted(mContext, contentUri, info.mStatus); in markBatchFailed() 685 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in tickShareStatus() local 688 mContext.getContentResolver().update(contentUri, updateValues, null, null); in tickShareStatus()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsService.java | 156 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/Messaging/src/android/support/v7/mms/ |
D | MmsManager.java | 136 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()
|
D | DownloadRequest.java | 79 public boolean writePduToContentUri(final Context context, final Uri contentUri, in writePduToContentUri() argument 81 if (contentUri == null || pdu == null) { in writePduToContentUri() 89 final ParcelFileDescriptor pduFd = cr.openFileDescriptor(contentUri, "w"); in writePduToContentUri()
|
D | SendRequest.java | 98 public byte[] readPduFromContentUri(final Context context, final Uri contentUri, in readPduFromContentUri() argument 100 if (contentUri == null) { in readPduFromContentUri() 108 final ParcelFileDescriptor pduFd = cr.openFileDescriptor(contentUri, "r"); in readPduFromContentUri()
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
D | MimeType.java | 59 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()
|
D | AttachmentUtils.java | 191 && 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/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ShareIntentActivity.java | 77 final Uri contentUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM); in onAttachFragment() local 78 final String contentType = extractContentType(contentUri, intent.getType()); in onAttachFragment() 82 contentUri, intent.getType(), contentType)); in onAttachFragment() 95 if (contentUri != null) { in onAttachFragment() 97 addSharedImagePartToDraft(contentType, contentUri); in onAttachFragment() 103 Assert.fail("Unsupported shared content type for " + contentUri + ": " + contentType in onAttachFragment()
|
/packages/apps/Email/provider_src/com/android/email/ |
D | AttachmentInfo.java | 201 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | DirectoryTest.java | 82 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()
|
/packages/apps/UnifiedEmail/src/com/android/mail/ui/ |
D | ThumbnailLoadTask.java | 71 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/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/ |
D | MockContentProvider.java | 446 public Query expectQuery(Uri contentUri) { in expectQuery() argument 447 Query query = new Query(contentUri); in expectQuery() 456 public void expectInsert(Uri contentUri, ContentValues contentValues, Uri resultUri) { in expectInsert() argument 457 mExpectedInserts.add(new Insert(contentUri, contentValues, resultUri)); in expectInsert() 460 public Update expectUpdate(Uri contentUri, in expectUpdate() argument 464 Update update = new Update(contentUri, contentValues, selection, selectionArgs); in expectUpdate() 469 public Delete expectDelete(Uri contentUri) { in expectDelete() argument 470 Delete delete = new Delete(contentUri); in expectDelete()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
D | ShareVCardActivity.java | 58 final Uri contentUri = FileProvider.getUriForFile(this, in onServiceConnected() local 60 if (DEBUG) Log.d(LOG_TAG, "exporting to " + contentUri); in onServiceConnected() 62 final ExportRequest request = new ExportRequest(contentUri); in onServiceConnected()
|
/packages/apps/Email/tests/src/com/android/emailcommon/mail/ |
D | MessageTestUtils.java | 65 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/Camera2/src/com/android/camera/data/ |
D | RgbzMetadataLoader.java | 35 final Context context, Uri contentUri, Metadata metadata) { in loadRgbzMetadata() argument 36 if (RefocusHelper.isRGBZ(context, contentUri)) { in loadRgbzMetadata()
|