/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | ContactsProviderTest.java | 36 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts() 47 getContext().getContentResolver().insert(ContactsContract.Contacts.CONTENT_URI, in testInsertContacts() 62 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile() 74 getContext().getContentResolver().insert(ContactsContract.Profile.CONTENT_URI, in testInsertProfile() 89 getContext().getContentResolver().update(ContactsContract.Profile.CONTENT_URI, in testUpdateProfile()
|
D | NoWriteSecureSettingsPermissionTest.java | 40 getContext().getContentResolver().insert(Settings.Secure.CONTENT_URI, values); in testWriteSecureSettings()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | TvPermissionTest.java | 76 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()
|
D | ProviderPermissionTest.java | 38 assertReadingContentUriRequiresPermission(Contacts.People.CONTENT_URI, in testReadContacts() 48 assertWritingContentUriRequiresPermission(Contacts.People.CONTENT_URI, in testWriteContacts() 58 assertReadingContentUriRequiresPermission(CallLog.CONTENT_URI, in testReadCallLog() 68 assertWritingContentUriRequiresPermission(CallLog.CONTENT_URI, in testWriteCallLog() 84 getContext().getContentResolver().insert(Settings.System.CONTENT_URI, value); in testWriteSettings()
|
D | ContactsProviderTest.java | 38 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/ |
D | ContentObservableTest.java | 26 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()
|
D | ContentObserverTest.java | 28 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()
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | ContactsTest.java | 89 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 …]
|
D | Settings_SystemTest.java | 51 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows() 54 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows() 57 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows() 60 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows() 101 Cursor c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings() 115 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings() 130 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings() 167 assertEquals(Uri.withAppendedPath(System.CONTENT_URI, name), uri); in testGetUriFor()
|
D | SettingsTest.java | 47 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable() 56 provider.insert(Settings.System.CONTENT_URI, value); in testSystemTable() 57 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 72 provider.update(Settings.System.CONTENT_URI, value, in testSystemTable() 74 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 85 provider.delete(Settings.System.CONTENT_URI, in testSystemTable() 87 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 107 cr.acquireContentProviderClient(Settings.Secure.CONTENT_URI); in testSecureTable() 113 cursor = provider.query(Settings.Global.CONTENT_URI, SECURE_PROJECTION, in testSecureTable()
|
D | ContactsContractIntentsTest.java | 41 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()
|
D | UserDictionary_WordsTest.java | 69 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in testAddWord_deprecated() 72 mAddedBackup.add(Uri.withAppendedPath(UserDictionary.Words.CONTENT_URI, in testAddWord_deprecated() 93 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in assertWord() 96 mAddedBackup.add(Uri.withAppendedPath(UserDictionary.Words.CONTENT_URI, in assertWord()
|
D | ContactsContract_StreamItemsTest.java | 63 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId).buildUpon() in testContentDirectoryUri() 90 Uri contactUri = resolver.insert(RawContacts.CONTENT_URI, values); in insertRawContact() 106 ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId), in insertViaContentDirectoryUri() 115 ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) in testContentUri() 120 ops.add(ContentProviderOperation.newInsert(StreamItems.CONTENT_URI) in testContentUri() 139 ContentUris.withAppendedId(StreamItems.CONTENT_URI, streamItemId)); in testContentUri()
|
D | Contacts_PeopleTest.java | 81 mPeopleRowsAdded.add(mProvider.insert(People.CONTENT_URI, value)); in setUp() 86 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp() 88 mGroupRowsAdded.add(mProvider.insert(Groups.CONTENT_URI, value)); in setUp() 118 mProvider.insert(Groups.CONTENT_URI, testValues); in testAddToGroup() 127 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup() 150 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testAddToGroup() 155 mRowsAdded.add(ContentUris.withAppendedId(People.CONTENT_URI, personId)); in testAddToGroup() 157 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup() 211 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
|
D | CalendarTest.java | 199 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 …]
|
D | ContactsContract_StatusUpdatesTest.java | 49 ops.add(ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) in setUp() 54 ops.add(ContentProviderOperation.newInsert(Data.CONTENT_URI) in setUp() 104 ops.add(ContentProviderOperation.newInsert(StatusUpdates.CONTENT_URI) in insertStatusUpdate()
|
D | ContactsContract_TestDataBuilder.java | 261 return RawContacts.CONTENT_URI; in getContentUri() 284 return Contacts.CONTENT_URI; in getContentUri() 310 return Groups.CONTENT_URI; in getContentUri() 324 return Data.CONTENT_URI; in getContentUri()
|
D | TelephonyProviderTest.java | 92 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testAccessToApns()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | AsyncQueryHandlerTest.java | 82 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 …]
|
D | ContentQueryMapTest.java | 68 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/telecom/src/android/telecom/cts/ |
D | DefaultDialerOperationsTest.java | 88 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/suite/cts/deviceTests/tvproviderperf/src/com/android/cts/tvproviderperf/ |
D | TvProviderPerfTest.java | 73 mContentResolver.delete(Programs.CONTENT_URI, null, null); in tearDown() 74 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown() 99 ContentProviderOperation.newInsert(Channels.CONTENT_URI) in testChannels() 115 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 145 try (Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, null, null, in testChannels() 158 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 212 ContentProviderOperation.newInsert(Channels.CONTENT_URI) in testPrograms() 236 ContentProviderOperation.newInsert(Programs.CONTENT_URI) in testPrograms() 289 try (Cursor cursor = mContentResolver.query(Programs.CONTENT_URI, null, null, in testPrograms() 322 try (final Cursor cursor = mContentResolver.query(Programs.CONTENT_URI, in testPrograms()
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | ContactUtil.java | 34 private static final Uri URI = ContactsContract.Contacts.CONTENT_URI; 64 Uri uri = ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, contactId); in queryContactLastUpdatedTimestamp() 134 Assert.assertEquals(1, resolver.update(AggregationExceptions.CONTENT_URI, values, null, in setAggregationException()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | SearchUtil.java | 96 TvContract.Channels.CONTENT_URI), 0); in getSearchableInfos() 101 TvContract.Programs.CONTENT_URI), 0); in getSearchableInfos()
|
/cts/tests/tests/calllog/src/android/calllog/cts/ |
D | CallLogBackupTest.java | 216 resolver.delete(Calls.CONTENT_URI, null, null); in clearCallLog() 228 getContext().getContentResolver().insert(Calls.CONTENT_URI, values); in addCall() 235 Cursor cursor = resolver.query(Calls.CONTENT_URI, CALL_LOG_PROJECTION, null, null, null); in getCalls()
|