/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
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 | 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 | ContactsProvider2Test.java | 141 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 142 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithEnterpriseDirectoryToLocalUri() 158 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 159 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithPersonalDirectoryToLocalUri() 173 Uri localUri = ContactsProvider2.convertToLocalUri(enterpriseUri, Phone.CONTENT_URI); in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 174 Uri expectedUri = Phone.CONTENT_URI.buildUpon().appendPath(phoneNumber) in testConvertEnterpriseUriWithoutDirectoryToLocalUri() 181 assertProjection(Contacts.CONTENT_URI, new String[]{ in testContactsProjection() 358 assertProjection(RawContacts.CONTENT_URI, new String[]{ in testRawContactsProjection() 398 assertProjection(Data.CONTENT_URI, new String[]{ in testDataProjection() 566 Uri.withAppendedPath(ContentUris.withAppendedId(Contacts.CONTENT_URI, 0), in testEntityProjection() [all …]
|
D | ContactMetadataProviderTest.java | 131 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testGetMetadataByAccount() 167 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailOnInsertMetadataForSameAccountIdAndBackupId() 178 Uri rawContactUri = ContentUris.withAppendedId(RawContacts.CONTENT_URI, rawContactId); in testInsertAndUpdateMetadataSync() 213 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertAndUpdateMetadataSync() 249 mResolver.insert(MetadataSync.CONTENT_URI, updatedValues); in testInsertAndUpdateMetadataSync() 286 Uri metadataUri = mResolver.insert(MetadataSync.CONTENT_URI, insertedValues); in testInsertMetadata() 318 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testFailUpdateDeletedMetadata() 337 mResolver.insert(MetadataSync.CONTENT_URI, newValues); in testInsertWithNullData() 346 Cursor c = mResolver.query(MetadataSync.CONTENT_URI, null, SELECTION_BY_TEST_ACCOUNT1, in testDeleteMetadata() 349 int numOfDeletion = mResolver.delete(MetadataSync.CONTENT_URI, SELECTION_BY_TEST_ACCOUNT1, in testDeleteMetadata() [all …]
|
D | ContactLookupKeyTest.java | 55 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingDisplayNameAndNoAccount() 73 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "123"); in testLookupKeyUsingSourceIdAndNoAccount() 76 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.SOURCE_ID, "4.5.6"); in testLookupKeyUsingSourceIdAndNoAccount() 79 storeValue(RawContacts.CONTENT_URI, rawContactId3, RawContacts.SOURCE_ID, "http://foo?bar"); in testLookupKeyUsingSourceIdAndNoAccount() 90 assertStoredValue(ContentUris.withAppendedId(Contacts.CONTENT_URI, contactId), in testLookupKeyUsingSourceIdAndNoAccount() 99 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_TYPE, "foo"); in testLookupKeySameSourceIdDifferentAccounts() 100 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.ACCOUNT_NAME, "FOO"); in testLookupKeySameSourceIdDifferentAccounts() 101 storeValue(RawContacts.CONTENT_URI, rawContactId1, RawContacts.SOURCE_ID, "1"); in testLookupKeySameSourceIdDifferentAccounts() 104 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_TYPE, "bar"); in testLookupKeySameSourceIdDifferentAccounts() 105 storeValue(RawContacts.CONTENT_URI, rawContactId2, RawContacts.ACCOUNT_NAME, "BAR"); in testLookupKeySameSourceIdDifferentAccounts() [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 | CallLogProviderTest.java | 95 Uri uri = mResolver.insert(Calls.CONTENT_URI, values); in testInsert_RegularCallRecord() 119 mResolver.insert(Calls.CONTENT_URI, values); in testInsert_VoicemailCallRecord() 158 int count = mResolver.delete(Calls.CONTENT_URI, Calls._ID + "=" in testDelete() 166 mResolver.insert(Calls.CONTENT_URI, values); in testCallLogFilter() 230 assertEquals(2, getCount(Calls.CONTENT_URI, null, null)); in testDifferentContentUris() 238 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitParamReturnsCorrectLimit() 246 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.INCOMING_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries() 249 mResolver.insert(Calls.CONTENT_URI, getDefaultValues(Calls.MISSED_TYPE)); in testLimitAndOffsetParamReturnsCorrectEntries() 252 Uri uri = Calls.CONTENT_URI.buildUpon() in testLimitAndOffsetParamReturnsCorrectEntries() 282 Uri uri = Calls.CONTENT_URI.buildUpon() in assertParamThrowsIllegalArgumentException() [all …]
|
D | BaseContactsProvider2Test.java | 218 final Uri uri = TestUtil.maybeAddAccountQueryParameters(Groups.CONTENT_URI, account); in createGroup() 237 mResolver.insert(Settings.CONTENT_URI, values); in createSettings() 260 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertOrganization() 296 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoneNumber() 333 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertEmail() 350 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertSipAddress() 361 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertNickname() 371 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress() 378 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPostalAddress() 387 Uri resultUri = mResolver.insert(Data.CONTENT_URI, values); in insertPhoto() [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 | ContactDirectoryManagerTest.java | 186 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, in testScanAllProviders() 271 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled() 289 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageInstalled() 331 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled() 340 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageUninstalled() 377 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced() 389 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageReplaced() 435 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed() 454 cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testPackageRenamed() 502 Cursor cursor = mResolver.query(Directory.CONTENT_URI, null, null, null, null); in testAccountRemoval() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTests.java | 159 ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId), in getMessageCount() 318 return Account.CONTENT_URI.buildUpon().appendEncodedPath("" + account.mId).build(); in getEclairStyleShortcutUri() 368 c = mMockContext.getContentResolver().query(Mailbox.CONTENT_URI, in getUnreadCount() 390 c = mMockContext.getContentResolver().query(EmailContent.Body.CONTENT_URI, in loadBodyForMessageId() 483 c = mMockContext.getContentResolver().query(Attachment.CONTENT_URI, in testMessageWithAttachment() 535 c = mMockContext.getContentResolver().query(Attachment.CONTENT_URI, in testMessageSaveWithJustAttachments() 621 int numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 625 Uri uri = ContentUris.withAppendedId(Account.CONTENT_URI, account1Id); in testAccountDelete() 629 numBoxes = EmailContent.count(mMockContext, Account.CONTENT_URI, null, null); in testAccountDelete() 633 uri = ContentUris.withAppendedId(Account.CONTENT_URI, account2Id); in testAccountDelete() [all …]
|
D | AccountBackupRestoreTests.java | 98 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 99 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore() 106 cr.delete(Account.CONTENT_URI, null, null); in testBackupAndRestore() 107 cr.delete(HostAuth.CONTENT_URI, null, null); in testBackupAndRestore() 110 assertEquals(0, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 111 assertEquals(0, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore() 119 assertEquals(2, EmailContent.count(mMockContext, Account.CONTENT_URI)); in testBackupAndRestore() 120 assertEquals(4, EmailContent.count(mMockContext, HostAuth.CONTENT_URI)); in testBackupAndRestore() 123 Cursor c = cr.query(Account.CONTENT_URI, Account.CONTENT_PROJECTION, null, null, "_id ASC"); in testBackupAndRestore()
|
/packages/providers/BlockedNumberProvider/tests/src/com/android/providers/blockednumber/ |
D | BlockedNumberProviderTest.java | 116 BlockedNumbers.CONTENT_URI)); in testGetType() 119 ContentUris.withAppendedId(BlockedNumbers.CONTENT_URI, 1))); in testGetType() 149 assertRowCount(7, BlockedNumbers.CONTENT_URI); in testInsert() 162 Cursor c = mResolver.query(BlockedNumbers.CONTENT_URI, null, null, null, null); in testChangesNotified() 187 final Uri uri = mResolver.insert(BlockedNumbers.CONTENT_URI, cv); in insert() 200 BlockedNumbers.CONTENT_URI, cv); in insertExpectingFailure() 216 assertRowCount(5, BlockedNumbers.CONTENT_URI); in testDelete() 221 assertRowCount(4, BlockedNumbers.CONTENT_URI); in testDelete() 231 assertRowCount(3, BlockedNumbers.CONTENT_URI); in testDelete() 233 mResolver.delete(BlockedNumbers.CONTENT_URI, in testDelete() [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/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
D | EmailContent.java | 148 public static Uri CONTENT_URI; field in EmailContent 178 CONTENT_URI = Uri.parse("content://" + AUTHORITY); in init() 474 public static Uri CONTENT_URI; field in EmailContent.Body 477 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/body"); in initBody() 507 mBaseUri = CONTENT_URI; in Body() 540 Cursor c = context.getContentResolver().query(Body.CONTENT_URI, in restoreBodyWithMessageId() 551 return Utility.getFirstRowLong(context, Body.CONTENT_URI, in lookupBodyIdWithMessageId() 567 resolver.insert(CONTENT_URI, values); in updateBodyWithMessageId() 569 final Uri uri = ContentUris.withAppendedId(CONTENT_URI, bodyId); in updateBodyWithMessageId() 576 return Utility.getFirstRowLong(context, Body.CONTENT_URI, in restoreBodySourceKey() [all …]
|
D | MessageMove.java | 29 public static Uri CONTENT_URI; field in MessageMove 106 CONTENT_URI = EmailContent.CONTENT_URI.buildUpon().appendEncodedPath(PATH).build(); in init() 121 final Cursor c = getCursor(cr, CONTENT_URI, ProjectionMoveQuery.PROJECTION, accountId); in getMoves() 179 deleteRowsForMessages(cr, CONTENT_URI, unmovedMessages, unmovedMessagesCount); in getMoves() 195 deleteRowsForMessages(cr, CONTENT_URI, messageKeys, count); in upsyncSuccessful() 206 retryMessages(cr, CONTENT_URI, messageKeys, count); in upsyncRetry() 217 failMessages(cr, CONTENT_URI, messageKeys, count); in upsyncFail() 230 final Cursor moveCursor = cr.query(CONTENT_URI, ProjectionLastSyncedMailboxQuery.PROJECTION, in getLastSyncedMailboxForMessage() 247 EmailContent.Message.CONTENT_URI, messageId), in getLastSyncedMailboxForMessage()
|
D | Mailbox.java | 79 public static Uri CONTENT_URI; field in Mailbox 83 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailbox"); in initMailbox() 84 MESSAGE_COUNT_URI = Uri.parse(EmailContent.CONTENT_URI + "/mailboxCount"); in initMailbox() 414 mBaseUri = CONTENT_URI; in Mailbox() 458 Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, id); in restoreMailboxWithId() 514 Mailbox.CONTENT_URI, in restoreMailboxForPath() 577 mBaseUri = CONTENT_URI; in restore() 667 return Utility.getFirstRowLong(context, Mailbox.CONTENT_URI, in findMailboxOfType() 702 final Uri url = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId); in getMailboxType() 711 final Uri url = ContentUris.withAppendedId(Mailbox.CONTENT_URI, mailboxId); in getDisplayName() [all …]
|
D | Account.java | 115 public static Uri CONTENT_URI; field in Account 120 CONTENT_URI = Uri.parse(EmailContent.CONTENT_URI + "/account"); in initAccount() 121 RESET_NEW_MESSAGE_COUNT_URI = Uri.parse(EmailContent.CONTENT_URI + "/resetNewMessageCount"); in initAccount() 200 mBaseUri = CONTENT_URI; in Account() 215 Account.CONTENT_URI, Account.CONTENT_PROJECTION, id, observer); in restoreAccountWithId() 224 final Cursor c = context.getContentResolver().query(CONTENT_URI, in restoreAccountWithAddress() 243 return Account.CONTENT_URI; in getContentNotificationUri() 266 mBaseUri = CONTENT_URI; in restore() 477 CONTENT_URI, ID_PROJECTION, null, null, null); in getDefaultAccountId() 570 return null != Utility.getFirstRowLong(context, CONTENT_URI, ID_PROJECTION, in isValidId() [all …]
|
D | MailboxUtilities.java | 74 Cursor childCursor = resolver.query(Mailbox.CONTENT_URI, in setFlagsAndChildrensParentKey() 84 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, childId), in setFlagsAndChildrensParentKey() 99 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, parentId), in setFlagsAndChildrensParentKey() 112 Cursor cursor = context.getContentResolver().query(Mailbox.CONTENT_URI, in setFlagsAndChildrensParentKey() 142 resolver.query(Mailbox.CONTENT_URI, Mailbox.CONTENT_PROJECTION, in fixupUninitializedParentKeys() 162 resolver.update(Mailbox.CONTENT_URI, values, noParentKeySelection, null); in fixupUninitializedParentKeys() 173 ContentUris.withAppendedId(Account.CONTENT_URI, account.mId), cv, null, null); in setAccountSyncAdapterFlag() 214 resolver.update(Mailbox.CONTENT_URI, values, accountSelector, null); in checkMailboxConsistency() 256 Cursor c = resolver.query(Mailbox.CONTENT_URI, HIERARCHY_PROJECTION, accountSelector, in setupHierarchicalNames() 272 resolver.update(ContentUris.withAppendedId(Mailbox.CONTENT_URI, id), values, null, in setupHierarchicalNames()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaListTests.java | 230 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_ASSERT, values); in buildAssertVersion() 236 return buildCPOWrapper(RawContacts.CONTENT_URI, TYPE_UPDATE, values); in buildAggregationModeUpdate() 251 return buildCPOWrapper(AggregationExceptions.CONTENT_URI, TYPE_UPDATE, values); in buildUpdateAggregationKeepTogether() 302 if (AggregationExceptions.CONTENT_URI.equals(oper.getUri()) in countExceptionUpdates() 390 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert() 398 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteInsert() 415 buildCPOWrapper(Data.CONTENT_URI, TYPE_UPDATE, phone.getAfter()), in testMergeDataLocalUpdateRemoteDelete() 424 buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, buildDataInsert(phone, CONTACT_BOB)), in testMergeDataLocalUpdateRemoteDelete() 441 buildDelete(Data.CONTENT_URI), in testMergeDataLocalDeleteRemoteUpdate() 449 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 …]
|
D | RawContactModifierTests.java | 391 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 397 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 403 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 415 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 434 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimEmptySpaces() 442 RawContactDeltaListTests.buildDelete(RawContacts.CONTENT_URI)); in testTrimEmptySpaces() 460 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid() 469 RawContactDeltaListTests.buildCPOWrapper(Data.CONTENT_URI, TYPE_INSERT, in testTrimLeaveValid() 526 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() 532 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptyAfterUpdate() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | CalendarProvider2Test.java | 98 private Uri mEventsUri = Events.CONTENT_URI; 99 private Uri mCalendarsUri = Calendars.CONTENT_URI; 1113 Uri uri = CalendarContract.Colors.CONTENT_URI; in insertColor() 1120 Uri uri = CalendarContract.Colors.CONTENT_URI; in updateAndCheckColor() 1243 Uri uri = updatedUri(ContentUris.withAppendedId(Events.CONTENT_URI, id), true, account, in deleteMatchingEvents() 1312 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEvents() 1337 Uri uri = ContentUris.withAppendedId(Events.CONTENT_URI, id); in updateMatchingEventsStatusOnly() 1425 Uri colSyncUri = asSyncAdapter(Colors.CONTENT_URI, DEFAULT_ACCOUNT, in testInsertUpdateDeleteColor() 1435 Cursor cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor() 1444 cursor = mResolver.query(Colors.CONTENT_URI, new String[] {Colors.COLOR_KEY}, in testInsertUpdateDeleteColor() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/aggregation/ |
D | ContactAggregatorTest.java | 91 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions() 105 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 120 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 1169 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseLargerPhotoByDimensions() 1191 ContentUris.withAppendedId(Data.CONTENT_URI, nebulaDataId), in testChooseLargerPhotoByFileSize() 1214 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseFilePhotoOverThumbnail() 1241 ContentUris.withAppendedId(Data.CONTENT_URI, cupcakeEarthDataId), in testFallbackToAccountPriorityForSamePhoto() 1377 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions() 1382 storeValue(RawContacts.CONTENT_URI, rawContactId2, in testAggregationModeSuspendedSeparateTransactions() 1389 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions() [all …]
|
D | ContactAggregator2Test.java | 91 Cursor c = mResolver.query(AggregationExceptions.CONTENT_URI, in testCrudAggregationExceptions() 105 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 120 c = mResolver.query(AggregationExceptions.CONTENT_URI, AGGREGATION_EXCEPTION_PROJECTION, in testCrudAggregationExceptions() 1178 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseLargerPhotoByDimensions() 1200 ContentUris.withAppendedId(Data.CONTENT_URI, nebulaDataId), in testChooseLargerPhotoByFileSize() 1223 ContentUris.withAppendedId(Data.CONTENT_URI, normalEarthDataId), in testChooseFilePhotoOverThumbnail() 1250 ContentUris.withAppendedId(Data.CONTENT_URI, cupcakeEarthDataId), in testFallbackToAccountPriorityForSamePhoto() 1386 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions() 1391 storeValue(RawContacts.CONTENT_URI, rawContactId2, in testAggregationModeSuspendedSeparateTransactions() 1398 storeValue(RawContacts.CONTENT_URI, rawContactId1, in testAggregationModeSuspendedSeparateTransactions() [all …]
|