Home
last modified time | relevance | path

Searched refs:native_handle (Results 1 – 7 of 7) sorted by relevance

/device/linaro/hikey/gralloc/
Dgralloc_priv.h136 struct private_handle_t : public native_handle
141 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 …]
/device/linaro/hikey/gralloc960/
Dmali_gralloc_buffer.h51 #define NUM_INTS_IN_PRIVATE_HANDLE ((sizeof(struct private_handle_t) - sizeof(native_handle)) / siz…
67 struct private_handle_t : public native_handle
72 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()
/device/generic/goldfish/gralloc/
Dgralloc_priv.h59 struct private_handle_t : public native_handle {
62 struct native_handle nativeHandle;
92 version = sizeof(native_handle); in private_handle_t()
100 static int validate(const native_handle* h) { in validate()
102 if (!h || h->version != sizeof(native_handle) || in validate()
/device/google/cuttlefish_common/guest/hals/gralloc/
Dgralloc_vsoc_priv.h33 struct vsoc_buffer_handle_t : public native_handle {
69 version = sizeof(native_handle); in vsoc_buffer_handle_t()
78 static int validate(const native_handle* handle) { in validate()
81 if (!hnd || hnd->version != sizeof(native_handle) || in validate()
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
Dgralloc_cb.h40 struct cb_handle_t : public native_handle {
67 version = sizeof(native_handle); in cb_handle_t()
98 hnd->version == sizeof(native_handle) && in validate()
/device/google/cuttlefish_common/guest/hals/gralloc/legacy/
Dgralloc_vsoc_priv.h65 struct private_handle_t : public native_handle {
98 version = sizeof(native_handle); in fd()
107 static int validate(const native_handle* h) { in validate()
113 if (h->version != sizeof(native_handle)) { in validate()
119 sizeof(native_handle)); in validate()
/device/generic/goldfish-opengl/fuchsia/include/cutils/
Dnative_handle.h4 typedef struct native_handle { struct