/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/ |
D | guest_type.h | 30 class GuestType; variable 33 GuestType(Type) -> GuestType<Type>; 39 inline constexpr bool kIsGuestType<GuestType<Type1, Type2>> = true; 42 class GuestType< 49 constexpr GuestType(const StructType& value) : value_(value) {} in GuestType() function 50 constexpr GuestType(StructType&& value) : value_(value) {} in GuestType() function 51 constexpr GuestType() = default; 52 constexpr GuestType(const GuestType&) = default; 53 constexpr GuestType(GuestType&&) = default; 54 constexpr GuestType& operator=(const GuestType& data) = default; [all …]
|
D | guest_function_wrapper.h | 29 ResultType (*WrapGuestFunction(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunction()
|
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/ |
D | gen_vulkan.go | 1105 class GuestType<%[1]s*> { 1112 GuestType(%[1]s* const new_value, GuestHolder& holder, bool& out_of_memory); 1113 …GuestType(%[1]s* const new_value, GuestArrayHolder& holder, const std::uint32_t* size, bool& out_o… 1114 GuestType(GuestType<%[1]s>* const& new_value); 1115 GuestType(GuestType<%[1]s>*&& new_value); 1116 GuestType() = default; 1117 GuestType(const GuestType&) = default; 1118 GuestType(GuestType&&) = default; 1119 GuestType& operator=(const GuestType& data) = default; 1120 GuestType& operator=(GuestType&& data) = default; [all …]
|
D | vulkan_xml.h | 58 inline ResultType (*WrapGuestFunctionIfNeeded(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunctionIfNeeded() 70 inline GuestType<Func> WrapHostFunctionIfNeeded(Func func, const char* name) { in WrapHostFunctionIfNeeded() 99 static const void* ConvertOptionalStructures(GuestType<const void*> head, 102 static void* ConvertOptionalStructures(GuestType<void*> head, 105 static GuestType<const void*> ConvertOptionalStructures(const void* head, 108 static GuestType<void*> ConvertOptionalStructures(void* head,
|
D | vulkan_trampolines.cc | 55 GuestType<const struct VkCommandBufferAllocateInfo*>::HostHolder pAllocateInfo_holder; in DoCustomTrampolineWithThunk_vkAllocateCommandBuffers() 90 GuestType<const struct VkCommandBufferBeginInfo*>::HostHolder pBeginInfo_holder; in DoCustomTrampolineWithThunk_vkBeginCommandBuffer() 356 GuestType<const struct VkAllocationCallbacks*>::GuestHolder pAllocator_holder; in RunGuest_vkCreateInstance() 358 … GuestType<const struct VkAllocationCallbacks*>(pAllocator_host, pAllocator_holder, out_of_memory); in RunGuest_vkCreateInstance()
|
/frameworks/libs/native_bridge_support/android_api/libcamera2ndk/proxy/ |
D | android_camera_trampolines.cc | 43 WrapGuestFunction(GuestType(guest_callback->onCameraAvailable), "onCameraAvailable-callback"), in ToHostACameraManager_AvailabilityCallbacks() 44 WrapGuestFunction(GuestType(guest_callback->onCameraUnavailable), in ToHostACameraManager_AvailabilityCallbacks() 63 WrapGuestFunction(GuestType(guest_callback->onCameraAccessPrioritiesChanged), in ToHostACameraManager_ExtendedAvailabilityCallbacks() 84 WrapGuestFunction(GuestType(guest_callbacks->onCaptureStarted), "onCaptureStarted-callback"), in ToHostACameraCaptureSession_captureCallbacks() 90 WrapGuestFunction(GuestType(guest_callbacks->onCaptureProgressed), in ToHostACameraCaptureSession_captureCallbacks() 92 WrapGuestFunction(GuestType(guest_callbacks->onCaptureCompleted), in ToHostACameraCaptureSession_captureCallbacks() 100 WrapGuestFunction(GuestType(guest_callbacks->onCaptureFailed), "onCaptureFailed-callback"), in ToHostACameraCaptureSession_captureCallbacks() 103 WrapGuestFunction(GuestType(guest_callbacks->onCaptureSequenceCompleted), in ToHostACameraCaptureSession_captureCallbacks() 107 WrapGuestFunction(GuestType(guest_callbacks->onCaptureSequenceAborted), in ToHostACameraCaptureSession_captureCallbacks() 115 WrapGuestFunction(GuestType(guest_callbacks->onCaptureBufferLost), in ToHostACameraCaptureSession_captureCallbacks() [all …]
|
/frameworks/libs/binary_translation/guest_abi/arm64/include/berberis/guest_abi/ |
D | guest_abi_arch.h | 45 using GuestType = GuestType<IntegerType>; 52 using GuestType = GuestType<EnumType>; 61 using GuestType = GuestType<PointeeType*>; 70 using GuestType = GuestType<ResultType (*)(ArgumentType...)>; 80 using GuestType = GuestType<float>; 91 using GuestType = GuestType<double>; 109 using GuestType = GuestType<LargeStructType>;
|
D | guest_arguments_arch.h | 61 using GuestType = typename GuestArgumentInfo<Type>::GuestType; in GuestArgument() local 63 return **reinterpret_cast<const GuestType**>(ArgLocationAddress(kArgumentsLocations[index])); in GuestArgument() 65 return *reinterpret_cast<GuestType*>(ArgLocationAddress(kArgumentsLocations[index])); in GuestArgument() 85 return **reinterpret_cast<typename GuestArgumentInfo<ResultType>::GuestType**>( in GuestResult() 88 return *reinterpret_cast<typename GuestArgumentInfo<ResultType>::GuestType*>( in GuestResult()
|
D | guest_params_arch.h | 57 return *reinterpret_cast<typename GuestArgumentInfo<Type>::GuestType**>(address); in ParamLocationAddress() 59 return reinterpret_cast<typename GuestArgumentInfo<Type>::GuestType*>(address); in ParamLocationAddress() 223 typename GuestArgumentInfo<T>::GuestType& GetParam() { in GetParam()
|
/frameworks/libs/binary_translation/guest_abi/arm/include/berberis/guest_abi/ |
D | guest_abi_arch.h | 47 using GuestType = GuestType<int32_t>; 62 using GuestType = GuestType<uint32_t>; 76 using GuestType = GuestType<IntegerType>; 85 using GuestType = GuestType<EnumType>; 94 using GuestType = GuestType<PointeeType*>; 105 using GuestType = GuestType<ResultType (*)(ArgumentType...)>; 115 using GuestType = GuestType<float>; 133 using GuestType = GuestType<double>; 163 using GuestType = GuestType<LargeStructType>;
|
D | guest_arguments_arch.h | 68 kCallingConventionsVariant>::GuestType; in GuestArgument() 86 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType**>( in GuestResult() 90 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType*>( in GuestResult()
|
D | guest_params_arch.h | 72 typename GuestArgumentInfo<Type, kCallingConventionsVariant>::GuestType**>(address); in ParamLocationAddress() 75 typename GuestArgumentInfo<Type, kCallingConventionsVariant>::GuestType*>(address); in ParamLocationAddress() 261 typename GuestArgumentInfo<T, GuestAbi::kDefaultAbi>::GuestType& GetParam() { in GetParam()
|
/frameworks/libs/binary_translation/guest_abi/arm/ |
D | guest_function_wrapper_test.cc | 35 EXPECT_EQ(nullptr, berberis::WrapGuestFunction(bit_cast<GuestType<FooPtr>>(0L), "foo")); in TEST_F() 37 EXPECT_EQ(nullptr, berberis::WrapGuestFunction(bit_cast<GuestType<BarPtr>>(0L), "bar")); in TEST_F() 50 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub"); in TEST_F() 67 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_long"); in TEST_F() 86 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_float"); in TEST_F() 105 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_double"); in TEST_F()
|
/frameworks/libs/binary_translation/guest_abi/riscv64/ |
D | guest_function_wrapper_test.cc | 33 EXPECT_EQ(WrapGuestFunction(bit_cast<GuestType<FooPtr>>(0L), "foo"), nullptr); in TEST_F() 36 EXPECT_EQ(WrapGuestFunction(bit_cast<GuestType<BarPtr>>(0L), "bar"), nullptr); in TEST_F() 49 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub"); in TEST_F() 65 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_long"); in TEST_F() 81 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_float"); in TEST_F() 97 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_double"); in TEST_F()
|
/frameworks/libs/binary_translation/guest_abi/arm64/ |
D | guest_function_wrapper_test.cc | 34 EXPECT_EQ(nullptr, berberis::WrapGuestFunction(bit_cast<GuestType<FooPtr>>(0L), "foo")); in TEST_F() 36 EXPECT_EQ(nullptr, berberis::WrapGuestFunction(bit_cast<GuestType<BarPtr>>(0L), "bar")); in TEST_F() 49 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub"); in TEST_F() 65 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_long"); in TEST_F() 81 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_float"); in TEST_F() 97 TwoArgFunction sub = WrapGuestFunction(bit_cast<GuestType<TwoArgFunction>>(pc), "sub_double"); in TEST_F()
|
/frameworks/libs/binary_translation/jni/include/berberis/jni/ |
D | jni_trampolines.h | 34 GuestType<JNIEnv*> ToGuestJNIEnv(void* host_jni_env); 35 JNIEnv* ToHostJNIEnv(GuestType<JNIEnv*> guest_jni_env); 37 GuestType<JavaVM*> ToGuestJavaVM(void* host_java_vm); 38 JavaVM* ToHostJavaVM(GuestType<JavaVM*> guest_java_vm);
|
/frameworks/libs/native_bridge_support/android_api/libmediandk/proxy/ |
D | media_trampolines.cc | 48 GuestType(listener->onBufferRemoved), "AImageReader_setBufferRemovedListener-callback"); in DoCustomTrampoline_AImageReader_setBufferRemovedListener() 67 host_listener.onImageAvailable = WrapGuestFunction(GuestType(listener->onImageAvailable), in DoCustomTrampoline_AImageReader_setImageListener() 154 GuestType(static_cast<AMediaCodecOnAsyncNotifyCallback>(cb).onAsyncInputAvailable), in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback() 157 GuestType(static_cast<AMediaCodecOnAsyncNotifyCallback>(cb).onAsyncOutputAvailable), in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback() 160 GuestType(static_cast<AMediaCodecOnAsyncNotifyCallback>(cb).onAsyncFormatChanged), in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback() 163 WrapGuestFunction(GuestType(static_cast<AMediaCodecOnAsyncNotifyCallback>(cb).onAsyncError), in DoCustomTrampoline_AMediaCodec_setAsyncNotifyCallback()
|
/frameworks/libs/binary_translation/jni/ |
D | jni_trampolines.cc | 197 *bit_cast<GuestType<JavaVM*>*>(arg_vm) = ToGuestJavaVM(host_vm); in DoTrampoline_JNIEnv_GetJavaVM() 240 GuestType<JNIEnv*> guest_jni_env = ToGuestJNIEnv(env); in DoJavaVMTrampoline_AttachCurrentThread() 266 GuestType<JNIEnv*> guest_jni_env = ToGuestJNIEnv(env); in DoJavaVMTrampoline_GetEnv() 282 GuestType<JNIEnv*> guest_jni_env = ToGuestJNIEnv(env); in DoJavaVMTrampoline_AttachCurrentThreadAsDaemon() 313 GuestType<JNIEnv*> ToGuestJNIEnv(void* host_jni_env) { in ToGuestJNIEnv() 331 JNIEnv* ToHostJNIEnv(GuestType<JNIEnv*> guest_jni_env) { in ToHostJNIEnv() 335 GuestType<JavaVM*> ToGuestJavaVM(void* host_java_vm) { in ToGuestJavaVM() 344 JavaVM* ToHostJavaVM(GuestType<JavaVM*> guest_java_vm) { in ToHostJavaVM()
|
/frameworks/libs/binary_translation/native_activity/include/berberis/native_activity/ |
D | native_activity.h | 51 GuestType<JavaVM*> vm; 52 GuestType<JNIEnv*> env;
|
/frameworks/libs/native_bridge_support/android_api/libEGL/proxy/ |
D | egl_trampolines.cc | 179 if (!WrapEglHostFunction(proc_name, ToHostCode(GuestType(result)))) { in RunGuest_eglGetProcAddress() 248 !WrapEglHostFunction(proc_name, ToHostCode(GuestType(get_next_layer_proc_address)))) { in RunGuestAndroidGLESLayer_GetProcAddress() 249 host_result = const_cast<void*>(ToHostCode(GuestType(get_next_layer_proc_address))); in RunGuestAndroidGLESLayer_GetProcAddress()
|
/frameworks/libs/native_bridge_support/android_api/libandroid/proxy/ |
D | libandroid_trampolines.cc | 47 using GuestType = berberis::Guest_ANativeActivity*; typedef 68 ALooper_callbackFunc WrapLooperCallback(GuestType<ResultType (*)(ArgumentType...)> callback) { in WrapLooperCallback()
|
/frameworks/libs/binary_translation/guest_abi/riscv64/include/berberis/guest_abi/ |
D | guest_params_arch.h | 58 return *reinterpret_cast<typename ArgumentInfo::GuestType**>(address); in ParamLocationAddress() 60 return reinterpret_cast<typename ArgumentInfo::GuestType*>(address); in ParamLocationAddress() 247 typename GuestArgumentInfo<T, kCallingConventionsVariant>::GuestType& GetParam() { in GetParam()
|
D | guest_arguments_arch.h | 65 using CastType = typename ArgumentInfo::GuestType; in GuestArgument() 81 using CastType = typename ArgumentInfo::GuestType; in GuestResult()
|
/frameworks/libs/binary_translation/guest_loader/ |
D | guest_loader_impl.h | 83 *fn = WrapGuestFunction(GuestType(guest_fn), symbol_name); in FindSymbol()
|
/frameworks/libs/native_bridge_support/android_api/libnativehelper/proxy/ |
D | nativehelper_trampolines.cc | 78 *ToHostAddr<GuestType<JavaVM*>>(ToGuestAddr(guest_vm)) = ToGuestJavaVM(host_vm); in DoCustomTrampoline_JNI_GetCreatedJavaVMs()
|