def __init__(self, _id, _stamp, _listener):
     BaseController.__init__(self, _id, _stamp, _listener)
     self.action = Action()
     self.__subprocess = 0
     self.SMT_TEST_SUB_PROCESS = []
     self.SMT_TEST_SUB_PROCESS.append({'label': u'wifi测试',
                                       'debug_ret': Setting.RESULT_OK})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'屏幕测试',
                                       'debug_ret': Setting.RESULT_OK})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'背光测试',
                                       'debug_ret': Setting.RESULT_OK})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'传感器测试',
                                       'debug_ret': Setting.RESULT_OK})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'音频测试',
                                       'debug_ret': Setting.RESULT_CONTINUE})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'录音测试',
                                       'debug_ret': Setting.RESULT_OK})
     self.SMT_TEST_SUB_PROCESS.append({'label': u'上传报告',
                                       'debug_ret': Setting.RESULT_OK})
     self.name = 'Empty'
     self.stamp.params['product_test'] = {}
示例#2
0
 def __init__(self, _id, _stamp, _listener):
     BaseController.__init__(self, _id, _stamp, _listener)
     self.action = Action()
     self.entry = 'SN: '
     self.name = '写入SN'
 def handle_action(self, request_code, input_bundle):
     _result = BaseController.handle_action(self, request_code, input_bundle)
     return _result
 def __init__(self, _id, _stamp, _listener):
     BaseController.__init__(self, _id, _stamp, _listener)
     self.action = Action()
     self.service = Service()