Fix flaky test case

The callback is called from executor, so verify it with timeout time.

Bug: 220358587
Test: atest FrameworksCoreTests:android.companion.virtual, run over 30
times locally and it all passed

Change-Id: Idf598396bfb0b09fea8f755e170fea0b5f4eb98e
1 file changed