/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | AudioStore.java | 82 Uri contentUri = MediaStore.Audio.Artists.EXTERNAL_CONTENT_URI; in load() local 87 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load() 106 Uri contentUri = MediaStore.Audio.Albums.EXTERNAL_CONTENT_URI; in load() local 112 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load() 140 Uri contentUri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI; in load() local 149 … Cursor cursor = mContentResolver.query(contentUri, projection, selection, null, sortOrder); in load() 187 Uri contentUri = MediaStore.Audio.Playlists.EXTERNAL_CONTENT_URI; in load() local 192 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load() 211 Uri contentUri = MediaStore.Audio.Genres.EXTERNAL_CONTENT_URI; in load() local 216 Cursor cursor = mContentResolver.query(contentUri, projection, null, null, sortOrder); in load() [all …]
|
/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/ |
D | BluetoothMethodProxy.java | 96 public Cursor contentResolverQuery(ContentResolver contentResolver, final Uri contentUri, in contentResolverQuery() argument 99 return contentResolver.query(contentUri, projection, selection, selectionArgs, sortOrder); in contentResolverQuery() 105 public Cursor contentResolverQuery(ContentResolver contentResolver, final Uri contentUri, in contentResolverQuery() argument 108 return contentResolver.query(contentUri, projection, queryArgs, cancellationSignal); in contentResolverQuery() 114 public Uri contentResolverInsert(ContentResolver contentResolver, final Uri contentUri, in contentResolverInsert() argument 116 return contentResolver.insert(contentUri, contentValues); in contentResolverInsert() 122 public int contentResolverUpdate(ContentResolver contentResolver, final Uri contentUri, in contentResolverUpdate() argument 124 return contentResolver.update(contentUri, contentValues, where, selectionArgs); in contentResolverUpdate()
|
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppTransferHistory.java | 193 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in onContextItemSelected() local 194 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in onContextItemSelected() 277 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in clearAllDownloads() local 278 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in clearAllDownloads() 312 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + sessionId); in openCompleteTransfer() local 313 BluetoothOppTransferInfo transInfo = BluetoothOppUtility.queryRecord(this, contentUri); in openCompleteTransfer() 321 BluetoothOppUtility.updateVisibilityToHidden(this, contentUri); in openCompleteTransfer() 323 transInfo.mTimeStamp, contentUri); in openCompleteTransfer() 327 in.setDataAndNormalize(contentUri); in openCompleteTransfer()
|
D | Constants.java | 230 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in updateShareStatus() local 234 contentUri, updateValues, null, null); in updateShareStatus() local 235 Constants.sendIntentIfCompleted(context, contentUri, status); in updateShareStatus() 239 static void sendIntentIfCompleted(Context context, Uri contentUri, int status) { in sendIntentIfCompleted() argument 243 intent.setDataAndNormalize(contentUri); in sendIntentIfCompleted()
|
D | BluetoothOppObexServerSession.java | 304 Uri contentUri = BluetoothMethodProxy.getInstance().contentResolverInsert( in onPut() local 306 mLocalShareInfoId = Integer.parseInt(contentUri.getPathSegments().get(1)); in onPut() 309 Log.v(TAG, "insert contentUri: " + contentUri); in onPut() 381 contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in onPut() 386 mContext.getContentResolver(), contentUri, updateValues, null, null); in onPut() local 458 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + mInfo.mId); in receiveFile() local 464 contentUri, updateValues, null, null); in receiveFile() local 522 mContext.getContentResolver(), contentUri, updateValues, null, in receiveFile() local
|
D | BluetoothOppHandoverReceiver.java | 93 Uri contentUri = Uri.parse(BluetoothShare.CONTENT_URI + "/" + id); in onReceive() local 96 Log.d(TAG, "Stopping handover transfer with Uri " + contentUri); in onReceive() 99 context.getContentResolver(), contentUri, null, null); in onReceive() local
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsService.java | 215 public void sendMessage(int subId, String callingPkg, Uri contentUri, 262 final SendRequest request = new SendRequest(MmsService.this, subId, contentUri, 285 sendSettingsIntentForFailedMms(!isRawPduSendReq(contentUri), subId); 295 Uri contentUri, Bundle configOverrides, PendingIntent downloadedIntent, 362 contentUri, downloadedIntent, callingPkg, mmsConfig, MmsService.this, 437 public Uri importMultimediaMessage(String callingPkg, Uri contentUri, 441 return importMms(contentUri, messageId, timestampSecs, seen, read, callingPkg); 531 public Uri addMultimediaMessageDraft(String callingPkg, Uri contentUri) 535 return addMmsDraft(contentUri, callingPkg); 584 private boolean isRawPduSendReq(Uri contentUri) { [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 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/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/ |
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); 280 Uri contentUri = 282 getContentResolver().delete(contentUri, null, null); 289 Uri contentUri = 299 getContentResolver().update(contentUri, updateValues, null, null); 306 Uri contentUri = 315 getContentResolver().update(contentUri, updateValues, null, null); 322 Uri contentUri = Uri.parse(String.valueOf(BluetoothShare.CONTENT_URI)); [all …]
|
/packages/services/BuiltInPrintService/src/com/android/bips/ |
D | ImagePrintActivity.java | 86 Uri contentUri = null; in onCreate() local 88 contentUri = getIntent().getParcelableExtra(Intent.EXTRA_STREAM); in onCreate() 90 contentUri = getIntent().getData(); in onCreate() 92 if (contentUri == null) { in onCreate() 99 if (DEBUG) Log.d(TAG, "onCreate() uri=" + contentUri + " jobName=" + mJobName); in onCreate() 102 mTask = new LoadBitmapTask().execute(contentUri); in onCreate() 133 private Bitmap loadBitmap(Uri contentUri, BitmapFactory.Options options) { in loadBitmap() argument 134 try (InputStream inputStream = getContentResolver().openInputStream(contentUri)) { in loadBitmap()
|
/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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MapClientContent.java | 224 Uri contentUri = INBOX_PATH.equalsIgnoreCase(message.getFolder()) ? Sms.Inbox.CONTENT_URI in storeSms() local 238 Uri results = mResolver.insert(contentUri, values); in storeSms() 314 Uri contentUri; in storeMms() local 317 contentUri = Mms.Inbox.CONTENT_URI; in storeMms() 320 contentUri = Mms.Sent.CONTENT_URI; in storeMms() 342 Uri results = mResolver.insert(contentUri, values); in storeMms() 374 Uri contentUri = Uri.parse(messageUri.toString() + "/part"); in storeMmsPart() local 375 Uri results = mResolver.insert(contentUri, values); in storeMmsPart() 382 Uri contentUri = Uri.parse(messageUri.toString() + "/addr"); in storeAddressPart() local 388 mResolver.insert(contentUri, values); in storeAddressPart() [all …]
|
/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, null, file.getName()); in onServiceConnected()
|
/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()
|
D | PanoramaMetadataLoader.java | 32 public static boolean loadPanoramaMetadata(final Context context, Uri contentUri, in loadPanoramaMetadata() argument 35 PhotoSphereHelper.getPanoramaMetadata(context, contentUri); in loadPanoramaMetadata()
|
D | DataUtils.java | 29 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) { in getPathFromURI() argument 33 Cursor cursor = contentResolver.query(contentUri, proj, null, null, null); in getPathFromURI()
|
/packages/apps/Gallery2/src_pd/com/android/gallery3d/util/ |
D | LightCycleHelper.java | 45 public static String getPathFromURI(ContentResolver contentResolver, Uri contentUri) { in getPathFromURI() argument 52 public static long getModifiedTimeFromURI(ContentResolver contentResolver, Uri contentUri) { in getModifiedTimeFromURI() argument
|