/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | SqlInjectionDetectionTest.java | 52 assertQueryValid(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testQueryValid() 56 assertQueryValid(Data.CONTENT_URI, null, in testQueryValid() 61 assertQueryThrows(Phone.CONTENT_URI, in testPhoneQueryBadProjection() 65 assertQueryThrows(Phone.CONTENT_URI, new String[] { "a" }, null, null); in testPhoneQueryBadProjection() 66 assertQueryThrows(Phone.CONTENT_URI, new String[] { " _id" }, null, null); in testPhoneQueryBadProjection() 69 assertQueryThrows(Phone.CONTENT_URI, new String[] { "[_id]" }, null, null); in testPhoneQueryBadProjection() 73 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() 75 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, ";delete from contacts", null); in testPhoneQueryBadSelection() 77 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() 79 assertQueryThrows(Phone.CONTENT_URI, PHONE_ID_PROJECTION, in testPhoneQueryBadSelection() [all …]
|
D | LegacyContactsProviderTest.java | 81 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleInsert() 87 assertSelection(People.CONTENT_URI, values, "people", People._ID, ContentUris.parseId(uri)); in testPeopleInsert() 94 Uri uri = mResolver.insert(People.CONTENT_URI, values); in testPeopleUpdate() 98 assertSelection(People.CONTENT_URI, values, "people", People._ID, personId); in testPeopleUpdate() 108 mResolver.update(People.CONTENT_URI, values, People._ID + "=" + personId, null); in testPeopleUpdate() 116 Uri personId = mResolver.insert(People.CONTENT_URI, values); in testPeopleDelete() 133 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter() 137 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter() 141 mResolver.insert(People.CONTENT_URI, values); in testPeopleFilter() 152 Uri personUri = mResolver.insert(People.CONTENT_URI, values); in testDefaultDisplayName() [all …]
|
D | ContactLookupKeyTest.java | 62 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 80 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount() 83 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount() 86 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); in testLookupKeyUsingSourceIdAndNoAccount() 101 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount() 110 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); in testLookupKeySameSourceIdDifferentAccounts() 111 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO"); in testLookupKeySameSourceIdDifferentAccounts() 112 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts() 115 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); in testLookupKeySameSourceIdDifferentAccounts() 116 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_NAME, "BAR"); in testLookupKeySameSourceIdDifferentAccounts() [all …]
|
D | ContactsProvider2Test.java | 384 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 385 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 401 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 402 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 416 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 417 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 424 assertProjection(Contacts.CONTENT_URI, new String[]{ in testContactsProjection() 601 assertProjection(RawContacts.CONTENT_URI, new String[]{ in testRawContactsProjection() 641 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection() 813 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), in testEntityProjection() [all …]
|
D | GroupsTest.java | 149 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtySetOnChange() 157 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testMarkAsDirtyParameter() 169 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupDirtyClearedWhenSetExplicitly() 183 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion1() 197 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testGroupDeletion2() 206 Uri uri = ContentUris.withAppendedId(Groups.CONTENT_URI, in testGroupVersionUpdates() 237 final Cursor cursor = mResolver.query(Contacts.CONTENT_URI, new String[] { in assertContactVisible() 247 return ContentProviderOperation.newAssertQuery(Contacts.CONTENT_URI).withSelection( in buildVisibleAssert() 256 final Uri groupUri = ContentUris.withAppendedId(Groups.CONTENT_URI, groupId); in testDelayVisibleTransaction() 261 final Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in testDelayVisibleTransaction() [all …]
|
D | ContactsProvider2TransactionTest.java | 67 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_insert() 93 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_update() 101 assertTrue(mResolver.update(RawContacts.CONTENT_URI, values, null, null) > 0); in testTransactionCallback_update() 127 mResolver.insert(RawContacts.CONTENT_URI, values); in testTransactionCallback_delete() 132 assertTrue(mResolver.delete(RawContacts.CONTENT_URI, null, null) > 0); in testTransactionCallback_delete() 157 mResolver.bulkInsert(RawContacts.CONTENT_URI, new ContentValues[] {values}); in testTransactionCallback_bulkInsert() 180 b = ContentProviderOperation.newInsert(RawContacts.CONTENT_URI); in addInsertContactOperations() 185 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertContactOperations() 198 assertStoredValues(Contacts.CONTENT_URI, cv( in checkStoredContact() 214 b = ContentProviderOperation.newInsert(Data.CONTENT_URI); in addInsertProfileOperations() [all …]
|
D | CloneContactsProvider2Test.java | 146 Cursor cursor = contactsProvider2.query(ContactsContract.RawContacts.CONTENT_URI, in assertContactsProviderEmpty() 154 Uri resultUri = mActor.resolver.insert(ContactsContract.RawContacts.CONTENT_URI, in insertRawContactsThroughPrimaryProvider() 173 mCloneContactsActor.resolver.insert(ContactsContract.RawContacts.CONTENT_URI, in testCloneContactsProviderInsert() 177 Uri expectedUri = ContactsContract.RawContacts.CONTENT_URI.buildUpon() in testCloneContactsProviderInsert() 193 ContactsContract.RawContacts.CONTENT_URI, rawContactId), in testPrimaryContactsProviderInsert() 217 ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId), in testCloneContactsProviderUpdate() 225 ContactsContract.RawContacts.CONTENT_URI, rawContactId), in testCloneContactsProviderUpdate() 240 ContentUris.withAppendedId(ContactsContract.RawContacts.CONTENT_URI, rawContactId), in testCloneContactsProviderDelete() 248 ContactsContract.RawContacts.CONTENT_URI, rawContactId), in testCloneContactsProviderDelete() 258 mCloneContactsActor.resolver.bulkInsert(ContactsContract.RawContacts.CONTENT_URI, in testCloneContactsProviderBulkInsert() [all …]
|
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CellBroadcastProviderTest.java | 46 public static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts"); field in CellBroadcastProviderTest 101 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate() 109 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate() 113 Cursor cursor = mContentResolver.query(CONTENT_URI, QUERY_COLUMNS, in testUpdate() 127 Uri uri = mContentResolver.insert(CONTENT_URI, cv); in testUpdate_WithoutWritePermission_fail() 134 mContentResolver.update(CONTENT_URI, cv, SELECT_BY_ID, in testUpdate_WithoutWritePermission_fail() 149 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast() 156 mContentResolver.insert(CONTENT_URI, cv); in testGetAllCellBroadcast() 161 CONTENT_URI, in testGetAllCellBroadcast() 171 Uri uri = mContentResolver.insert(CONTENT_URI, fakeCellBroadcast()); in testDelete_withoutWritePermission_throwSecurityException() [all …]
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
D | CarrierIdProviderTest.java | 169 mContentResolver.insert(CarrierId.All.CONTENT_URI, createCarrierInfoInternal()); in testInsertCarrierInfo() 170 Cursor countCursor = mContentResolver.query(CarrierId.All.CONTENT_URI, in testInsertCarrierInfo() 191 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 192 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testDuplicateInsertionCarrierInfo() 208 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testInvalidInsertionCarrierInfo() 222 mContentResolver.insert(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo() 231 numRowsDeleted = mContentResolver.delete(CarrierId.All.CONTENT_URI, in testDeleteCarrierInfo() 249 mContentResolver.insert(CarrierId.All.CONTENT_URI, contentValues); in testUpdateCarrierInfo() 256 mContentResolver.update(CarrierId.All.CONTENT_URI, contentValues, in testUpdateCarrierInfo() 263 Cursor findEntry = mContentResolver.query(CarrierId.All.CONTENT_URI, in testUpdateCarrierInfo() [all …]
|
D | CarrierProviderTest.java | 154 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testInsertCertificates() 159 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testInsertCertificates() 189 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testUpdateCertificates() 197 mContentResolver.update(CarrierProvider.CONTENT_URI, updatedValues, in testUpdateCertificates() 207 Cursor findEntry = mContentResolver.query(CarrierProvider.CONTENT_URI, columns, in testUpdateCertificates() 243 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testMultipleCertificates() 244 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValuesNew); in testMultipleCertificates() 250 Cursor countCursor = mContentResolver.query(CarrierProvider.CONTENT_URI, in testMultipleCertificates() 287 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValues); in testMnoandMvnoCertificates() 288 mContentResolver.insert(CarrierProvider.CONTENT_URI, contentValuesNew); in testMnoandMvnoCertificates() [all …]
|
D | TelephonyProviderTest.java | 126 private static final Uri URI_TELEPHONY = Carriers.CONTENT_URI; 424 int rows = mContentResolver.bulkInsert(Carriers.CONTENT_URI, values); in testBulkInsertCarriers() 440 Cursor cursor = mContentResolver.query(Carriers.CONTENT_URI, in testBulkInsertCarriers() 462 doSimpleTestForUri(Carriers.CONTENT_URI); in testInsertCarriers() 475 mContentResolver.addProvider(Telephony.CarrierId.All.CONTENT_URI.getAuthority(), in testMccMncMigration() 485 mContentResolver.bulkInsert(Telephony.CarrierId.All.CONTENT_URI, carrierIdMccMncs); in testMccMncMigration() 500 mContentResolver.bulkInsert(SimInfo.CONTENT_URI, existingSimInfoEntries); in testMccMncMigration() 506 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration() 515 try (Cursor c = mContentResolver.query(SimInfo.CONTENT_URI, proj, in testMccMncMigration() 551 Uri row1 = mContentResolver.insert(Carriers.CONTENT_URI, contentValues); in testUpdateConflictingCarriers() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
D | AllIntentsActivity.java | 148 new Intent(Intent.ACTION_PICK, Contacts.CONTENT_URI)); in onListItemClick() 153 new Intent(Intent.ACTION_PICK, People.CONTENT_URI)); in onListItemClick() 158 new Intent(Intent.ACTION_PICK, Phone.CONTENT_URI)); in onListItemClick() 163 new Intent(Intent.ACTION_PICK, Phones.CONTENT_URI)); in onListItemClick() 168 new Intent(Intent.ACTION_PICK, StructuredPostal.CONTENT_URI)); in onListItemClick() 179 new Intent(Intent.ACTION_PICK, Email.CONTENT_URI)); in onListItemClick() 297 Uri contactUri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 307 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 316 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() 329 final Uri uri = ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId); in onListItemClick() [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/ |
D | MapClientContent.java | 132 mResolver.registerContentObserver(Sms.CONTENT_URI, true, mContentObserver); in MapClientContent() 133 mResolver.registerContentObserver(Mms.CONTENT_URI, true, mContentObserver); in MapClientContent() 134 mResolver.registerContentObserver(MmsSms.CONTENT_URI, true, mContentObserver); in MapClientContent() 224 Uri contentUri = INBOX_PATH.equalsIgnoreCase(message.getFolder()) ? Sms.Inbox.CONTENT_URI in storeSms() 225 : Sms.Sent.CONTENT_URI; in storeSms() 282 for (Uri uri : new Uri[]{Mms.CONTENT_URI, Sms.CONTENT_URI}) { in findChangeInDatabase() 317 contentUri = Mms.Inbox.CONTENT_URI; in storeMms() 320 contentUri = Mms.Sent.CONTENT_URI; in storeMms() 404 return mResolver.insert(Mms.CONTENT_URI, mmsValues); in insertIntoMmsTable() 435 Uri uri = Threads.CONTENT_URI.buildUpon().appendQueryParameter("simple", "true").build(); in clearMessages() [all …]
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactsProviderUtilTest.java | 63 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds_getAll() 83 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds_getNone() 100 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds() 109 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetUpdatedContactIds() 127 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetDeletedContactIds_getAll() 131 resolver.delete(ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, i), in testGetDeletedContactIds_getAll() 149 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetDeletedContactIds_getNone() 152 resolver.delete(ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, i), in testGetDeletedContactIds_getNone() 170 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testGetDeletedContactIds() 173 resolver.delete(ContentUris.withAppendedId(ContactsContract.Contacts.CONTENT_URI, i), in testGetDeletedContactIds() [all …]
|
D | ContactsIndexerUserInstanceTest.java | 166 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() 180 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleMultipleNotifications_onlyOneDeltaUpdateCanBeScheduledAndRun() 212 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleNotificationDuringUpdate_oneAdditionalUpdateWillBeRun() 221 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testHandleNotificationDuringUpdate_oneAdditionalUpdateWillBeRun() 289 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testStart_initialRun_schedulesFullUpdateJob() 347 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testStart_subsequentRunWithNoScheduledJob_schedulesFullUpdateJob() 408 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testStart_subsequentRunWithScheduledJob_doesNotScheduleFullUpdateJob() 424 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testFullUpdate() 444 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testDeltaUpdate_insertedContacts() 482 resolver.insert(ContactsContract.Contacts.CONTENT_URI, dummyValues); in testDeltaUpdateWithLimit_fewerContactsIndexed() [all …]
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | BootCompletedReceiver.java | 77 deleteRowsOfUninstalledPackagesInternal(context, db, TvContract.Channels.CONTENT_URI); in deleteRowsOfUninstalledPackages() 79 context, db, TvContract.RecordedPrograms.CONTENT_URI); in deleteRowsOfUninstalledPackages() 81 context, db, TvContract.WatchNextPrograms.CONTENT_URI); in deleteRowsOfUninstalledPackages() 121 if (TvContract.Channels.CONTENT_URI.equals(uri)) { in getTableName() 124 if (TvContract.Programs.CONTENT_URI.equals(uri)) { in getTableName() 127 if (TvContract.PreviewPrograms.CONTENT_URI.equals(uri)) { in getTableName() 130 if (TvContract.WatchedPrograms.CONTENT_URI.equals(uri)) { in getTableName() 133 if (TvContract.RecordedPrograms.CONTENT_URI.equals(uri)) { in getTableName() 136 if (TvContract.WatchNextPrograms.CONTENT_URI.equals(uri)) { in getTableName()
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | BlockedNumberProviderTest.java | 127 BlockedNumbers.CONTENT_URI)); in testGetType() 130 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1))); in testGetType() 160 assertRowCount(7, BlockedNumbers.CONTENT_URI); in testInsert() 173 Cursor c = mResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testChangesNotified() 198 final Uri uri = mResolver.insert(BlockedNumbers.CONTENT_URI, cv); in insert() 211 BlockedNumbers.CONTENT_URI, cv); in insertExpectingFailure() 227 assertRowCount(5, BlockedNumbers.CONTENT_URI); in testDelete() 232 assertRowCount(4, BlockedNumbers.CONTENT_URI); in testDelete() 242 assertRowCount(3, BlockedNumbers.CONTENT_URI); in testDelete() 244 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaListTests.java | 208 ContentUris.withAppendedId(RawContacts.CONTENT_URI, INSERTED_CONTACT_ID)); in assertDiffPattern() 240 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); in buildAssertVersion() 246 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_UPDATE, values); in buildAggregationModeUpdate() 262 return buildCPOWrapper(AggregationExceptions.CONTENT_URI, TYPE_UPDATE, values); in buildUpdateAggregationKeepTogether() 313 if (AggregationExceptions.CONTENT_URI.equals(oper.getUri()) in countExceptionUpdates() 401 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert() 409 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert() 426 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete() 435 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete() 452 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate() [all …]
|
D | RawContactDeltaTests.java | 149 final BuilderWrapper builderWrapper = values.buildDiffWrapper(Data.CONTENT_URI); in testValuesDiffDelete() 196 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 202 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 208 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneInsert() 239 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 245 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 251 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 257 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffUpdateInsert() 282 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate() 288 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testEntityDiffNoneUpdate() [all …]
|
/packages/providers/TvProvider/tests/src/com/android/providers/tv/ |
D | Utils.java | 41 resolver.delete(Channels.CONTENT_URI, null, null); in clearTvProvider() 44 resolver.delete(TvContract.RecordedPrograms.CONTENT_URI, null, null); in clearTvProvider() 45 resolver.delete(TvContract.WatchNextPrograms.CONTENT_URI, null, null); in clearTvProvider() 194 Uri uri = resolver.insert(Channels.CONTENT_URI, values); in insertChannel() 204 Uri uri = resolver.insert(TvContract.Programs.CONTENT_URI, values); in insertPrograms() 217 resolver.query(TvContract.Programs.CONTENT_URI, projection, null, null, null); in queryPrograms() 237 Uri uri = resolver.insert(TvContract.PreviewPrograms.CONTENT_URI, values); in insertPreviewPrograms() 251 TvContract.PreviewPrograms.CONTENT_URI, projection, null, null, null); in queryPreviewPrograms() 270 Uri uri = resolver.insert(RecordedPrograms.CONTENT_URI, values); in insertRecordedPrograms() 283 Cursor cursor = resolver.query(RecordedPrograms.CONTENT_URI, projection, null, null, null); in queryRecordedPrograms() [all …]
|
D | ColumnFilterTest.java | 76 Uri uri = mResolver.insert(Channels.CONTENT_URI, values); in insertChannel() 88 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel() 101 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannel_count() 110 Cursor cursor = mResolver.query(Channels.CONTENT_URI, null, null, null, null); in testQueryChannelWithNullProjection() 120 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testQueryChannelWithNoValidColumn() 134 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testInsertAndQueryChannel() 146 mResolver.update(Channels.CONTENT_URI, values, null, null); in testUpdateChannel() 152 Cursor cursor = mResolver.query(Channels.CONTENT_URI, projection, null, null, null); in testUpdateChannel()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastContentProviderTest.java | 51 public static final Uri CONTENT_URI = Uri.parse("content://cellbroadcasts-app"); field in CellBroadcastContentProviderTest 109 mContentResolver.insert(CONTENT_URI, msg); in testInsert() 122 mContentResolver.delete(CONTENT_URI, null, null); in testDelete() 135 mContentResolver.update(CONTENT_URI, null, null); in testUpdate() 150 Cursor cursor = mContentResolver.query(CONTENT_URI, in testDeleteAll() 155 cursor = mContentResolver.query(CONTENT_URI, CellBroadcastDatabaseHelper.QUERY_COLUMNS, in testDeleteAll() 169 Cursor cursor = mContentResolver.query(CONTENT_URI, in testDeleteBroadcast() 174 cursor = mContentResolver.query(CONTENT_URI, CellBroadcastDatabaseHelper.QUERY_COLUMNS, in testDeleteBroadcast() 186 Cursor cursor = mContentResolver.query(CONTENT_URI, in testMarkSmsSyncPending() 193 cursor = mContentResolver.query(CONTENT_URI, in testMarkSmsSyncPending() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/enterprise/ |
D | CrossProfileCalendarHelperTest.java | 44 mHelper.getCalibratedProjection(projection, Calendars.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForCalendars() 57 mHelper.getCalibratedProjection(projection, Events.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForEvents() 70 mHelper.getCalibratedProjection(projection, Instances.CONTENT_URI); in testProjectionNotInAllowedList_throwErrorForInstances() 78 final String[] projection = mHelper.getCalibratedProjection(null, Calendars.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForCalendars() 85 final String[] projection = mHelper.getCalibratedProjection(null, Events.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForEvents() 91 final String[] projection = mHelper.getCalibratedProjection(null, Instances.CONTENT_URI); in testNoProjection_getFullAllowedListProjectionForInstances()
|
/packages/modules/Bluetooth/android/pandora/server/src/com/android/pandora/ |
D | Pbap.kt | 60 .query(ContactsContract.Contacts.CONTENT_URI, null, null, null, null) in prepareContactList() 71 context.getContentResolver().delete(CallLog.Calls.CONTENT_URI, null, null) in prepareCallLog() 86 context.getContentResolver().insert(CallLog.Calls.CONTENT_URI, contentValues) in addCallLogItem() 98 ContentProviderOperation.newInsert(RawContacts.CONTENT_URI) in addContact() 105 ContentProviderOperation.newInsert(Data.CONTENT_URI) in addContact() 113 ContentProviderOperation.newInsert(Data.CONTENT_URI) in addContact() 122 ContentProviderOperation.newInsert(Data.CONTENT_URI) in addContact()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
D | ConversationImagePartsView.java | 41 + DatabaseHelper.PARTS_TABLE + '.' + PartColumns.CONTENT_URI 45 + DatabaseHelper.PARTS_TABLE + '.' + PartColumns.CONTENT_URI 46 + " as " + Columns.CONTENT_URI + ", " 80 static final String CONTENT_URI = PhotoViewColumns.CONTENT_URI; field in ConversationImagePartsView.Columns 93 PhotoViewColumns.CONTENT_URI,
|