Home
last modified time | relevance | path

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

12

/development/samples/NotePad/tests/src/com/example/android/notepad/
DNotePadProviderTest.java49 Uri.withAppendedPath(NotePad.Notes.CONTENT_URI, "invalid");
165 String mimeType = mMockResolver.getType(NotePad.Notes.CONTENT_URI); in testUriAndGetType()
191 assertNull(mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL)); in testGetStreamTypes()
225 mimeType = mMockResolver.getStreamTypes(NotePad.Notes.CONTENT_URI, MIME_TYPES_ALL); in testGetStreamTypes()
289 NotePad.Notes.CONTENT_URI, in testOpenTypedAssetFile()
447 NotePad.Notes.CONTENT_URI, // the URI for the main data table in testQueriesOnNotesUri()
465 NotePad.Notes.CONTENT_URI, // the URI for the main data table in testQueriesOnNotesUri()
480 NotePad.Notes.CONTENT_URI, // the URI for the main data table in testQueriesOnNotesUri()
500 NotePad.Notes.CONTENT_URI, // the URI for the main data table in testQueriesOnNotesUri()
577 NotePad.Notes.CONTENT_URI, // the base URI for the table in testQueriesOnNoteIdUri()
[all …]
/development/samples/training/threadsample/src/com/example/android/threadsample/
DDataProviderContract.java25 public static final Uri CONTENT_URI = Uri.parse(SCHEME + "://" + AUTHORITY); field in DataProviderContract
56 Uri.withAppendedPath(CONTENT_URI, PICTUREURL_TABLE_NAME);
87 Uri.withAppendedPath(CONTENT_URI, DATE_TABLE_NAME);
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactManager.java65 final Cursor cursor = resolver.query(Groups.CONTENT_URI, new String[] { Groups._ID }, in ensureSampleGroupExists()
87 final Uri newGroupUri = resolver.insert(Groups.CONTENT_URI, contentValues); in ensureSampleGroupExists()
179 final Cursor c = resolver.query(DirtyQuery.CONTENT_URI, in getDirtyContacts()
338 resolver.query(DataQuery.CONTENT_URI, DataQuery.PROJECTION, DataQuery.SELECTION, in updateContact()
349 final Uri uri = ContentUris.withAppendedId(Data.CONTENT_URI, id); in updateContact()
415 Uri uri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in updateContact()
446 context.getContentResolver().insert(Settings.CONTENT_URI, values); in setAccountContactsVisibility()
474 resolver.query(DataQuery.CONTENT_URI, DataQuery.PROJECTION, DataQuery.SELECTION, in getRawContact()
484 final Uri uri = ContentUris.withAppendedId(Data.CONTENT_URI, id); in getRawContact()
547 batchOperation.add(ContactOperations.newInsertCpo(StatusUpdates.CONTENT_URI, in updateContactStatus()
[all …]
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessorSdk5.java51 return new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI); in getPickContactIntent()
75 cursor = contentResolver.query(Phone.CONTENT_URI, in loadContact()
DContactAccessorSdk3_4.java48 return new Intent(Intent.ACTION_PICK, People.CONTENT_URI); in getPickContactIntent()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DRssContentProvider.java56 public static final Uri CONTENT_URI = Uri.parse( "content://my_rss_item/rssitem"); field in RssContentProvider
186 Uri newUri = CONTENT_URI.addId(rowId); in insert()
189 getContext().getContentResolver().notifyInsert(CONTENT_URI, null); in insert()
DMyRssReader4.java52 mCur = managedQuery(RssContentProvider.CONTENT_URI, // Query for all items. in onCreate()
133 getContentResolver().delete(RssContentProvider.CONTENT_URI.addId(itemID), null); in onOptionsItemSelected()
158 RssContentProvider.CONTENT_URI, in onActivityResult()
DMyRssReader5.java61 mCur = managedQuery(RssContentProvider.CONTENT_URI, // Query for all items. in onCreate()
167 getContentResolver().delete(RssContentProvider.CONTENT_URI.addId(itemID), null); in onOptionsItemSelected()
195 RssContentProvider.CONTENT_URI, in onActivityResult()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetProvider.java98 r.registerContentObserver(WeatherDataProvider.CONTENT_URI, true, sDataObserver); in onEnabled()
116 final Cursor c = r.query(WeatherDataProvider.CONTENT_URI, null, null, null, in onReceive()
124 … final Uri uri = ContentUris.withAppendedId(WeatherDataProvider.CONTENT_URI, i); in onReceive()
130 r.registerContentObserver(WeatherDataProvider.CONTENT_URI, true, sDataObserver); in onReceive()
191 Cursor c = context.getContentResolver().query(WeatherDataProvider.CONTENT_URI, null, in buildLayout()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java222 Uri uri = FeedContract.Entry.CONTENT_URI; // Get all entries in updateLocalFeedData()
245 Uri existingUri = FeedContract.Entry.CONTENT_URI.buildUpon() in updateLocalFeedData()
263 Uri deleteUri = FeedContract.Entry.CONTENT_URI.buildUpon() in updateLocalFeedData()
275 batch.add(ContentProviderOperation.newInsert(FeedContract.Entry.CONTENT_URI) in updateLocalFeedData()
286 FeedContract.Entry.CONTENT_URI, // URI where data was modified in updateLocalFeedData()
/development/samples/browseable/RuntimePermissions/src/com.example.android.system.runtimepermissions/contacts/
DContactsFragment.java120 return new CursorLoader(getActivity(), ContactsContract.Contacts.CONTENT_URI, PROJECTION, in onCreateLoader()
165 ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in insertDummyContact()
171 op = ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in insertDummyContact()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedContract.java64 public static final Uri CONTENT_URI = field in FeedContract.Entry
/development/samples/ApiDemos/src/com/example/android/apis/view/
DExpandableList2.java90 Uri.Builder builder = Contacts.CONTENT_URI.buildUpon(); in getChildrenCursor()
125 mQueryHandler.startQuery(TOKEN_GROUP, null, Contacts.CONTENT_URI, CONTACTS_PROJECTION, in onCreate()
DAutoComplete5.java35 Cursor cursor = content.query(Contacts.CONTENT_URI, in onCreate()
DList2.java37 Cursor c = getContentResolver().query(Contacts.CONTENT_URI, in onCreate()
DList3.java40 Cursor c = getContentResolver().query(Phone.CONTENT_URI, in onCreate()
/development/samples/devbytes/telephony/SmsSampleProject/app/src/main/java/com/example/android/smssample/
DMainActivity.java173 return new CursorLoader(this, SmsQuery.CONTENT_URI, SmsQuery.PROJECTION, null, null, in onCreateLoader()
199 static final Uri CONTENT_URI = Inbox.CONTENT_URI; field
/development/samples/NotePad/src/com/example/android/notepad/
DNotePad.java84 public static final Uri CONTENT_URI = Uri.parse(SCHEME + AUTHORITY + PATH_NOTES); field in NotePad.Notes
/development/samples/browseable/ShareActionProvider/src/com.example.android.shareactionprovider/content/
DContentItem.java68 … return Uri.parse("content://" + AssetProvider.CONTENT_URI + "/" + mContentAssetFilePath); in getContentUri()
DAssetProvider.java38 public static String CONTENT_URI = "com.example.android.actionbarcompat.shareactionprovider"; field in AssetProvider
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/
DSearchableDictionary.java88 Cursor cursor = managedQuery(DictionaryProvider.CONTENT_URI, null, null, in showResults()
121 Uri data = Uri.withAppendedPath(DictionaryProvider.CONTENT_URI, in showResults()
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/
DContactsListFragment.java438 final Intent intent = new Intent(Intent.ACTION_INSERT, Contacts.CONTENT_URI); in onOptionsItemSelected()
466 contentUri = ContactsQuery.CONTENT_URI; in onCreateLoader()
507 Contacts.CONTENT_URI, String.valueOf(data.getLong(ContactsQuery.ID))); in onLoadFinished()
590 final Uri contactUri = Uri.withAppendedPath(Contacts.CONTENT_URI, photoData); in loadContactPhotoThumbnail()
877 final static Uri CONTENT_URI = Contacts.CONTENT_URI; field
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderThrottle.java83 public static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY + "/main"); field in LoaderThrottle.MainTable
445 cr.insert(MainTable.CONTENT_URI, values); in onOptionsItemSelected()
466 cr.delete(MainTable.CONTENT_URI, null, null); in onOptionsItemSelected()
490 CursorLoader cl = new CursorLoader(getActivity(), MainTable.CONTENT_URI, in onCreateLoader()
/development/samples/ContactManager/src/com/example/android/contactmanager/
DContactAdder.java186 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in createContactEntry()
190 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in createContactEntry()
196 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in createContactEntry()
203 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in createContactEntry()
/development/samples/XmlAdapters/src/com/example/android/xmladapters/
DContactPhotoBinder.java72 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, id); in bind()

12