/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
D | ShadowSettingsTest.java | 22 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 …]
|
D | ShadowContentResolverTest.java | 64 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() 140 …contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, "robolectric", new String[] { "awesome… in insert_shouldTrackUpdateStatements() [all …]
|
D | ShadowAsyncQueryHandlerTest.java | 28 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 …]
|
D | ShadowContentProviderClientTest.java | 41 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/angle/src/android_system_settings/src/com/android/angle/common/ |
D | GlobalSettings.java | 52 ContentResolver contentResolver = context.getContentResolver(); in clearAllGlobalSettings() local 53 Settings.Global.putString(contentResolver, in clearAllGlobalSettings() 55 Settings.Global.putString(contentResolver, in clearAllGlobalSettings() 60 Settings.Global.putString(contentResolver, in clearAllGlobalSettings() 68 ContentResolver contentResolver = mContext.getContentResolver(); in getAllUseAngle() local 72 contentResolver, mContext.getString(R.string.global_settings_driver_all_angle)); in getAllUseAngle() 83 ContentResolver contentResolver = mContext.getContentResolver(); in getShowAngleInUseDialogBox() local 86 int showAngleInUseDialogBox = Settings.Global.getInt(contentResolver, in getShowAngleInUseDialogBox() 98 ContentResolver contentResolver = context.getContentResolver(); in updateAllUseAngle() local 99 Settings.Global.putInt(contentResolver, in updateAllUseAngle() [all …]
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowAsyncQueryHandler.java | 20 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()
|
D | ShadowContextImpl.java | 46 private ContentResolver contentResolver; field in ShadowContextImpl 115 if (contentResolver == null) { in getContentResolver() 116 contentResolver = in getContentResolver() 142 return contentResolver; in getContentResolver()
|
D | ShadowCursorWrapper.java | 197 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/ |
D | ContentProviderControllerTest.java | 22 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/libchrome/base/android/java/src/org/chromium/base/ |
D | ContentUriUtils.java | 178 ContentResolver contentResolver = context.getContentResolver(); in getDisplayName() 179 try (Cursor cursor = contentResolver.query(uri, null, null, null, null)) { in getDisplayName() 190 String[] mimeTypes = contentResolver.getStreamTypes(uri, "*/*"); in getDisplayName() 223 ContentResolver contentResolver = ContextUtils.getApplicationContext().getContentResolver(); in isVirtualDocument() local 224 try (Cursor cursor = contentResolver.query(uri, null, null, null, null)) { in isVirtualDocument()
|
D | ApiCompatibilityUtils.java | 388 public static boolean shouldSkipFirstUseHints(ContentResolver contentResolver) { in shouldSkipFirstUseHints() argument 391 contentResolver, Settings.Secure.SKIP_FIRST_USE_HINTS, 0) != 0; in shouldSkipFirstUseHints()
|
/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-shadows/robolectric/src/test/java/org/robolectric/fakes/ |
D | RoboCursorTest.java | 30 private ContentResolver contentResolver; field in RoboCursorTest 34 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setup() 35 shadowOf(contentResolver).setCursor(uri, cursor); in setup() 51 …contentResolver.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/ |
D | SkiaImageDecoder.java | 88 ContentResolver contentResolver = context.getContentResolver(); in decode() local 89 inputStream = contentResolver.openInputStream(uri); in decode()
|
D | SkiaImageRegionDecoder.java | 97 ContentResolver contentResolver = context.getContentResolver(); in init() local 98 inputStream = contentResolver.openInputStream(uri); in init()
|
D | SkiaPooledImageRegionDecoder.java | 210 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/ |
D | EABDbUtil.java | 63 ContentResolver contentResolver = context.getContentResolver(); in validateAndSyncFromContactsDb() local 75 cursor = contentResolver.query(Contacts.CONTENT_URI, projection, selection, in validateAndSyncFromContactsDb() 105 pCur = contentResolver.query( in validateAndSyncFromContactsDb()
|
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/ |
D | PlayerViewModel.kt | 60 "content" -> application.contentResolver.openInputStream(uri) in taskForUri()
|