Home
last modified time | relevance | path

Searched refs:CONTENT_URI (Results 1 – 25 of 101) sorted by relevance

12345

/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsTest.java89 mProvider.delete(People.CONTENT_URI, PeopleColumns.NAME + " = ?", in testPeopleTable()
99 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable()
100 Cursor cursor = mProvider.query(People.CONTENT_URI, in testPeopleTable()
123 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
138 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
171 Uri uri = mProvider.insert(Groups.CONTENT_URI, value); in testGroupsTable()
172 Cursor cursor = mProvider.query(Groups.CONTENT_URI, in testGroupsTable()
188 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testGroupsTable()
235 mProvider.insert(Photos.CONTENT_URI, value); in testPhotosTable()
270 Uri peopleUri = mProvider.insert(People.CONTENT_URI, value); in testPhonesTable()
[all …]
DContactsMetadataProviderTest.java41 public static final Uri CONTENT_URI = Uri.withAppendedPath(METADATA_AUTHORITY_URI, field in ContactsMetadataProviderTest
46 getContext().getContentResolver().query(CONTENT_URI, null, null, null, null); in testCallerCheck()
52 getContext().getContentResolver().insert(CONTENT_URI, new ContentValues()); in testCallerCheck()
58 getContext().getContentResolver().update(CONTENT_URI, new ContentValues(), null, null); in testCallerCheck()
64 getContext().getContentResolver().delete(CONTENT_URI, null, null); in testCallerCheck()
DContacts_PeopleTest.java83 mPeopleRowsAdded.add(mProvider.insert(People.CONTENT_URI, value)); in setUp()
88 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp()
90 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp()
120 mProvider.insert(Groups.CONTENT_URI, testValues); in testAddToGroup()
129 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
152 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testAddToGroup()
157 mRowsAdded.add(ContentUris.withAppendedId(People.CONTENT_URI, personId)); in testAddToGroup()
159 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
213 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
/cts/tests/tests/provider/src/android/provider/cts/
DBlockedNumberContractTest.java90 BlockedNumbers.CONTENT_URI, getContentValues("1234567890"))); in testProviderInteractionsAsRegularApp_fails()
96 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testProviderInteractionsAsRegularApp_fails()
103 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testProviderInteractionsAsRegularApp_fails()
125 mContentResolver.getType(BlockedNumbers.CONTENT_URI)); in testGetType()
128 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 0))); in testGetType()
227 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1), in testInsert_failsWithInvalidInputs()
236 mContentResolver.insert(BlockedNumbers.CONTENT_URI, new ContentValues())); in testInsert_failsWithInvalidInputs()
245 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs()
254 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs()
269 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testUpdate_isUnsupported()
[all …]
DSmsBackupRestoreTest.java112 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1); in clearMessages()
113 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2); in clearMessages()
115 mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, MMS_SELECTION, in clearMessages()
119 final Uri partUri = Telephony.Mms.CONTENT_URI.buildUpon() in clearMessages()
129 mContentResolver.delete(Telephony.Mms.CONTENT_URI, MMS_SELECTION, new String[]{mmsSubject}); in clearMessages()
148 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); in testSmsBackupRestore()
164 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1)); in testSmsBackupRestore()
166 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2)); in testSmsBackupRestore()
168 try (Cursor mmsCursor = mContentResolver.query(Telephony.Mms.CONTENT_URI, in testSmsBackupRestore()
176 final Uri partUri = Telephony.Mms.CONTENT_URI.buildUpon() in testSmsBackupRestore()
[all …]
DCalendarTest.java200 return resolver.delete(Calendars.CONTENT_URI, Calendars._ID + "=?", in deleteCalendarById()
205 return resolver.delete(Calendars.CONTENT_URI, Calendars.ACCOUNT_NAME + "=?", in deleteCalendarByAccount()
221 return resolver.query(Calendars.CONTENT_URI, CALENDARS_SYNC_PROJECTION, selection, in getCalendarsByAccount()
258 Uri uri = ContentUris.withAppendedId(SyncState.CONTENT_URI, id); in getSyncStateById()
270 return resolver.query(SyncState.CONTENT_URI, SYNCSTATE_PROJECTION, selection, in getSyncStateByAccount()
278 Uri uri = ContentUris.withAppendedId(SyncState.CONTENT_URI, id); in deleteSyncStateById()
288 Uri uri = SyncState.CONTENT_URI; in deleteSyncStateByAccount()
566 return resolver.query(Events.CONTENT_URI, EVENTS_PROJECTION, selection, selectionArgs, in getEventsByAccount()
579 return getIntFromDatabase(resolver, Events.CONTENT_URI, eventId, in lookupSelfAttendeeStatus()
588 return getIntFromDatabase(resolver, Events.CONTENT_URI, eventId, in lookupHasAlarm()
[all …]
DBlockedNumberBackupRestoreTest.java144 mContentResolver.insert(BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv); in insertBlockedNumber()
150 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in deleteNumber()
158 BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null, null, null) in verifyBlockedNumbers()
166 mContentResolver.delete(BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null); in clearBlockedNumbers()
DSettings_SystemTest.java75 Cursor c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
94 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
105 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
145 assertEquals(Uri.withAppendedPath(System.CONTENT_URI, name), uri); in testGetUriFor()
/cts/tests/tests/permission/src/android/permission/cts/
DProviderPermissionTest.java56 add(Contacts.People.CONTENT_URI); // Deprecated.
60 add(ContactsContract.CommonDataKinds.Email.CONTENT_URI);
62 add(ContactsContract.Directory.CONTENT_URI);
64 add(ContactsContract.Profile.CONTENT_URI);
86 assertWritingContentUriRequiresPermission(Contacts.People.CONTENT_URI, in testWriteContacts()
97 assertReadingContentUriRequiresPermission(CallLog.CONTENT_URI, in testReadCallLog()
108 assertWritingContentUriRequiresPermission(CallLog.CONTENT_URI, in testWriteCallLog()
118 assertNull(getContext().getContentResolver().query(CallLog.CONTENT_URI, null, null, null, in testReadCallLogInstant()
129 getContext().getContentResolver().insert(CallLog.CONTENT_URI, new ContentValues()); in testWriteCallLogInstant()
149 assertReadingContentUriRequiresPermission(Telephony.Sms.CONTENT_URI, in testReadSms()
[all …]
DTvPermissionTest.java84 verifyInsert(TvContract.Channels.CONTENT_URI, "channels"); in testInsertChannels()
90 verifyUpdate(TvContract.Channels.CONTENT_URI, "channels"); in testUpdateChannels()
96 verifyDelete(TvContract.Channels.CONTENT_URI, "channels"); in testDeleteChannels()
102 verifyInsert(TvContract.Programs.CONTENT_URI, "programs"); in testInsertPrograms()
108 verifyUpdate(TvContract.Programs.CONTENT_URI, "programs"); in testUpdatePrograms()
114 verifyDelete(TvContract.Programs.CONTENT_URI, "programs"); in testDeletePrograms()
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
56 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
74 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
94 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
112 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java28 private static final Uri CONTENT_URI = Uri.parse("content://uri"); field in ContentObserverTest
78 contentObserver.dispatchChange(true, CONTENT_URI); in testContentObserverWithUri()
81 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
87 contentObserver.dispatchChange(false, CONTENT_URI); in testContentObserverWithUri()
90 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
101 contentObserver.dispatchChange(true, CONTENT_URI); in testContentObserverWithUri()
104 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
110 contentObserver.dispatchChange(false, CONTENT_URI); in testContentObserverWithUri()
113 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
DContentObservableTest.java26 private static final Uri CONTENT_URI = Uri.parse("content://uri"); field in ContentObservableTest
99 mContentObservable.dispatchChange(false, CONTENT_URI); in testDispatchChangeWithUri()
101 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
105 mContentObservable.dispatchChange(true, CONTENT_URI); in testDispatchChangeWithUri()
108 mContentObservable.dispatchChange(true, CONTENT_URI); in testDispatchChangeWithUri()
110 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
115 mContentObservable.dispatchChange(false, CONTENT_URI); in testDispatchChangeWithUri()
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java82 mResolver.insert(DummyProvider.CONTENT_URI, values0); in setUp()
86 mResolver.insert(DummyProvider.CONTENT_URI, values1); in setUp()
90 mResolver.insert(DummyProvider.CONTENT_URI, values2); in setUp()
95 mResolver.delete(DummyProvider.CONTENT_URI, null, null); in tearDown()
116 startInsert(INSERT_TOKEN_1, INSERT_COOKIE, DummyProvider.CONTENT_URI, values1, NO_CANCEL); in testStartInsert()
121 assertEquals(DummyProvider.CONTENT_URI, (Uri) mAsyncHandler.getResult()); in testStartInsert()
125 startInsert(INSERT_TOKEN_2, INSERT_COOKIE, DummyProvider.CONTENT_URI, values2, CANCELABLE); in testStartInsert()
132 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY); in testStartInsert()
148 startQuery(QUERY_TOKEN_1, QUERY_COOKIE, DummyProvider.CONTENT_URI, in testStartQuery()
173 startQuery(QUERY_TOKEN_2, QUERY_COOKIE, DummyProvider.CONTENT_URI, in testStartQuery()
[all …]
DContentQueryMapTest.java68 mResolver.insert(DummyProvider.CONTENT_URI, values0); in setUp()
73 mResolver.insert(DummyProvider.CONTENT_URI, values1); in setUp()
75 mCursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, null); in setUp()
90 mResolver.delete(DummyProvider.CONTENT_URI, null, null); in tearDown()
154 mResolver.update(DummyProvider.CONTENT_URI, values, in testRequery()
188 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdated()
232 mResolver.insert(DummyProvider.CONTENT_URI, values); in testSetKeepUpdated()
260 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdated()
290 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdatedWithHandler()
321 mResolver.insert(DummyProvider.CONTENT_URI, values); in testSetKeepUpdatedWithHandler()
[all …]
/cts/tests/tests/permission2/src/android/permission2/cts/
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
49 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts()
64 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
76 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile()
91 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DSmsConversationTest.java56 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
78 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
82 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
103 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
107 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
120 Uri uri1 = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in saveToTelephony()
DMmsTest.java65 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
164 Cursor msgCursor = mContentResolver.query(Sent.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsSent()
183 Cursor msgCursor = mContentResolver.query(Draft.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsDraft()
202 Cursor msgCursor = mContentResolver.query(Inbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsInbox()
221 Cursor msgCursor = mContentResolver.query(Outbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsOutbox()
237 .query(Telephony.Mms.CONTENT_URI, null, null, null, in testMmsQuery_retrieveAllWhenSelectorNotSpecified()
275 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllFailedMmsWhenSelectorSpecified()
289 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllSentMmsWhenSelectorSpecified()
303 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllQueuedMmsWhenSelectorSpecified()
405 final Uri mmsUri = mContentResolver.insert(Telephony.Mms.CONTENT_URI, mmsValues); in insertIntoMmsTable()
[all …]
DThreadsTest.java57 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
114 return mContext.getContentResolver().insert(Telephony.Sms.CONTENT_URI, contentValues); in addMessageToTelephonyWithDate()
118 Cursor cursor = mContentResolver.query(Telephony.Threads.CONTENT_URI, in assertVerifyThreadDate()
134 return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI, contentValues); in saveToTelephony()
DSmsTest.java56 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
57 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
128 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId()
189 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testQueryThreadId_returnSameThreadId()
206 int count = mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); in testSmsBulkInsert()
219 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDefaultValuesAreInsertedInSmsTable()
260 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDeleteSms_ifLastSmsDeletedThenThreadIsDeleted()
/cts/tests/tvprovider/src/android/tvprovider/cts/
DTvProviderPerfTest.java75 mContentResolver.delete(Programs.CONTENT_URI, null, null); in tearDown()
76 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown()
92 mContentResolver.delete(Channels.CONTENT_URI, null, null); in testChannels()
105 ContentProviderOperation.newInsert(Channels.CONTENT_URI) in testChannels()
123 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels()
153 try (Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, null, null, in testChannels()
166 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels()
219 ContentProviderOperation.newInsert(Channels.CONTENT_URI) in testPrograms()
243 ContentProviderOperation.newInsert(Programs.CONTENT_URI) in testPrograms()
298 try (Cursor cursor = mContentResolver.query(Programs.CONTENT_URI, null, null, in testPrograms()
[all …]
/cts/tests/tests/database/apps/src/com/android/cts/providerapp/
DDummyProvider.java34 private static final Uri CONTENT_URI = Uri.parse("content://" + AUTHORITY); field in DummyProvider
36 private static final Uri TEST_URI1 = Uri.withAppendedPath(CONTENT_URI, "test1");
37 private static final Uri TEST_URI2 = Uri.withAppendedPath(CONTENT_URI, "test2");
51 if (!CONTENT_URI.equals(uri)) { in query()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DNumberBlockingAppTest.java30 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in testCleanupBlockedNumberAsPrimaryUserSucceeds()
55 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in testUnblockNumberAsPrimaryUserSucceeds()
64 BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv); in verifyInsertBlockedNumberSucceeds()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/receiver/
DEventReceiver.java39 private static final Uri CONTENT_URI = Uri.parse(EventTableConstants.CONTENT_URI); field in EventReceiver
54 context.getContentResolver().insert(CONTENT_URI, values); in onReceive()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DContactsContract_Subquery.java56 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, null, null, null)) { in testProviderStatus_addedContacts()
61 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
67 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()

12345