/aosp14/system/core/libcutils/ |
H A D | native_handle.cpp | 48 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 D | native_handle.h | 31 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 D | native_handle.h | 31 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 D | NativeHandle.h | 23 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 D | com_android_server_biometrics_SurfaceToNativeHandleConverter.cpp | 34 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 D | android_os_NativeHandle.h | 33 static jobject MakeJavaNativeHandleObj(JNIEnv *env, const native_handle_t *handle); 41 static native_handle_t* MakeCppNativeHandle(JNIEnv *env, jobject jHandle,
|
H A D | android_os_NativeHandle.cpp | 39 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 D | android_os_HidlMemory.cpp | 63 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 D | android_os_HwBlob.cpp | 501 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 D | android_hardware_Camera.cpp | 80 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 D | android_hardware_SensorManager.cpp | 271 const native_handle_t *nativeHandle = nullptr; in nativeCreateDirectChannel() 275 native_handle_t *handle = native_handle_init(ashmemHandle, 1, 0); in nativeCreateDirectChannel()
|
H A D | android_os_HwParcel.cpp | 449 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 D | NativeHandle.cpp | 22 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 D | FilterClient.h | 51 native_handle_t* sharedHandle; 131 Result releaseAvHandle(native_handle_t* handle, uint64_t avDataId); 180 native_handle_t* mAvSharedHandle;
|
H A D | FilterClient.cpp | 171 Result FilterClient::releaseAvHandle(native_handle_t* handle, uint64_t avDataId) { in releaseAvHandle()
|
/aosp14/frameworks/base/core/jni/hwbinder/ |
H A D | EphemeralStorage.cpp | 74 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 D | EphemeralStorage.h | 46 native_handle_t *allocTemporaryNativeHandle(int numFds, int numInts);
|
/aosp14/frameworks/base/services/core/jni/tvinput/ |
H A D | TvInputHal_hidl.cpp | 109 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 D | sensor.cpp | 157 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 D | android_media_tv_Tuner.h | 106 MediaEvent(sp<FilterClient> filterClient, native_handle_t* avHandle, int64_t dataId, 114 native_handle_t* mAvHandle;
|
H A D | android_media_tv_Tuner.cpp | 466 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 D | android_media_MediaCodec.cpp | 759 native_handle_t *grallocHandle = UnwrapNativeCodec2GrallocHandle(c2Handle); in getOutputFrame()
|
/aosp14/system/core/healthd/ |
H A D | charger_test.cpp | 112 native_handle_t* nativeHandle = native_handle_create(1, 0); in createHidlHandle()
|