/frameworks/base/core/tests/coretests/src/android/provider/ |
SmsProviderTest.java | 19 import android.content.ContentResolver; 58 ContentResolver contentResolver = mContext.getContentResolver(); 63 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); 67 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date"); 72 int count = contentResolver.delete(url, null, null);
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContentResolverTest.java | 38 private ContentResolver contentResolver; 46 contentResolver = new Activity().getContentResolver(); 47 shadowContentResolver = shadowOf(contentResolver); 59 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri21)); 60 assertThat(contentResolver.insert(EXTERNAL_CONTENT_URI, new ContentValues()), equalTo(uri22)); 67 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); 74 contentResolver.insert(EXTERNAL_CONTENT_URI, contentValues); 83 contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, "robolectric", new String[] { "awesome" }); 92 contentResolver.update(EXTERNAL_CONTENT_URI, contentValues, null, null) [all...] |
SettingsTest.java | 5 import android.content.ContentResolver; 20 private ContentResolver contentResolver; 25 contentResolver = activity.getContentResolver(); 30 Settings.System.putInt(contentResolver, "property", 1); 31 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); 34 contentResolver = activity.getContentResolver(); 35 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)); 40 Settings.System.putInt(contentResolver, "property", 1); 41 assertThat(Settings.System.getInt(contentResolver, "property", 0), equalTo(1)) [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/database/ |
SimpleTestCursorTest.java | 3 import android.content.ContentResolver; 22 private ContentResolver contentResolver; 26 contentResolver = Robolectric.application.getContentResolver(); 27 ShadowContentResolver shadowContentResolver = shadowOf(contentResolver); 39 contentResolver.query(uri, new String[]{"projection"}, "selection", new String[]{"selection"}, "sortOrder");
|
/cts/tests/tests/provider/src/android/provider/cts/ |
ContactsContract_GroupMembershipTest.java | 21 import android.content.ContentResolver; 37 ContentResolver contentResolver = 40 contentResolver.acquireContentProviderClient(ContactsContract.AUTHORITY);
|
/frameworks/base/core/java/android/text/method/ |
TextKeyListener.java | 19 import android.content.ContentResolver; 60 private WeakReference<ContentResolver> mResolver; 247 final ContentResolver contentResolver = mResolver.get(); 248 if (contentResolver != null) { 249 contentResolver.unregisterContentObserver(mObserver); 259 final ContentResolver contentResolver = context.getContentResolver(); 260 mResolver = new WeakReference<ContentResolver>(contentResolver); [all...] |
/frameworks/base/services/java/com/android/server/ |
SamplingProfilerService.java | 19 import android.content.ContentResolver; 91 ContentResolver contentResolver = context.getContentResolver(); 92 contentResolver.registerContentObserver( 94 false, new SamplingProfilerSettingsObserver(contentResolver)); 106 private ContentResolver mContentResolver; 107 public SamplingProfilerSettingsObserver(ContentResolver contentResolver) { 109 mContentResolver = contentResolver;
|
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppSendFileInfo.java | 35 import android.content.ContentResolver; 102 ContentResolver contentResolver = context.getContentResolver(); 111 contentType = contentResolver.getType(uri); 114 metadataCursor = contentResolver.query(uri, new String[] { 152 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); 177 is = (FileInputStream) contentResolver.openInputStream(uri);
|
BluetoothOppReceiveFileInfo.java | 40 import android.content.ContentResolver; 92 ContentResolver contentResolver = context.getContentResolver(); 96 Cursor metadataCursor = contentResolver.query(contentUri, new String[] {
|
BluetoothOppManager.java | 39 import android.content.ContentResolver; 429 ContentResolver contentResolver = mContext.getContentResolver(); 430 String contentType = contentResolver.getType(fileUri);
|
BluetoothOppService.java | 41 import android.content.ContentResolver; 161 final ContentResolver contentResolver = getContentResolver(); 164 trimDatabase(contentResolver); [all...] |
/packages/apps/Calendar/tests/src/com/android/calendar/ |
DbTestUtils.java | 19 import android.content.ContentResolver; 37 * Context, ContentResolver, ContentProvider, etc. Typical setup will look something like: 44 private final MockContentResolver contentResolver; 50 private ContentResolver contentResolver; 54 FakeContext(ContentResolver contentResolver, Resources resources) { 55 this.contentResolver = contentResolver; 60 public ContentResolver getContentResolver() [all...] |
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapter/src/main/java/com/example/android/network/sync/basicsyncadapter/ |
SyncAdapter.java | 23 import android.content.ContentResolver; 81 private final ContentResolver mContentResolver; 202 final ContentResolver contentResolver = getContext().getContentResolver(); 220 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/preference/ |
ContactsPreferences.java | 19 import android.content.ContentResolver; 127 final ContentResolver contentResolver = mContext.getContentResolver(); 128 contentResolver.registerContentObserver( 131 contentResolver.registerContentObserver(
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropLoader.java | 19 import android.content.ContentResolver; 60 * @param context context whose ContentResolver to use. 67 if (ContentResolver.SCHEME_FILE.equals(uri.getScheme())) { 109 * @param context context whose ContentResolver to use. 171 * @param context context whose ContentResolver to use. 226 ContentResolver contentResolver = context.getContentResolver(); 229 cursor = contentResolver.query(sourceUri, projection, null, null,
|
/packages/apps/Dialer/src/com/android/dialer/calllog/ |
DefaultVoicemailNotifier.java | 22 import android.content.ContentResolver; 67 ContentResolver contentResolver = context.getContentResolver(); 69 createNewCallsQuery(contentResolver), 70 createNameLookupQuery(contentResolver), 230 public static NewCallsQuery createNewCallsQuery(ContentResolver contentResolver) { 231 return new DefaultNewCallsQuery(contentResolver); 246 private final ContentResolver mContentResolver; 248 private DefaultNewCallsQuery(ContentResolver contentResolver) [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/ |
CallDetailActivityTest.java | 23 import android.content.ContentResolver; 230 ContentResolver contentResolver = getContentResolver(); 234 mCallLogUri = contentResolver.insert(CallLog.Calls.CONTENT_URI, values); 240 ContentResolver contentResolver = getContentResolver(); 245 mVoicemailUri = contentResolver.insert(VoicemailContract.Voicemails.CONTENT_URI, values); 304 private ContentResolver getContentResolver() {
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
SaveCopyTask.java | 19 import android.content.ContentResolver; 231 ContentResolver contentResolver = context.getContentResolver(); 234 cursor = contentResolver.query(sourceUri, projection, null, null,
|
/development/samples/training/ContactsList/src/com/example/android/contactslist/ui/ |
ContactDetailFragment.java | 21 import android.content.ContentResolver; 548 // Instantiates a ContentResolver for retrieving the Uri of the image 549 final ContentResolver contentResolver = getActivity().getContentResolver(); 552 // ContentResolver can return an AssetFileDescriptor for the file. 564 afd = contentResolver.openAssetFileDescriptor(displayImageUri, "r");
|
/frameworks/base/core/tests/coretests/src/android/webkit/ |
AccessibilityInjectorTest.java | 22 import android.content.ContentResolver; [all...] |
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionEngine.java | 19 import android.content.ContentResolver; 301 ContentResolver contentResolver = mContext.getContentResolver(); 302 Cursor cursor = contentResolver.query(uri, new String[]{Contacts._ID}, null, null, null); 325 Cursor dataCursor = contentResolver.query(Data.CONTENT_URI,
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailPlaybackFragment.java | 24 import android.content.ContentResolver; 373 ContentResolver contentResolver = mApplicationContext.getContentResolver(); 374 Cursor cursor = contentResolver.query(
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowApplication.java | 7 import android.content.ContentResolver; 72 private ContentResolver contentResolver; 140 public ContentResolver getContentResolver() { 141 if (contentResolver == null) { 142 contentResolver = new ContentResolver(realApplication) { 145 return contentResolver;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
Alarms.java | 22 import android.content.ContentResolver; 134 ContentResolver contentResolver = context.getContentResolver(); 139 contentResolver.delete(uri, "", null); 154 public static Cursor getAlarmsCursor(ContentResolver contentResolver) { 155 return contentResolver.query( 162 ContentResolver contentResolver) { 163 return contentResolver.query(Alarm.Columns.CONTENT_URI [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
IntentTest.java | 29 import android.content.ContentResolver; 257 final ContentResolver contentResolver = mContext.getContentResolver(); 263 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(mContext)); 269 final ContentResolver contentResolver = mContext.getContentResolver(); 270 assertNull(mIntent.resolveType(contentResolver)); 272 assertEquals(TEST_TYPE, mIntent.resolveType(contentResolver)); 275 assertEquals(contentResolver.getType(TEST_URI), mIntent.resolveType(contentResolver)); [all...] |