1 /* 2 * This file is auto-generated. DO NOT MODIFY. 3 * Using: out/host/linux-x86/bin/aidl-cpp -dout/soong/.temp/sbox/030bdc68cd51619777b234b16aba4350324e44b8/out/android/hardware/camera2/ICameraInjectionCallback.cpp.d --ninja -Iframeworks/av/camera/aidl -Iframeworks/native/aidl/gui -Iframeworks/native/libs/permission/aidl -Ihardware/interfaces/common/fmq/aidl -Ihardware/interfaces/common/aidl -t --min_sdk_version=platform_apis -Iframeworks/av/camera/aidl/ frameworks/av/camera/aidl/android/hardware/camera2/ICameraInjectionCallback.aidl out/soong/.temp/sbox/030bdc68cd51619777b234b16aba4350324e44b8/out out/soong/.temp/sbox/030bdc68cd51619777b234b16aba4350324e44b8/out/android/hardware/camera2/ICameraInjectionCallback.cpp 4 * 5 * DO NOT CHECK THIS FILE INTO A CODE TREE (e.g. git, etc..). 6 * ALWAYS GENERATE THIS FILE FROM UPDATED AIDL COMPILER 7 * AS A BUILD INTERMEDIATE ONLY. THIS IS NOT SOURCE CODE. 8 */ 9 #pragma once 10 11 #include <binder/IBinder.h> 12 #include <binder/IInterface.h> 13 #include <binder/Status.h> 14 #include <binder/Trace.h> 15 #include <cstdint> 16 #include <utils/StrongPointer.h> 17 18 namespace android { 19 namespace hardware { 20 namespace camera2 { 21 class LIBBINDER_EXPORTED ICameraInjectionCallbackDelegator; 22 23 class LIBBINDER_EXPORTED ICameraInjectionCallback : public ::android::IInterface { 24 public: 25 typedef ICameraInjectionCallbackDelegator DefaultDelegator; 26 DECLARE_META_INTERFACE(CameraInjectionCallback) 27 enum : int32_t { ERROR_INJECTION_INVALID_ERROR = -1 }; 28 enum : int32_t { ERROR_INJECTION_SESSION = 0 }; 29 enum : int32_t { ERROR_INJECTION_SERVICE = 1 }; 30 enum : int32_t { ERROR_INJECTION_UNSUPPORTED = 2 }; 31 virtual ::android::binder::Status onInjectionError(int32_t errorCode) = 0; 32 }; // class ICameraInjectionCallback 33 34 class LIBBINDER_EXPORTED ICameraInjectionCallbackDefault : public ICameraInjectionCallback { 35 public: onAsBinder()36 ::android::IBinder* onAsBinder() override { 37 return nullptr; 38 } onInjectionError(int32_t)39 ::android::binder::Status onInjectionError(int32_t /*errorCode*/) override { 40 return ::android::binder::Status::fromStatusT(::android::UNKNOWN_TRANSACTION); 41 } 42 }; // class ICameraInjectionCallbackDefault 43 } // namespace camera2 44 } // namespace hardware 45 } // namespace android 46