Lines Matching refs:ota_id
83 def _get_partition_id_from_ota_id(self, ota_id): argument
84 if isinstance(ota_id, int):
85 return PartitionType('app', 'ota_' + str(ota_id))
87 return PartitionName(ota_id)
89 def switch_ota_partition(self, ota_id): argument
120 if isinstance(ota_id, int):
121 …n_next = filter(lambda p: p.subtype - gen.MIN_PARTITION_SUBTYPE_APP_OTA == ota_id, ota_partitions)
123 ota_partition_next = filter(lambda p: p.name == ota_id, ota_partitions)
192 def read_ota_partition(self, ota_id, output): argument
193 self.target.read_partition(self._get_partition_id_from_ota_id(ota_id), output)
195 def write_ota_partition(self, ota_id, input): argument
196 self.target.write_partition(self._get_partition_id_from_ota_id(ota_id), input)
198 def erase_ota_partition(self, ota_id): argument
199 self.target.erase_partition(self._get_partition_id_from_ota_id(ota_id))
217 def _switch_ota_partition(target, ota_id): argument
218 target.switch_ota_partition(ota_id)
221 def _read_ota_partition(target, ota_id, output): argument
222 target.read_ota_partition(ota_id, output)
226 def _write_ota_partition(target, ota_id, input): argument
227 target.write_ota_partition(ota_id, input)
231 def _erase_ota_partition(target, ota_id): argument
232 target.erase_ota_partition(ota_id)
329 ota_id = []
333 ota_id = ['name']
336 ota_id = ['slot']
343 'switch_ota_partition':(_switch_ota_partition, ota_id),
344 'read_ota_partition':(_read_ota_partition, ['output'] + ota_id),
345 'write_ota_partition':(_write_ota_partition, ['input'] + ota_id),
346 'erase_ota_partition':(_erase_ota_partition, ota_id)