Wait for starting logcat on testMemoryAllocationLimit

Symptom:
MemoryTests#testMemoryAllocationLimit is sometimes failed if
allocstress is finished within 5 seconds.

Root cause:
NativeDevice waits 5 seconds before starting logcat. So if allocstress
is finished within 5 seconds on testMemoryAllocationLimit, the test
can't take any logcat from the Device object and it is failed.

Solution:
Wait 5 seconds when testMemoryAllocationLimit starts taking logcat from
NativeDevice.

Bug: 145560218
Change-Id: If3cc34f2a79444967b1e3ec18860d1cf32bce8a6
1 file changed