HomeSort by relevance Sort by last modified time
    Searched refs:contentUri (Results 26 - 50 of 148) sorted by null

12 3 4 5 6

  /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/Messaging/src/com/android/messaging/sms/
MmsSender.java 150 final Uri contentUri = writePduToTempFile(context, pdu, subId);
157 sentIntent.putExtra(SendMessageAction.EXTRA_CONTENT_URI, contentUri);
169 MmsManager.sendMultimediaMessage(subId, context, contentUri, locationUrl,
175 final Uri contentUri = MmsFileProvider.buildRawMmsUri();
176 final File tempFile = MmsFileProvider.getFile(contentUri);
217 return contentUri;
251 final Uri contentUri = MmsFileProvider.buildRawMmsUri();
257 downloadedIntent.putExtra(SendMessageAction.EXTRA_CONTENT_URI, contentUri);
267 MmsManager.downloadMultimediaMessage(subId, context, contentLocation, contentUri,
  /packages/apps/Bluetooth/src/com/android/bluetooth/opp/
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 288 Uri contentUri = mContext.getContentResolver().insert(BluetoothShare.CONTENT_URI, values);
289 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1));
291 if (V) Log.v(TAG, "insert contentUri: " + contentUri);
351 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
354 mContext.getContentResolver().update(contentUri, updateValues, null, null);
429 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId);
434 mContext.getContentResolver().update(contentUri, updateValues, null, null);
476 mContext.getContentResolver().update(contentUri, updateValues, null, null);
  /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());
  /packages/apps/Messaging/src/android/support/v7/mms/
