Home
last modified time | relevance | path

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

1234

/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.java76 verifyInsert(TvContract.Channels.CONTENT_URI, "channels"); in testInsertChannels()
81 verifyUpdate(TvContract.Channels.CONTENT_URI, "channels"); in testUpdateChannels()
86 verifyDelete(TvContract.Channels.CONTENT_URI, "channels"); in testDeleteChannels()
91 verifyInsert(TvContract.Programs.CONTENT_URI, "programs"); in testInsertPrograms()
96 verifyUpdate(TvContract.Programs.CONTENT_URI, "programs"); in testUpdatePrograms()
101 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/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/provider/src/android/provider/cts/contacts/
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()
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 …]
DContactsContractIntentsTest.java41 intent.setData(ContactsContract.Contacts.CONTENT_URI); in testViewContactDir()
47 intent.setData(ContactsContract.Contacts.CONTENT_URI); in testPickContactDir()
53 intent.setData(ContactsContract.Contacts.CONTENT_URI); in testGetContentContactDir()
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/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/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/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()
/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/telecom/src/android/telecom/cts/
DDefaultDialerOperationsTest.java88 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions()
94 mContext.getContentResolver().delete(Voicemails.CONTENT_URI, in testVoicemailReadWritePermissions()
102 Voicemails.CONTENT_URI.buildUpon().appendPath("999").build(), in testVoicemailReadWritePermissions()
112 mContext.getContentResolver().query(Voicemails.CONTENT_URI, null, null, null, null); in testVoicemailReadWritePermissions()
113 mContext.getContentResolver().delete(Voicemails.CONTENT_URI, in testVoicemailReadWritePermissions()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DThreadsTest.java40 contentResolver.delete(Telephony.Threads.CONTENT_URI, null, null); in cleanup()
57 Uri.withAppendedPath(Telephony.Sms.CONTENT_URI, inboxUri.getLastPathSegment()); in testThreadDeletion_doNotReuseThreadIdsFromEmptyThreads()
74 return mContext.getContentResolver().insert(Telephony.Sms.Inbox.CONTENT_URI, contentValues); in saveToTelephony()
DTelephonyProviderTest.java48 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApns()
60 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testNoAccessToPassword()

1234