Add asynchronous wait time for adjustVolume().

After calling 'adjustVolume(ADJUST_SAME, 0)', the volume will not be changed. In assertStreamVolumeEquals(), the verification will be passed directly without waiting for POLL_TIME_VOLUME_ADJUST.
If the maxMusicVolume value is relatively large in the for loop, for example, greater than 150, because adjustVolume() is executed asynchronously, it will affect the completion of the next adjustVolume(ADJUST_RAISE, 0), so need to add ASYNC_TIMING_TOLERANCE_MS.

Bug: 201381052
Test: run cts-dev -m CtsMediaTestCases -t android.media.cts.AudioManagerTest#testVolume

Signed-off-by: duanyangqi <duanyangqi@xiaomi.corp-partner.google.com>
Change-Id: I3816ef3575c8dcfc6cdd0f01b8673cf5a8fafa8b
Merged-In: I3816ef3575c8dcfc6cdd0f01b8673cf5a8fafa8b
1 file changed