Searched refs:add_callback (Results 1 – 12 of 12) sorted by relevance
38 pub fn add_callback(&mut self, mut callback: Box<T>) -> u32 { in add_callback() method130 let cbid = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove()142 let cbid1 = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove()152 let cbid2 = callbacks.add_callback(Box::new(TestCallback::new(cb_string.clone()))); in test_add_and_remove()
75 self.battery_provider_callbacks.add_callback(battery_provider_callback) in register_battery_provider()
94 self.callbacks.add_callback(battery_manager_callback) in register_battery_callback()
106 self.callbacks.add_callback(callback) in register_qa_callback()
265 self.callbacks.add_callback(callback) in register_admin_policy_callback()
210 let id = self.callbacks.add_callback(callback); in register_callback()
361 self.callbacks.add_callback(callback) in register_callback()
878 self.callbacks.add_callback(callback) in register_callback()1675 self.callbacks.add_callback(callback) in register_callback()
1275 self.callbacks.add_callback(callback) in register_callback()
2160 self.callbacks.add_callback(callback) in register_callback()2171 self.connection_callbacks.add_callback(callback) in register_connection_callback()
124 let cbid = self.callbacks.add_callback(callback); in add()266 let cbid = self.callbacks.add_callback(callback); in add()2124 self.scanner_callbacks.add_callback(callback) in register_scanner_callback()
3099 let _id = self.callbacks.lock().unwrap().add_callback(callback); in register_callback()4102 let _id = self.telephony_callbacks.lock().unwrap().add_callback(callback); in register_telephony_callback()