Home
last modified time | relevance | path

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

/packages/apps/Gallery2/src/com/android/gallery3d/gadget/
DWidgetClickHandler.java34 private boolean isValidDataUri(Uri dataUri) { in isValidDataUri() argument
35 if (dataUri == null) return false; in isValidDataUri()
38 .openAssetFileDescriptor(dataUri, "r"); in isValidDataUri()
42 Log.w(TAG, "cannot open uri: " + dataUri, e); in isValidDataUri()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DPhoneNumberInteractionTest.java110 Uri dataUri = ContentUris.withAppendedId(Data.CONTENT_URI, 1); in testSendSmsWhenDataIdIsProvided() local
111 expectQuery(dataUri, true /* isDataUri */ ) in testSendSmsWhenDataIdIsProvided()
118 interaction.startInteraction(dataUri); in testSendSmsWhenDataIdIsProvided()
239 final Uri dataUri; in expectQuery() local
241 dataUri = uri; in expectQuery()
243 dataUri = Uri.withAppendedPath(uri, Contacts.Data.CONTENT_DIRECTORY); in expectQuery()
246 .expectQuery(dataUri) in expectQuery()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DResultActivity.java76 String dataUri = intent.getDataString(); in addRowsForIntent() local
77 if (dataUri != null) { in addRowsForIntent()
78 addRowsForQuery(Uri.parse(dataUri)); in addRowsForIntent()
105 private void addRowsForQuery(Uri dataUri) { in addRowsForQuery() argument
106 Cursor cursor = getContentResolver().query(dataUri, null, null, null, null); in addRowsForQuery()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java385 Uri dataUri = resolver.insert(insertUri, values); in createName() local
386 return ContentUris.parseId(dataUri); in createName()
401 Uri dataUri = resolver.insert(insertUri, values); in createPhone() local
402 return ContentUris.parseId(dataUri); in createPhone()
416 Uri dataUri = resolver.insert(insertUri, values); in createEmail() local
417 return ContentUris.parseId(dataUri); in createEmail()
425 Uri dataUri = resolver.insert(StatusUpdates.CONTENT_URI, values); in createStatus() local
426 return ContentUris.parseId(dataUri); in createStatus()
495 Uri dataUri = resolver.insert(insertUri, values); in createGroupMembership() local
496 return ContentUris.parseId(dataUri); in createGroupMembership()
DContactsProvider2Test.java742 Uri dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri() local
744 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
748 dataUri = Uri.withAppendedPath(lookupUri, Contacts.Data.CONTENT_DIRECTORY); in testDataDirectoryWithLookupUri()
749 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
752 dataUri = Uri.withAppendedPath(Uri.withAppendedPath(Contacts.CONTENT_LOOKUP_URI, in testDataDirectoryWithLookupUri()
754 assertDataRows(dataUri, values); in testDataDirectoryWithLookupUri()
757 private void assertDataRows(Uri dataUri, ContentValues values) { in assertDataRows() argument
758 Cursor cursor = mResolver.query(dataUri, new String[]{ Data.DATA1 }, null, null, Data._ID); in assertDataRows()
898 Uri dataUri = mResolver.insert(Data.CONTENT_URI, values); in testDataInsert() local
899 long dataId = ContentUris.parseId(dataUri); in testDataInsert()
[all …]
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DQuickContactBroadcastReceiver.java33 final Uri dataUri = intent.getData(); in onReceive() local
37 newIntent.setData(dataUri); in onReceive()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DContactLoader.java78 final Uri dataUri = Uri.withAppendedPath(contactUri, Contacts.Data.CONTENT_DIRECTORY); in loadInBackground() local
79 Cursor cursor = resolver.query(dataUri, StatusQuery.PROJECTION, StatusUpdates.PRESENCE in loadInBackground()
99 cursor = resolver.query(dataUri, new String[] { in loadInBackground()
/packages/apps/Contacts/src/com/android/contacts/activities/
DContactSelectionActivity.java488 public void onPickPhoneNumberAction(Uri dataUri) { in onPickPhoneNumberAction() argument
489 returnPickerResult(dataUri); in onPickPhoneNumberAction()
505 public void onPickPostalAddressAction(Uri dataUri) { in onPickPostalAddressAction() argument
506 returnPickerResult(dataUri); in onPickPostalAddressAction()
513 public void onPickEmailAddressAction(Uri dataUri) { in onPickEmailAddressAction() argument
514 returnPickerResult(dataUri); in onPickEmailAddressAction()
DDialtactsActivity.java409 public void onPickPhoneNumberAction(Uri dataUri) {
413 DialtactsActivity.this, dataUri, getCallOrigin());
/packages/apps/Contacts/src/com/android/contacts/list/
DOnEmailAddressPickerActionListener.java28 void onPickEmailAddressAction(Uri dataUri); in onPickEmailAddressAction() argument
DOnPostalAddressPickerActionListener.java28 void onPickPostalAddressAction(Uri dataUri); in onPickPostalAddressAction() argument
DOnPhoneNumberPickerActionListener.java30 void onPickPhoneNumberAction(Uri dataUri); in onPickPhoneNumberAction() argument
DShortcutIntentBuilder.java131 public void createPhoneNumberShortcutIntent(Uri dataUri, String shortcutAction) { in createPhoneNumberShortcutIntent() argument
132 new PhoneNumberLoadingAsyncTask(dataUri, shortcutAction).execute(); in createPhoneNumberShortcutIntent()
/packages/apps/Browser/src/com/android/browser/
DWallpaperHandler.java185 DataUri dataUri = new DataUri(mUrl); in openStream() local
186 inputStream = new ByteArrayInputStream(dataUri.getData()); in openStream()
/packages/apps/Contacts/src/com/android/contacts/
DSplitAggregateView.java160 Uri dataUri = Uri.withAppendedPath(mAggregateUri, Data.CONTENT_DIRECTORY); in loadData() local
161 Cursor cursor = getContext().getContentResolver().query(dataUri, in loadData()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DContactsUtils.java296 Uri dataUri = Uri.withAppendedPath(baseUri, Contacts.Data.CONTENT_DIRECTORY); in querySuperPrimaryPhone() local
298 c = cr.query(dataUri, in querySuperPrimaryPhone()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DLegacyApiSupport.java1060 Uri dataUri = findFirstDataRow(rawContactId, StructuredName.CONTENT_ITEM_TYPE); in updatePeople() local
1061 if (dataUri != null) { in updatePeople()
1062 mContactsProvider.updateInTransaction(dataUri, mValues2, null, null); in updatePeople()
1070 Uri dataUri = findFirstDataRow(rawContactId, Note.CONTENT_ITEM_TYPE); in updatePeople() local
1071 if (dataUri != null) { in updatePeople()
1072 mContactsProvider.updateInTransaction(dataUri, mValues3, null, null); in updatePeople()
1192 Uri dataUri = mContactsProvider.insertInTransaction(Data.CONTENT_URI, mValues); in updatePhoto() local
1193 dataId = ContentUris.parseId(dataUri); in updatePhoto()
1196 Uri dataUri = ContentUris.withAppendedId(Data.CONTENT_URI, dataId); in updatePhoto() local
1197 count = mContactsProvider.updateInTransaction(dataUri, mValues, null, null); in updatePhoto()
DContactsProvider2.java2823 Uri dataUri = inProfileMode() in deleteData() local
2826 Cursor c = query(dataUri, DataRowHandler.DataDeleteQuery.COLUMNS, in deleteData()
/packages/apps/Mms/src/com/android/mms/data/
DWorkingMessage.java421 public int setAttachment(int type, Uri dataUri, boolean append) { in setAttachment() argument
423 LogTag.debug("setAttachment type=%d uri %s", type, dataUri); in setAttachment()
436 if (type == TEXT && mAttachmentType == SLIDESHOW && mSlideshow != null && dataUri == null in setAttachment()
446 result = append ? appendMedia(type, dataUri, slideShowEditor) in setAttachment()
447 : changeMedia(type, dataUri, slideShowEditor); in setAttachment()
/packages/apps/Contacts/tests/src/com/android/contacts/
DContactLoaderTest.java380 final Uri dataUri = Uri.withAppendedPath(rawContactUri, in fetchContactIdAndLookupFromRawContactUri() local
382 mContactsProvider.expectQuery(dataUri) in fetchContactIdAndLookupFromRawContactUri()
/packages/apps/Email/src/com/android/email/activity/
DMessageCompose.java2008 final Uri dataUri = intent.getData(); in initFromIntent() local
2009 if (dataUri != null) { in initFromIntent()
2010 if ("mailto".equals(dataUri.getScheme())) { in initFromIntent()
2011 initializeFromMailTo(dataUri.toString()); in initFromIntent()
2013 String toText = dataUri.getSchemeSpecificPart(); in initFromIntent()
/packages/apps/Calendar/src/com/android/calendar/
DEventInfoFragment.java1911 final Uri dataUri = Uri.withAppendedPath(CommonDataKinds.Email.CONTENT_FILTER_URI, in showContactInfo() local
1913 final Uri lookupUri = ContactsContract.Data.getContactLookupUri(resolver, dataUri); in showContactInfo()
/packages/apps/Exchange/exchange2/src/com/android/exchange/adapter/
DCalendarSyncAdapter.java258 Uri dataUri = ContentUris.withAppendedId(ncv.uri, id); in dataUriFromNamedContentValues() local
259 return dataUri; in dataUriFromNamedContentValues()
DContactsSyncAdapter.java1540 Uri dataUri = ContentUris.withAppendedId(ncv.uri, id); in dataUriFromNamedContentValues() local
1541 return dataUri; in dataUriFromNamedContentValues()
/packages/apps/Mms/src/com/android/mms/ui/
DComposeMessageActivity.java2951 Uri dataUri = persister.persistPart(part, ContentUris.parseId(messageUri));
2952 result = mWorkingMessage.setAttachment(WorkingMessage.IMAGE, dataUri, append);
2954 log("ResizeImageResultCallback: dataUri=" + dataUri);