Home | History | Annotate | Download | only in cros

Lines Matching refs:LOCK

15 A caller can lock or unlock one or more DUTs. If the caller fails to unlock()
22 manager.lock(['host1'])
32 @attribute LOCK: a string.
36 LOCK = 'lock'
79 @param operation: a string, LOCK or UNLOCK.
90 if operation == self.LOCK and host_info.locked:
102 def lock(self, hosts, lock_reason='Locked by HostLockManager'):
103 """Attempt to lock hosts in AFE.
112 logging.info('Attempt to lock %s', new_hosts)
116 return self._host_modifier(new_hosts, self.LOCK, lock_reason=lock_reason)
126 # Filter out hosts that we did not lock
146 @param operation: a string, LOCK or UNLOCK.
163 kwargs = {'locked': True if operation == self.LOCK else False}
164 if operation == self.LOCK:
170 if operation == self.LOCK and lock_reason:
192 @param manager: The HostLockManager used to lock the hosts.