/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | AudioStore.java | 83 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 …]
|
D | VideoStore.java | 102 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/ |
D | MessagePartData.java | 133 protected MessagePartData(final String contentType, final Uri contentUri, in MessagePartData() argument 135 this(null, null, contentType, contentUri, width, height, false /*singlePartOnly*/); in MessagePartData() 142 final Uri contentUri, final int width, final int height) { in MessagePartData() argument 143 this(null, messageText, contentType, contentUri, width, height, false /*singlePartOnly*/); in MessagePartData() 150 final Uri contentUri, final int width, final int height, final boolean singlePartOnly) { in MessagePartData() argument 151 this(null, messageText, contentType, contentUri, width, height, singlePartOnly); in MessagePartData() 158 final String contentType, final Uri contentUri, final int width, final int height, in MessagePartData() argument 163 mContentUri = contentUri; in MessagePartData() 180 final Uri contentUri, final int width, final int height) { in createMediaMessagePart() argument 181 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/services/Mms/src/com/android/mms/service/ |
D | MmsService.java | 182 public void sendMessage(int subId, String callingPkg, Uri contentUri, 203 final SendRequest request = new SendRequest(MmsService.this, subId, contentUri, 223 sendSettingsIntentForFailedMms(!isRawPduSendReq(contentUri), subId); 233 Uri contentUri, Bundle configOverrides, 253 contentUri, downloadedIntent, callingPkg, configOverrides, MmsService.this); 283 public Uri importMultimediaMessage(String callingPkg, Uri contentUri, 287 return importMms(contentUri, messageId, timestampSecs, seen, read, callingPkg); 373 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri) 377 return addMmsDraft(contentUri, callingPkg); 423 private boolean isRawPduSendReq(Uri contentUri) { [all …]
|
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ShareIntentActivity.java | 91 final Uri contentUri = (Uri) intent.getParcelableExtra(Intent.EXTRA_STREAM); in onAttachFragment() local 92 if (UriUtil.isFileUri(contentUri)) { in onAttachFragment() 98 final String contentType = extractContentType(contentUri, intent.getType()); in onAttachFragment() 102 contentUri, intent.getType(), contentType)); in onAttachFragment() 108 sharedText = getTextStringFromContentUri(contentUri); in onAttachFragment() 116 if (contentUri != null) { in onAttachFragment() 118 addSharedPartToDraft(contentType, contentUri); in onAttachFragment() 124 LogUtil.e(LogUtil.BUGLE_TAG, "Unsupported shared content type for " + contentUri in onAttachFragment() 178 private static String getTextStringFromContentUri(final Uri contentUri) { in getTextStringFromContentUri() argument 179 if (contentUri == null) { in getTextStringFromContentUri() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferHistory.java | 192 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()
|
D | TestActivity.java | 269 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 …]
|
D | Constants.java | 226 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()
|
D | BluetoothOppObexServerSession.java | 291 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() 371 mContext.getContentResolver().update(contentUri, updateValues, null, null); in onPut() 441 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in receiveFile() local 446 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile() 502 mContext.getContentResolver().update(contentUri, updateValues, null, null); in receiveFile()
|
D | BluetoothOppTransfer.java | 375 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in markShareTimeout() local 379 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markShareTimeout() 417 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + info.mId); in markBatchFailed() local 435 mContext.getContentResolver().update(contentUri, updateValues, null, null); in markBatchFailed() 436 Constants.sendIntentIfCompleted(mContext, contentUri, info.mStatus); in markBatchFailed() 848 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + share.mId); in tickShareStatus() local 851 mContext.getContentResolver().update(contentUri, updateValues, null, null); in tickShareStatus()
|
D | BluetoothOppHandoverReceiver.java | 91 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in onReceive() local 94 Log.d(TAG, "Stopping handover transfer with Uri " + contentUri); in onReceive() 96 context.getContentResolver().delete(contentUri, null, null); in onReceive()
|
D | BluetoothOppObexClientSession.java | 367 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/ |
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/Messaging/src/android/support/v7/mms/ |
D | MmsManager.java | 136 public static void sendMultimediaMessage(int subId, Context context, Uri contentUri, in sendMultimediaMessage() argument 139 MmsService.startRequest(context, new SendRequest(locationUrl, contentUri, sentIntent)); in sendMultimediaMessage() 143 smsManager.sendMultimediaMessage(context, contentUri, locationUrl, in sendMultimediaMessage() 159 Uri contentUri, PendingIntent downloadedIntent) { in downloadMultimediaMessage() argument 162 new DownloadRequest(locationUrl, contentUri, downloadedIntent)); in downloadMultimediaMessage() 166 smsManager.downloadMultimediaMessage(context, locationUrl, contentUri, 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/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 83 Uri contentUri = null; in onCreate() local 85 contentUri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM); in onCreate() 87 contentUri = getIntent().getData(); in onCreate() 89 if (contentUri == null) { in onCreate() 96 if (DEBUG) Log.d(TAG, "onCreate() uri=" + contentUri + " jobName=" + mJobName); in onCreate() 99 mTask = new LoadBitmapTask().execute(contentUri); in onCreate() 130 private Bitmap loadBitmap(Uri contentUri, BitmapFactory.Options options) { in loadBitmap() argument 131 try (InputStream inputStream = getContentResolver().openInputStream(contentUri)) { in loadBitmap()
|
/packages/apps/Contacts/tests/src/com/android/contacts/test/mocks/ |
D | MockContentProvider.java | 484 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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | DirectoryTest.java | 88 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/TV/src/com/android/tv/util/ |
D | TvProviderUtils.java | 193 private static boolean addColumnToTable(Context context, Uri contentUri, String columnName) { in addColumnToTable() argument 203 contentUri, in addColumnToTable() 205 contentUri.toString(), in addColumnToTable() 211 Log.w(TAG, "Adding new column failed. Uri=" + contentUri); in addColumnToTable()
|
/packages/apps/Contacts/src/com/android/contacts/vcard/ |
D | ShareVCardActivity.java | 59 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/apps/DeskClock/src/com/android/deskclock/provider/ |
D | AlarmInstance.kt | 129 val contentUri: Uri constant in com.android.deskclock.provider.AlarmInstance 330 fun getId(contentUri: Uri): Long { in getId() 331 return ContentUris.parseId(contentUri) in getId() 367 fun getInstance(cr: ContentResolver, contentUri: Uri): AlarmInstance? { in getInstance() 368 val instanceId: Long = ContentUris.parseId(contentUri) in getInstance()
|
/packages/providers/UserDictionaryProvider/src/com/android/providers/userdictionary/ |
D | DictionaryBackupAgent.java | 192 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/Messaging/src/com/android/messaging/util/ |
D | UriUtil.java | 352 public static long getUriContentLength(final Uri contentUri) { in getUriContentLength() argument 356 afd = context.getContentResolver().openAssetFileDescriptor(contentUri, "r"); in getUriContentLength() 359 LogUtil.w(LogUtil.BUGLE_TAG, "Failed to query length of " + contentUri); in getUriContentLength() 365 LogUtil.w(LogUtil.BUGLE_TAG, "Failed to close afd for " + contentUri); in getUriContentLength()
|