diff options
author | android-build-prod (mdb) <android-build-team-robot@google.com> | 2020-10-15 20:06:51 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2020-10-15 20:06:51 +0000 |
commit | 8045e4c96aff0ace4699e1a266f1569bc410f39e (patch) | |
tree | 92c105ed82712b0d7798b3cc61a392a7ffc07333 | |
parent | 3e34c83abd626af027a7b95a983dfae0ee76e163 (diff) | |
parent | 6acd9b912ab61ba403813466690d58dec579aaac (diff) | |
download | cts-sparse-6908526-L89100000737604462.tar.gz |
Merge "Snap for 6906805 from ef9bca7da4c8bc91269f586bb7672afec8ee25b0 to android10-tests-release" into android10-tests-releasesparse-6908526-L89100000737604462
-rw-r--r-- | tests/camera/src/android/hardware/cts/CameraGLTest.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/camera/src/android/hardware/cts/CameraGLTest.java b/tests/camera/src/android/hardware/cts/CameraGLTest.java index c83f074853f..8f21737811d 100644 --- a/tests/camera/src/android/hardware/cts/CameraGLTest.java +++ b/tests/camera/src/android/hardware/cts/CameraGLTest.java @@ -133,15 +133,15 @@ public class CameraGLTest { // Save the looper so that we can terminate this thread // after we are done with it. mLooper = Looper.myLooper(); - // These must be instantiated outside the UI thread, since the - // UI thread will be doing a lot of waiting, stopping callbacks. - mCamera = Camera.open(cameraId); try { mIsExternalCamera = CameraUtils.isExternal( mActivityRule.getActivity().getApplicationContext(), cameraId); } catch (Exception e) { Log.e(TAG, "Unable to query external camera!" + e); } + // These must be instantiated outside the UI thread, since the + // UI thread will be doing a lot of waiting, stopping callbacks. + mCamera = Camera.open(cameraId); mSurfaceTexture = new SurfaceTexture(mRenderer.getTextureID()); Log.v(TAG, "Camera " + cameraId + " is opened."); startDone.open(); |