Home
last modified time | relevance | path

Searched refs:set_capacity (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/rusqlite/src/
Dcache.rs47 self.cache.set_capacity(capacity) in set_prepared_statement_cache_capacity()
113 fn set_capacity(&self, capacity: usize) { in set_capacity() method
114 self.0.borrow_mut().set_capacity(capacity) in set_capacity()
/external/rust/crates/lru-cache/src/
Dlib.rs219 pub fn set_capacity(&mut self, capacity: usize) { in set_capacity() method
496 cache.set_capacity(1); in test_change_capacity()
514 cache.set_capacity(2); in test_debug()
/external/crosvm/devices/src/
Dbat.rs87 create_battery_func!(set_capacity, capacity, BATTERY_STATUS_CHANGED);
222 bat_state.set_capacity(v) in command_monitor()
260 inject_irq |= bat_state.set_capacity(battery_data.percent); in command_monitor()
/external/rust/crates/hashlink/tests/
Dlru_cache.rs60 cache.set_capacity(1); in test_change_capacity()
/external/rust/crates/hashlink/src/
Dlru_cache.rs219 pub fn set_capacity(&mut self, capacity: usize) { in set_capacity() function
/external/ltp/testcases/kernel/device-drivers/tbio/tbio_kernel/
Dltp_tbio.c548 set_capacity(tbio_dev.gd, nsectors); in tbio_init()