DownloadRequest.java 75 * @param contentUri content provider uri to which bytes should be written
79 public boolean writePduToContentUri(final Context context, final Uri contentUri,
81 if (contentUri == null || pdu == null) {
89 final ParcelFileDescriptor pduFd = cr.openFileDescriptor(contentUri, "w");
SendRequest.java 94 * @param contentUri content provider uri from which to read
98 public byte[] readPduFromContentUri(final Context context, final Uri contentUri,
100 if (contentUri == null) {
108 final ParcelFileDescriptor pduFd = cr.openFileDescriptor(contentUri, "r");
  /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));
  /frameworks/base/services/core/java/com/android/server/
InputContentUriTokenHandler.java 48 InputContentUriTokenHandler(@NonNull Uri contentUri, int sourceUid,
51 mUri = contentUri;
  /packages/apps/Email/provider_src/com/android/email/
AttachmentInfo.java 197 * resolve from attachmentUri to contentUri)
201 Uri contentUri = getUriForIntent(context, accountId);
203 intent.setDataAndType(contentUri, mContentType);
210 Uri contentUri = AttachmentUtilities.getAttachmentUri(accountId, mId);
212 contentUri = AttachmentUtilities.resolveAttachmentIdToContentUri(
213 context.getContentResolver(), contentUri);
216 return contentUri;
  /packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
ShareIntentActivity.java 77 final Uri contentUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM);
78 final String contentType = extractContentType(contentUri, intent.getType());
81 "onAttachFragment: contentUri=%s, intent.getType()=%s, inferredType=%s",
82 contentUri, intent.getType(), contentType));
95 if (contentUri != null) {
97 addSharedImagePartToDraft(contentType, contentUri);
103 Assert.fail("Unsupported shared content type for " + contentUri + ": " + contentType
  /frameworks/opt/vcard/java/com/android/vcard/
VCardComposer.java 288 public boolean init(final Uri contentUri, final String selection,
290 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder, null);
294 * @param contentUri Uri for obtaining the list of contactId. Used with
306 public boolean init(final Uri contentUri, final String selection,
309 return init(contentUri, sContactsProjection, selection, selectionArgs, sortOrder,
320 * contentUri, projection, selection, selectionArgs, sortOrder);
334 * @param contentUri Uri for obtaining the list of contactId. Used with
350 public boolean init(final Uri contentUri, final String[] projection,
353 if (!ContactsContract.AUTHORITY.equals(contentUri.getAuthority())) {
354 if (DEBUG) Log.d(LOG_TAG, "Unexpected contentUri: " + contentUri)
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/providers/
Attachment.java 131 public Uri contentUri;
182 contentUri = in.readParcelable(null);
203 contentUri = parseOptionalUri(
224 contentUri = parseOptionalUri(srcJson, AttachmentColumns.CONTENT_URI);
250 contentUri = uri;
297 contentUri = parseOptionalUri(values.getAsString(AttachmentColumns.CONTENT_URI));
322 values.put(AttachmentColumns.CONTENT_URI, contentUri.toString());
344 dest.writeParcelable(contentUri, flags);
363 result.put(AttachmentColumns.CONTENT_URI, stringify(contentUri));
422 return isPresentLocally() && contentUri != null
    [all...]
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
ThumbnailLoadTask.java 71 final Uri contentUri = attachment.contentUri;
76 if ((thumbnailUri != null || contentUri != null)
81 task.execute(thumbnailUri, contentUri);
82 } else if (thumbnailUri == null && contentUri == null) {
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
AttachmentUtils.java 191 && attachment.contentUri != null ? (ParcelFileDescriptor) attachmentFds
192 .getParcelable(attachment.contentUri.toString())
198 if (attachment.contentUri == null) {
199 // The contentUri of the attachment is null. This can happen when sending a
202 LogUtils.d(LOG_TAG, "contentUri is null in attachment: %s", attachment);
203 throw new FileNotFoundException("Missing contentUri in attachment");
206 inputStream = context.getContentResolver().openInputStream(attachment.contentUri);
223 LogUtils.d(LOG_TAG, "Cached %s to %s", attachment.contentUri, cachedFileUri);
  /packages/services/Mms/src/com/android/mms/service/
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,
524 byte[] pduData = readPduFromContentUri(contentUri, MAX_MMS_FILE_SIZE)
    [all...]
  /packages/apps/ContactsCommon/TestCommon/src/com/android/contacts/common/test/mocks/
MockContentProvider.java 446 public Query expectQuery(Uri contentUri) {
447 Query query = new Query(contentUri);
456 public void expectInsert(Uri contentUri, ContentValues contentValues, Uri resultUri) {
457 mExpectedInserts.add(new Insert(contentUri, contentValues, resultUri));
460 public Update expectUpdate(Uri contentUri,
464 Update update = new Update(contentUri, contentValues, selection, selectionArgs);
469 public Delete expectDelete(Uri contentUri) {
470 Delete delete = new Delete(contentUri);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/data/
PendingAttachmentData.java 107 final Uri contentUri = getContentUri();
108 final Uri persistedUri = UriUtil.persistContentToScratchSpace(contentUri);
  /packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
AttachmentUtilities.java 401 final String contentUri;
409 contentUri = attUri.toString();
443 contentUri = dm.getUriForDownloadedFile(id).toString();
456 cv.put(AttachmentColumns.CONTENT_URI, contentUri);
  /packages/apps/Messaging/src/com/android/messaging/datamodel/action/
ProcessSentMessageAction.java 139 // Delete temporary file backing the contentUri passed to MMS service
140 final Uri contentUri = actionParameters.getParcelable(KEY_CONTENT_URI);
141 Assert.isTrue(contentUri != null);
142 final File tempFile = MmsFileProvider.getFile(contentUri);
149 + "MMS pdu: " + contentUri);
  /packages/apps/Messaging/src/com/android/messaging/util/
UriUtil.java 335 * Return the length of the file to which contentUri refers
337 * @param contentUri URI for the file of which we want the length
340 public static long getUriContentLength(final Uri contentUri) {
344 afd = context.getContentResolver().openAssetFileDescriptor(contentUri, "r");
347 LogUtil.w(LogUtil.BUGLE_TAG, "Failed to query length of " + contentUri);
353 LogUtil.w(LogUtil.BUGLE_TAG, "Failed to close afd for " + contentUri);
  /packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/
DictionaryBackupAgent.java 192 private void restoreDictionary(BackupDataInput data, Uri contentUri) {
261 getContentResolver().delete(contentUri, Words.WORD + "=? and "
264 getContentResolver().delete(contentUri, Words.WORD + "=? and "
267 getContentResolver().insert(contentUri, cv);
  /cts/tests/tests/content/src/android/content/cts/
ClipboardManagerTest.java 91 Uri contentUri = Uri.parse("content://cts/test/for/clipboardmanager");
93 "ContentUriLabel", contentUri);
96 new ExpectedClipItem(null, null, contentUri));
  /frameworks/opt/telephony/src/java/android/telephony/
SmsManager.java     [all...]

Completed in 990 milliseconds

12 3 4 5 6