/packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/ |
BluetoothPbapVcardManagerTest.java | 144 MockContentResolver contentResolver = new MockContentResolver(); 145 contentResolver.addProvider(ContactsContract.AUTHORITY, contentProvider); 146 BluetoothMockContext mockContext = new BluetoothMockContext(contentResolver, getContext());
|
/packages/apps/EmergencyInfo/tests/src/com/android/emergency/ |
ContactTestUtils.java | 18 import android.content.ContentResolver; 32 public static boolean deleteContact(ContentResolver contentResolver, 37 Cursor cursor = contentResolver.query(contactUri, null, null, null, null); 48 contentResolver.delete(uri, null, null); 63 public static Uri createContact(ContentResolver contentResolver, 67 Uri rawContactUri = contentResolver.insert(ContactsContract.RawContacts.CONTENT_URI, 70 insertStructuredName(contentResolver, rawContactId, name, values); 71 return insertPhoneNumber(contentResolver, rawContactId [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
ContactsContentObserver.java | 20 import android.content.ContentResolver; 72 final ContentResolver contentResolver = mContext.getContentResolver(); 73 contentResolver.registerContentObserver(Contacts.CONTENT_URI, true, mContentObserver);
|
/packages/services/Telecomm/src/com/android/server/telecom/settings/ |
BlockNumberTaskFragment.java | 21 import android.content.ContentResolver; 53 ContentResolver contentResolver = getContext().getContentResolver(); 57 contentResolver.insert(BlockedNumberContract.BlockedNumbers.CONTENT_URI,
|
BlockedNumbersAdapter.java | 20 import android.content.ContentResolver; 90 ContentResolver contentResolver = context.getContentResolver(); 91 contentResolver.delete(BlockedNumberContract.BlockedNumbers.CONTENT_URI,
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
SmsProviderTest.java | 19 import android.content.ContentResolver; 60 ContentResolver contentResolver = mContext.getContentResolver(); 65 urls[i] = contentResolver.insert(Sms.Inbox.CONTENT_URI, map); 69 Cursor c = contentResolver.query(Sms.Inbox.CONTENT_URI, null, null, null, "date"); 74 int count = contentResolver.delete(url, null, null);
|
/packages/apps/Contacts/src/com/android/contacts/compat/ |
PinnedPositionsCompat.java | 19 import android.content.ContentResolver; 43 public static void undemote(ContentResolver contentResolver, long contactId) { 44 if (contentResolver == null) { 48 PinnedPositions.undemote(contentResolver, contactId); 51 contentResolver.call(ContactsContract.AUTHORITY_URI, UNDEMOTE_METHOD,
|
/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/v1/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...] |
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/ |
ContactDbUtil.java | 32 import android.content.ContentResolver; 51 ContentResolver contentResolver = context.getContentResolver(); 57 final Cursor cursor = contentResolver.query(Groups.CONTENT_URI, 84 final Uri newGroupUri = contentResolver.insert(Groups.CONTENT_URI, contentValues); 103 ContentResolver contentResolver = context.getContentResolver(); 104 final Cursor cursor = contentResolver.query(Groups.CONTENT_URI, 127 contentResolver.delete(Groups.CONTENT_URI, deleteWhereClause, null); 135 public static int resetVtCapability(ContentResolver resolver) [all...] |
/external/robolectric/v1/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");
|
/packages/services/Telephony/src/com/android/phone/ |
VoicemailStatus.java | 20 import android.content.ContentResolver; 93 ContentResolver contentResolver = mContext.getContentResolver(); 95 contentResolver.insert(statusUri, mValues);
|
/external/glide/library/src/main/java/com/bumptech/glide/load/data/ |
LocalUriFetcher.java | 3 import android.content.ContentResolver; 14 * A DataFetcher that uses an {@link android.content.ContentResolver} to load data from a {@link android.net.Uri} 29 * @see ContentResolver#openInputStream(android.net.Uri) 34 * {@link ContentResolver#openInputStream(android.net.Uri)} 43 ContentResolver contentResolver = context.getContentResolver(); 44 data = loadResource(uri, contentResolver); 75 * {@link android.content.ContentResolver}. 79 protected abstract T loadResource(Uri uri, ContentResolver contentResolver) throws FileNotFoundException [all...] |
/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/packages/SystemUI/src/com/android/systemui/tuner/ |
StatusBarSwitch.java | 19 import android.content.ContentResolver; 82 ContentResolver contentResolver = getContext().getContentResolver(); 83 Settings.Secure.putStringForUser(contentResolver, StatusBarIconController.ICON_BLACKLIST,
|
/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; 115 final ContentResolver contentResolver = getContentResolver(); 151 contentResolver.update(uri, values, null, null);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
ContactsManagerTest.java | 19 import android.content.ContentResolver; 59 final MockContentResolver contentResolver = new MockContentResolver(); 60 contentResolver.addProvider(ContactsContract.AUTHORITY, mFakeContactsContentProvider); 63 context.setContentResolver(contentResolver); 133 private ContentResolver contentResolver; 135 public void setContentResolver(final ContentResolver contentResolver) { 136 this.contentResolver = contentResolver; [all...] |
/frameworks/base/services/core/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[] { 158 AssetFileDescriptor fd = contentResolver.openAssetFileDescriptor(uri, "r"); 179 fd = contentResolver.openAssetFileDescriptor(uri, "r"); 196 is = (FileInputStream) contentResolver.openInputStream(uri); 203 is = (FileInputStream) contentResolver.openInputStream(uri);
|
/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/DeskClock/src/com/android/deskclock/ |
DeskClockBackupAgent.java | 24 import android.content.ContentResolver; 75 * "minimalist" state. Because of this, the application's ContentResolver cannot be used. 124 final ContentResolver contentResolver = context.getContentResolver(); 125 final List<Alarm> alarms = Alarm.getAlarms(contentResolver, null); 138 alarmInstance = AlarmInstance.addInstance(contentResolver, alarmInstance);
|
/packages/apps/Email/src/com/android/email2/ui/ |
MailActivityEmail.java | 20 import android.content.ContentResolver; 99 final ContentResolver contentResolver = getContentResolver(); 101 final Cursor accountCursor = contentResolver.query( 121 final Cursor folderCursor = contentResolver.query(
|
/packages/apps/TV/tests/input/src/com/android/tv/testinput/ |
TestTvInputSetupActivity.java | 23 import android.content.ContentResolver; 87 private static void updateChannelsBrowsable(ContentResolver contentResolver, String inputId) { 91 contentResolver.update(uri, values, null, null);
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
SettingsProviderTest.java | 19 import android.content.ContentResolver; 365 ContentResolver contentResolver = getContext().getContentResolver(); 387 contentResolver.registerContentObserver(settingUri, false, contentObserver, userId); 411 contentResolver.unregisterContentObserver(contentObserver);
|