Home
last modified time | relevance | path

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

12

/external/chromium_org/chrome/android/javatests/src/org/chromium/chrome/browser/test/
DProviderSearchesUriTest.java29 getContentResolver().delete(mSearchesUri, null, null); in setUp()
34 getContentResolver().delete(mSearchesUri, null, null); in tearDown()
42 return getContentResolver().insert(mSearchesUri, values); in addSearchTerm()
57 Cursor cursor = getContentResolver().query(uri, null, SearchColumns.SEARCH + "=? AND " + in testAddSearchTerm()
83 getContentResolver().update(uri, values, null, null); in testUpdateSearchTerm()
85 Cursor cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", in testUpdateSearchTerm()
90 cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", in testUpdateSearchTerm()
116 getContentResolver().delete(uri[0], null, null); in testDeleteSearchTerm()
118 Cursor cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", in testDeleteSearchTerm()
123 cursor = getContentResolver().query(mSearchesUri, null, SearchColumns.SEARCH + "=?", in testDeleteSearchTerm()
[all …]
DProviderBookmarksUriTest.java31 getContentResolver().delete(mBookmarksUri, null, null); in setUp()
36 getContentResolver().delete(mBookmarksUri, null, null); in tearDown()
50 return getContentResolver().insert(mBookmarksUri, values); in addBookmark()
73 Uri uri = getContentResolver().insert(mBookmarksUri, values); in testAddBookmark()
74 Cursor cursor = getContentResolver().query(uri, null, null, null, null); in testAddBookmark()
123 Cursor cursor = getContentResolver().query(mBookmarksUri, null, in testQueryBookmark()
151 cursor = getContentResolver().query(mBookmarksUri, null, in testQueryBookmark()
206 getContentResolver().update(uri, values, BookmarkColumns.FAVICON + " IS NOT NULL AND " + in testUpdateBookmark()
209 Cursor cursor = getContentResolver().query(uri, null, null, null, null); in testUpdateBookmark()
256 getContentResolver().delete(mBookmarksUri, BookmarkColumns.FAVICON + " IS NOT NULL AND " + in testDeleteBookmark()
[all …]
DProviderTestBase.java39 assertTrue(getContentResolver() instanceof MockContentResolver); in setUp()
42 protected ContentResolver getContentResolver() { in getContentResolver() method in ProviderTestBase
43 return mContext.getContentResolver(); in getContentResolver()
/external/chromium_org/base/test/android/java/src/org/chromium/base/
DContentUriTestUtils.java28 Cursor c = context.getContentResolver().query( in insertImageIntoMediaStore()
44 Uri uri = context.getContentResolver().insert( in insertImageIntoMediaStore()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DSettingsTest.java25 contentResolver = activity.getContentResolver(); in setUp()
34 contentResolver = activity.getContentResolver(); in whileApplicationStaysSame_shouldRememberOldSettings()
45 contentResolver = activity.getContentResolver(); in whenApplicationChanges_shouldStartWithNewSettings()
DContextWrapperTest.java131 assertThat(activity.getContentResolver(), sameInstance(activity.getContentResolver())); in shouldReturnSameContentResolverEveryTime()
133 … assertThat(activity.getContentResolver(), sameInstance(new Activity().getContentResolver())); in shouldReturnSameContentResolverEveryTime()
DBitmapFactoryTest.java49 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldSetDescription()
111 …bitmap = MediaStore.Images.Media.getBitmap(Robolectric.application.getContentResolver(), Uri.parse… in decodeUri_shouldGetWidthAndHeightFromHints()
121 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldGetWidthAndHeightFromHints()
DContentProviderTest.java68 assertThat(provider.getContext().getContentResolver(), is(notNullValue())); in canGetAResolver()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSettings.java140 …Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE… in setAirplaneMode()
149 …Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn… in setWifiOn()
158 …Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, u… in set24HourTimeFormat()
DShadowContextWrapper.java62 public ContentResolver getContentResolver() { in getContentResolver() method in ShadowContextWrapper
63 return getApplicationContext().getContentResolver(); in getContentResolver()
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DMediaStoreThumbFetcher.java151 inputStream = context.getContentResolver().openInputStream(thumbnailUri); in open()
162 …return context.getContentResolver().query(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, new S… in query()
174 …return context.getContentResolver().query(MediaStore.Video.Thumbnails.EXTERNAL_CONTENT_URI, new St… in query()
DLocalUriFetcher.java44 ContentResolver contentResolver = context.getContentResolver(); in loadData()
/external/chromium_org/android_webview/test/shell/src/org/chromium/android_webview/test/
DTestContentProvider.java50 final Cursor cursor = context.getContentResolver().query(uri, null, null, null, null); in getResourceRequestCount()
62 context.getContentResolver().query(uri, null, null, null, null); in resetResourceRequestCount()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/identity/
DSettingsSecureBasedIdentificationGenerator.java43 return Settings.Secure.getString(mContext.getContentResolver(), Settings.Secure.ANDROID_ID); in getAndroidId()
/external/chromium_org/android_webview/java/src/org/chromium/android_webview/
DAndroidProtocolHandler.java143 return context.getContentResolver().openInputStream(uri); in openContent()
167 return context.getContentResolver().getType(uri); in getMimeType()
DAwWebContentsDelegateAdapter.java197 mContext.getContentResolver(), processId, renderId, modeFlags, results); in runFileChooser()
/external/chromium_org/base/test/android/javatests/src/org/chromium/base/test/util/
DAdvancedMockContext.java49 public ContentResolver getContentResolver() { in getContentResolver() method in AdvancedMockContext
/external/chromium_org/base/android/java/src/org/chromium/base/
DContentUriUtils.java92 ContentResolver resolver = context.getContentResolver(); in getParcelFileDescriptor()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
DSimpleTestCursorTest.java26 contentResolver = Robolectric.application.getContentResolver(); in setup()
/external/chromium_org/ui/android/java/src/org/chromium/ui/base/
DActivityWindowAndroid.java84 mApplicationContext.getContentResolver(), data); in onActivityResult()
DSelectFileDialog.java97 ClipData.newUri(context.getContentResolver(), in selectFile()
/external/svox/pico/compat/src/com/android/tts/compat/
DCompatTtsService.java59 Cursor c = getContentResolver().query(Uri.parse("content://" + getPackageName() in onCreate()
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
DChromeBrowserProviderClient.java176 Bundle result = context.getContentResolver().call(getPrivateProviderUri(context), in chromeBrowserProviderCall()
DChromeBrowserProvider.java376 cursor.setNotificationUri(getContext().getContentResolver(), uri); in query()
1292 getContext().getContentResolver().notifyChange(uri, null); in notifyChange()
1298 getContext().getContentResolver().notifyChange(uri, null); in notifyChange()
/external/chromium_org/content/public/android/java/src/org/chromium/content/browser/
DContentVideoView.java315 if (Settings.System.getInt(getContext().getContentResolver(), in onUpdateMediaMetadata()

12