/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | SettingsTest.java | 20 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 …]
|
D | ContentResolverTest.java | 38 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() 83 …contentResolver.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/ |
D | SimpleTestCursorTest.java | 22 private ContentResolver contentResolver; field in SimpleTestCursorTest 26 contentResolver = Robolectric.application.getContentResolver(); in setup() 27 ShadowContentResolver shadowContentResolver = shadowOf(contentResolver); in setup() 39 …contentResolver.query(uri, new String[]{"projection"}, "selection", new String[]{"selection"}, "so… in doingQueryShouldMakeQueryParamsAvailable()
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
D | LocalUriFetcher.java | 43 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
|
D | StreamLocalUriFetcher.java | 20 …protected InputStream loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundEx… in loadResource() argument 21 return contentResolver.openInputStream(uri); in loadResource()
|
D | FileDescriptorLocalUriFetcher.java | 20 …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/ |
D | ShadowCursorWrapper.java | 189 public void setNotificationUri(ContentResolver contentResolver, Uri uri) { in setNotificationUri() argument 190 wrappedCursor.setNotificationUri(contentResolver, uri); in setNotificationUri()
|
D | ShadowApplication.java | 72 private ContentResolver contentResolver; field in ShadowApplication 141 if (contentResolver == null) { in getContentResolver() 142 contentResolver = new ContentResolver(realApplication) { in getContentResolver() 145 return contentResolver; in getContentResolver()
|