Searched refs:gesture (Results 1 – 2 of 2) sorted by relevance
306 int gesture; in cros_ec_get_gesture_names() local307 for (gesture = 0; gesture < CROS_EC_MAX_GESTURE; gesture++) { in cros_ec_get_gesture_names()308 if (!strcmp(ent_event->d_name, cros_ec_gesture_name[gesture])) in cros_ec_get_gesture_names()311 if (gesture == CROS_EC_MAX_GESTURE) in cros_ec_get_gesture_names()313 int gesture_id = cros_ec_gesture_id[gesture]; in cros_ec_get_gesture_names()326 gesture_info->enable_entry = cros_ec_gesture_name[gesture]; in cros_ec_get_gesture_names()330 memcpy(sensor_data, &sGestureListTemplate[gesture], sizeof(sensor_t)); in cros_ec_get_gesture_names()
310 struct cros_ec_gesture_info *gesture = &mGestureInfo[event->activity]; in processEvent() local311 if (!gesture->enabled) in processEvent()316 data->type = gesture->sensor_data.type; in processEvent()327 if (gesture->sensor_data.flags & SENSOR_FLAG_ONE_SHOT_MODE) in processEvent()328 gesture->enabled = 0; in processEvent()