Lines Matching refs:target_info

172     target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
173 self.assertEqual('product-device', target_info.device)
174 self.assertEqual('build-fingerprint', target_info.fingerprint)
175 self.assertFalse(target_info.is_ab)
176 self.assertIsNone(target_info.oem_props)
179 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
181 self.assertEqual('device1', target_info.device)
183 target_info.fingerprint)
188 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
190 self.assertEqual('device3', target_info.device)
192 target_info.fingerprint)
205 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
206 self.assertEqual('value1', target_info['property1'])
207 self.assertEqual(4096, target_info['property2'])
209 target_info['build.prop'].GetProp('ro.build.foo'))
212 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
214 self.assertEqual('value1', target_info['property1'])
215 self.assertEqual(4096, target_info['property2'])
216 self.assertIsNone(target_info['build.prop'].GetProp('ro.build.foo'))
219 target_info = common.BuildInfo(copy.deepcopy(self.TEST_INFO_DICT), None)
220 self.assertEqual('value1', target_info['property1'])
221 target_info['property1'] = 'value2'
222 self.assertEqual('value2', target_info['property1'])
225 target_info['build.prop'].GetProp('ro.build.foo'))
226 target_info['build.prop'].build_props['ro.build.foo'] = 'build-bar'
228 target_info['build.prop'].GetProp('ro.build.foo'))
231 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
232 self.assertEqual('value1', target_info.get('property1'))
233 self.assertEqual(4096, target_info.get('property2'))
234 self.assertEqual(4096, target_info.get('property2', 1024))
235 self.assertEqual(1024, target_info.get('property-nonexistent', 1024))
237 target_info.get('build.prop').GetProp('ro.build.foo'))
240 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
242 self.assertEqual('value1', target_info.get('property1'))
243 self.assertEqual(4096, target_info.get('property2'))
244 self.assertEqual(4096, target_info.get('property2', 1024))
245 self.assertEqual(1024, target_info.get('property-nonexistent', 1024))
246 self.assertIsNone(target_info.get('build.prop').GetProp('ro.build.foo'))
249 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
250 items = target_info.items()
255 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
256 self.assertEqual('build-foo', target_info.GetBuildProp('ro.build.foo'))
257 self.assertRaises(common.ExternalError, target_info.GetBuildProp,
261 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
263 self.assertEqual('build-bar', target_info.GetBuildProp('ro.build.bar'))
264 self.assertRaises(common.ExternalError, target_info.GetBuildProp,
268 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
270 target_info.GetPartitionFingerprint('vendor'),
276 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
278 target_info.GetPartitionFingerprint('system_other'),
279 target_info.GetPartitionFingerprint('system'))
285 target_info = common.BuildInfo(info_dict, None)
287 target_info.GetPartitionFingerprint('vendor'),
291 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
294 target_info.WriteMountOemScript(script_writer)
298 target_info = common.BuildInfo(self.TEST_INFO_DICT, None)
300 target_info.WriteDeviceAssertions(script_writer, False)
304 target_info = common.BuildInfo(self.TEST_INFO_DICT_USES_OEM_PROPS,
307 target_info.WriteDeviceAssertions(script_writer, False)
1717 target_info = common.LoadDictionaryFromLines("""
1726 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs)
1764 target_info = common.LoadDictionaryFromLines("""
1772 dp_diff = common.DynamicPartitionsDifference(target_info,
1797 target_info = common.LoadDictionaryFromLines("""
1817 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs,
1873 target_info = common.LoadDictionaryFromLines("""
1880 common.OPTIONS.info_dict = target_info
1881 common.OPTIONS.target_info_dict = target_info
1888 dp_diff = common.DynamicPartitionsDifference(target_info, block_diffs,