/cts/tests/tests/provider/src/android/provider/cts/ |
D | BlockedNumberContractTest.java | 74 BlockedNumbers.CONTENT_URI, getContentValues("1234567890"))); in testProviderInteractionsAsRegularApp_fails() 80 mContentResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testProviderInteractionsAsRegularApp_fails() 87 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testProviderInteractionsAsRegularApp_fails() 109 mContentResolver.getType(BlockedNumbers.CONTENT_URI)); in testGetType() 112 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 0))); in testGetType() 166 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1), in testInsert_failsWithInvalidInputs() 175 mContentResolver.insert(BlockedNumbers.CONTENT_URI, new ContentValues())); in testInsert_failsWithInvalidInputs() 184 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs() 193 mAddedUris.add(mContentResolver.insert(BlockedNumbers.CONTENT_URI, cv)); in testInsert_failsWithInvalidInputs() 204 BlockedNumbers.CONTENT_URI, getContentValues("123"), null, null); in testUpdate_isUnsupported() [all …]
|
D | ContactsMetadataProviderTest.java | 41 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()
|
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 | SmsBackupRestoreTest.java | 110 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1); in clearMessages() 111 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2); in clearMessages() 113 mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, MMS_SELECTION, in clearMessages() 117 final Uri partUri = Telephony.Mms.CONTENT_URI.buildUpon() in clearMessages() 127 mContentResolver.delete(Telephony.Mms.CONTENT_URI, MMS_SELECTION, new String[]{mmsSubject}); in clearMessages() 146 mContentResolver.bulkInsert(Telephony.Sms.CONTENT_URI, smsContentValues); in testSmsBackupRestore() 162 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody1)); in testSmsBackupRestore() 164 mContentResolver.delete(Telephony.Sms.CONTENT_URI, SMS_SELECTION, smsAddressBody2)); in testSmsBackupRestore() 166 try (Cursor mmsCursor = mContentResolver.query(Telephony.Mms.CONTENT_URI, ID_PROJECTION, in testSmsBackupRestore() 172 final Uri partUri = Telephony.Mms.CONTENT_URI.buildUpon() in testSmsBackupRestore() [all …]
|
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 | 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 | SettingsTest.java | 55 cr.acquireContentProviderClient(Settings.System.CONTENT_URI); in testSystemTable() 64 provider.insert(Settings.System.CONTENT_URI, value); in testSystemTable() 65 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 80 provider.update(Settings.System.CONTENT_URI, value, in testSystemTable() 82 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 93 provider.delete(Settings.System.CONTENT_URI, in testSystemTable() 95 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 115 cr.acquireContentProviderClient(Settings.Secure.CONTENT_URI); in testSecureTable() 121 cursor = provider.query(Settings.Global.CONTENT_URI, SECURE_PROJECTION, in testSecureTable()
|
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_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 | BlockedNumberBackupRestoreTest.java | 141 mContentResolver.insert(BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv); in insertBlockedNumber() 147 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in deleteNumber() 155 BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null, null, null) in verifyBlockedNumbers() 163 mContentResolver.delete(BlockedNumberContract.BlockedNumbers.CONTENT_URI, null, null); in clearBlockedNumbers()
|
D | UserDictionary_WordsTest.java | 73 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in testAddWord_deprecated() 91 Cursor cursor = mContentResolver.query(UserDictionary.Words.CONTENT_URI, WORDS_PROJECTION, in assertWord()
|
/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()
|
/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 | 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()
|
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()
|
/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/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/ |
D | NumberBlockingAppTest.java | 30 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in testCleanupBlockedNumberAsPrimaryUserSucceeds() 55 BlockedNumberContract.BlockedNumbers.CONTENT_URI, in testUnblockNumberAsPrimaryUserSucceeds() 64 BlockedNumberContract.BlockedNumbers.CONTENT_URI, cv); in verifyInsertBlockedNumberSucceeds()
|
/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/tests/tvprovider/src/android/tvprovider/cts/ |
D | TvProviderPerfTest.java | 73 mContentResolver.delete(Programs.CONTENT_URI, null, null); in tearDown() 74 mContentResolver.delete(Channels.CONTENT_URI, null, null); in tearDown() 98 ContentProviderOperation.newInsert(Channels.CONTENT_URI) in testChannels() 116 try (final Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, in testChannels() 146 try (Cursor cursor = mContentResolver.query(Channels.CONTENT_URI, null, null, in testChannels() 159 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() 291 try (Cursor cursor = mContentResolver.query(Programs.CONTENT_URI, null, null, in testPrograms() 324 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/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | PhoneAccountTest.java | 109 context.getContentResolver().registerContentObserver(Calls.CONTENT_URI, false, in internalTestOutgoingCall() 161 context.getContentResolver().registerContentObserver(Calls.CONTENT_URI, false, in testIncomingCall() 186 .query(Calls.CONTENT_URI, null, Calls.NUMBER + " = ?", in testEnsureCallNotInserted() 214 .query(Calls.CONTENT_URI, null, in assertCalllogInserted() 231 .delete(Calls.CONTENT_URI, QUERY_CALL_THROUGH_OUR_CONNECTION_SERVICE, in cleanupCall()
|