Home
last modified time | relevance | path

Searched refs:post_id (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/cros/cellular/wardmodem/
Dtask_loop.py206 post_id = self._next_post_id
210 self._posted_tasks[post_id] = glib.timeout_add(
214 post_id,
217 return post_id
234 post_id = self._next_post_id
237 self._posted_tasks[post_id] = glib.timeout_add(delay_ms, callback,
239 return post_id
262 def cancel_posted_task(self, post_id): argument
272 if post_id in self._posted_tasks:
273 retval = glib.source_remove(self._posted_tasks[post_id])
[all …]
Dtask_loop_unittest.py93 post_id = self._task_loop.post_task_after_delay(
96 self._task_loop.post_task(self._callback_cancel_task, post_id)
103 post_id = self._task_loop.post_task_after_delay(
106 self._task_loop.post_task(self._callback_cancel_task, post_id)
107 self._task_loop.post_task(self._callback_cancel_cancelled_task, post_id)
173 def _callback_cancel_task(self, post_id): argument
174 self._task_loop.cancel_posted_task(post_id)
177 def _callback_cancel_cancelled_task(self, post_id): argument
178 self.assertFalse(self._task_loop.cancel_posted_task(post_id))