Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

            @staticmethod
    def getStepsAsString(theSteps):
        stepString = str(theSteps) + ' ('
        if theSteps & SimulationSteps.INSTALL:
            stepString += 'Install, '
        if theSteps & SimulationSteps.START:
            stepString += 'Start, '
        if theSteps & SimulationSteps.MONKEY_BEFORE_GSM:
            stepString += 'Monkey Before GSM, '
        if theSteps & SimulationSteps.GSM:
            stepString += 'GSM, '
        if theSteps & SimulationSteps.MONKEY_BEFORE_GEO:
            stepString += 'Monkey Before GEO, '
        if theSteps & SimulationSteps.GEO:
            stepString += 'GEO, '
        if theSteps & SimulationSteps.MONKEY_BEFORE_SMS:
            stepString += 'Monkey Before SMS, '
        if theSteps & SimulationSteps.SMS:
            stepString += 'SMS, '
        if theSteps & SimulationSteps.MONKEY_BEFORE_POWER:
            stepString += 'Monkey Before Power, '
        if theSteps & SimulationSteps.POWER:
            stepString += 'Power, '
        if theSteps & SimulationSteps.MONKEY:
            stepString += 'Monkey, '
        if theSteps & SimulationSteps.SLEEP:
            stepString += 'Sleep, '
        if theSteps & SimulationSteps.WAIT_FOR_RAW_INPUT:
            stepString += 'Wait For Input, '
        if stepString[-2:] == ') ':
            stepString = stepString[:-2]
        elif stepString[-2:] == ', ':
            stepString = stepString[:-2] + ')'
        return stepString
        


src/t/a/taintdroid_runner-HEAD/taintdroid_runner.py   taintdroid_runner(Download)
        """
        # Debug infos
        self.log.debug('simulationSteps: %s' % SimulationSteps.getStepsAsString(self.simulationSteps))
        self.log.debug('numMonkeyEvents: %d' % self.numMonkeyEvents)
        self.log.debug('emulatorPort: %d' % self.emulatorPort)
                    self.log.write('####################')
 
                    self.log.write('Current simulation steps: %s' % SimulationSteps.getStepsAsString(localSimulationSteps))
                    self.log.write('Current num monkey events: %d' % localNumMonkeyEvents)
                    self.log.write('\nChoose')

src/t/a/taintdroid_runner-HEAD/report_generator.py   taintdroid_runner(Download)
        report.write('<li><b>Path</b>: %s' % app.getApk())
        report.write('<li><b>Id</b>: %06d' % app.getId())
        report.write('<li><b>steps</b>: %s' % SimulationSteps.getStepsAsString(theResultEntry['steps']))
        report.write('<li><b>numMonkeyEvents</b>: %d' % theResultEntry['numMonkeyEvents'])
        report.write('<li><b>sleepTime</b>: %d' % theResultEntry['sleepTime'])