Lines Matching refs:target_info

189     target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
190 self.assertEqual('product-device', target_info.device)
191 self.assertEqual('build-fingerprint', target_info.fingerprint)
192 self.assertFalse(target_info.is_ab)
193 self.assertIsNone(target_info.oem_props)
196 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
198 self.assertEqual('device1', target_info.device)
200 target_info.fingerprint)
205 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
207 self.assertEqual('device3', target_info.device)
209 target_info.fingerprint)
249 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
250 self.assertEqual('value1', target_info['property1'])
251 self.assertEqual(4096, target_info['property2'])
253 target_info['build.prop'].GetProp('ro.build.foo'))
256 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
258 self.assertEqual('value1', target_info['property1'])
259 self.assertEqual(4096, target_info['property2'])
260 self.assertIsNone(target_info['build.prop'].GetProp('ro.build.foo'))
263 target_info = common.BuildInfo(copy.deepcopy(self.TEST_INFO_DICT), None)
264 self.assertEqual('value1', target_info['property1'])
265 target_info['property1'] = 'value2'
266 self.assertEqual('value2', target_info['property1'])
269 target_info['build.prop'].GetProp('ro.build.foo'))
270 target_info['build.prop'].build_props['ro.build.foo'] = 'build-bar'
272 target_info['build.prop'].GetProp('ro.build.foo'))
275 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
276 self.assertEqual('value1', target_info.get('property1'))
277 self.assertEqual(4096, target_info.get('property2'))
278 self.assertEqual(4096, target_info.get('property2', 1024))
279 self.assertEqual(1024, target_info.get('property-nonexistent', 1024))
281 target_info.get('build.prop').GetProp('ro.build.foo'))
284 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
286 self.assertEqual('value1', target_info.get('property1'))
287 self.assertEqual(4096, target_info.get('property2'))
288 self.assertEqual(4096, target_info.get('property2', 1024))
289 self.assertEqual(1024, target_info.get('property-nonexistent', 1024))
290 self.assertIsNone(target_info.get('build.prop').GetProp('ro.build.foo'))
293 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
294 items = target_info.items()
299 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
300 self.assertEqual('build-foo', target_info.GetBuildProp('ro.build.foo'))
301 self.assertRaises(common.ExternalError, target_info.GetBuildProp,
305 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
307 self.assertEqual('build-bar', target_info.GetBuildProp('ro.build.bar'))
308 self.assertRaises(common.ExternalError, target_info.GetBuildProp,
312 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
314 target_info.GetPartitionFingerprint('vendor'),
320 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
322 target_info.GetPartitionFingerprint('system_other'),
323 target_info.GetPartitionFingerprint('system'))
329 target_info = common.BuildInfo(info_dict, None)
331 target_info.GetPartitionFingerprint('vendor'),
335 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
338 target_info.WriteMountOemScript(script_writer)
342 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
344 target_info.WriteDeviceAssertions(script_writer, False)
348 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
351 target_info.WriteDeviceAssertions(script_writer, False)
1941 target_info = common.LoadDictionaryFromLines("""
1950 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs)
1988 target_info = common.LoadDictionaryFromLines("""
1996 dp_diff = common.DynamicPartitionsDifference(target_info,
2021 target_info = common.LoadDictionaryFromLines("""
2041 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs,
2097 target_info = common.LoadDictionaryFromLines("""
2104 common.OPTIONS.info_dict = target_info
2105 common.OPTIONS.target_info_dict = target_info
2112 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs,