Home
last modified time | relevance | path

Searched refs:native_handle_t (Results 1 – 23 of 23) sorted by relevance

/aosp14/system/core/libcutils/
H A Dnative_handle.cpp48 uint64_t get_fdsan_tag(const native_handle_t* handle) { in get_fdsan_tag()
56 if (h->version != sizeof(native_handle_t)) return -EINVAL; in close_internal()
87 if ((uintptr_t)storage % alignof(native_handle_t)) { in native_handle_init()
92 native_handle_t* handle = (native_handle_t*)storage; in native_handle_init()
93 handle->version = sizeof(native_handle_t); in native_handle_init()
107 native_handle_t* h = static_cast<native_handle_t*>(malloc(mallocSize)); in native_handle_create()
109 h->version = sizeof(native_handle_t); in native_handle_create()
124 native_handle_t* native_handle_clone(const native_handle_t* handle) { in native_handle_clone()
144 int native_handle_delete(native_handle_t* h) { in native_handle_delete()
152 int native_handle_close(const native_handle_t* h) { in native_handle_close()
[all …]
/aosp14/system/core/libcutils/include/cutils/
H A Dnative_handle.h31 alignas(native_handle_t) char (name)[ \
32 sizeof(native_handle_t) + sizeof(int) * ((maxFds) + (maxInts))]
47 } native_handle_t; typedef
49 typedef const native_handle_t* buffer_handle_t;
64 int native_handle_close(const native_handle_t* h);
71 int native_handle_close_with_tag(const native_handle_t* h);
85 native_handle_t* native_handle_create(int numFds, int numInts);
94 void native_handle_set_fdsan_tag(const native_handle_t* handle);
103 void native_handle_unset_fdsan_tag(const native_handle_t* handle);
109 native_handle_t* native_handle_clone(const native_handle_t* handle);
[all …]
/aosp14/system/core/libcutils/include_outside_system/cutils/
H A Dnative_handle.h31 alignas(native_handle_t) char (name)[ \
32 sizeof(native_handle_t) + sizeof(int) * ((maxFds) + (maxInts))]
47 } native_handle_t; typedef
49 typedef const native_handle_t* buffer_handle_t;
64 int native_handle_close(const native_handle_t* h);
71 int native_handle_close_with_tag(const native_handle_t* h);
85 native_handle_t* native_handle_create(int numFds, int numInts);
94 void native_handle_set_fdsan_tag(const native_handle_t* handle);
103 void native_handle_unset_fdsan_tag(const native_handle_t* handle);
109 native_handle_t* native_handle_clone(const native_handle_t* handle);
[all …]
/aosp14/system/core/libutils/include/utils/
H A DNativeHandle.h23 typedef struct native_handle native_handle_t; typedef
33 static sp<NativeHandle> create(native_handle_t* handle, bool ownsHandle);
35 const native_handle_t* handle() const { in handle()
45 NativeHandle(native_handle_t* handle, bool ownsHandle);
48 native_handle_t* mHandle;
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_biometrics_SurfaceToNativeHandleConverter.cpp34 native_handle_t* convertHalTokenToNativeHandle(const HalToken& halToken) { in convertHalTokenToNativeHandle()
49 native_handle_t* nh = native_handle_create(0, numInts); in convertHalTokenToNativeHandle()
59 HalToken convertNativeHandleToHalToken(native_handle_t* handle) { in convertNativeHandleToHalToken()
86 native_handle_t* native_handle = convertHalTokenToNativeHandle(halToken); in acquireSurfaceHandle()
102 native_handle_t* handle = in releaseSurfaceHandle()
/aosp14/frameworks/base/core/jni/
H A Dandroid_os_NativeHandle.h33 static jobject MakeJavaNativeHandleObj(JNIEnv *env, const native_handle_t *handle);
41 static native_handle_t* MakeCppNativeHandle(JNIEnv *env, jobject jHandle,
H A Dandroid_os_NativeHandle.cpp39 JNIEnv *env, const native_handle_t *handle) { in MakeJavaNativeHandleObj()
54 native_handle_t *JNativeHandle::MakeCppNativeHandle( in MakeCppNativeHandle()
73 native_handle_t *handle = (storage == nullptr) in MakeCppNativeHandle()
H A Dandroid_os_HidlMemory.cpp63 native_handle_delete(const_cast<native_handle_t*>(mObj->handle())); in ~JHidlMemory()
116 native_handle_t* chandle = JNativeHandle::MakeCppNativeHandle(env, jhandle, in javaToNative()
H A Dandroid_os_HwBlob.cpp501 std::unique_ptr<native_handle_t, int(*)(native_handle_t*)> nativeHandle( in JHwBlob_native_putNativeHandle()
507 size = sizeof(native_handle_t) + nativeHandle->numFds * sizeof(int) in JHwBlob_native_putNativeHandle()
517 cppHandle.setTo(static_cast<native_handle_t *>(subBlob->data()), false /* shouldOwn */); in JHwBlob_native_putNativeHandle()
H A Dandroid_hardware_Camera.cpp80 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle);
83 const std::vector<native_handle_t*>& handles);
360 void JNICameraContext::postRecordingFrameHandleTimestamp(nsecs_t, native_handle_t* handle) { in postRecordingFrameHandleTimestamp()
374 const std::vector<native_handle_t*>& handles) { in postRecordingFrameHandleTimestampBatch()
H A Dandroid_hardware_SensorManager.cpp271 const native_handle_t *nativeHandle = nullptr; in nativeCreateDirectChannel()
275 native_handle_t *handle = native_handle_init(ashmemHandle, 1, 0); in nativeCreateDirectChannel()
H A Dandroid_os_HwParcel.cpp449 native_handle_t *handle = JNativeHandle::MakeCppNativeHandle(env, valObj, storage); in JHwParcel_native_writeNativeHandle()
621 native_handle_t* handle = JNativeHandle::MakeCppNativeHandle(env, jHandle.get(), storage); in JHwParcel_native_writeNativeHandleVector()
727 const native_handle_t *handle = nullptr; in ReadNativeHandle()
/aosp14/system/core/libutils/
H A DNativeHandle.cpp22 sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) { in create()
26 NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle) in NativeHandle()
/aosp14/frameworks/base/media/jni/tuner/
H A DFilterClient.h51 native_handle_t* sharedHandle;
131 Result releaseAvHandle(native_handle_t* handle, uint64_t avDataId);
180 native_handle_t* mAvSharedHandle;
H A DFilterClient.cpp171 Result FilterClient::releaseAvHandle(native_handle_t* handle, uint64_t avDataId) { in releaseAvHandle()
/aosp14/frameworks/base/core/jni/hwbinder/
H A DEphemeralStorage.cpp74 native_handle_t *EphemeralStorage::allocTemporaryNativeHandle( in allocTemporaryNativeHandle()
82 return static_cast<native_handle_t*>(item.mPtr); in allocTemporaryNativeHandle()
161 int err = native_handle_delete(static_cast<native_handle_t *>(item.mPtr));
H A DEphemeralStorage.h46 native_handle_t *allocTemporaryNativeHandle(int numFds, int numInts);
/aosp14/frameworks/base/services/core/jni/tvinput/
H A DTvInputHal_hidl.cpp109 native_handle_t* sidebandStream; in hidlOpenStream()
111 [&result, &sidebandStream](Result res, const native_handle_t* handle) { in hidlOpenStream()
/aosp14/frameworks/base/native/android/
H A Dsensor.cpp157 native_handle_t *resourceHandle = native_handle_create(1 /* nFd */, 0 /* nInt */); in ASensorManager_createSharedMemoryDirectChannel()
183 const native_handle_t *resourceHandle = AHardwareBuffer_getNativeHandle(buffer); in ASensorManager_createHardwareBufferDirectChannel()
/aosp14/frameworks/base/media/jni/
H A Dandroid_media_tv_Tuner.h106 MediaEvent(sp<FilterClient> filterClient, native_handle_t* avHandle, int64_t dataId,
114 native_handle_t* mAvHandle;
H A Dandroid_media_tv_Tuner.cpp466 MediaEvent::MediaEvent(sp<FilterClient> filterClient, native_handle_t *avHandle, int64_t dataId, in MediaEvent()
527 native_handle_t* avSharedHandle = info.sharedHandle; in getLinearBlock()
597 native_handle_close(const_cast<native_handle_t *>( in getLinearBlock()
598 reinterpret_cast<const native_handle_t *>(mIonHandle))); in getLinearBlock()
599 native_handle_delete(const_cast<native_handle_t *>( in getLinearBlock()
600 reinterpret_cast<const native_handle_t *>(mIonHandle))); in getLinearBlock()
H A Dandroid_media_MediaCodec.cpp759 native_handle_t *grallocHandle = UnwrapNativeCodec2GrallocHandle(c2Handle); in getOutputFrame()
/aosp14/system/core/healthd/
H A Dcharger_test.cpp112 native_handle_t* nativeHandle = native_handle_create(1, 0); in createHidlHandle()