Home
last modified time | relevance | path

Searched refs:valType (Results 1 – 3 of 3) sorted by relevance

/packages/services/Car/tools/emulator/
Dprop_event_simulator.py14 def parseVal(val, valType): argument
15 if valType in vhal_types.TYPE_STRING:
17 elif valType in vhal_types.TYPE_INT32:
19 elif valType in vhal_types.TYPE_INT32S:
21 elif valType in vhal_types.TYPE_INT64:
23 elif valType in vhal_types.TYPE_INT64S:
25 elif valType in vhal_types.TYPE_FLOAT:
27 elif valType in vhal_types.TYPE_FLOATS:
29 elif valType in vhal_types.TYPE_MIXED:
33 raise ValueError('Property value type not recognized:', valType)
Dvhal_emulator_test.py67 valType = cfg.value_type
68 if valType in self._types.TYPE_STRING:
70 elif valType in self._types.TYPE_BYTES:
73 elif valType == vhal_consts_2_0.VEHICLEPROPERTYTYPE_BOOLEAN:
75 elif valType in self._types.TYPE_INT32:
82 elif valType in self._types.TYPE_INT64:
89 elif valType in self._types.TYPE_FLOAT:
100 self._log.error("generateTestValue: valType=0x%X is not handled", valType)
111 valType = rxMsg.value[0].value_type
113 if valType in self._types.TYPE_STRING:
[all …]
Dvhal_emulator.py224 valType = self._propToType[prop]
228 propValue.value_type = valType
229 if valType in self._types.TYPE_STRING:
231 elif valType in self._types.TYPE_BYTES:
233 elif valType in self._types.TYPE_INT32:
235 elif valType in self._types.TYPE_INT64:
237 elif valType in self._types.TYPE_FLOAT:
239 elif valType in self._types.TYPE_INT32S:
241 elif valType in self._types.TYPE_FLOATS:
243 elif valType in self._types.TYPE_MIXED:
[all …]