Loading core/java/android/hardware/camera2/CameraManager.java +2 −7 Original line number Diff line number Diff line Loading @@ -81,13 +81,8 @@ public final class CameraManager { mCameraService = CameraBinderDecorator.newInstance(cameraServiceRaw); try { int err = CameraMetadataNative.nativeSetupGlobalVendorTagDescriptor(); if (err == CameraBinderDecorator.EOPNOTSUPP) { Log.w(TAG, "HAL version doesn't vendor tags."); } else { CameraBinderDecorator.throwOnError(CameraMetadataNative. nativeSetupGlobalVendorTagDescriptor()); } CameraBinderDecorator.throwOnError( CameraMetadataNative.nativeSetupGlobalVendorTagDescriptor()); } catch(CameraRuntimeException e) { throw new IllegalStateException("Failed to setup camera vendor tags", e.asChecked()); Loading core/jni/android_hardware_camera2_CameraMetadata.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -579,9 +579,14 @@ static jint CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jobject t sp<VendorTagDescriptor> desc; err = cameraService->getCameraVendorTagDescriptor(/*out*/desc); if (err != OK) { ALOGE("%s: Failed to setup vendor tag descriptors, received error %s (%d)", __FUNCTION__, strerror(-err), err); if (err == -EOPNOTSUPP) { ALOGW("%s: Camera HAL too old; does not support vendor tags", __FUNCTION__); VendorTagDescriptor::clearGlobalVendorTagDescriptor(); return OK; } else if (err != OK) { ALOGE("%s: Failed to setup vendor tag descriptors, received error %s (%d)", __FUNCTION__, strerror(-err), err); return err; } Loading Loading
core/java/android/hardware/camera2/CameraManager.java +2 −7 Original line number Diff line number Diff line Loading @@ -81,13 +81,8 @@ public final class CameraManager { mCameraService = CameraBinderDecorator.newInstance(cameraServiceRaw); try { int err = CameraMetadataNative.nativeSetupGlobalVendorTagDescriptor(); if (err == CameraBinderDecorator.EOPNOTSUPP) { Log.w(TAG, "HAL version doesn't vendor tags."); } else { CameraBinderDecorator.throwOnError(CameraMetadataNative. nativeSetupGlobalVendorTagDescriptor()); } CameraBinderDecorator.throwOnError( CameraMetadataNative.nativeSetupGlobalVendorTagDescriptor()); } catch(CameraRuntimeException e) { throw new IllegalStateException("Failed to setup camera vendor tags", e.asChecked()); Loading
core/jni/android_hardware_camera2_CameraMetadata.cpp +8 −3 Original line number Diff line number Diff line Loading @@ -579,9 +579,14 @@ static jint CameraMetadata_setupGlobalVendorTagDescriptor(JNIEnv *env, jobject t sp<VendorTagDescriptor> desc; err = cameraService->getCameraVendorTagDescriptor(/*out*/desc); if (err != OK) { ALOGE("%s: Failed to setup vendor tag descriptors, received error %s (%d)", __FUNCTION__, strerror(-err), err); if (err == -EOPNOTSUPP) { ALOGW("%s: Camera HAL too old; does not support vendor tags", __FUNCTION__); VendorTagDescriptor::clearGlobalVendorTagDescriptor(); return OK; } else if (err != OK) { ALOGE("%s: Failed to setup vendor tag descriptors, received error %s (%d)", __FUNCTION__, strerror(-err), err); return err; } Loading