Home
last modified time | relevance | path

Searched refs:user_id (Results 1 – 3 of 3) 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/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.py46 for user_id in [self.userid_1, self.userid_2]:
47 users.remove_user(self.droid_ad, user_id)