20 #include "ionMemoryMocks.h"
26 return g_mockIon->ion_open();
31 return g_mockIon->ion_close(fd);
34 int ion_alloc(
int fd,
size_t len,
size_t align,
unsigned int heap_mask,
unsigned int flags, ion_user_handle_t *handle)
36 return g_mockIon->ion_alloc(fd, len, align, heap_mask, flags, handle);
39 int ion_free(
int fd, ion_user_handle_t handle)
41 return g_mockIon->ion_free(fd, handle);
44 int ion_share(
int fd, ion_user_handle_t handle,
int *share_fd)
46 return g_mockIon->ion_share(fd, handle, share_fd);
49 int ion_phys(
int fd, ion_user_handle_t handle,
unsigned long *addr,
unsigned int *size)
51 return g_mockIon->ion_phys(fd, handle, addr, size);