Lines Matching refs:oem_dict
401 def AppendAssertions(script, info_dict, oem_dict=None): argument
407 if oem_dict is None:
411 if oem_dict.get(prop) is None:
414 script.AssertOemProperty(prop, oem_dict.get(prop))
431 def GetOemProperty(name, oem_props, oem_dict, info_dict): argument
433 return oem_dict[name]
437 def CalculateFingerprint(oem_props, oem_dict, info_dict): argument
441 GetOemProperty("ro.product.brand", oem_props, oem_dict, info_dict),
442 GetOemProperty("ro.product.name", oem_props, oem_dict, info_dict),
443 GetOemProperty("ro.product.device", oem_props, oem_dict, info_dict),
496 oem_dict = None
501 oem_dict = common.LoadDictionaryFromLines(
505 "post-build": CalculateFingerprint(oem_props, oem_dict,
507 "pre-device": GetOemProperty("ro.product.device", oem_props, oem_dict,
529 AppendAssertions(script, OPTIONS.info_dict, oem_dict)
574 oem_props, oem_dict, OPTIONS.info_dict))
801 oem_dict = None
806 oem_dict = common.LoadDictionaryFromLines(
809 AppendAssertions(script, OPTIONS.target_info_dict, oem_dict)
855 oem_props, oem_dict, OPTIONS.source_info_dict))
857 oem_props, oem_dict, OPTIONS.target_info_dict))
1127 oem_dict = None
1132 oem_dict = common.LoadDictionaryFromLines(
1136 "pre-device": GetOemProperty("ro.product.device", oem_props, oem_dict,
1160 target_fp = CalculateFingerprint(oem_props, oem_dict,
1162 source_fp = CalculateFingerprint(oem_props, oem_dict,
1196 AppendAssertions(script, OPTIONS.target_info_dict, oem_dict)