Lines Matching refs:line

267         line = self.adbout.readline()
271 if line is None:
273 print line
276 timestamp = self._parse_timestamp(line)
284 if line.find('Raw acceleration vector:') != -1:
285 self.parse_raw_acceleration_x = self._get_following_number(line, 'x=')
286 self.parse_raw_acceleration_y = self._get_following_number(line, 'y=')
287 self.parse_raw_acceleration_z = self._get_following_number(line, 'z=')
288 self.parse_raw_acceleration_magnitude = self._get_following_number(line, 'magnitude=')
290 if line.find('Filtered acceleration vector:') != -1:
291 self.parse_filtered_acceleration_x = self._get_following_number(line, 'x=')
292 self.parse_filtered_acceleration_y = self._get_following_number(line, 'y=')
293 self.parse_filtered_acceleration_z = self._get_following_number(line, 'z=')
294 self.parse_filtered_acceleration_magnitude = self._get_following_number(line, 'magnitude=')
296 if line.find('tiltAngle=') != -1:
297 self.parse_tilt_angle = self._get_following_number(line, 'tiltAngle=')
299 if line.find('orientationAngle=') != -1:
300 self.parse_orientation_angle = self._get_following_number(line, 'orientationAngle=')
302 if line.find('Result:') != -1:
303 self.parse_current_rotation = self._get_following_number(line, 'currentRotation=')
304 self.parse_proposed_rotation = self._get_following_number(line, 'proposedRotation=')
305 self.parse_predicted_rotation = self._get_following_number(line, 'predictedRotation=')
306 self.parse_sample_latency = self._get_following_number(line, 'timeDeltaMS=')
307 self.parse_time_until_settled = self._get_following_number(line, 'timeUntilSettledMS=')
308 …self.parse_time_until_flat_delay_expired = self._get_following_number(line, 'timeUntilFlatDelayExp…
309 …self.parse_time_until_swing_delay_expired = self._get_following_number(line, 'timeUntilSwingDelayE…
310 …self.parse_time_until_acceleration_delay_expired = self._get_following_number(line, 'timeUntilAcce…
392 def _get_following_word(self, line, prefix): argument
393 prefix_index = line.find(prefix)
397 delim_index = line.find(',', start_index)
399 return line[start_index:]
401 return line[start_index:delim_index]
404 def _get_following_number(self, line, prefix): argument
405 word = self._get_following_word(line, prefix)
411 def _get_following_array_of_numbers(self, line, prefix): argument
412 prefix_index = line.find(prefix + '[')
416 delim_index = line.find(']', start_index)
422 comma_index = line.find(', ', start_index, delim_index)
424 result.append(float(line[start_index:delim_index]))
426 result.append(float(line[start_index:comma_index]))
437 def _parse_timestamp(self, line): argument
438 return datetime.strptime(line[0:18], '%m-%d %H:%M:%S.%f')