/third_party/vk-gl-cts/scripts/opengl/ |
H A D | gen_call_log_wrapper.py | 32 def enum (group): function 58 "glBeginQuery": LogSpec({0: enum("QueryTarget")}), 59 "glBeginTransformFeedback": LogSpec({0: enum("PrimitiveType")}), 60 "glBindBuffer": LogSpec({0: enum("BufferTarget")}), 61 "glBindBufferBase": LogSpec({0: enum("BufferTarget")}), 62 "glBindBufferRange": LogSpec({0: enum("BufferTarget")}), 63 "glBindFramebuffer": LogSpec({0: enum("FramebufferTarget")}), 64 "glBindRenderbuffer": LogSpec({0: enum("FramebufferTarget")}), 65 "glBindTexture": LogSpec({0: enum("TextureTarget")}), 66 "glBindTransformFeedback": LogSpec({0: enum("TransformFeedbackTarge [all...] |
H A D | gen_enums.py | 28 def enumDefinition (enum): 29 return "#define %s\t%s" % (enum.name, normalizeConstant(enum.value))
|
/third_party/python/Lib/test/test_json/ |
H A D | test_enum.py | 1 from enum import Enum, IntEnum 37 for enum in FloatNum: 38 self.assertEqual(self.dumps(enum), repr(enum.value)) 39 self.assertEqual(float(self.dumps(enum)), enum) 40 self.assertEqual(self.loads(self.dumps(enum)), enum) 43 for enum, expected in zip(WierdNum, ('Infinity', '-Infinity', 'NaN')): 44 self.assertEqual(self.dumps(enum), expecte [all...] |
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/resolver/ |
H A D | resolver_test.go | 38 `enum E {}`, 41 `enum E {A B C}`, 56 enum e {a b c} 72 enum e { a b c } 96 enum e { a } 101 enum e { a b } 108 enum e { a b } 115 enum e { a } 129 enum e { a b } 134 enum [all...] |
/third_party/python/Lib/test/ |
H A D | test_enumerate.py | 88 enum = enumerate variable in EnumerateTestCase 92 self.assertEqual(type(self.enum(self.seq)), self.enum) 93 e = self.enum(self.seq) 95 self.assertEqual(list(self.enum(self.seq)), self.res) 96 self.enum.__doc__ 99 self.check_pickle(self.enum(self.seq), self.res) 102 self.assertEqual(list(self.enum(G(self.seq))), self.res) 103 e = self.enum(G('')) 107 self.assertEqual(list(self.enum( 167 enum = MyEnum global() variable in SubclassTestCase 281 def enum(self, iterable, start=11): global() member in TestStart 288 def enum(self, iterable, start=sys.maxsize + 1): global() member in TestLongStart [all...] |
/third_party/mesa3d/src/mapi/glapi/gen/ |
H A D | gl_enums.py | 44 # Mapping from enum value to (name, priority) tuples. 46 # Mapping from enum name to value 68 * Compare a key enum value to an element in the \c enum_string_table_offsets array. 74 * \param a Pointer to the desired enum name. 86 * This function always returns a string. If the number is a valid enum, it 87 * returns the enum name. Otherwise, it returns a numeric string. 134 /* Get the name of an enum given that it is a primitive type. Avoids 164 # We express the very long concatenation of enum strings as an array 167 for enum in sorted_enum_values: 168 (name, pri) = self.enum_table[enum] [all...] |
/third_party/vk-gl-cts/scripts/egl/ |
H A D | enums.py | 42 def enumValue (enum, typePrefix = ""): 43 if enum.name in TYPED_VALUES: 45 n,v = enum.value.split(",", 1) 50 return normalizeConstant(enum.value) 52 def enumDefinition (enum): 53 return "#define %s\t%s" % (enum.name, enumValue(enum, "eglw::"))
|
H A D | call_log_wrapper.py | 35 def enum (group): function 49 "eglBindAPI": LogSpec({0: enum("API")}), 55 "eglGetError": LogSpec({}, returnPrint = enum("Error")), 56 "eglGetConfigAttrib": LogSpec({2: enum("ConfigAttrib")}, argOutPrints = {3: lambda n: "getConfigAttribValuePointerStr(attribute, %s)" % n}), 57 "eglGetCurrentSurface": LogSpec({0: enum("SurfaceTarget")}), 59 "eglQueryAPI": LogSpec({}, returnPrint = enum("API")), 60 "eglQueryContext": LogSpec({2: enum("ContextAttrib")}, argOutPrints = {3: lambda n: "getContextAttribValuePointerStr(attribute, %s)" % n}), 61 "eglQuerySurface": LogSpec({2: enum("SurfaceAttrib")}, argOutPrints = {3: lambda n: "getSurfaceAttribValuePointerStr(attribute, %s)" % n}), 62 "eglSurfaceAttrib": LogSpec({2: enum("SurfaceAttrib"), 3: lambda n: "getSurfaceAttribValueStr(attribute, %s)" % n}),
|
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | gen_packed_gl_enums.py | 59 enums.sort(key=lambda enum: enum.name) 102 enum class {enum_name} : uint8_t 121 for enum in enums: 123 for value in enum.values: 128 enum_name=enum.name, 129 max_value=str(enum.max_value), 207 for enum in enums: 211 for value in enum.values: 212 qualified_name = enum [all...] |
/third_party/mesa3d/src/vulkan/util/ |
H A D | gen_enum_to_str.py | 21 """Create enum to string functions for vulkan using vk.xml.""" 67 % for enum in enums: 69 % if enum.guard: 70 #ifdef ${enum.guard} 73 vk_${enum.name[2:]}_to_str(${enum.name} input) 76 % for v in sorted(enum.values.keys()): 78 return "${enum.values[v]}"; 80 case ${enum.max_enum_name}: return "${enum [all...] |
/third_party/python/Lib/asyncio/ |
H A D | constants.py | 1 import enum namespace 29 # The enum should be here to break circular dependencies between 31 class _SendfileMode(enum.Enum): 32 UNSUPPORTED = enum.auto() 33 TRY_NATIVE = enum.auto() 34 FALLBACK = enum.auto()
|
/third_party/skia/third_party/externals/dawn/generator/ |
H A D | opengl_loader_generator.py | 123 for enum in root.findall('''enums[@namespace='GL']/enum'''): 124 enum_name = enum.attrib['name'] 125 # Special case an enum we'll never use that has different values in GL and GLES 130 all_enums[enum_name] = EnumDefine(enum_name, enum.attrib['value']) 149 for enum in section.findall('./require/enum'): 150 section_enums.append(all_enums[enum.attrib['name']]) 172 for enum in section.findall('./require/enum') [all...] |
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/ |
H A D | reg.py | 133 elif child.tag in ['enum', 'feature']: 196 (type/group/enum/command/API/extension). 231 infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' / 234 if infoName == 'enum': 253 # The same enum cannot extend two different types 256 # Non-<enum>s should never be redefined 281 in an <enums> block, generally corresponding to a C "enum" type.""" 288 """Registry information about an enum""" 293 """numeric type of the value of the <enum> tag 434 "dictionary of EnumInfo objects keyed by enum nam [all...] |
H A D | json_c_generator.py | 120 TYPE_SECTIONS = ['basetype', 'handle', 'enum', 621 section = 'enum' 634 enums = groupElem.findall('enum') 636 for enum in enums: 638 if enum.get('name') not in self.enumNames: 639 self.enumNames.append(enum.get('name')) 641 if enum.get('value'): 642 body += " case %s: return \"%s\";\n" %(enum.get('value'), enum.get('name')) 644 elif enum [all...] |
H A D | json_parser.py | 338 TYPE_SECTIONS = ['basetype', 'handle', 'enum', 433 for enum in enums.findall('enum'): 434 type = enum.get("type"); 436 name = enum.get("name") 437 value = enum.get("value") 457 if cat in {"handle", "bitmask", "basetype", "enum", "struct"} and name in self.vkscFeatureList: 745 hasMacroSize = paramname.tail is not None and '[' in paramname.tail and param.find('enum') is not None 857 arraySize = param.find('enum').text 987 section = 'enum' [all...] |
H A D | testSpecVersion.py | 60 for enum in elem.findall('require/enum'): 61 name = enum.get('name') 64 value = enum.get('value')
|
/third_party/vulkan-headers/registry/ |
H A D | reg.py | 133 elif child.tag in ['enum', 'feature']: 196 (type/group/enum/command/API/extension). 231 infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' / 234 if infoName == 'enum': 253 # The same enum cannot extend two different types 256 # Non-<enum>s should never be redefined 281 in an <enums> block, generally corresponding to a C "enum" type.""" 288 """Registry information about an enum""" 293 """numeric type of the value of the <enum> tag 434 "dictionary of EnumInfo objects keyed by enum nam [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | gen_vk_internal_shaders.py | 277 def bits(enum): 278 return (1 << (len(enum) - 1).bit_length()) / float(len(enum)) 281 enums.sort(key=lambda enum: (bits(enum[1]), enum[0])) 288 enum_bits = [(len(enum[1]) - 1).bit_length() for enum in enums] 489 # least significant bits are the flags, where there is one bit per flag. After that, each enum 490 # takes up as few bits as needed to count that many enum value [all...] |
/third_party/vk-gl-cts/scripts/khr_util/ |
H A D | gen_str_util.py | 39 return set(enum.name for enum in iface.enums) | \ 40 set(enum.alias for enum in iface.enums if enum.alias != None)
|
/third_party/mesa3d/src/amd/registers/ |
H A D | regdb.py | 212 - enum entries are sorted by value 222 for enum in self.__enums.values(): 223 enum.entries.sort(key=lambda entry: entry.value) 315 def enum_key(enum): 318 enum (assuming that it has been canonicalized). Two enums with the 323 for entry in enum.entries 326 def add_enum(self, name, enum): 328 raise RegisterDatabaseError('Duplicate enum ' + name) 329 self.__enums[name] = enum 335 for origin, enum i 457 def enum(self, name): global() member in RegisterDatabase [all...] |
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/ |
H A D | _elffile.py | 11 import enum namespace 21 class EIClass(enum.IntEnum): 26 class EIData(enum.IntEnum): 31 class EMachine(enum.IntEnum):
|
/third_party/vk-gl-cts/external/vulkancts/scripts/ |
H A D | gen_framework.py | 194 self.alias = None # name of enum alias or None 195 self.type = None # enum or bitmask 342 self.enums = [] # list of Enum objects - each contains individual enum definition (including extension enums) 349 self.tempAliasesList = [] # list of aliases for enums that could not be added because enum is defined later than its alias; this is needed for SC 390 # special case for vulkan hardcoded constants that are specified as enum in vk.xml 400 # initial enum definition is read while processing types section; 401 # we need to find this enum definition and add data to it 403 # add type and bitwidth to enum definition 408 # add components to enum definition 411 if enumeratorItem.tag != "enum" [all...] |
H A D | gen_framework_sc.py | 514 matches = re.findall(r'typedef enum(\s*' + IDENT_PTRN + r')?\s*{([^}]*)}\s*(' + IDENT_PTRN + r')\s*;', src) 619 def removeAliasedValues (enum): 621 for name, value in enum.values: 631 for name, value in enum.values: 636 enum.values = newValues 732 enumsByName = {enum.name: enum for enum in allEnums} 749 enums = [enum for enum i [all...] |
/third_party/protobuf/src/google/protobuf/compiler/ruby/ |
H A D | ruby_generated_code_proto2_pb.rb | 18 optional :optional_enum, :enum, 10, "A.B.C.TestEnum", default: 1 29 repeated :repeated_enum, :enum, 30, "A.B.C.TestEnum" 40 required :required_enum, :enum, 50, "A.B.C.TestEnum" 53 optional :oneof_enum, :enum, 70, "A.B.C.TestEnum"
|
H A D | ruby_generated_code_pb.rb | 18 optional :optional_enum, :enum, 10, "A.B.C.TestEnum" 29 repeated :repeated_enum, :enum, 30, "A.B.C.TestEnum" 38 map :map_string_enum, :string, :enum, 68, "A.B.C.TestEnum" 52 optional :oneof_enum, :enum, 50, "A.B.C.TestEnum"
|