Home
last modified time | relevance | path

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

123

/development/apps/SdkSetup/src/com/android/sdksetup/
DDefaultActivity.java41 Settings.Global.putInt(getContentResolver(), Settings.Global.DEVICE_PROVISIONED, 1); in onCreate()
45 Settings.Secure.putString(getContentResolver(), Settings.Secure.LOCATION_PROVIDERS_ALLOWED, in onCreate()
49 Settings.Global.putInt(getContentResolver(), Settings.Global.INSTALL_NON_MARKET_APPS, 1); in onCreate()
/development/samples/training/threadsample/src/com/example/android/threadsample/
DRSSPullService.java115 cursor = getContentResolver().query( in onHandleIntent()
209 getContentResolver().bulkInsert( in onHandleIntent()
221 getContentResolver().insert( in onHandleIntent()
229 getContentResolver().update( in onHandleIntent()
DDataProvider.java261 returnCursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
326 getContext().getContentResolver().notifyChange(uri, null); in insert()
394 getContext().getContentResolver().notifyChange(uri, null); in bulkInsert()
468 getContext().getContentResolver().notifyChange(uri, null); in update()
/development/samples/MySampleRss/src/com/example/codelab/rssexample/
DRssContentProvider.java165 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
175 getContext().getContentResolver().notifyUpdate(uri, null); in update()
189 getContext().getContentResolver().notifyInsert(CONTENT_URI, null); in insert()
199 getContext().getContentResolver().notifyDelete(uri, null); in delete()
DMyRssReader4.java133 getContentResolver().delete(RssContentProvider.CONTENT_URI.addId(itemID), null); in onOptionsItemSelected()
157 Uri uri = getContentResolver().insert( in onActivityResult()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/provider/
DFeedProvider.java111 c.setNotificationUri(ctx.getContentResolver(), uri); in query()
140 ctx.getContentResolver().notifyChange(uri, null, false); in insert()
172 ctx.getContentResolver().notifyChange(uri, null, false); in delete()
203 ctx.getContentResolver().notifyChange(uri, null, false); in update()
/development/samples/NotePad/src/com/example/android/notepad/
DNoteEditor.java169 mUri = getContentResolver().insert(intent.getData(), null); in onCreate()
463 ContentResolver cr = getContentResolver(); in performPaste()
573 getContentResolver().update( in updateNote()
595 getContentResolver().update(mUri, values, null, null); in cancelNote()
612 getContentResolver().delete(mUri, null, null); in deleteNote()
DTitleEditor.java154 getContentResolver().update( in onPause()
DNotePadProvider.java320 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
561 getContext().getContentResolver().notifyChange(noteUri, null); in insert()
642 getContext().getContentResolver().notifyChange(uri, null); in delete()
735 getContext().getContentResolver().notifyChange(uri, null); in update()
/development/samples/ApiDemos/src/com/example/android/apis/view/
DAutoComplete4.java43 ContentResolver content = getContentResolver(); in onCreate()
59 mContent = context.getContentResolver(); in ContactListAdapter()
DList2.java37 Cursor c = getContentResolver().query(Contacts.CONTENT_URI, in onCreate()
DAutoComplete5.java34 ContentResolver content = getContentResolver(); in onCreate()
DList3.java40 Cursor c = getContentResolver().query(Phone.CONTENT_URI, in onCreate()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DLoaderThrottle.java246 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
294 getContext().getContentResolver().notifyChange(noteUri, null); in insert()
332 getContext().getContentResolver().notifyChange(uri, null); in delete()
364 getContext().getContentResolver().notifyChange(uri, null); in update()
428 final ContentResolver cr = getActivity().getContentResolver(); in onOptionsItemSelected()
/development/samples/Support4Demos/src/com/example/android/supportv4/app/
DLoaderThrottleSupport.java247 c.setNotificationUri(getContext().getContentResolver(), uri); in query()
295 getContext().getContentResolver().notifyChange(noteUri, null); in insert()
333 getContext().getContentResolver().notifyChange(uri, null); in delete()
365 getContext().getContentResolver().notifyChange(uri, null); in update()
429 final ContentResolver cr = getActivity().getContentResolver(); in onOptionsItemSelected()
/development/samples/VoicemailProviderDemo/src/com/example/android/voicemail/
DAddVoicemailActivity.java177 mMimeType.setText(getContentResolver().getType(uri)); in handleRecordingResult()
205 getContentResolver().openInputStream(recordingUri); in insertVoicemail()
211 getContentResolver().getType(recordingUri)); in insertVoicemail()
/development/samples/SampleSyncAdapter/src/com/example/android/samplesync/platform/
DContactManager.java61 final ContentResolver resolver = context.getContentResolver(); in ensureSampleGroupExists()
109 final ContentResolver resolver = context.getContentResolver(); in updateContacts()
178 final ContentResolver resolver = context.getContentResolver(); in getDirtyContacts()
229 final ContentResolver resolver = context.getContentResolver(); in updateStatusMessages()
251 final ContentResolver resolver = context.getContentResolver(); in clearSyncFlags()
446 context.getContentResolver().insert(Settings.CONTENT_URI, values); in setAccountContactsVisibility()
472 final ContentResolver resolver = context.getContentResolver(); in getRawContact()
527 final ContentResolver resolver = context.getContentResolver(); in updateContactStatus()
/development/samples/WeatherListWidget/src/com/example/android/weatherlistwidget/
DWeatherWidgetProvider.java93 final ContentResolver r = context.getContentResolver(); in onEnabled()
115 final ContentResolver r = context.getContentResolver(); in onReceive()
191 Cursor c = context.getContentResolver().query(WeatherDataProvider.CONTENT_URI, null, in buildLayout()
/development/samples/browseable/StorageClient/src/com.example.android.storageclient/
DStorageClientFragment.java137 Cursor cursor = getActivity().getContentResolver() in dumpImageMetaData()
193 getActivity().getContentResolver().openFileDescriptor(uri, "r"); in getBitmapFromUri()
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/
DSyncAdapter.java107 mContentResolver = context.getContentResolver(); in SyncAdapter()
116 mContentResolver = context.getContentResolver(); in SyncAdapter()
205 final ContentResolver contentResolver = getContext().getContentResolver(); in updateLocalFeedData()
/development/tools/emulator/test-apps/SmokeTests/src/com/android/emulator/smoketests/sms/
DSmsTest.java66 ContentResolver r = mContext.getContentResolver(); in getSmsCursor()
/development/samples/Support7Demos/src/com/example/android/supportv7/graphics/
DImageLoader.java64 imageView.getContext().getContentResolver(), in loadMediaStoreThumbnail()
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DOtherMetadataFragment.java232 Cursor cursor = getActivity().getContentResolver().query(contactUri, null, null, null, in loadBitmapFromContactUri()
241 result = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver() in loadBitmapFromContactUri()
261 Cursor cursor = getActivity().getContentResolver().query(contactUri, null, null, null, in updateContactEntryFromUri()
/development/samples/BusinessCard/src/com/example/android/businesscard/
DBusinessCardActivity.java103 return mContactAccessor.loadContact(getContentResolver(), uris[0]); in loadContactInfo()
/development/samples/ApiDemos/src/com/example/android/apis/os/
DSmsMessageReceiver.java57 Cursor cursor = context.getContentResolver().query(uri, projection, null, null, null); in onReceive()

123