Searched refs:user_id (Results 1 – 3 of 3) sorted by relevance
41 def switch_user(android_device, user_id): argument43 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): argument51 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): argument64 if user_id != get_current_user(android_device):
109 def is_root(self, user_id=None): argument117 if not user_id:118 user_id = self.get_user_id()119 return user_id == ROOT_USER_ID133 def ensure_user(self, user_id=SHELL_USER_ID): argument139 if self.is_root(user_id):144 return self.get_user_id() == user_id
46 for user_id in [self.userid_1, self.userid_2]:47 users.remove_user(self.droid_ad, user_id)