Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/hardware/google/gfxstream/scripts/print_gfx_logs/
Dcommand_printer_test.py32 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/
Ddeepcopy.py24 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 …]
Dreservedmarshaling.py36 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 …]
Ddispatch.py143 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 …]
Dmarshaling.py40 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 …]
Dhandlemap.py24 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 …]
Dcounting.py27 …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
36self.exprAccessor = lambda t: self.cgen.generalAccess(t, parentVarName = self.toCountVar, asPtr = …
37self.exprValueAccessor = lambda t: self.cgen.generalAccess(t, parentVarName = self.toCountVar, asP…
[all …]
Dtesting.py32 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 …]
Dtransform.py105 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/
Dcgenerator.py21 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 …]
Ddoctransformer.py87 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 …]
Dscriptgenerator.py30 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 …]
Dreg.py201 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 …]
Dextensionmetadocgenerator.py18 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 …]
Drubygenerator.py24 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/
Dmacro_checker.py20 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 …]
Dentity_db.py35 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 …]
Dmacro_checker_file.py174 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 …]
Dfile_process.py16 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 …]
Dvalidity.py35 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 …]
Dconsistency_tools.py29 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/
DextensionStubSource.py52 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/
Dcodegen.py30 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 …]
Dvulkantypes.py27 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/
Du_format_parse.py56 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 …]

12345678910>>...12