Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSettingsTest.java22 private ContentResolver contentResolver; field in ShadowSettingsTest
28 contentResolver = context.getContentResolver(); in setUp()
33 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(0); in testSystemGetInt()
34 assertThat(Settings.System.getInt(contentResolver, "property", 2)).isEqualTo(2); in testSystemGetInt()
36 Settings.System.putInt(contentResolver, "property", 1); in testSystemGetInt()
37 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(1); in testSystemGetInt()
39 Settings.System.putString(contentResolver, "property", "11"); in testSystemGetInt()
40 assertThat(Settings.System.getInt(contentResolver, "property", 0)).isEqualTo(11); in testSystemGetInt()
45 assertThat(Settings.Secure.getInt(contentResolver, "property", 0)).isEqualTo(0); in testSecureGetInt()
46 assertThat(Settings.Secure.getInt(contentResolver, "property", 2)).isEqualTo(2); in testSecureGetInt()
[all …]
DShadowContentResolverTest.java64 private ContentResolver contentResolver; field in ShadowContentResolverTest
72 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
73 shadowContentResolver = shadowOf(contentResolver); in setUp()
85 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues())).isEqualTo(uri21); in insert_shouldReturnIncreasingUris()
86 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues())).isEqualTo(uri22); in insert_shouldReturnIncreasingUris()
91 assertThat(contentResolver.getType(uri21)).isNull(); in getType_shouldDefaultToNull()
117 assertThat(contentResolver.getType(uri)).isEqualTo("mytype"); in getType_shouldReturnProviderValue()
124 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); in insert_shouldTrackInsertStatements()
131 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); in insert_shouldTrackInsertStatements()
140contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, "robolectric", new String[] { "awesome… in insert_shouldTrackUpdateStatements()
[all …]
DShadowAsyncQueryHandlerTest.java28 private ContentResolver contentResolver; field in ShadowAsyncQueryHandlerTest
32 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
37 FakeAsyncQueryHandler asyncQueryHandler = new FakeAsyncQueryHandler(contentResolver); in startQuery_callbackIsCalled()
38 shadowOf(contentResolver).setCursor(EXTERNAL_CONTENT_URI, CURSOR); in startQuery_callbackIsCalled()
56 FakeAsyncQueryHandler asyncQueryHandler = new FakeAsyncQueryHandler(contentResolver); in startInsert_callbackIsCalled()
68 FakeAsyncQueryHandler asyncQueryHandler = new FakeAsyncQueryHandler(contentResolver); in startUpdate_callbackIsCalled()
69 contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()); in startUpdate_callbackIsCalled()
86 FakeAsyncQueryHandler asyncQueryHandler = new FakeAsyncQueryHandler(contentResolver); in startDelete_callbackIsCalled()
87 contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()); in startDelete_callbackIsCalled()
105 FakeAsyncQueryHandler(ContentResolver contentResolver) { in FakeAsyncQueryHandler() argument
[all …]
DShadowContentProviderClientTest.java41 ContentResolver contentResolver = field in ShadowContentProviderClientTest
52 ContentProviderClient client = contentResolver.acquireContentProviderClient(AUTHORITY); in acquireContentProviderClient_isStable()
58 ContentProviderClient client = contentResolver.acquireUnstableContentProviderClient(AUTHORITY); in acquireUnstableContentProviderClient_isUnstable()
64 ContentProviderClient client = contentResolver.acquireContentProviderClient(AUTHORITY); in release_shouldRelease()
73 ContentProviderClient client = contentResolver.acquireContentProviderClient(AUTHORITY); in release_shouldFailWhenCalledTwice()
82 ContentProviderClient client = contentResolver.acquireContentProviderClient(AUTHORITY); in shouldDelegateToContentProvider()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAsyncQueryHandler.java20 private ContentResolver contentResolver; field in ShadowAsyncQueryHandler
23 protected void __constructor__(ContentResolver contentResolver) { in __constructor__() argument
24 this.contentResolver = contentResolver; in __constructor__()
30 int rows = contentResolver.delete(uri, selection, selectionArgs); in startDelete()
41 Uri resultUri = contentResolver.insert(uri, initialValues); in startInsert()
59 Cursor cursor = contentResolver.query(uri, projection, selection, selectionArgs, orderBy); in startQuery()
76 int rows = contentResolver.update(uri, values, selection, selectionArgs); in startUpdate()
DShadowContextImpl.java45 private ContentResolver contentResolver; field in ShadowContextImpl
114 if (contentResolver == null) { in getContentResolver()
115 contentResolver = in getContentResolver()
141 return contentResolver; in getContentResolver()
DShadowCursorWrapper.java197 public void setNotificationUri(ContentResolver contentResolver, Uri uri) { in setNotificationUri() argument
198 wrappedCursor.setNotificationUri(contentResolver, uri); in setNotificationUri()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DContentProviderControllerTest.java22 private ContentResolver contentResolver; field in ContentProviderControllerTest
26 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
55 contentResolver.acquireContentProviderClient( in shouldRegisterWithContentResolver()
87 …ContentProviderClient client = contentResolver.acquireContentProviderClient(providerInfo.authority… in withoutManifest_shouldRegisterWithContentResolver()
96 …ContentProviderClient contentProviderClient = contentResolver.acquireContentProviderClient("x-auth… in contentProviderShouldBeCreatedBeforeBeingRegistered()
/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-shadows/robolectric/src/test/java/org/robolectric/fakes/
DRoboCursorTest.java30 private ContentResolver contentResolver; field in RoboCursorTest
34 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setup()
35 shadowOf(contentResolver).setCursor(uri, cursor); in setup()
51contentResolver.query(uri, new String[]{"projection"}, "selection", new String[]{"selection"}, "so… in query_shouldMakeQueryParamsAvailable()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaImageDecoder.java88 ContentResolver contentResolver = context.getContentResolver(); in decode() local
89 inputStream = contentResolver.openInputStream(uri); in decode()
DSkiaImageRegionDecoder.java97 ContentResolver contentResolver = context.getContentResolver(); in init() local
98 inputStream = contentResolver.openInputStream(uri); in init()
DSkiaPooledImageRegionDecoder.java210 ContentResolver contentResolver = context.getContentResolver(); in initialiseDecoder() local
211 inputStream = contentResolver.openInputStream(uri); in initialiseDecoder()
214 … AssetFileDescriptor descriptor = contentResolver.openAssetFileDescriptor(uri, "r"); in initialiseDecoder()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DEABDbUtil.java63 ContentResolver contentResolver = context.getContentResolver(); in validateAndSyncFromContactsDb() local
75 cursor = contentResolver.query(Contacts.CONTENT_URI, projection, selection, in validateAndSyncFromContactsDb()
105 pCur = contentResolver.query( in validateAndSyncFromContactsDb()