Home | History | Annotate | Download | only in ui

Lines Matching refs:test_bit

55 #define test_bit(bit, array)    (array[bit/8] & (1<<(bit%8)))
183 return test_bit(sw, sw_bitmask) ? 1 : 0;
207 return test_bit(code, key_bitmask) ? 1 : 0;
234 LOGI("(Scan code %d: down=%d)", i, test_bit(i, key_bitmask));
240 //LOGI("Code %d: down=%d", sc, test_bit(sc, key_bitmask));
241 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, key_bitmask)) {
473 if (test_bit(scanCodes[sc], mDevices[n]->keyBitmask)) {
638 if (test_bit(BTN_MOUSE, key_bitmask)) {
644 if (test_bit(REL_X, rel_bitmask) && test_bit(REL_Y, rel_bitmask)) {
656 if (test_bit(ABS_MT_TOUCH_MAJOR, abs_bitmask)
657 && test_bit(ABS_MT_POSITION_X, abs_bitmask)
658 && test_bit(ABS_MT_POSITION_Y, abs_bitmask)) {
662 } else if (test_bit(BTN_TOUCH, key_bitmask)
663 && test_bit(ABS_X, abs_bitmask) && test_bit(ABS_Y, abs_bitmask)) {
673 //LOGI("Device 0x%x sw %d: has=%d", device->id, i, test_bit(i, sw_bitmask));
674 if (test_bit(i, sw_bitmask)) {
768 if (sc >= 0 && sc <= KEY_MAX && test_bit(sc, device->keyBitmask)) {