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
Merged-In: Ib3ed1560d15b57ec6b82e2f98e2faa25a20e1350
Change-Id: Ib3ed1560d15b57ec6b82e2f98e2faa25a20e1350
(cherry picked from commit e9736d67a9ed571888e0f867c1f62acde80e504e)
1 file changed