Home
last modified time | relevance | path

Searched refs:bits (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/
Dwear_touch.cpp141 uint8_t bits[512]; in openDevice() local
142 memset(bits, 0, sizeof(bits)); in openDevice()
143 int ret = ioctl(fd, EVIOCGBIT(EV_ABS, sizeof(bits)), bits); in openDevice()
145 if (test_bit(ABS_MT_POSITION_X, bits) && test_bit(ABS_MT_POSITION_Y, bits)) { in openDevice()
/bootable/recovery/minui/
Dgraphics_fbdev.cpp123 void* bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in fbdev_init() local
124 if (bits == MAP_FAILED) { in fbdev_init()
130 memset(bits, 0, fi.smem_len); in fbdev_init()
136 gr_framebuffer[0].data = reinterpret_cast<uint8_t*>(bits); in fbdev_init()
Dgraphics.cpp308 unsigned char* bits = reinterpret_cast<unsigned char*>(malloc(font.width * font.height)); in gr_init_font() local
309 gr_font->texture->data = reinterpret_cast<unsigned char*>(bits); in gr_init_font()
314 memset(bits, (data & 0x80) ? 255 : 0, data & 0x7f); in gr_init_font()
315 bits += (data & 0x7f); in gr_init_font()