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

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

            @staticmethod
    def getTimeAsString(theTime):
        return "%02d%02d%02d" % (theTime.hour, theTime.minute, theTime.second)
        


src/t/a/taintdroid_runner-HEAD/taintdroid_runner.py   taintdroid_runner(Download)
        """
        if self.cancelFlag:
            self.log.write('%s: Cancelation flag found, abort thread' % Utils.getTimeAsString(datetime.datetime.now()))
            traceback.print_stack(file=self.log.log)
            raise KeyboardInterrupt
            # Print results
            self.log.write('- App: %s (package: %s)' % (self.app.getApkFileName(), self.app.getPackage()))
            self.log.write('- Time: %s %s - %s' % (Utils.getDateAsString(self.startTime), Utils.getTimeAsString(self.startTime), Utils.getTimeAsString(self.result['endTime'])))
            if self.result.has_key('log'):
                self.result['log'].printOverview()
 
        # Install app
        self.log.write('- %s: Install app' % Utils.getTimeAsString(datetime.datetime.now()))
        if (theSteps & SimulationSteps.INSTALL):
            numRetries = 0
        logAnalyzer = None
        try:
            self.log.write('- %s: Analyze log' % Utils.getTimeAsString(datetime.datetime.now()))
            # Store log in logfile
            #log = theEmulator.getLog()

src/t/a/taintdroid_runner-HEAD/helper_analyzer.py   taintdroid_runner(Download)
            report = MainReportEntry()
            timeNow = datetime.datetime.now()
            report.startTime = '%s %s' % (Utils.getDateAsString(timeNow), Utils.getTimeAsString(timeNow))
            report.endTime = '%s %s' % (Utils.getDateAsString(timeNow), Utils.getTimeAsString(timeNow))
            fileNameList = os.listdir(theDir)
                    appReportEntry.md5Hash = apk.getMd5Hash()
                    appReportEntry.logcatFile = logcatFile
                    appReportEntry.startTime = '%s %s' % (Utils.getDateAsString(timeNow), Utils.getTimeAsString(timeNow))
                    appReportEntry.endTime = '%s %s' % (Utils.getDateAsString(timeNow), Utils.getTimeAsString(timeNow))
                    report.appList.append(appReportEntry)

src/t/a/taintdroid_runner-HEAD/report_generator.py   taintdroid_runner(Download)
        report.write('<h2>Parameters</h2>')
        report.write('<li><b>Working Directory</b>: %s' % theReportData['workingDir'])
        report.write('<li><b>Time</b>: %s-%s - %s-%s' % (Utils.getDateAsString(theReportData['startTime']), Utils.getTimeAsString(theReportData['startTime']), Utils.getDateAsString(theReportData['endTime']), Utils.getTimeAsString(theReportData['endTime'])))
        report.write('<li><b>numThreads</b>: %d' % theReportData['numThreads'])
        report.write('<li><b>emulatorStartPort</b>: %d' % theReportData['emulatorStartPort'])
        report.write('<li><b>numMonkeyEvents</b>: %d' % theResultEntry['numMonkeyEvents'])
        report.write('<li><b>sleepTime</b>: %d' % theResultEntry['sleepTime'])
        report.write('<li><b>startTime</b>: %s-%s' % (Utils.getDateAsString(theResultEntry['startTime']), Utils.getTimeAsString(theResultEntry['startTime'])))
        report.write('<li><b>endTime</b>: %s-%s' % (Utils.getDateAsString(theResultEntry['endTime']), Utils.getTimeAsString(theResultEntry['endTime'])))
        report.write('<li><b>cleanImageDir</b>: %s' % theResultEntry['cleanImageDir'])