Home
last modified time | relevance | path

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

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextWrapperTest.java131 assertThat(activity.getContentResolver(), sameInstance(activity.getContentResolver())); in shouldReturnSameContentResolverEveryTime()
133 … assertThat(activity.getContentResolver(), sameInstance(new Activity().getContentResolver())); in shouldReturnSameContentResolverEveryTime()
DSettingsTest.java25 contentResolver = activity.getContentResolver(); in setUp()
34 contentResolver = activity.getContentResolver(); in whileApplicationStaysSame_shouldRememberOldSettings()
45 contentResolver = activity.getContentResolver(); in whenApplicationChanges_shouldStartWithNewSettings()
DBitmapFactoryTest.java49 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldSetDescription()
111 …bitmap = MediaStore.Images.Media.getBitmap(Robolectric.application.getContentResolver(), Uri.parse… in decodeUri_shouldGetWidthAndHeightFromHints()
121 …InputStream inputStream = Robolectric.application.getContentResolver().openInputStream(Uri.parse("… in decodeStream_shouldGetWidthAndHeightFromHints()
DContentProviderTest.java68 assertThat(provider.getContext().getContentResolver(), is(notNullValue())); in canGetAResolver()
DContentResolverTest.java46 contentResolver = new Activity().getContentResolver(); in setUp()
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowSettings.java140 …Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.AIRPLANE_MODE… in setAirplaneMode()
149 …Settings.Secure.putInt(Robolectric.application.getContentResolver(), Settings.Secure.WIFI_ON, isOn… in setWifiOn()
158 …Settings.System.putInt(Robolectric.application.getContentResolver(), Settings.System.TIME_12_24, u… in set24HourTimeFormat()
DShadowContextWrapper.java62 public ContentResolver getContentResolver() { in getContentResolver() method in ShadowContextWrapper
63 return getApplicationContext().getContentResolver(); in getContentResolver()
DShadowApplication.java140 public ContentResolver getContentResolver() { in getContentResolver() method in ShadowApplication
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
DSettingsFacade.java74 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenTimeout()
83 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenTimeout()
157 return android.provider.Settings.System.getInt(mService.getContentResolver(), in getScreenBrightness()
180 android.provider.Settings.System.putInt(mService.getContentResolver(), in setScreenBrightness()
DContactsFacade.java58 mContentResolver = mService.getContentResolver(); in ContactsFacade()
88 Cursor cursor = mService.getContentResolver().query(phoneData, null, null, null, null); in pickPhone()
DConnectivityManagerFacade.java693 return android.provider.Settings.System.getInt(mService.getContentResolver(), in connectivityCheckAirplaneMode()
/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/skia/platform_tools/android/apps/visualbench/src/main/java/com/skia/
DVisualBenchActivity.java39 Settings.System.putInt(getContentResolver(), Settings.System.SCREEN_BRIGHTNESS_MODE, in onCreate()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/telephony/
DTelephonyManagerFacade.java953 uri = mService.getContentResolver().insert( in telephonySetAPN()
960 cursor = mService.getContentResolver().query(uri, sProjection, null, null, null); in telephonySetAPN()
980 int ret = mService.getContentResolver().update(uri, values, null, null); in telephonySetAPN()
987 Cursor c = mService.getContentResolver().query( in telephonySetAPN()
997 ContentResolver resolver = mService.getContentResolver(); in telephonySetAPN()
1014 Cursor cursor = mService.getContentResolver().query( in telephonyGetNumberOfAPNs()
1035 Cursor cursor = mService.getContentResolver().query(Uri.parse(PREFERRED_APN_URI), in telephonyGetSelectedAPN()
DTelecomManagerFacade.java331 ContentResolver resolver = mService.getContentResolver(); in telecomCallContentUri()
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/android/database/
DSimpleTestCursorTest.java26 contentResolver = Robolectric.application.getContentResolver(); in setup()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiScannerFacade.java552 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerToggleAlwaysAvailable()
558 Global.putInt(mService.getContentResolver(), Global.WIFI_SCAN_ALWAYS_AVAILABLE, new_state); in wifiScannerToggleAlwaysAvailable()
563 int current_state = Global.getInt(mService.getContentResolver(), in wifiScannerIsAlwaysAvailable()
DWifiManagerFacade.java851 ContentResolver cr = mService.getContentResolver(); in wifiToggleScanAlwaysAvailable()
/external/svox/pico/compat/src/com/android/tts/compat/
DCompatTtsService.java59 Cursor c = getContentResolver().query(Uri.parse("content://" + getPackageName() in onCreate()
/external/androidplot/AndroidPlot-Core/src/test/java/com/androidplot/mock/
DMockContext.java64 public ContentResolver getContentResolver() { in getContentResolver() method in MockContext.MockContext2
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/
DInterpreterConfiguration.java71 mmResolver = context.getContentResolver(); in InterpreterListener()