Searched refs:virtio_input_bitmap (Results 1 – 3 of 3) sorted by relevance
/external/crosvm/devices/src/virtio/input/ |
D | defaults.rs | 9 use super::virtio_input_bitmap; 20 virtio_input_bitmap::new([0u8; 128]), in new_trackpad_config() 33 virtio_input_bitmap::new([0u8; 128]), in new_mouse_config() 46 virtio_input_bitmap::new([0u8; 128]), in new_keyboard_config() 58 virtio_input_bitmap::new([0u8; 128]), in new_switches_config() 71 virtio_input_bitmap::from_bits(&[INPUT_PROP_DIRECT]), in new_single_touch_config() 84 virtio_input_bitmap::from_bits(&[INPUT_PROP_DIRECT]), in new_multi_touch_config() 97 fn default_touchscreen_events() -> BTreeMap<u16, virtio_input_bitmap> { in default_touchscreen_events() 98 let mut supported_events: BTreeMap<u16, virtio_input_bitmap> = BTreeMap::new(); in default_touchscreen_events() 99 supported_events.insert(EV_KEY, virtio_input_bitmap::from_bits(&[BTN_TOUCH])); in default_touchscreen_events() [all …]
|
D | evdev.rs | 10 use super::virtio_input_bitmap; 172 pub fn properties<T: AsRawDescriptor>(descriptor: &T) -> Result<virtio_input_bitmap> { in properties() argument 186 Ok(virtio_input_bitmap::new(props.buffer)) in properties() 193 ) -> Result<BTreeMap<u16, virtio_input_bitmap>> { in supported_events() argument 194 let mut evts: BTreeMap<u16, virtio_input_bitmap> = BTreeMap::new(); in supported_events() 230 evts.insert(ev, virtio_input_bitmap::new(evt_codes.buffer)); in supported_events()
|
D | mod.rs | 177 fn set_payload_bitmap(&mut self, bitmap: &virtio_input_bitmap) { in set_payload_bitmap() argument 193 pub struct virtio_input_bitmap { struct 197 impl virtio_input_bitmap { implementation 198 fn new(bitmap: [u8; 128]) -> virtio_input_bitmap { in new() argument 199 virtio_input_bitmap { bitmap } 207 fn from_bits(set_indices: &[u16]) -> virtio_input_bitmap { in from_bits() argument 208 let mut ret = virtio_input_bitmap { bitmap: [0u8; 128] }; in from_bits() 240 properties: virtio_input_bitmap, 241 supported_events: BTreeMap<u16, virtio_input_bitmap>, 250 properties: virtio_input_bitmap, in new() argument [all …]
|