Home
last modified time | relevance | path

Searched refs:GuestType (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/libs/binary_translation/guest_abi/include/berberis/guest_abi/
Dguest_type.h30 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 …]
Dguest_function_wrapper.h29 ResultType (*WrapGuestFunction(GuestType<ResultType (*)(ArgumentType...)> func, in WrapGuestFunction()
/frameworks/libs/native_bridge_support/android_api/libvulkan/proxy/
Dgen_vulkan.go1105 class GuestType<%[1]s*> {
1112 GuestType(%[1]s* const new_value, GuestHolder& holder, bool& out_of_memory);
1113GuestType(%[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 …]
Dvulkan_xml.h58 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,
Dvulkan_trampolines.cc55 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()
358GuestType<const struct VkAllocationCallbacks*>(pAllocator_host, pAllocator_holder, out_of_memory); in RunGuest_vkCreateInstance()
/frameworks/libs/native_bridge_support/android_api/libcamera2ndk/proxy/
Dandroid_camera_trampolines.cc43 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/
Dguest_abi_arch.h45 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>;
Dguest_arguments_arch.h61 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()
Dguest_params_arch.h57 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/
Dguest_abi_arch.h47 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>;
Dguest_arguments_arch.h68 kCallingConventionsVariant>::GuestType; in GuestArgument()
86 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType**>( in GuestResult()
90 typename GuestArgumentInfo<ResultType, kCallingConventionsVariant>::GuestType*>( in GuestResult()
Dguest_params_arch.h72 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/
Dguest_function_wrapper_test.cc35 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/
Dguest_function_wrapper_test.cc33 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/
Dguest_function_wrapper_test.cc34 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/
Djni_trampolines.h34 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/
Dmedia_trampolines.cc48 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/
Djni_trampolines.cc197 *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/
Dnative_activity.h51 GuestType<JavaVM*> vm;
52 GuestType<JNIEnv*> env;
/frameworks/libs/native_bridge_support/android_api/libEGL/proxy/
Degl_trampolines.cc179 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/
Dlibandroid_trampolines.cc47 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/
Dguest_params_arch.h58 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()
Dguest_arguments_arch.h65 using CastType = typename ArgumentInfo::GuestType; in GuestArgument()
81 using CastType = typename ArgumentInfo::GuestType; in GuestResult()
/frameworks/libs/binary_translation/guest_loader/
Dguest_loader_impl.h83 *fn = WrapGuestFunction(GuestType(guest_fn), symbol_name); in FindSymbol()
/frameworks/libs/native_bridge_support/android_api/libnativehelper/proxy/
Dnativehelper_trampolines.cc78 *ToHostAddr<GuestType<JavaVM*>>(ToGuestAddr(guest_vm)) = ToGuestJavaVM(host_vm); in DoCustomTrampoline_JNI_GetCreatedJavaVMs()

12