Deliver image results without blocking.

The original SynchronousQueue could cause the main thread to hang
and drop the image result, so switch over to LinkedBlockingQueue to
avoid blocking.

Bug: 62954396
Test: cts-tradefed run commandAndExit cts-dev -m CtsProviderTestCases -t android.provider.cts.MediaStoreUiTest#testImageCapture
Change-Id: Ieea191ffe566d35b33d6f39bd32a880793dfe0b3
(cherry picked from commit de14a969031b68ed22592dac220e2aa6c9761892)
diff --git a/tests/tests/provider/src/android/provider/cts/GetResultActivity.java b/tests/tests/provider/src/android/provider/cts/GetResultActivity.java
index 0edc617..5a55eec 100644
--- a/tests/tests/provider/src/android/provider/cts/GetResultActivity.java
+++ b/tests/tests/provider/src/android/provider/cts/GetResultActivity.java
@@ -21,11 +21,11 @@
 import android.os.Bundle;
 import android.view.WindowManager;
 
-import java.util.concurrent.SynchronousQueue;
+import java.util.concurrent.LinkedBlockingQueue;
 import java.util.concurrent.TimeUnit;
 
 public class GetResultActivity extends Activity {
-    private static SynchronousQueue<Result> sResult;
+    private static LinkedBlockingQueue<Result> sResult;
 
     public static class Result {
         public final int requestCode;
@@ -58,7 +58,7 @@
     }
 
     public void clearResult() {
-        sResult = new SynchronousQueue<>();
+        sResult = new LinkedBlockingQueue<>();
     }
 
     public Result getResult() {