Searched refs:keycodes (Results 1 - 4 of 4) sorted by path

/system/core/init/
H A Dinit.h107 /* keycodes for triggering this service via /dev/keychord */
108 int *keycodes; member in struct:service
H A Dinit_parser.c710 parse_error(state, "keycodes option requires atleast one keycode\n");
712 svc->keycodes = malloc((nargs - 1) * sizeof(svc->keycodes[0]));
713 if (!svc->keycodes) {
714 parse_error(state, "could not allocate keycodes\n");
718 svc->keycodes[i - 1] = atoi(args[i]);
H A Dkeychords.c40 if (svc->keycodes) {
42 size = sizeof(*keychord) + svc->nkeycodes * sizeof(keychord->keycodes[0]);
58 keychord->keycodes[i] = svc->keycodes[i];
H A Dkeywords.h62 KEYWORD(keycodes, OPTION, 0, 0)

Completed in 43 milliseconds