Home
last modified time | relevance | path

Searched refs:contentResolver (Results 1 – 8 of 8) sorted by relevance

/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DSettingsTest.java20 private ContentResolver contentResolver; field in SettingsTest
25 contentResolver = activity.getContentResolver(); in setUp()
30 Settings.System.putInt(contentResolver, "property", 1); in whileApplicationStaysSame_shouldRememberOldSettings()
31 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); in whileApplicationStaysSame_shouldRememberOldSettings()
34 contentResolver = activity.getContentResolver(); in whileApplicationStaysSame_shouldRememberOldSettings()
35 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); in whileApplicationStaysSame_shouldRememberOldSettings()
40 Settings.System.putInt(contentResolver, "property", 1); in whenApplicationChanges_shouldStartWithNewSettings()
41 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); in whenApplicationChanges_shouldStartWithNewSettings()
45 contentResolver = activity.getContentResolver(); in whenApplicationChanges_shouldStartWithNewSettings()
46 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(0)); in whenApplicationChanges_shouldStartWithNewSettings()
[all …]
DContentResolverTest.java38 private ContentResolver contentResolver; field in ContentResolverTest
46 contentResolver = new Activity().getContentResolver(); in setUp()
47 shadowContentResolver = shadowOf(contentResolver); in setUp()
59 … assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21)); in insert_shouldReturnIncreasingUris()
60 … assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri22)); in insert_shouldReturnIncreasingUris()
67 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); in insert_shouldTrackInsertStatements()
74 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); in insert_shouldTrackInsertStatements()
83contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, "robolectric", new String[] { "awesome… in insert_shouldTrackUpdateStatements()
92 contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, null, null); in insert_shouldTrackUpdateStatements()
104 assertThat(contentResolver.delete(uri21, null, null), equalTo(1)); in delete_shouldTrackDeletedUris()
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/
DSimpleTestCursorTest.java22 private ContentResolver contentResolver; field in SimpleTestCursorTest
26 contentResolver = Robolectric.application.getContentResolver(); in setup()
27 ShadowContentResolver shadowContentResolver = shadowOf(contentResolver); in setup()
39contentResolver.query(uri, new String[]{"projection"}, "selection", new String[]{"selection"}, "so… in doingQueryShouldMakeQueryParamsAvailable()
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DLocalUriFetcher.java43 ContentResolver contentResolver = context.getContentResolver(); in loadData() local
44 data = loadResource(uri, contentResolver); in loadData()
79 …protected abstract T loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundExc… in loadResource() argument
DStreamLocalUriFetcher.java20 …protected InputStream loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundEx… in loadResource() argument
21 return contentResolver.openInputStream(uri); in loadResource()
DFileDescriptorLocalUriFetcher.java20 …protected ParcelFileDescriptor loadResource(Uri uri, ContentResolver contentResolver) throws FileN… in loadResource() argument
21 return contentResolver.openAssetFileDescriptor(uri, "r").getParcelFileDescriptor(); in loadResource()
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowCursorWrapper.java189 public void setNotificationUri(ContentResolver contentResolver, Uri uri) { in setNotificationUri() argument
190 wrappedCursor.setNotificationUri(contentResolver, uri); in setNotificationUri()
DShadowApplication.java72 private ContentResolver contentResolver; field in ShadowApplication
141 if (contentResolver == null) { in getContentResolver()
142 contentResolver = new ContentResolver(realApplication) { in getContentResolver()
145 return contentResolver; in getContentResolver()