Home
last modified time | relevance | path

Searched refs:bits_size (Results 1 – 2 of 2) sorted by relevance

/system/core/toolbox/
Dgetevent.c98 ssize_t bits_size = 0; in print_possible_events() local
109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events()
110 if(res < bits_size) in print_possible_events()
112 bits_size = res + 16; in print_possible_events()
113 bits = realloc(bits, bits_size * 2); in print_possible_events()
115 err(1, "failed to allocate buffer of size %d\n", (int)bits_size); in print_possible_events()
120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events()
137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events()
142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events()
147 res2 = ioctl(fd, EVIOCGSW(bits_size), bits + bits_size); in print_possible_events()
[all …]
/system/bt/gd/packet/parser/
Dpacket_def.cc172 int bits_size = 0; in GenValidator() local
175 bits_size += field->GetSize().bits(); in GenValidator()
206 s << "it += " << ((bits_size + 7) / 8) << " /* Total size of the fixed fields */;"; in GenValidator()