/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);
|
/packages/apps/Settings/src/com/android/settings/accessibility/ |
SettingsContentObserver.java | 19 import android.content.ContentResolver; 30 public void register(ContentResolver contentResolver) { 31 contentResolver.registerContentObserver(Settings.Secure.getUriFor( 33 contentResolver.registerContentObserver(Settings.Secure.getUriFor( 37 public void unregister(ContentResolver contentResolver) { 38 contentResolver.unregisterContentObserver(this);
|
/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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/ |
NotificationActionIntentService.java | 19 import android.content.ContentResolver; 114 final ContentResolver contentResolver = getContentResolver(); 139 contentResolver.update(uri, values, null, null);
|
/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);
|
/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...] |
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
NotificationActionUtils.java | 22 import android.content.ContentResolver; 634 final ContentResolver contentResolver = context.getContentResolver(); 646 contentResolver.update(uri, values, null, null); 655 contentResolver.update(uri, values, null, null); 660 contentResolver.delete(uri, null, null); [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
LocalImage.java | 20 import android.content.ContentResolver; 116 ContentResolver resolver = mApplication.getContentResolver(); 269 ContentResolver contentResolver = mApplication.getContentResolver(); 270 SaveImage.deleteAuxFiles(contentResolver, getContentUri()); 271 contentResolver.delete(baseUri, "_id=?",
|
/developers/build/prebuilts/gradle/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/com/example/android/basicsyncadapter/ |
SyncAdapter.java | 24 import android.content.ContentResolver; 83 private final ContentResolver mContentResolver; 205 final ContentResolver contentResolver = getContext().getContentResolver(); 223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
|
/developers/samples/android/connectivity/sync/BasicSyncAdapter/BasicSyncAdapterSample/src/main/java/com/example/android/basicsyncadapter/ |
SyncAdapter.java | 24 import android.content.ContentResolver; 83 private final ContentResolver mContentResolver; 205 final ContentResolver contentResolver = getContext().getContentResolver(); 223 Cursor c = contentResolver.query(uri, PROJECTION, null, null, null);
|
/development/samples/browseable/BasicSyncAdapter/src/com.example.android.basicsyncadapter/ |
SyncAdapter.java | 24 import android.content.ContentResolver; 83 private final ContentResolver mContentResolver; 205 final ContentResolver contentResolver = getContext().getContentResolver(); 223 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(
|
/external/chromium_org/components/autofill/core/browser/android/java/src/org/chromium/components/browser/autofill/ |
PersonalAutofillPopulator.java | 9 import android.content.ContentResolver; 123 private Cursor cursorFromProfileQuery(ProfileQuery query, ContentResolver contentResolver) { 125 return contentResolver.query( 156 ContentResolver contentResolver = context.getContentResolver(); 157 populateName(contentResolver); 158 populateEmail(contentResolver); 159 populateAddress(contentResolver); 160 populatePhone(contentResolver); [all...] |
/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), 234 public static NewCallsQuery createNewCallsQuery(ContentResolver contentResolver) { 235 return new DefaultNewCallsQuery(contentResolver); 251 private final ContentResolver mContentResolver; 253 private DefaultNewCallsQuery(ContentResolver contentResolver) [all...] |
/packages/apps/Dialer/tests/src/com/android/dialer/ |
CallDetailActivityTest.java | 23 import android.content.ContentResolver; 230 ContentResolver contentResolver = getContentResolver(); 235 mCallLogUri = contentResolver.insert(CallLog.Calls.CONTENT_URI, values); 241 ContentResolver contentResolver = getContentResolver(); 246 mVoicemailUri = contentResolver.insert(VoicemailContract.Voicemails.CONTENT_URI, values); 305 private ContentResolver getContentResolver() {
|
/packages/apps/Email/src/com/android/email2/ui/ |
MailActivityEmail.java | 20 import android.content.ContentResolver; 273 final ContentResolver contentResolver = getContentResolver(); 275 final Cursor accountCursor = contentResolver.query( 295 final Cursor folderCursor = contentResolver.query(
|
/packages/apps/UnifiedEmail/src/com/android/mail/compose/ |
AttachmentsView.java | 18 import android.content.ContentResolver; 208 * fields using a {@link ContentResolver}. 216 final ContentResolver contentResolver = getContext().getContentResolver(); 217 String contentType = contentResolver.getType(contentUri); 233 metadataCursor = contentResolver.query( 255 metadataCursor = getOptionalColumn(contentResolver, contentUri, 267 getOptionalColumn(contentResolver, contentUri, OpenableColumns.SIZE); 272 attachment.size = getSizeFromFile(contentUri, contentResolver); 286 attachment.size = getSizeFromFile(contentUri, contentResolver); [all...] |
/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");
|