HomeSort by relevance Sort by last modified time
    Searched refs:native_handle_t (Results 1 - 25 of 306) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /system/core/libcutils/include/cutils/
native_handle.h 28 alignas(native_handle_t) char (name)[ \
29 sizeof(native_handle_t) + sizeof(int) * ((maxFds) + (maxInts))]
33 int version; /* sizeof(native_handle_t) */
44 } native_handle_t; typedef in typeref:struct:native_handle
46 typedef const native_handle_t* buffer_handle_t;
51 * closes the file descriptors contained in this native_handle_t
56 int native_handle_close(const native_handle_t* h);
61 * Initializes a native_handle_t from storage. storage must be declared with
65 native_handle_t* native_handle_init(char* storage, int numFds, int numInts);
70 * creates a native_handle_t and initializes it. must be destroyed wit
    [all...]
  /hardware/qcom/display/msm8960/libgenlock/
genlock.h 62 genlock_status_t genlock_create_lock(native_handle_t *buffer_handle);
71 genlock_status_t genlock_release_lock(native_handle_t *buffer_handle);
79 genlock_status_t genlock_attach_lock(native_handle_t *buffer_handle);
95 genlock_status_t genlock_lock_buffer(native_handle_t *buffer_handle,
105 genlock_status_t genlock_unlock_buffer(native_handle_t *buffer_handle);
114 genlock_status_t genlock_wait(native_handle_t *buffer_handle, int timeout);
123 genlock_status_t genlock_write_to_read(native_handle_t *buffer_handle,
  /system/core/libutils/include/utils/
NativeHandle.h 23 typedef struct native_handle native_handle_t; typedef in typeref:struct:native_handle
29 // Create a refcounted wrapper around a native_handle_t, and declare
33 static sp<NativeHandle> create(native_handle_t* handle, bool ownsHandle);
35 const native_handle_t* handle() const {
43 NativeHandle(native_handle_t* handle, bool ownsHandle);
46 native_handle_t* mHandle;
  /system/core/libcutils/
native_handle.cpp 28 native_handle_t* native_handle_init(char* storage, int numFds, int numInts) {
29 if ((uintptr_t) storage % alignof(native_handle_t)) {
34 native_handle_t* handle = (native_handle_t*) storage;
35 handle->version = sizeof(native_handle_t);
41 native_handle_t* native_handle_create(int numFds, int numInts) {
47 size_t mallocSize = sizeof(native_handle_t) + (sizeof(int) * (numFds + numInts));
48 native_handle_t* h = static_cast<native_handle_t*>(malloc(mallocSize));
50 h->version = sizeof(native_handle_t);
    [all...]
  /hardware/interfaces/graphics/mapper/2.0/utils/hal/include/mapper-hal/2.0/
MapperHal.h 38 virtual Error importBuffer(const native_handle_t* rawHandle,
39 native_handle_t** outBufferHandle) = 0;
42 virtual Error freeBuffer(native_handle_t* bufferHandle) = 0;
45 virtual Error lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
50 virtual Error lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
55 virtual Error unlock(const native_handle_t* bufferHandle, base::unique_fd* outFenceFd) = 0;
  /hardware/interfaces/sensors/1.0/vts/functional/
GrallocWrapper.h 45 std::vector<const native_handle_t*> allocate(
48 const native_handle_t* allocate(
55 const native_handle_t* importBuffer(const hardware::hidl_handle& rawHandle);
56 void freeBuffer(const native_handle_t* bufferHandle);
61 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
64 int unlock(const native_handle_t* bufferHandle);
68 const native_handle_t* cloneBuffer(const hardware::hidl_handle& rawHandle);
75 std::unordered_set<const native_handle_t*> mClonedBuffers;
76 std::unordered_set<const native_handle_t*> mImportedBuffers;
GrallocWrapper.cpp 44 auto buffer = const_cast<native_handle_t*>(bufferHandle);
51 auto buffer = const_cast<native_handle_t*>(bufferHandle);
71 const native_handle_t* GrallocWrapper::cloneBuffer(
73 const native_handle_t* bufferHandle =
82 std::vector<const native_handle_t*> GrallocWrapper::allocate(
85 std::vector<const native_handle_t*> bufferHandles;
113 const native_handle_t* GrallocWrapper::allocate(
138 const native_handle_t* GrallocWrapper::importBuffer(
140 const native_handle_t* bufferHandle = nullptr;
146 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer)
    [all...]
  /hardware/interfaces/graphics/mapper/2.0/utils/vts/include/mapper-vts/2.0/
MapperVts.h 53 std::vector<const native_handle_t*> allocate(const BufferDescriptor& descriptor, uint32_t count,
55 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
64 const native_handle_t* importBuffer(const hidl_handle& rawHandle);
65 void freeBuffer(const native_handle_t* bufferHandle);
70 void* lock(const native_handle_t* bufferHandle, uint64_t cpuUsage,
72 YCbCrLayout lockYCbCr(const native_handle_t* bufferHandle, uint64_t cpuUsage,
74 int unlock(const native_handle_t* bufferHandle);
78 const native_handle_t* cloneBuffer(const hidl_handle& rawHandle);
85 std::unordered_set<const native_handle_t*> mClonedBuffers;
86 std::unordered_set<const native_handle_t*> mImportedBuffers
    [all...]
  /device/google/contexthub/sensorhal/
directchannel.h 59 int registerBuffer(const native_handle_t *handle);
60 int unregisterBuffer(const native_handle_t *handle);
61 int lock(const native_handle_t *handle, int usage, int l, int t, int w, int h, void **vaddr);
62 int unlock(const native_handle_t *handle);
63 bool isSameMemory(const native_handle_t *h1, const native_handle_t *h2);
93 native_handle_t *mNativeHandle;
  /frameworks/av/services/camera/libcameraservice/device3/
Camera3StreamBufferFreedListener.h 40 virtual void onBufferFreed(int streamId, const native_handle_t* handle) = 0;
  /system/core/libutils/
NativeHandle.cpp 22 sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) {
26 NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle)
  /hardware/interfaces/graphics/mapper/2.0/utils/passthrough/include/mapper-passthrough/2.0/
GrallocLoader.h 59 void* add(native_handle_t* bufferHandle) {
64 native_handle_t* remove(void* buffer) {
65 auto bufferHandle = static_cast<native_handle_t*>(buffer);
71 const native_handle_t* get(void* buffer) {
72 auto bufferHandle = static_cast<const native_handle_t*>(buffer);
80 std::unordered_set<const native_handle_t*> mBufferHandles;
87 void* addImportedBuffer(native_handle_t* bufferHandle) override {
91 native_handle_t* removeImportedBuffer(void* buffer) override {
95 const native_handle_t* getImportedBuffer(void* buffer) const override {
  /hardware/interfaces/graphics/mapper/2.1/utils/vts/include/mapper-vts/2.1/
MapperVts.h 40 bool validateBufferSize(const native_handle_t* bufferHandle,
42 void getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,
47 const native_handle_t* allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
  /hardware/interfaces/graphics/composer/2.2/utils/hal/include/composer-hal/2.2/
ComposerResources.h 42 Error getReadbackBuffer(const native_handle_t* inHandle, const native_handle_t** outHandle,
61 Error getDisplayReadbackBuffer(Display display, const native_handle_t* rawHandle,
62 const native_handle_t** outHandle,
65 const native_handle_t* importedHandle;
82 const native_handle_t* replacedHandle;
  /frameworks/av/camera/include/camera/
ICameraRecordingProxy.h 88 virtual void releaseRecordingFrameHandle(native_handle_t *handle) = 0;
90 const std::vector<native_handle_t*>& handles) = 0;
Camera.h 46 virtual void postRecordingFrameHandleTimestamp(nsecs_t timestamp, native_handle_t* handle) = 0;
49 const std::vector<native_handle_t*>& handles) = 0;
122 void releaseRecordingFrameHandle(native_handle_t *handle);
126 const std::vector<native_handle_t*> handles);
175 virtual void recordingFrameHandleCallbackTimestamp(nsecs_t timestamp, native_handle_t* handle);
178 const std::vector<native_handle_t*>& handles);
190 virtual void releaseRecordingFrameHandle(native_handle_t* handle);
192 const std::vector<native_handle_t*>& handles);
ICameraRecordingProxyListener.h 41 native_handle_t* handle) = 0;
45 const std::vector<native_handle_t*>& handles) = 0;
  /hardware/interfaces/graphics/allocator/2.0/utils/hal/include/allocator-hal/2.0/
AllocatorHal.h 45 std::vector<const native_handle_t*>* outBuffers) = 0;
48 virtual void freeBuffers(const std::vector<const native_handle_t*>& buffers) = 0;
  /hardware/interfaces/graphics/mapper/2.0/utils/vts/
MapperVts.cpp 43 auto buffer = const_cast<native_handle_t*>(bufferHandle);
50 auto buffer = const_cast<native_handle_t*>(bufferHandle);
67 const native_handle_t* Gralloc::cloneBuffer(const hidl_handle& rawHandle) {
68 const native_handle_t* bufferHandle = native_handle_clone(rawHandle.getNativeHandle());
78 std::vector<const native_handle_t*> Gralloc::allocate(const BufferDescriptor& descriptor,
81 std::vector<const native_handle_t*> bufferHandles;
109 const native_handle_t* Gralloc::allocate(const IMapper::BufferDescriptorInfo& descriptorInfo,
138 const native_handle_t* Gralloc::importBuffer(const hidl_handle& rawHandle) {
139 const native_handle_t* bufferHandle = nullptr;
143 bufferHandle = static_cast<const native_handle_t*>(tmpBuffer)
    [all...]
  /hardware/intel/img/hwcomposer/merrifield/ips/penwell/
PnwGrallocBuffer.h 26 native_handle_t base;
  /hardware/interfaces/graphics/composer/2.1/utils/hal/include/composer-hal/2.1/
ComposerResources.h 47 Error importBuffer(const native_handle_t* rawHandle, const native_handle_t** outBufferHandle) {
54 const native_handle_t* bufferHandle;
57 bufferHandle = static_cast<const native_handle_t*>(tmpBufferHandle);
67 void freeBuffer(const native_handle_t* bufferHandle) {
69 mMapper->freeBuffer(static_cast<void*>(const_cast<native_handle_t*>(bufferHandle)));
73 Error importStream(const native_handle_t* rawHandle, const native_handle_t** outStreamHandle) {
74 const native_handle_t* streamHandle = nullptr;
86 void freeStream(const native_handle_t* streamHandle)
    [all...]
  /hardware/interfaces/graphics/allocator/2.0/utils/passthrough/include/allocator-passthrough/2.0/
Gralloc0Hal.h 75 std::vector<const native_handle_t*>* outBuffers) override {
83 std::vector<const native_handle_t*> buffers;
88 const native_handle_t* tmpBuffer;
117 void freeBuffers(const std::vector<const native_handle_t*>& buffers) override {
128 const native_handle_t** outBuffer, uint32_t* outStride) {
133 const native_handle_t* buffer = nullptr;
  /frameworks/av/media/libstagefright/bqhelper/include/media/stagefright/bqhelper/
Conversion.h 69 // native_handle_t helper functions.
77 * \return The create `native_handle_t*` that contains the given \p fd. If the
86 native_handle_t* native_handle_create_from_fd(int fd);
91 * \param[in] nh The source `native_handle_t*`.
99 int native_handle_read_fd(native_handle_t const* nh, int index = 0);
123 * `hidl_handle`, `native_handle_t*` will need to be created and returned as
152 * \brief Wrap `native_handle_t*` in `hidl_handle`.
154 * \param[in] nh The source `native_handle_t*`.
157 // wrap: native_handle_t* -> hidl_handle
158 hidl_handle inHidlHandle(native_handle_t const* nh)
    [all...]
  /frameworks/av/camera/include/camera/android/hardware/
ICameraClient.h 43 native_handle_t* handle) = 0;
50 const std::vector<native_handle_t*>& handles) = 0;
  /hardware/interfaces/graphics/mapper/2.1/utils/hal/include/mapper-hal/2.1/
MapperHal.h 49 virtual Error validateBufferSize(const native_handle_t* bufferHandle,
55 virtual Error getTransportSize(const native_handle_t* bufferHandle, uint32_t* outNumFds,

Completed in 427 milliseconds

1 2 3 4 5 6 7 8 91011>>