Home
last modified time | relevance | path

Searched refs:mDeleteStatuses (Results 1 – 6 of 6) sorted by relevance

/packages/modules/AppSearch/service/java/com/android/server/appsearch/contactsindexer/
DContactsUpdateStats.java88 Set<Integer> mDeleteStatuses = new ArraySet<>(); field in ContactsUpdateStats
142 mDeleteStatuses.clear(); in clear()
169 + mDeleteStatuses.toString() in toString()
DContactsIndexerUserInstance.java381 && updateStats.mDeleteStatuses.isEmpty()) { in doFullUpdateInternalAsync()
535 && updateStats.mDeleteStatuses.isEmpty()) { in doDeltaUpdateAsync()
608 if (updateStats.mDeleteStatuses.isEmpty()) {
610 updateStats.mDeleteStatuses.add(AppSearchResult.RESULT_OK);
625 int[] deleteStatusArr = new int[updateStats.mDeleteStatuses.size()];
632 for (int deleteStatus : updateStats.mDeleteStatuses) {
DContactsProviderUtil.java98 updateStats.mDeleteStatuses.add(ContactsUpdateStats.ERROR_CODE_CP2_NULL_CURSOR); in getDeletedContactIds()
123 updateStats.mDeleteStatuses.add( in getDeletedContactIds()
DAppSearchHelper.java460 updateStats.mDeleteStatuses.add(errorCode); in removeContactsByIdAsync()
484 updateStats.mDeleteStatuses.add( in removeContactsByIdAsync()
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/
DContactsIndexerUserInstanceTest.java495 assertThat(mUpdateStats.mDeleteStatuses).hasSize(1); in testDeltaUpdate_insertedContacts()
496 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_OK); in testDeltaUpdate_insertedContacts()
580 assertThat(mUpdateStats.mDeleteStatuses).hasSize(1); in testDeltaUpdate_deletedContacts()
581 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_OK); in testDeltaUpdate_deletedContacts()
646 assertThat(mUpdateStats.mDeleteStatuses).hasSize(1); in testDeltaUpdate_insertedAndDeletedContacts()
647 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_NOT_FOUND); in testDeltaUpdate_insertedAndDeletedContacts()
721 assertThat(mUpdateStats.mDeleteStatuses).hasSize(1); in testDeltaUpdate_insertedAndDeletedContacts_withDeletionSucceed()
722 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_OK); in testDeltaUpdate_insertedAndDeletedContacts_withDeletionSucceed()
890 updateStats.mDeleteStatuses.add(AppSearchResult.RESULT_INTERNAL_ERROR); in testLogStats_succeedsWhenMoreUpdateStatusCodesThanDeleteStatusCodes()
959 assertThat(mUpdateStats.mDeleteStatuses).hasSize(1); in testConcurrentUpdates_updatesDoNotInterfereWithEachOther()
[all …]
DAppSearchHelperTest.java257 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_NOT_FOUND); in testRemoveContacts_notFound_shouldCompleteNormallyAlways()
264 assertThat(mUpdateStats.mDeleteStatuses).containsExactly(AppSearchResult.RESULT_NOT_FOUND); in testRemoveContacts_notFound_shouldCompleteNormallyAlways()