Merge "Wait for camera extensions service during initialization" into sc-qpr1-dev am: 2f68a663a9

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15838336

Change-Id: I3470b2d3fbb888a81217c69ba8a2476281f233ec
This commit is contained in:
TreeHugger Robot
2021-09-21 18:38:26 +00:00
committed by Automerger Merge Worker

View File

@@ -263,12 +263,12 @@ public final class CameraExtensionCharacteristics {
@Override @Override
public void onServiceConnected(ComponentName component, IBinder binder) { public void onServiceConnected(ComponentName component, IBinder binder) {
mProxy = ICameraExtensionsProxyService.Stub.asInterface(binder); mProxy = ICameraExtensionsProxyService.Stub.asInterface(binder);
mInitFuture.setStatus(true);
try { try {
mSupportsAdvancedExtensions = mProxy.advancedExtensionsSupported(); mSupportsAdvancedExtensions = mProxy.advancedExtensionsSupported();
} catch (RemoteException e) { } catch (RemoteException e) {
Log.e(TAG, "Remote IPC failed!"); Log.e(TAG, "Remote IPC failed!");
} }
mInitFuture.setStatus(true);
} }
}; };
ctx.bindService(intent, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT | ctx.bindService(intent, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT |