/hardware/google/gfxstream/scripts/print_gfx_logs/ |
D | command_printer_test.py | 32 def get_printer(self, hex_data: str, timestamp_ms=0): argument 40 def test_raises_if_not_all_bytes_decoded(self): argument 42 cmd_printer, output = self.get_printer("01 02 03 04 05") 45 self.assertRaises(BufferError, cmd_printer.check_no_more_bytes) 47 def test_decode_int(self): argument 48 cmd_printer, output = self.get_printer("02 00 00 00") 51 self.assertEqual(r, 2) 52 self.assertEqual(output.getvalue(), "foobar: 2\n") 54 def test_decode_optional_int(self): argument 55 cmd_printer, output = self.get_printer("00 00 00 00 00 00 00 01 08") [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/ |
D | deepcopy.py | 24 def __init__(self, cgen, inputVars, poolVarName, rootVarName, prefix, skipValues=False): argument 25 self.cgen = cgen 26 self.inputVars = inputVars 27 self.prefix = prefix 28 self.poolVarName = poolVarName 29 self.rootVarName = rootVarName 30 self.skipValues = skipValues 33 return lambda t: self.cgen.generalAccess(t, parentVarName = varName, asPtr = asPtr) 36 return lambda t: self.cgen.generalLengthAccess(t, parentVarName = varName) 39 return lambda t: self.cgen.generalLengthAccessGuard(t, parentVarName=varName) [all …]
|
D | reservedmarshaling.py | 36 def __init__(self, argument 53 self.cgen = cgen 54 self.variant = variant 55 self.direction = direction 56 self.processSimple = "write" if self.direction == "write" else "read" 57 self.forApiOutput = forApiOutput 59 self.checked = False 61 self.streamVarName = streamVarName 62 self.rootTypeVarName = rootTypeVarName 63 self.inputVarName = inputVarName [all …]
|
D | dispatch.py | 143 def __init__(self, module, typeInfo): argument 144 VulkanWrapperGenerator.__init__(self, module, typeInfo) 146 self.apisToGet = {} 148 self.cgenHeader = CodeGen() 149 self.cgenImpl = CodeGen() 150 self.typeInfo = typeInfo 152 self.currentFeature = "" 153 self.featureForCodegen = "" 155 def onBegin(self): argument 161 self.cgenHeader.line(""" [all …]
|
D | marshaling.py | 40 def __init__(self, argument 52 self.cgen = cgen 53 self.direction = direction 54 self.processSimple = "write" if self.direction == "write" else "read" 55 self.forApiOutput = forApiOutput 57 self.checked = False 59 self.streamVarName = streamVarName 60 self.rootTypeVarName = rootTypeVarName 61 self.inputVarName = inputVarName 62 self.marshalPrefix = marshalPrefix [all …]
|
D | handlemap.py | 24 def __init__(self, cgen, inputVar, handlemapVarName, prefix, isHandleFunc): argument 25 self.cgen = cgen 26 self.inputVar = inputVar 27 self.prefix = prefix 28 self.handlemapVarName = handlemapVarName 31 return lambda t: self.cgen.generalAccess(t, parentVarName = varName, asPtr = asPtr) 34 return lambda t: self.cgen.generalLengthAccess(t, parentVarName = varName) 37 return lambda t: self.cgen.generalLengthAccessGuard(t, parentVarName=varName) 39 self.exprAccessor = makeAccess(self.inputVar) 40 self.exprAccessorValue = makeAccess(self.inputVar, asPtr = False) [all …]
|
D | counting.py | 27 …def __init__(self, cgen, featureBitsVar, toCountVar, countVar, rootTypeVar, prefix, forApiOutput=F… argument 28 self.cgen = cgen 29 self.featureBitsVar = featureBitsVar 30 self.toCountVar = toCountVar 31 self.rootTypeVar = rootTypeVar 32 self.countVar = countVar 33 self.prefix = prefix 34 self.forApiOutput = forApiOutput 36 …self.exprAccessor = lambda t: self.cgen.generalAccess(t, parentVarName = self.toCountVar, asPtr = … 37 …self.exprValueAccessor = lambda t: self.cgen.generalAccess(t, parentVarName = self.toCountVar, asP… [all …]
|
D | testing.py | 32 def __init__(self, cgen, inputVars, onFailCompareVar, prefix): argument 33 self.cgen = cgen 34 self.inputVars = inputVars 35 self.onFailCompareVar = onFailCompareVar 36 self.prefix = prefix 39 return lambda t: self.cgen.generalAccess(t, parentVarName = varName, asPtr = asPtr) 42 return lambda t: self.cgen.generalLengthAccess(t, parentVarName = varName) 45 return lambda t: self.cgen.generalLengthAccessGuard(t, parentVarName=varName) 47 self.exprAccessorLhs = makeAccess(self.inputVars[0]) 48 self.exprAccessorRhs = makeAccess(self.inputVars[1]) [all …]
|
D | transform.py | 105 def __init__(self, cgen, inputVar, resourceTrackerVarName, prefix, variant): argument 106 self.cgen = cgen 107 self.inputVar = inputVar 108 self.prefix = prefix 109 self.resourceTrackerVarName = resourceTrackerVarName 112 return lambda t: self.cgen.generalAccess(t, parentVarName = varName, asPtr = asPtr) 115 return lambda t: self.cgen.generalLengthAccess(t, parentVarName = varName) 118 return lambda t: self.cgen.generalLengthAccessGuard(t, parentVarName=varName) 120 self.exprAccessor = makeAccess(self.inputVar) 121 self.exprAccessorValue = makeAccess(self.inputVar, asPtr = False) [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/ |
D | cgenerator.py | 21 def __init__(self, argument 92 GeneratorOptions.__init__(self, **kwargs) 94 self.prefixText = prefixText 97 self.genFuncPointers = genFuncPointers 100 self.protectFile = protectFile 103 self.protectFeature = protectFeature 106 self.protectProto = protectProto 109 self.protectProtoStr = protectProtoStr 112 self.protectExtensionProto = protectExtensionProto 115 self.protectExtensionProtoStr = protectExtensionProtoStr [all …]
|
D | doctransformer.py | 87 def __init__(self): argument 88 self.blockStack = [ None ] 92 self.transformStack = [ True ] 95 self.vuStack = [ False ] 99 self.para = [] 103 self.lastTitle = False 107 self.leadIndent = 0 110 self.hangIndent = 0 113 self.lineNumber = 0 116 self.defaultApiName = '{refpage}' [all …]
|
D | scriptgenerator.py | 30 def apiName(self, name): argument 34 return self.genOpts.conventions.is_api_name(name) 36 def __init__(self, *args, **kwargs): argument 40 self.features = [] 43 self.apimap = {} 47 self.nonexistent = {} 49 def beginFile(self, genOpts): argument 50 OutputGenerator.beginFile(self, genOpts) 60 self.basetypes = {} 61 self.consts = {} [all …]
|
D | reg.py | 201 def __init__(self, elem): argument 202 self.required = False 206 self.declared = False 209 self.elem = elem 212 def resetState(self): argument 215 self.required = False 216 self.declared = False 218 def compareKeys(self, info, key, required = False): argument 224 if required and key not in self.elem.keys(): 226 return self.elem.get(key) == info.elem.get(key) [all …]
|
D | extensionmetadocgenerator.py | 18 def __init__(self, *args, **kwargs): argument 23 def __init__(self, argument 39 self.generator = generator 40 self.conventions = generator.genOpts.conventions 41 self.filename = filename 42 self.name = name 43 self.number = number 44 self.ext_type = ext_type 45 self.depends = depends 46 self.contact = contact [all …]
|
D | rubygenerator.py | 24 def __init__(self, *args, **kwargs): argument 27 def beginDict(self, name): argument 31 def endDict(self): argument 35 def writeDict(self, dict, name, printValues = True): argument 39 write(self.beginDict(name), file=self.outFile) 45 write(f'{enquote(key)} => {value},', file=self.outFile) 46 write(self.endDict(), file=self.outFile) 48 def writeList(self, l, name): argument 51 self.writeDict(l, name, printValues = False) 53 def makeAccessor(self, name): argument [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/spec_tools/ |
D | macro_checker.py | 20 def __init__(self, enabled_messages, entity_db, argument 30 self.enabled_messages = enabled_messages 31 self.entity_db = entity_db 32 self.macro_checker_file_type = macro_checker_file_type 33 self.root_path = root_path 35 self.files = [] 37 self.refpages = set() 40 self.links = {} 41 self.apiIncludes = {} 42 self.validityIncludes = {} [all …]
|
D | entity_db.py | 35 def makeRegistry(self): argument 43 def getNamePrefix(self): argument 51 def getPlatformRequires(self): argument 68 def getSystemTypes(self): argument 77 def getGeneratedDirs(self): argument 91 def populateMacros(self): argument 103 def populateEntities(self): argument 107 def getEntitiesWithoutValidity(self): argument 109 return [self.mixed_case_name_prefix + 112 def getExclusionSet(self): argument [all …]
|
D | macro_checker_file.py | 174 def lineToBlockType(self, line): argument 230 def __init__(self, checker, filename, enabled_messages, stream_maker): argument 241 self.checker = checker 242 self.filename = filename 243 self.stream_maker = stream_maker 244 self.enabled_messages = enabled_messages 245 self.missing_validity_suppressions = set( 246 self.getMissingValiditySuppressions()) 248 self.logger = logging.getLogger(__name__) 249 self.logger.addHandler(logging.NullHandler()) [all …]
|
D | file_process.py | 16 def __init__(self): argument 17 self._lines = [] 18 self._line_num = 0 19 self._next_line = None 20 self._line = '' 21 self._filename = Path() 24 def filename(self): argument 26 return self._filename 29 def relative_filename(self): argument 31 return self.filename.relative_to(Path('.').resolve()) [all …]
|
D | validity.py | 35 def __init__(self, entity_name=None, conventions=None, strict=True, verbose=False): argument 36 self.entity_name = entity_name 37 self.conventions = conventions 38 self.lines = [] 39 self.strict = strict 40 self.verbose = verbose 42 def possiblyAddExtensionRequirement(self, extension_name, entity_preface): argument 49 if extension_name and not extension_name.startswith(self.conventions.api_version_prefix): 51 self.conventions.formatExtension(extension_name), entity_preface, self.entity_name) 52 self.addValidityEntry(msg, anchor=('extension', 'notenabled')) [all …]
|
D | consistency_tools.py | 29 def __init__(self, entity_db, conventions: ConventionsBase, manual_types_to_codes=None, argument 54 self.fail = False 55 self.entity = None 56 self.errors = DictOfStringSets() 57 self.warnings = DictOfStringSets() 58 self.db = entity_db 59 self.reg = entity_db.registry 60 self.handle_data = HandleData(self.reg) 61 self.conventions = conventions 62 self.display_warnings = display_warnings [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/Retired/ |
D | extensionStubSource.py | 52 def __init__(self, argument 66 GeneratorOptions.__init__(self, filename, directory, apiname, profile, 70 self.prefixText = prefixText 71 self.alignFuncParam = alignFuncParam 95 def __init__(self, argument 99 OutputGenerator.__init__(self, errFile, warnFile, diagFile) 101 def beginFile(self, genOpts): argument 102 OutputGenerator.beginFile(self, genOpts) 109 self.pointers = []; 110 self.pointerInitializersInstance = []; [all …]
|
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/cereal/common/ |
D | codegen.py | 30 def __init__(self, suffix, directory, basename, customAbsDir=None, suppress=False): argument 31 self.directory = directory 32 self.basename = basename 33 self.customAbsDir = customAbsDir 34 self.suffix = suffix 35 self.file = None 37 self.preamble = "" 38 self.postamble = "" 40 self.suppress = suppress 42 def begin(self, globalDir): argument [all …]
|
D | vulkantypes.py | 27 def __init__(self, name, createApis, destroyApis): argument 28 self.name = name 29 self.createApis = createApis 30 self.destroyApis = destroyApis 32 def isCreateApi(self, apiName): argument 33 return apiName == self.createApis or (apiName in self.createApis) 35 def isDestroyApi(self, apiName): argument 36 if self.destroyApis is None: 38 return apiName == self.destroyApis or (apiName in self.destroyApis) 309 def __init__(self): argument [all …]
|
/hardware/google/gfxstream/guest/mesa/src/util/format/ |
D | u_format_parse.py | 56 def __init__(self, type, norm, pure, size, name=''): argument 57 self.type = type 58 self.norm = norm 59 self.pure = pure 60 self.size = size 61 self.sign = type in (SIGNED, FIXED, FLOAT) 62 self.name = name 64 def __str__(self): argument 65 s = str(self.type) 66 if self.norm: [all …]
|