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

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

            @staticmethod
    def getTaintString(theTag):
        try:
            tagInt = int(theTag, 16)
        except TypeError, typeErr:
            if theTag == 0:
                tagInt = theTag
        tagString = str(theTag) + ' ('
        if tagInt == TaintTagEnum.TAINT_CLEAR:
            tagString += 'No Tag)'
        else:
            if tagInt & TaintTagEnum.TAINT_LOCATION:
                tagString += 'Location, '
            if tagInt & TaintTagEnum.TAINT_CONTACTS:
                tagString += 'Contact, '
            if tagInt & TaintTagEnum.TAINT_MIC:
                tagString += 'Microphone, '
            if tagInt & TaintTagEnum.TAINT_PHONE_NUMBER:
                tagString += 'Phone Number, '
            if tagInt & TaintTagEnum.TAINT_LOCATION_GPS:
                tagString += 'GPS Location, '
            if tagInt & TaintTagEnum.TAINT_LOCATION_NET:
                tagString += 'Net Location, '
            if tagInt & TaintTagEnum.TAINT_LOCATION_LAST:
                tagString += 'Last Location, '
            if tagInt & TaintTagEnum.TAINT_CAMERA:
                tagString += 'Camera, '
            if tagInt & TaintTagEnum.TAINT_ACCELEROMETER:
                tagString += 'Accelerometer, '
            if tagInt & TaintTagEnum.TAINT_SMS:
                tagString += 'SMS, '
            if tagInt & TaintTagEnum.TAINT_IMEI:
                tagString += 'IMEI, '
            if tagInt & TaintTagEnum.TAINT_IMSI:
                tagString += 'IMSI, '
            if tagInt & TaintTagEnum.TAINT_ICCID:
                tagString += 'ICCID, '
            if tagInt & TaintTagEnum.TAINT_DEVICE_SN:
                tagString += 'Device SN, '
            if tagInt & TaintTagEnum.TAINT_ACCOUNT:
                tagString += 'Account ,'  
            if tagInt & TaintTagEnum.TAINT_HISTORY:
                tagString += 'History, '
            if tagInt & TaintTagEnum.TAINT_INCOMING_DATA:
                tagString += 'Incoming, '
            if tagInt & TaintTagEnum.TAINT_USER_INPUT:
                tagString += 'UserInput, '
            if tagInt & TaintTagEnum.TAINT_MEDIA:
                tagString += 'Media, '
        if tagString[-2:] == ') ':
            tagString = tagString[:-2]
        elif tagString[-2:] == ', ':
            tagString = tagString[:-2] + ')'
        return tagString
        


src/t/a/taintdroid_runner-HEAD/taintlog_json.py   taintdroid_runner(Download)
    def getHtmlReportColumnList(self, theDetailsFlag=True):
        columnList = [TaintTagEnum.getTaintString(self.tag)]
        columnList.append(self.dialString)
        if theDetailsFlag: columnList.append(self.timestamp)
        if theDetailsFlag: columnList.append(self.stackTraceStr)
    def getOverviewLogStr(self):
        return 'CipherUsage (%s), id: %d, tag: %s, mode: %d' % (self.action, self.id, TaintTagEnum.getTaintString(self.tag), self.mode)
 
    def getHtmlReportColumnList(self, theDetailsFlag=True):
        columnList = [TaintTagEnum.getTaintString(self.tag)]
    def getOverviewLogStr(self):
        return 'FileSystemAccess (%s), tag: %s, file: %s (%d)' % (TaintLogActionEnum.getActionString(self.action), TaintTagEnum.getTaintString(self.tag), self.filePath, self.fileDescriptor)
 
    def getHtmlReportColumnList(self, theDetailsFlag=True):
        columnList = [TaintTagEnum.getTaintString(self.tag)]