Searched refs:mUpdateStats (Results 1 – 3 of 3) sorted by relevance
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | ContactsIndexerUserInstanceTest.java | 118 private ContactsUpdateStats mUpdateStats; field in ContactsIndexerUserInstanceTest 131 mUpdateStats = new ContactsUpdateStats(); in setUp() 313 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testCp2SyncFirstRun_subsequentRunWithNoScheduledJob_schedulesFullUpdateJob() 336 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testCp2SyncFirstRun_subsequentRunWithMatchingPeriodicJob_doesNotScheduleFullUpdateJob() 359 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testCp2SyncFirstRun_subsequentRunWithMatchingImmediateJob_doesNotScheduleFullUpdateJob() 383 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testCp2SyncFirstRun_subsequentRunWithNonMatchingScheduledJob_withCheck_schedulesJob() 413 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testCp2SyncFirstRun_subsequentRunWithNonMatchingScheduledJob_withoutCheck_doesNotScheduleJob() 442 mInstance.doFullUpdateInternalAsync(new CancellationSignal(), mUpdateStats), in testFullUpdate() 460 mInstance.doDeltaUpdateAsync(/*indexingLimit=*/ -1, mUpdateStats), in testFullUpdate_setsPreviousLastContactUpdatedTimestamp() 464 assertThat(mUpdateStats.mLastContactUpdatedTimeMillis).isAtLeast( in testFullUpdate_setsPreviousLastContactUpdatedTimestamp() [all …]
|
D | ContactsIndexerImplTest.java | 62 private ContactsUpdateStats mUpdateStats; field in ContactsIndexerImplTest 69 mUpdateStats = new ContactsUpdateStats(); in setUp() 127 mUpdateStats); in testBatcher_noFlushBeforeReachingLimit() 146 ).setCreationTimestampMillis(0), mUpdateStats); in testBatcher_autoFlush() 172 batcher.add(builderHelper1, mUpdateStats); in testBatcher_contactFingerprintSame_notIndexed() 173 batcher.add(builderHelper2, mUpdateStats); in testBatcher_contactFingerprintSame_notIndexed() 204 batcher.add(sameAsContact1, mUpdateStats); in testBatcher_contactFingerprintDifferent_notIndexedButBatched() 205 batcher.add(notSameAsContact2, mUpdateStats); in testBatcher_contactFingerprintDifferent_notIndexedButBatched() 245 batcher.add(sameAsContact1, mUpdateStats); in testBatcher_contactFingerprintDifferent_Indexed() 246 batcher.add(notSameAsContact2, mUpdateStats); in testBatcher_contactFingerprintDifferent_Indexed() [all …]
|
D | AppSearchHelperTest.java | 78 private ContactsUpdateStats mUpdateStats; field in AppSearchHelperTest 87 mUpdateStats = new ContactsUpdateStats(); in setUp() 153 mUpdateStats, /*shouldKeepUpdatingOnError=*/ true).get(); in testIndexContacts() 167 mAppSearchHelper.indexContactsAsync(generatePersonData(50), mUpdateStats, in testIndexContacts_shouldCompleteNormallyOnError() 183 mUpdateStats, /*shouldKeepUpdatingOnError=*/ false); in testIndexContacts_shouldNotCompleteNormallyOnError() 206 Collections.emptyList(), mUpdateStats, /*shouldKeepUpdatingOnError=*/ false); in testIndexContacts_outOfSpace_shouldNeverCompleteNormally() 209 assertThat(mUpdateStats.mUpdateStatuses).containsExactly( in testIndexContacts_outOfSpace_shouldNeverCompleteNormally() 212 mUpdateStats.clear(); in testIndexContacts_outOfSpace_shouldNeverCompleteNormally() 216 mUpdateStats, /*shouldKeepUpdatingOnError=*/ true); in testIndexContacts_outOfSpace_shouldNeverCompleteNormally() 220 assertThat(mUpdateStats.mUpdateStatuses).containsExactly( in testIndexContacts_outOfSpace_shouldNeverCompleteNormally() [all …]
|