Lines Matching refs:client
7 from autotest_lib.client.common_lib import error
8 from autotest_lib.client.cros import cros_ui
26 def TPMStatus(client): argument
31 out = client.run('cryptohome --action=tpm_status').stdout.strip()
48 def IsTPMAvailable(client): argument
53 status = TPMStatus(client)
57 def ClearTPMServer(client, out_dir): argument
63 if IsTPMAvailable(client):
67 client.run('stop ui')
69 password = TPMStatus(client)['Password']
72 client.get_file(_PASSWD_FILE, out_dir)
89 res = client.run('tpm_clear --pass ' + password).stdout.strip()
93 client.run('crossystem clear_tpm_owner_request=1')
95 CleanupAndReboot(client)
98 def ClearTPMOwnerRequest(client): argument
103 if not client.run('crossystem clear_tpm_owner_request=1',
107 CleanupAndReboot(client)
110 def CleanupAndReboot(client): argument
117 client.run('sudo rm -rf ' + _RM_DIRS, ignore_status=True)
118 client.run('sync', ignore_status=True)
119 client.reboot()