HomeSort by relevance Sort by last modified time
    Searched refs:enum (Results 1 - 25 of 366) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/grpc-grpc/src/python/grpcio/grpc/framework/common/
style.py 14 """Defines an enum for classifying RPC methods by control flow semantics."""
16 import enum
19 @enum.unique
20 class Service(enum.Enum):
cardinality.py 14 """Defines an enum for classifying RPC methods by streaming semantics."""
16 import enum
19 @enum.unique
20 class Cardinality(enum.Enum):
  /external/python/cpython3/Lib/asyncio/
constants.py 1 import enum
22 # The enum should be here to break circular dependencies between
24 class _SendfileMode(enum.Enum):
25 UNSUPPORTED = enum.auto()
26 TRY_NATIVE = enum.auto()
27 FALLBACK = enum.auto()
  /external/autotest/frontend/afe/
model_attributes.py 2 from autotest_lib.client.common_lib import enum
6 RebootBefore = enum.Enum('Never', 'If dirty', 'Always')
7 RebootAfter = enum.Enum('Never', 'If all tests passed', 'Always')
  /external/deqp/scripts/opengl/
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("TransformFeedbackTarget")})
    [all...]
gen_enums.py 28 def enumDefinition (enum):
29 return "#define %s\t%s" % (enum.name, normalizeConstant(enum.value))
  /external/autotest/client/common_lib/
priorities.py 2 from autotest_lib.client.common_lib import enum
8 Priority = enum.Enum('Weekly', 'Daily', 'PostBuild', 'Default', 'Build',
host_states.py 11 from autotest_lib.client.common_lib import enum
13 Status = enum.Enum('Verifying', 'Running', 'Ready', 'Repairing',
host_queue_entry_states.py 8 from autotest_lib.client.common_lib import enum
15 Status = enum.Enum(*Status_list, string_values=True)
27 IntStatus = enum.Enum(*Status_list)
host_protections.py 2 from autotest_lib.client.common_lib import enum, global_config
5 # Adding a protection level to the enum requires you to append your change to
6 # the end of the enum or a database migration needs to be added to migrate
7 # older protections to match the layout of the new enum.
8 # Removing a protection level from the enum requires a database migration to
13 Protection = enum.Enum('No protection', # Repair can do anything to
  /external/antlr/runtime/Ruby/test/functional/parser/
predicates.rb 14 /* With this true, enum is seen as a keyword. False, it's an identifier */
32 enumAsKeyword : {@enable_enum}? 'enum' ;
34 enumAsID : {!@enable_enum}? 'enum' ;
52 example "'enum' is a keyword" do
53 lexer = TestHoist::Lexer.new 'enum'
59 example "'enum' is an ID" do
60 lexer = TestHoist::Lexer.new 'enum'
  /external/deqp/scripts/egl/
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::"))
  /external/strace/
gen_bpf_attr_check.sh 48 enum="$(sed -n 's/^struct '"$struct"' \/\* \([^[:space:]]\+\) \*\/ {.*/\1/p' < "$input")"
49 ENUM="$(printf %s "$enum" |tr '[:lower:]' '[:upper:]')"
50 enum="$enum${enum:+.}"
51 ENUM="$ENUM${ENUM:+_}"
58 # ifdef HAVE_${TYPE_NAME}_$ENUM$FIEL
    [all...]
  /external/tensorflow/tensorflow/python/ops/
unconnected_gradients.py 21 import enum
27 class UnconnectedGradients(enum.Enum):
  /external/flatbuffers/tests/namespace_test/NamespaceA/NamespaceB/
EnumInNestedNS.cs 8 public enum EnumInNestedNS : sbyte
  /external/python/cpython3/Lib/test/test_json/
test_enum.py 1 from enum import Enum, IntEnum
20 class FloatNum(float, Enum):
29 class WierdNum(float, Enum):
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
    [all...]
  /external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
constant_resolver.py 18 named_value.enum.fields), None)
21 'Unable to get computed value for field %s of enum %s' %
22 (named_value.name, named_value.enum.name))
24 ResolveEnum(named_value.enum)
45 def ResolveEnum(enum):
46 def ResolveEnumField(enum, field, default_value):
50 raise RuntimeError('Circular dependency for enum: %s' % enum.name)
66 for field in enum.fields:
67 ResolveEnumField(enum, field, current_value
    [all...]
  /external/mesa3d/src/mapi/glapi/gen/
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...]
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_enumerate.py 66 enum = enumerate variable in class:EnumerateTestCase
70 self.assertEqual(type(self.enum(self.seq)), self.enum)
71 e = self.enum(self.seq)
73 self.assertEqual(list(self.enum(self.seq)), self.res)
74 self.enum.__doc__
77 self.assertEqual(list(self.enum(G(self.seq))), self.res)
78 e = self.enum(G(''))
82 self.assertEqual(list(self.enum(I(self.seq))), self.res)
83 e = self.enum(I(''))
118 enum = MyEnum variable in class:SubclassTestCase
232 enum = lambda self, i: enumerate(i, start=11) variable in class:TestStart
238 enum = lambda self, i: enumerate(i, start=sys.maxint+1) variable in class:TestLongStart
    [all...]
  /external/python/cpython2/Lib/test/
test_enumerate.py 66 enum = enumerate variable in class:EnumerateTestCase
70 self.assertEqual(type(self.enum(self.seq)), self.enum)
71 e = self.enum(self.seq)
73 self.assertEqual(list(self.enum(self.seq)), self.res)
74 self.enum.__doc__
77 self.assertEqual(list(self.enum(G(self.seq))), self.res)
78 e = self.enum(G(''))
82 self.assertEqual(list(self.enum(I(self.seq))), self.res)
83 e = self.enum(I('')
118 enum = MyEnum variable in class:SubclassTestCase
231 enum = lambda self, i: enumerate(i, start=11) variable in class:TestStart
237 enum = lambda self, i: enumerate(i, start=sys.maxint+1) variable in class:TestLongStart
    [all...]
  /external/flatbuffers/tests/MyGame/Example/
Any.cs 8 public enum Any : byte
AnyAmbiguousAliases.cs 8 public enum AnyAmbiguousAliases : byte
AnyUniqueAliases.cs 8 public enum AnyUniqueAliases : byte
Color.cs 8 public enum Color : sbyte
  /external/flatbuffers/tests/union_vector/
Character.cs 5 public enum Character : byte

Completed in 1044 milliseconds

1 2 3 4 5 6 7 8 91011>>