Home
last modified time | relevance | path

Searched refs:pp_data (Results 1 – 2 of 2) sorted by relevance

/external/autotest/client/common_lib/
Dpowerplay_util.py31 def extract_current(self, pp_data): argument
38 if pp_data[0].isdigit():
39 self.momentary_curr_list.append(float(pp_data[pp_data.index(',')+1:]
40 [:pp_data[pp_data.index(',')+1:].index(',')]))
82 pp_data = (self.ser.readline().replace('\00', '').
84 if (not pp_data.startswith('#') and (len(pp_data) > 30) and
86 self.text_file.write(current_timestamp + ',' + pp_data)
87 self.momentary_curr_list = self.extract_current(pp_data)
/external/autotest/server/site_tests/firmware_StandbyPowerConsumption/
Dfirmware_StandbyPowerConsumption.py42 pp_data = (line.replace('\00', '').
44 if (not pp_data.startswith('#') and (len(pp_data) > 30)):
45 if pp_data[0].isdigit():
47 float(pp_data[pp_data.index(',')+1:]
48 [:pp_data[pp_data.index(',')+1:].index(',')]))