Home
last modified time | relevance | path

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

12

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowSettingsTest.java28 contentResolver = context.getContentResolver(); in setUp()
136 assertThat(Secure.getInt(context.getContentResolver(), Secure.ADB_ENABLED, 0)).isEqualTo(1); in testSetAdbEnabled_settingsSecure_true()
142 assertThat(Secure.getInt(context.getContentResolver(), Secure.ADB_ENABLED, 1)).isEqualTo(0); in testSetAdbEnabled_settingsSecure_false()
149 assertThat(Global.getInt(context.getContentResolver(), Global.ADB_ENABLED, 0)).isEqualTo(1); in testSetAdbEnabled_sinceJBMR1_settingsGlobal_true()
156 assertThat(Global.getInt(context.getContentResolver(), Global.ADB_ENABLED, 1)).isEqualTo(0); in testSetAdbEnabled_sinceJBMR1_settingsGlobal_false()
162 assertThat(Secure.getInt(context.getContentResolver(), Secure.INSTALL_NON_MARKET_APPS, 0)) in testSetInstallNonMarketApps_settingsSecure_true()
169 assertThat(Secure.getInt(context.getContentResolver(), Secure.INSTALL_NON_MARKET_APPS, 1)) in testSetInstallNonMarketApps_settingsSecure_false()
177 assertThat(Global.getInt(context.getContentResolver(), Global.INSTALL_NON_MARKET_APPS, 0)) in testSetInstallNonMarketApps_sinceJBMR1_settingsGlobal_true()
185 assertThat(Global.getInt(context.getContentResolver(), Global.INSTALL_NON_MARKET_APPS, 1)) in testSetInstallNonMarketApps_sinceJBMR1_settingsGlobal_false()
DShadowBitmapFactoryTest.java79 context.getContentResolver().openInputStream(Uri.parse("content:/path")); in decodeStream_shouldSetDescriptionAndCreatedFrom()
103 context.getContentResolver().openInputStream(Uri.parse("content:/path")); in decodeStream_shouldSetDescriptionWithNullOptions()
133 context.getContentResolver().openInputStream(Uri.parse("content:/path")); in decodeResourceStream_canTakeOptions()
166 MediaStore.Images.Media.getBitmap(context.getContentResolver(), Uri.parse("content:/path")); in decodeUri_shouldGetWidthAndHeightFromHints()
219 context.getContentResolver().openInputStream(Uri.parse("content:/path")); in decodeStream_shouldGetWidthAndHeightFromHints()
DShadowContextWrapperTest.java361 assertThat(activity.getContentResolver()).isSameAs(activity.getContentResolver()); in shouldReturnSameContentResolverEveryTime()
363 …assertThat(activity.getContentResolver()).isSameAs(Robolectric.setupActivity(Activity.class).getCo… in shouldReturnSameContentResolverEveryTime()
DShadowAsyncQueryHandlerTest.java32 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowSettings.java286 RuntimeEnvironment.application.getContentResolver(), in setAirplaneMode()
290 RuntimeEnvironment.application.getContentResolver(), in setAirplaneMode()
302 RuntimeEnvironment.application.getContentResolver(), Settings.Global.WIFI_ON, isOn ? 1 : 0); in setWifiOn()
304 RuntimeEnvironment.application.getContentResolver(), Settings.System.WIFI_ON, isOn ? 1 : 0); in setWifiOn()
313 …Settings.System.putString(RuntimeEnvironment.application.getContentResolver(), Settings.System.TIM… in set24HourTimeFormat()
339 RuntimeEnvironment.application.getContentResolver(), in setAdbEnabled()
345 RuntimeEnvironment.application.getContentResolver(), in setAdbEnabled()
362 RuntimeEnvironment.application.getContentResolver(), in setInstallNonMarketApps()
368 RuntimeEnvironment.application.getContentResolver(), in setInstallNonMarketApps()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DSettingsFacade.java92 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenTimeout()
101 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenTimeout()
193 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenBrightness()
216 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenBrightness()
322 android.provider.Settings.Global.putString(mService.getContentResolver(), in setPrivateDnsMode()
325 android.provider.Settings.Global.putString(mService.getContentResolver(), in setPrivateDnsMode()
331 return android.provider.Settings.Global.getString(mService.getContentResolver(), in getPrivateDnsMode()
338 return android.provider.Settings.Global.getString(mService.getContentResolver(), in getPrivateDnsSpecifier()
DCallLogFacade.java59 mContentResolver = mService.getContentResolver(); in CallLogFacade()
/external/setupcompat/main/java/com/google/android/setupcompat/util/
DWizardManagerHelper.java134 context.getContentResolver(), SETTINGS_SECURE_USER_SETUP_COMPLETE, 0) in isUserSetupComplete()
140 context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0) in isUserSetupComplete()
157 context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0) in isDeviceProvisioned()
161 context.getContentResolver(), SETTINGS_GLOBAL_DEVICE_PROVISIONED, 0) in isDeviceProvisioned()
/external/ims/rcs/rcsservice/src/com/android/service/ims/
DRcsService.java92 boolean enabled = Settings.Global.getInt(getContentResolver(), in onCreate()
103 getContentResolver().registerContentObserver( in onCreate()
108 getContentResolver().registerContentObserver( in onCreate()
172 getContentResolver().unregisterContentObserver(mObserver); in onDestroy()
173 getContentResolver().unregisterContentObserver(mSiminfoSettingObserver); in onDestroy()
282 boolean enabled = Settings.Global.getInt(getContentResolver(), in onChange()
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DEABService.java113 mContext.getContentResolver().delete(
253 getContentResolver().registerContentObserver( in registerContentObservers()
258 getContentResolver().registerContentObserver( in registerContentObservers()
266 getContentResolver().unregisterContentObserver( in unregisterContentObservers()
271 getContentResolver().unregisterContentObserver( in unregisterContentObservers()
460 cursor = getContentResolver().query(ContactsContract.Data.CONTENT_URI, in checkForContactNumberChanges()
534 Cursor eabCursor = getContentResolver().query(EABContract.EABColumns.CONTENT_URI, in verifyInsertOrUpdateAction()
611 Cursor contactDbCursor = getContentResolver().query( in checkForPhoneNumberDelete()
632 Cursor eabDbCursor = getContentResolver().query( in checkForPhoneNumberDelete()
725 Cursor cursor = getContentResolver().query( in checkForDeletedContact()
[all …]
DDatabaseContentProvider.java243 getContext().getContentResolver().notifyChange(uri, null); in delete()
289 getContext().getContentResolver().notifyChange(uri, null); in insert()
372 getContext().getContentResolver().notifyChange(uri, null); in update()
399 getContext().getContentResolver().notifyChange(uri, null); in bulkInsert()
DEABDbUtil.java63 ContentResolver contentResolver = context.getContentResolver(); in validateAndSyncFromContactsDb()
241 Cursor eabDeleteCursor = context.getContentResolver().query( in deleteContactFromEabDb()
306 Cursor eabDeleteCursor = context.getContentResolver().query( in deleteNumberFromEabDb()
373 context.getContentResolver().applyBatch(EABContract.AUTHORITY, ops); in exceuteDB()
DEABProvider.java301 return getContext().getContentResolver().query(Contacts.CONTENT_URI, projection, in queryInternal()
428 Cursor cursor = getContext().getContentResolver().query(EABContract.EABColumns.CONTENT_URI, in verifyIfMdnExists()
492 Cursor cursor = getContext().getContentResolver().query(EABContract.EABColumns.CONTENT_URI, in printDeletingValues()
/external/glide/library/src/main/java/com/bumptech/glide/load/data/
DMediaStoreThumbFetcher.java152 inputStream = context.getContentResolver().openInputStream(thumbnailUri); in open()
163 …return context.getContentResolver().query(MediaStore.Images.Thumbnails.EXTERNAL_CONTENT_URI, new S… in query()
175 …return context.getContentResolver().query(MediaStore.Video.Thumbnails.EXTERNAL_CONTENT_URI, new St… in query()
DLocalUriFetcher.java43 ContentResolver contentResolver = context.getContentResolver(); in loadData()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/android/controller/
DContentProviderControllerTest.java26 contentResolver = ApplicationProvider.getApplicationContext().getContentResolver(); in setUp()
107 .getContentResolver() in onCreate()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java1176 uri = mService.getContentResolver().insert( in telephonySetAPN()
1183 cursor = mService.getContentResolver().query(uri, sProjection, null, null, null); in telephonySetAPN()
1203 int ret = mService.getContentResolver().update(uri, values, null, null); in telephonySetAPN()
1210 Cursor c = mService.getContentResolver().query( in telephonySetAPN()
1220 ContentResolver resolver = mService.getContentResolver(); in telephonySetAPN()
1235 Cursor cursor = mService.getContentResolver().query( in telephonyGetNumberOfAPNs()
1256 Cursor cursor = mService.getContentResolver().query(Uri.parse(PREFERRED_APN_URI), in telephonyGetSelectedAPN()
/external/skia/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/
DSkottieActivity.java68 InputStream inputStream = getContentResolver().openInputStream(uri); in populateGrid()
189 InputStream inputStream = getContentResolver().openInputStream(uri); in addLottie()
/external/skqp/platform_tools/android/apps/skottie/src/main/java/org/skia/skottie/
DSkottieActivity.java68 InputStream inputStream = getContentResolver().openInputStream(uri); in populateGrid()
189 InputStream inputStream = getContentResolver().openInputStream(uri); in addLottie()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiScannerFacade.java555 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerToggleAlwaysAvailable()
561 Global.putInt(mService.getContentResolver(), Global.WIFI_SCAN_ALWAYS_AVAILABLE, new_state); in wifiScannerToggleAlwaysAvailable()
566 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerIsAlwaysAvailable()
/external/ims/rcs/rcsservice/src/com/android/service/ims/presence/
DPresencePublication.java170 mDataEnabled = Settings.Global.getInt(mContext.getContentResolver(), in PresencePublication()
178 mContext.getContentResolver(), in PresencePublication()
442 return Settings.Global.getInt(mContext.getContentResolver(), in isDataEnabled()
1186 if((Settings.Global.getInt(mContext.getContentResolver(), in onFeatureCapabilityChangedInternal()
/external/subsampling-scale-image-view/library/src/main/java/com/davemorrissey/labs/subscaleview/decoder/
DSkiaImageDecoder.java88 ContentResolver contentResolver = context.getContentResolver(); in decode()
DSkiaImageRegionDecoder.java97 ContentResolver contentResolver = context.getContentResolver(); in init()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java93 ContentResolver resolver = InstrumentationRegistry.getTargetContext().getContentResolver(); in spyStatic()
137 ContentResolver resolver = InstrumentationRegistry.getTargetContext().getContentResolver(); in mockStatic()
/external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
DAudioFileOutput.java67 mContext.getContentResolver().openFileDescriptor(mUri, "w"); in writeRingBufferData()

12