Home | History | Annotate | Download | only in chameleon

Lines Matching full:edid

17 from autotest_lib.client.cros.chameleon import edid as edid_lib
298 """Reads the EDID.
300 @return: An Edid object or NO_EDID.
305 # Read EDID without verify. It may be made corrupted as intended
307 return edid_lib.Edid(edid_binary.data, skip_verify=True)
310 def apply_edid(self, edid):
311 """Applies the given EDID.
313 @param edid: An Edid object or NO_EDID.
315 if edid is edid_lib.NO_EDID:
318 edid_binary = xmlrpclib.Binary(edid.data)
325 def use_edid(self, edid):
326 """Uses the given EDID in a with statement.
328 It sets the EDID up in the beginning and restores to the original
329 EDID in the end. This function is expected to be used in a with
332 with chameleon_port.use_edid(edid):
335 @param edid: An EDID object.
337 # Set the EDID up in the beginning.
343 logging.info('Apply EDID on port %d', self.port_id)
344 self.apply_edid(edid)
355 # Restore the original EDID in the end.
358 logging.info('Restore the original EDID.')
363 """Uses the given EDID file in a with statement.
365 It sets the EDID up in the beginning and restores to the original
366 EDID in the end. This function is expected to be used in a with
372 @param filename: A path to the EDID file.
374 return self.use_edid(edid_lib.Edid.from_file(filename))