Searched refs:native_handle (Results 1 – 9 of 9) sorted by relevance
136 struct private_handle_t : public native_handle141 struct native_handle nativeHandle;245 version = sizeof(native_handle); in private_handle_t()247 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()277 version = sizeof(native_handle); in private_handle_t()279 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()314 version = sizeof(native_handle); in private_handle_t()316 numInts = (sizeof(private_handle_t) - sizeof(native_handle)) / sizeof(int) - sNumFds; in private_handle_t()329 static int validate(const native_handle *h) in validate()333 if (!hnd || hnd->version != sizeof(native_handle) || hnd->magic != sMagic) in validate()[all …]
51 #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / siz…67 struct private_handle_t : public native_handle72 struct native_handle nativeHandle;189 version = sizeof(native_handle); in private_handle_t()225 version = sizeof(native_handle); in private_handle_t()240 static int validate(const native_handle *h) in validate()244 if (!h || h->version != sizeof(native_handle) || h->numInts != NUM_INTS_IN_PRIVATE_HANDLE || in validate()253 static private_handle_t *dynamicCast(const native_handle *in) in dynamicCast()
51 #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / siz…67 struct private_handle_t : public native_handle72 struct native_handle nativeHandle;203 version = sizeof(native_handle); in private_handle_t()241 version = sizeof(native_handle); in private_handle_t()257 static int validate(const native_handle *h) in validate()261 if (!h || h->version != sizeof(native_handle) || h->numInts != NUM_INTS_IN_PRIVATE_HANDLE || in validate()270 static private_handle_t *dynamicCast(const native_handle *in) in dynamicCast()
84 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in release() local86 auto ret = mGralloc3->freeBuffer(native_handle); in release()109 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in lock() local120 auto ret = mGralloc3->lock(native_handle, usage, rect, empty_fence_handle, in lock()152 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in lock_ycbcr() local165 auto ret = mGralloc3->lockYCbCr(native_handle, usage, rect, in lock_ycbcr()204 native_handle_t* native_handle = const_cast<native_handle_t*>(handle); in unlock() local207 auto ret = mGralloc3->unlock(native_handle, in unlock()
76 struct private_handle_t : public native_handle {109 version = sizeof(native_handle); in fd()118 static int validate(const native_handle* h) { in validate()124 if (h->version != sizeof(native_handle)) { in validate()130 sizeof(native_handle)); in validate()
4 typedef struct native_handle { struct
60 version = sizeof(native_handle); in cb_handle_t()86 return (version == sizeof(native_handle)) in isValid()
336 auto native_handle = const_cast<native_handle_t*>(buffer); in Unlock() local339 auto ret = gralloc3_->unlock(native_handle, in Unlock()
123 return (version == sizeof(native_handle)) && (magic == CB_HANDLE_MAGIC_OLD); in isValid()