Home
last modified time | relevance | path

Searched refs:user_id (Results 1 – 5 of 5) sorted by relevance

/tools/test/connectivity/acts_tests/acts_contrib/test_utils/users/
Dusers.py41 def switch_user(android_device, user_id): argument
43 android_device.adb.shell("am switch-user {}".format(user_id))
45 log.error("Failed to successfully switch user {}".format(user_id))
50 def remove_user(android_device, user_id): argument
51 return "Success" in android_device.adb.shell("pm remove-user {}".format(user_id))
60 def _wait_for_user_to_take_place(android_device, user_id, timeout=10): argument
64 if user_id != get_current_user(android_device):
/tools/netsim/src/hci/
Dasync_manager.cc285 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsync() argument
288 std::chrono::steady_clock::now() + delay, callback, user_id)); in ExecAsync()
291 AsyncTaskId ExecAsyncPeriodically(AsyncUserId user_id, in ExecAsyncPeriodically() argument
296 std::chrono::steady_clock::now() + delay, period, callback, user_id)); in ExecAsyncPeriodically()
305 bool CancelAsyncTasksFromUser(AsyncUserId user_id) { in CancelAsyncTasksFromUser() argument
308 if (tasks_by_user_id_.count(user_id) == 0) { in CancelAsyncTasksFromUser()
311 for (auto task : tasks_by_user_id_[user_id]) { in CancelAsyncTasksFromUser()
314 tasks_by_user_id_.erase(user_id); in CancelAsyncTasksFromUser()
362 user_id(user) {} in Task()
369 user_id(user) {} in Task()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py109 def is_root(self, user_id=None): argument
117 if not user_id:
118 user_id = self.get_user_id()
119 return user_id == ROOT_USER_ID
133 def ensure_user(self, user_id=SHELL_USER_ID): argument
139 if self.is_root(user_id):
144 return self.get_user_id() == user_id
/tools/test/connectivity/acts_tests/tests/google/bt/car_bt/
DBtCarMultiUserTest.py45 for user_id in [self.userid_1, self.userid_2]:
46 users.remove_user(self.droid_ad, user_id)
/tools/netsim/rust/daemon/src/http_server/
Dhttp_router.rs107 fn handle_user(_request: &Request<Vec<u8>>, user_id: &str, writer: ResponseWritable) { in handle_user()