Home
last modified time | relevance | path

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

12345

/cts/tests/tests/database/src/android/database/cts/
DContentObserverTest.java44 private static final Uri CONTENT_URI = Uri.parse("content://uri"); field in ContentObserverTest
98 contentObserver.dispatchChange(true, CONTENT_URI); in testContentObserverWithUri()
101 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
107 contentObserver.dispatchChange(false, CONTENT_URI); in testContentObserverWithUri()
110 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
121 contentObserver.dispatchChange(true, CONTENT_URI); in testContentObserverWithUri()
124 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
130 contentObserver.dispatchChange(false, CONTENT_URI); in testContentObserverWithUri()
133 assertEquals(CONTENT_URI, contentObserver.getUri()); in testContentObserverWithUri()
152 observer.dispatchChange(false, Arrays.asList(CONTENT_URI), 0); in testDispatchChange_Completeness()
[all …]
DContentObservableTest.java41 private static final Uri CONTENT_URI = Uri.parse("content://uri"); field in ContentObservableTest
115 mContentObservable.dispatchChange(false, CONTENT_URI); in testDispatchChangeWithUri()
117 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
121 mContentObservable.dispatchChange(true, CONTENT_URI); in testDispatchChangeWithUri()
124 mContentObservable.dispatchChange(true, CONTENT_URI); in testDispatchChangeWithUri()
126 assertEquals(CONTENT_URI, mObserver.getUri()); in testDispatchChangeWithUri()
131 mContentObservable.dispatchChange(false, CONTENT_URI); in testDispatchChangeWithUri()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsTest.java104 mProvider.delete(People.CONTENT_URI, PeopleColumns.NAME + " = ?", in testPeopleTable()
114 Uri uri = mProvider.insert(People.CONTENT_URI, value); in testPeopleTable()
115 Cursor cursor = mProvider.query(People.CONTENT_URI, in testPeopleTable()
138 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
153 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
187 Uri uri = mProvider.insert(Groups.CONTENT_URI, value); in testGroupsTable()
188 Cursor cursor = mProvider.query(Groups.CONTENT_URI, in testGroupsTable()
204 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testGroupsTable()
252 mProvider.insert(Photos.CONTENT_URI, value); in testPhotosTable()
288 Uri peopleUri = mProvider.insert(People.CONTENT_URI, value); in testPhonesTable()
[all …]
DCallLogProviderTest.java57 mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testNoSubqueries()
62 Cursor c = mProvider.query(Calls.CONTENT_URI, null, CallLog.Calls.NUMBER + " = ?", in testNoSubqueries()
78 Uri uri = mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testUpdate()
84 CallLog.Calls.CONTENT_URI, true, in testUpdate()
128 Uri uri = mContentResolver.insert(CallLog.Calls.CONTENT_URI, values); in testDelete()
132 CallLog.Calls.CONTENT_URI, true, in testDelete()
144 int count = mContentResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete()
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()
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/telephonyprovider/src/android/telephonyprovider/cts/
DSmsConversationTest.java58 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
81 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
85 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
106 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
110 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
123 Uri uri1 = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in saveToTelephony()
DSmsTest.java65 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
66 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
138 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testInsertSmsFromSubid_verifySmsFromNotOtherSubId()
199 Uri uri = mContentResolver.insert(Telephony.Sms.CONTENT_URI, values); in testQueryThreadId_returnSameThreadId()
216 int count = mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); in testSmsBulkInsert()
229 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDefaultValuesAreInsertedInSmsTable()
271 Cursor cursor = mContentResolver.query(Telephony.Sms.CONTENT_URI, null, null, null); in testDeleteSms_ifLastSmsDeletedThenThreadIsDeleted()
307 Cursor cursor1 = mContentResolver.query(Telephony.Sms.CONTENT_URI, in testSubqueryNotAllowed()
317 Cursor cursor1 = mContentResolver.query(Telephony.Sms.CONTENT_URI, in testSubqueryNotAllowed()
327 Cursor cursor1 = mContentResolver.query(Telephony.Sms.CONTENT_URI, in testSubqueryNotAllowed()
[all …]
DMmsTest.java70 contentResolver.delete(Telephony.Mms.CONTENT_URI, null, null); in cleanup()
170 Cursor msgCursor = mContentResolver.query(Sent.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsSent()
189 Cursor msgCursor = mContentResolver.query(Draft.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsDraft()
208 Cursor msgCursor = mContentResolver.query(Inbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsInbox()
227 Cursor msgCursor = mContentResolver.query(Outbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsOutbox()
243 .query(Telephony.Mms.CONTENT_URI, null, null, null, in testMmsQuery_retrieveAllWhenSelectorNotSpecified()
281 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllFailedMmsWhenSelectorSpecified()
295 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllSentMmsWhenSelectorSpecified()
309 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllQueuedMmsWhenSelectorSpecified()
411 final Uri mmsUri = mContentResolver.insert(Telephony.Mms.CONTENT_URI, mmsValues); in insertIntoMmsTable()
[all …]
DThreadsTest.java59 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
60 contentResolver.delete(Telephony.Sms.CONTENT_URI, null, null); in cleanup()
117 return mContext.getContentResolver().insert(Telephony.Sms.CONTENT_URI, contentValues); in addMessageToTelephonyWithDate()
121 Cursor cursor = mContentResolver.query(Telephony.Threads.CONTENT_URI, in assertVerifyThreadDate()
137 return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI, contentValues); in saveToTelephony()
DServiceStateTest.java108 Uri uri = Telephony.ServiceStateTable.CONTENT_URI; in testUriAndAuthority()
126 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetVoiceRegState_query()
187 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetDataNetworkType_query()
262 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetDuplexMode_query()
310 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testGetDataRegState_query()
366 try (Cursor cursor = mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testLocationProtectedFields_noPermission()
375 () -> mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testLocationProtectedFields_noPermission()
378 () -> mContentResolver.query(Telephony.ServiceStateTable.CONTENT_URI, in testLocationProtectedFields_noPermission()
/cts/tests/tests/provider/src/android/provider/cts/
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 …]
DBlockedNumberContractTest.java109 BlockedNumbers.CONTENT_URI, getContentValues("1234567890"))); in testProviderInteractionsAsRegularApp_fails()
115 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testProviderInteractionsAsRegularApp_fails()
122 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testProviderInteractionsAsRegularApp_fails()
144 mContentResolver.getType(BlockedNumbers.CONTENT_URI)); in testGetType()
147 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 0))); in testGetType()
246 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1), in testInsert_failsWithInvalidInputs()
255 mContentResolver.insert(BlockedNumbers.CONTENT_URI, new ContentValues())); in testInsert_failsWithInvalidInputs()
264 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs()
273 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs()
288 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testUpdate_isUnsupported()
[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()
/cts/tests/tests/content/src/android/content/cts/
DAsyncQueryHandlerTest.java84 mResolver.insert(DummyProvider.CONTENT_URI, values0); in setUp()
88 mResolver.insert(DummyProvider.CONTENT_URI, values1); in setUp()
92 mResolver.insert(DummyProvider.CONTENT_URI, values2); in setUp()
97 mResolver.delete(DummyProvider.CONTENT_URI, null, null); in tearDown()
118 startInsert(INSERT_TOKEN_1, INSERT_COOKIE, DummyProvider.CONTENT_URI, values1, NO_CANCEL); in testStartInsert()
123 assertEquals(DummyProvider.CONTENT_URI, (Uri) mAsyncHandler.getResult()); in testStartInsert()
127 startInsert(INSERT_TOKEN_2, INSERT_COOKIE, DummyProvider.CONTENT_URI, values2, CANCELABLE); in testStartInsert()
134 cursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, ORDER_BY); in testStartInsert()
150 startQuery(QUERY_TOKEN_1, QUERY_COOKIE, DummyProvider.CONTENT_URI, in testStartQuery()
175 startQuery(QUERY_TOKEN_2, QUERY_COOKIE, DummyProvider.CONTENT_URI, in testStartQuery()
[all …]
DContentQueryMapTest.java70 mResolver.insert(DummyProvider.CONTENT_URI, values0); in setUp()
75 mResolver.insert(DummyProvider.CONTENT_URI, values1); in setUp()
77 mCursor = mResolver.query(DummyProvider.CONTENT_URI, PROJECTIONS, null, null, null); in setUp()
92 mResolver.delete(DummyProvider.CONTENT_URI, null, null); in tearDown()
156 mResolver.update(DummyProvider.CONTENT_URI, values, in testRequery()
190 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdated()
234 mResolver.insert(DummyProvider.CONTENT_URI, values); in testSetKeepUpdated()
262 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdated()
292 mResolver.update(DummyProvider.CONTENT_URI, values, in testSetKeepUpdatedWithHandler()
323 mResolver.insert(DummyProvider.CONTENT_URI, values); in testSetKeepUpdatedWithHandler()
[all …]
DBuggyProviderTest.java38 MockBuggyProvider.CONTENT_URI, UserHandle.USER_CURRENT, in testGetTypeDoesntCrashSystem()
49 resolver.getType(MockBuggyProvider.CONTENT_URI); in testGetTypeViaResolverDoesntCrashSystem()
/cts/tests/tests/simphonebookprovider/src/android/provider/cts/simphonebook/
DSimPhonebookContract_ElementaryFilesNoSimTest.java63 String mimeType = mResolver.getType(ElementaryFiles.CONTENT_URI); in getType_elementaryFiles()
79 ElementaryFiles.CONTENT_URI.buildUpon().appendPath("invalid").build())).isNull(); in getType_invalidUri_returnsNull()
136 () -> mResolver.insert(ElementaryFiles.CONTENT_URI, new ContentValues())); in insert_throwsUnsupportedOperationException()
142 () -> mResolver.update(ElementaryFiles.CONTENT_URI, new ContentValues(), null)); in update_throwsUnsupportedOperationException()
148 () -> mResolver.delete(ElementaryFiles.CONTENT_URI, null)); in delete_throwsUnsupportedOperationException()
154 mResolver.query(ElementaryFiles.CONTENT_URI, projection, null, null)); in query()
/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/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/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/appcloning/test-apps/AppCloningContactsSharingApps/CloneProfileAppWithLaunchableActivity/src/com/android/cts/launchable/cloneprofile/contacts/app/
DCloneContactsSharingTest.java149 return queryContactsForTestAccount(ContactsContract.RawContacts.CONTENT_URI, projection, in getAllRawContactsForTestAccount()
154 return mContentResolver.query(ContactsContract.Data.CONTENT_URI, in getAllDataTableIds()
169 ops.add(ContentProviderOperation.newInsert(ContactsContract.RawContacts.CONTENT_URI) in insertContactsDataThroughBatchOperations()
175 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in insertContactsDataThroughBatchOperations()
184 ops.add(ContentProviderOperation.newInsert(ContactsContract.Data.CONTENT_URI) in insertContactsDataThroughBatchOperations()
206 Uri expectedRawContactsUri = ContactsContract.RawContacts.CONTENT_URI.buildUpon() in assertCloneProviderInsertContentProviderResults()
211 Uri expectedDataUri = ContactsContract.Data.CONTENT_URI.buildUpon() in assertCloneProviderInsertContentProviderResults()
231 mContentResolver.insert(ContactsContract.RawContacts.CONTENT_URI, in testCloneContactsProviderInsert_rawContacts_doesNotInsertActually()
235 Uri expectedUri = ContactsContract.RawContacts.CONTENT_URI.buildUpon() in testCloneContactsProviderInsert_rawContacts_doesNotInsertActually()
255 mContentResolver.bulkInsert(ContactsContract.RawContacts.CONTENT_URI, in testCloneContactsProviderBulkInsert_rawContacts_noContactsInserted()
[all …]
/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/calendarprovider/src/android/provider/cts/calendar/
DCalendarTest.java199 return resolver.delete(Calendars.CONTENT_URI, Calendars._ID + "=?", in deleteCalendarById()
204 return resolver.delete(Calendars.CONTENT_URI, Calendars.ACCOUNT_NAME + "=?", in deleteCalendarByAccount()
220 return resolver.query(Calendars.CONTENT_URI, CALENDARS_SYNC_PROJECTION, selection, in getCalendarsByAccount()
257 Uri uri = ContentUris.withAppendedId(SyncState.CONTENT_URI, id); in getSyncStateById()
269 return resolver.query(SyncState.CONTENT_URI, SYNCSTATE_PROJECTION, selection, in getSyncStateByAccount()
277 Uri uri = ContentUris.withAppendedId(SyncState.CONTENT_URI, id); in deleteSyncStateById()
287 Uri uri = SyncState.CONTENT_URI; in deleteSyncStateByAccount()
565 return resolver.query(Events.CONTENT_URI, EVENTS_PROJECTION, selection, selectionArgs, in getEventsByAccount()
578 return getIntFromDatabase(resolver, Events.CONTENT_URI, eventId, in lookupSelfAttendeeStatus()
587 return getIntFromDatabase(resolver, Events.CONTENT_URI, eventId, in lookupHasAlarm()
[all …]
/cts/tests/tests/contactsproviderwipe/src/android/provider/cts/contactsproviderwipe/
DContactsContract_Wipe.java68 ProviderStatus.CONTENT_URI, null, null, null, null)) { in getDatabaseCreationTimestamp()
147 ProviderStatus.CONTENT_URI, null, null, null, null)) { in wipeContactsProvider()
182 getContext().getContentResolver().registerContentObserver(ProviderStatus.CONTENT_URI, in testDatabaseWipeNotification()
188 if (uri == null || !uri.equals(ProviderStatus.CONTENT_URI)) { in testDatabaseWipeNotification()
204 assertEquals(ProviderStatus.CONTENT_URI, notifiedUri.get()); in testDatabaseWipeNotification()

12345