Lines Matching refs:device
77 alloc_device_t device; member
87 framebuffer_device_t device; member
417 gralloc_free(&d->device, d->allocListHead->handle); in gralloc_device_close()
765 hw_device_t** device) in gralloc_device_open() argument
773 return sFallback->common.methods->open(&sFallback->common, name, device); in gralloc_device_open()
797 dev->device.common.tag = HARDWARE_DEVICE_TAG; in gralloc_device_open()
798 dev->device.common.version = 0; in gralloc_device_open()
799 dev->device.common.module = const_cast<hw_module_t*>(module); in gralloc_device_open()
800 dev->device.common.close = gralloc_device_close; in gralloc_device_open()
802 dev->device.alloc = gralloc_alloc; in gralloc_device_open()
803 dev->device.free = gralloc_free; in gralloc_device_open()
807 *device = &dev->device.common; in gralloc_device_open()
846 dev->device.common.tag = HARDWARE_DEVICE_TAG; in gralloc_device_open()
847 dev->device.common.version = 0; in gralloc_device_open()
848 dev->device.common.module = const_cast<hw_module_t*>(module); in gralloc_device_open()
849 dev->device.common.close = fb_close; in gralloc_device_open()
850 dev->device.setSwapInterval = fb_setSwapInterval; in gralloc_device_open()
851 dev->device.post = fb_post; in gralloc_device_open()
852 dev->device.setUpdateRect = 0; //fb_setUpdateRect; in gralloc_device_open()
853 dev->device.compositionComplete = fb_compositionComplete; //XXX: this is a dummy in gralloc_device_open()
855 const_cast<uint32_t&>(dev->device.flags) = 0; in gralloc_device_open()
856 const_cast<uint32_t&>(dev->device.width) = width; in gralloc_device_open()
857 const_cast<uint32_t&>(dev->device.height) = height; in gralloc_device_open()
858 const_cast<int&>(dev->device.stride) = width; in gralloc_device_open()
859 const_cast<int&>(dev->device.format) = HAL_PIXEL_FORMAT_RGBA_8888; in gralloc_device_open()
860 const_cast<float&>(dev->device.xdpi) = xdpi; in gralloc_device_open()
861 const_cast<float&>(dev->device.ydpi) = ydpi; in gralloc_device_open()
862 const_cast<float&>(dev->device.fps) = fps; in gralloc_device_open()
863 const_cast<int&>(dev->device.minSwapInterval) = min_si; in gralloc_device_open()
864 const_cast<int&>(dev->device.maxSwapInterval) = max_si; in gralloc_device_open()
865 *device = &dev->device.common; in gralloc_device_open()