Fix PerformanceTest#testBulk to accumulate batch notifyChange

Previously, testBulk always verified that the received uri size is same
as requested bulk operation count. Recently, we changed notifyChange()
to partition uri set into subsets of 256. This broke the testBulk test
which expected exact number of changed uris in notifyChange().

This change fixes testBulk() by accumulating changed uri count, and
releasing wait latch when accumulated uri count reaches expected change
count.

Bug: 167633185
Test: atest com.android.providers.media.client.PerformanceTest#testBulk
Change-Id: Ib3ed1560d15b57ec6b82e2f98e2faa25a20e1350
1 file changed