/external/protobuf/ruby/ext/google/protobuf_c/ |
D | defs.c | 114 VALUE DescriptorPool_alloc(VALUE klass) { in DescriptorPool_alloc() argument 117 return TypedData_Wrap_Struct(klass, &_DescriptorPool_type, self); in DescriptorPool_alloc() 121 VALUE klass = rb_define_class_under( in DescriptorPool_register() local 123 rb_define_alloc_func(klass, DescriptorPool_alloc); in DescriptorPool_register() 124 rb_define_method(klass, "add", DescriptorPool_add, 1); in DescriptorPool_register() 125 rb_define_method(klass, "build", DescriptorPool_build, 0); in DescriptorPool_register() 126 rb_define_method(klass, "lookup", DescriptorPool_lookup, 1); in DescriptorPool_register() 127 rb_define_singleton_method(klass, "generated_pool", in DescriptorPool_register() 129 cDescriptorPool = klass; in DescriptorPool_register() 132 generated_pool = rb_class_new_instance(0, NULL, klass); in DescriptorPool_register() [all …]
|
D | message.c | 55 VALUE Message_alloc(VALUE klass) { in Message_alloc() argument 56 VALUE descriptor = rb_ivar_get(klass, descriptor_instancevar_interned); in Message_alloc() 66 ret = TypedData_Wrap_Struct(klass, &Message_type, msg); in Message_alloc() 427 VALUE Message_descriptor(VALUE klass) { in Message_descriptor() argument 428 return rb_ivar_get(klass, descriptor_instancevar_interned); in Message_descriptor() 433 VALUE klass; in build_class_from_descriptor() local 447 klass = rb_define_class_id( in build_class_from_descriptor() 452 rb_ivar_set(klass, descriptor_instancevar_interned, in build_class_from_descriptor() 454 rb_define_alloc_func(klass, Message_alloc); in build_class_from_descriptor() 456 rb_include_module(klass, rb_eval_string("Google::Protobuf::MessageExts")); in build_class_from_descriptor() [all …]
|
D | repeated_field.c | 514 void validate_type_class(upb_fieldtype_t type, VALUE klass) { in validate_type_class() argument 515 if (rb_ivar_get(klass, descriptor_instancevar_interned) == Qnil) { in validate_type_class() 521 VALUE desc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() 526 if (rb_get_alloc_func(klass) != &Message_alloc) { in validate_type_class() 531 VALUE enumdesc = rb_ivar_get(klass, descriptor_instancevar_interned); in validate_type_class() 607 VALUE RepeatedField_alloc(VALUE klass) { in RepeatedField_alloc() argument 614 return TypedData_Wrap_Struct(klass, &RepeatedField_type, self); in RepeatedField_alloc() 623 VALUE klass = rb_define_class_under( in RepeatedField_register() local 625 rb_define_alloc_func(klass, RepeatedField_alloc); in RepeatedField_register() 626 cRepeatedField = klass; in RepeatedField_register() [all …]
|
D | map.c | 168 VALUE Map_alloc(VALUE klass) { in Map_alloc() argument 172 return TypedData_Wrap_Struct(klass, &Map_type, self); in Map_alloc() 787 VALUE klass = rb_define_class_under(module, "Map", rb_cObject); in Map_register() local 788 rb_define_alloc_func(klass, Map_alloc); in Map_register() 789 cMap = klass; in Map_register() 792 rb_define_method(klass, "initialize", Map_init, -1); in Map_register() 793 rb_define_method(klass, "each", Map_each, 0); in Map_register() 794 rb_define_method(klass, "keys", Map_keys, 0); in Map_register() 795 rb_define_method(klass, "values", Map_values, 0); in Map_register() 796 rb_define_method(klass, "[]", Map_index, 1); in Map_register() [all …]
|
D | protobuf.h | 112 VALUE klass; // begins as nil member 177 VALUE DescriptorPool_alloc(VALUE klass); 187 VALUE Descriptor_alloc(VALUE klass); 203 VALUE FieldDescriptor_alloc(VALUE klass); 224 VALUE OneofDescriptor_alloc(VALUE klass); 234 VALUE EnumDescriptor_alloc(VALUE klass); 248 VALUE MessageBuilderContext_alloc(VALUE klass); 262 VALUE OneofBuilderContext_alloc(VALUE klass); 272 VALUE EnumBuilderContext_alloc(VALUE klass); 280 VALUE Builder_alloc(VALUE klass); [all …]
|
/external/junit/src/main/java/org/junit/runners/ |
D | Suite.java | 53 private static Class<?>[] getAnnotatedClasses(Class<?> klass) throws InitializationError { in getAnnotatedClasses() argument 54 SuiteClasses annotation = klass.getAnnotation(SuiteClasses.class); in getAnnotatedClasses() 56 …tializationError(String.format("class '%s' must have a SuiteClasses annotation", klass.getName())); in getAnnotatedClasses() 69 public Suite(Class<?> klass, RunnerBuilder builder) throws InitializationError { in Suite() argument 70 this(builder, klass, getAnnotatedClasses(klass)); in Suite() 90 protected Suite(Class<?> klass, Class<?>[] suiteClasses) throws InitializationError { in Suite() argument 91 this(new AllDefaultPossibilitiesBuilder(true), klass, suiteClasses); in Suite() 101 …protected Suite(RunnerBuilder builder, Class<?> klass, Class<?>[] suiteClasses) throws Initializat… in Suite() argument 102 this(klass, builder.runners(klass, suiteClasses)); in Suite() 111 protected Suite(Class<?> klass, List<Runner> runners) throws InitializationError { in Suite() argument [all …]
|
/external/v8/tools/ |
D | gen-postmortem-metadata.py | 310 def get_base_class(klass): argument 311 if (klass == 'Object'): 312 return klass; 314 if (not (klass in klasses)): 317 k = klasses[klass]; 335 for klass in expected_classes: 336 checktypes[klass] = True; 363 klass = match.group(1).strip(); 367 klasses[klass] = { 'parent': pklass }; 470 for klass in checktypes: [all …]
|
/external/mockito/src/main/java/org/mockito/junit/ |
D | MockitoJUnitRunner.java | 106 public Silent(Class<?> klass) throws InvocationTargetException { in Silent() argument 107 super(new RunnerFactory().create(klass)); in Silent() 121 public Strict(Class<?> klass) throws InvocationTargetException { in Strict() argument 122 super(new StrictRunner(new RunnerFactory().createStrict(klass), klass)); in Strict() 143 public StrictStubs(Class<?> klass) throws InvocationTargetException { in StrictStubs() argument 144 super(new StrictRunner(new RunnerFactory().createStrictStubs(klass), klass)); in StrictStubs() 150 public MockitoJUnitRunner(Class<?> klass) throws InvocationTargetException { in MockitoJUnitRunner() argument 152 this(new StrictRunner(new RunnerFactory().createStrict(klass), klass)); in MockitoJUnitRunner()
|
/external/mockito/src/main/java/org/mockito/internal/runners/ |
D | RunnerFactory.java | 28 public InternalRunner create(Class<?> klass) throws InvocationTargetException { in create() argument 29 return create(klass, new Supplier<MockitoTestListener>() { in create() 39 public InternalRunner createStrict(Class<?> klass) throws InvocationTargetException { 40 return create(klass, new Supplier<MockitoTestListener>() { 52 public InternalRunner createStrictStubs(Class<?> klass) throws InvocationTargetException { 53 return create(klass, new Supplier<MockitoTestListener>() { 63 …public InternalRunner create(Class<?> klass, Supplier<MockitoTestListener> listenerSupplier) throw… 69 return new RunnerProvider().newInstance(runnerClassName, klass, listenerSupplier); 71 if (!hasTestMethods(klass)) { 75 "No tests found in " + klass.getSimpleName() + "\n" +
|
/external/harfbuzz_ng/src/ |
D | hb-font-private.hh | 115 hb_font_funcs_t *klass; member 169 hb_font_funcs_t *funcs = this->klass; \ 179 return klass->get.f.font_h_extents (this, user_data, in get_font_h_extents() 181 klass->user_data.font_h_extents); in get_font_h_extents() 186 return klass->get.f.font_v_extents (this, user_data, in get_font_v_extents() 188 klass->user_data.font_v_extents); in get_font_v_extents() 201 return klass->get.f.nominal_glyph (this, user_data, in get_nominal_glyph() 203 klass->user_data.nominal_glyph); in get_nominal_glyph() 210 return klass->get.f.variation_glyph (this, user_data, in get_variation_glyph() 212 klass->user_data.variation_glyph); in get_variation_glyph() [all …]
|
/external/python/cpython2/Lib/compiler/ |
D | visitor.py | 44 klass = node.__class__ 45 meth = self._cache.get(klass, None) 47 className = klass.__name__ 49 self._cache[klass] = meth 86 klass = node.__class__ 87 if klass not in self.examples: 88 self.examples[klass] = klass 91 print klass
|
D | misc.py | 46 def mangle(name, klass): argument 55 while klass[i] == '_': 59 klass = klass[i:] 61 tlen = len(klass) + len(name) 63 klass = klass[:MANGLE_LEN-tlen] 65 return "_%s%s" % (klass, name)
|
D | symbols.py | 16 def __init__(self, name, module, klass=None): argument 30 self.klass = None 31 if klass is not None: 32 for i in range(len(klass)): 33 if klass[i] != '_': 34 self.klass = klass[i:] 41 if self.klass is None: 43 return mangle(name, self.klass) 186 def __init__(self, module, klass=None): argument 189 self.__super_init("generator expression<%d>"%i, module, klass) [all …]
|
/external/vogar/src/vogar/target/junit/ |
D | JUnitRunnerFactory.java | 32 Class<?> klass, AtomicReference<String> skipPastReference, in newRunner() argument 34 if (supports(klass)) { in newRunner() 36 timeoutSeconds, klass, qualification, args); in newRunner() 42 private boolean supports(Class<?> klass) { in supports() argument 43 return Junit3.isJunit3Test(klass) || Junit4.isJunit4Test(klass); in supports()
|
D | Junit3.java | 30 public static boolean isJunit3Test(Class<?> klass) { in isJunit3Test() argument 36 … return (TestCase.class.isAssignableFrom(klass) && !Modifier.isAbstract(klass.getModifiers())) in isJunit3Test() 37 || new ClassAnalyzer(klass).hasMethod(true, Test.class, "suite"); in isJunit3Test()
|
/external/junit/src/main/java/org/junit/experimental/categories/ |
D | Categories.java | 306 public Categories(Class<?> klass, RunnerBuilder builder) throws InitializationError { in Categories() argument 307 super(klass, builder); in Categories() 309 Set<Class<?>> included= getIncludedCategory(klass); in Categories() 310 Set<Class<?>> excluded= getExcludedCategory(klass); in Categories() 311 boolean isAnyIncluded= isAnyIncluded(klass); in Categories() 312 boolean isAnyExcluded= isAnyExcluded(klass); in Categories() 321 private static Set<Class<?>> getIncludedCategory(Class<?> klass) { in getIncludedCategory() argument 322 IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); in getIncludedCategory() 326 private static boolean isAnyIncluded(Class<?> klass) { in isAnyIncluded() argument 327 IncludeCategory annotation= klass.getAnnotation(IncludeCategory.class); in isAnyIncluded() [all …]
|
/external/tremolo/Tremolo/ |
D | floor1.c | 56 if(info->klass)_ogg_free(info->klass); in floor1_free_info() 122 info->klass= in floor1_info_unpack() 123 (floor1class *)_ogg_malloc((maxclass+1)*sizeof(*info->klass)); in floor1_info_unpack() 125 info->klass[j].class_dim=(char)oggpack_read(opb,3)+1; /* 1 to 8 */ in floor1_info_unpack() 126 info->klass[j].class_subs=(char)oggpack_read(opb,2); /* 0,1,2,3 bits */ in floor1_info_unpack() 128 if(info->klass[j].class_subs) in floor1_info_unpack() 129 info->klass[j].class_book=(unsigned char)oggpack_read(opb,8); in floor1_info_unpack() 131 info->klass[j].class_book=0; in floor1_info_unpack() 132 if(info->klass[j].class_book>=ci->books)goto err_out; in floor1_info_unpack() 133 for(k=0;k<(1<<info->klass[j].class_subs);k++){ in floor1_info_unpack() [all …]
|
/external/mockito/src/main/java/org/mockito/runners/ |
D | MockitoJUnitRunner.java | 29 public Silent(Class<?> klass) throws InvocationTargetException { in Silent() argument 30 super(klass); in Silent() 41 public Strict(Class<?> klass) throws InvocationTargetException { in Strict() argument 42 super(klass); in Strict() 46 public MockitoJUnitRunner(Class<?> klass) throws InvocationTargetException { in MockitoJUnitRunner() argument 47 super(klass); in MockitoJUnitRunner()
|
/external/junit/src/main/java/org/junit/internal/runners/ |
D | TestClass.java | 24 private final Class<?> klass; field in TestClass 26 public TestClass(Class<?> klass) { in TestClass() argument 27 this.klass = klass; in TestClass() 44 for (Class<?> eachClass : getSuperClasses(klass)) { in getAnnotatedMethods() 98 return klass.getConstructor(); in getConstructor() 102 return klass; in getJavaClass() 106 return klass.getName(); in getName()
|
D | SuiteMethod.java | 23 public SuiteMethod(Class<?> klass) throws Throwable { in SuiteMethod() argument 24 super(testFromSuiteMethod(klass)); in SuiteMethod() 27 public static Test testFromSuiteMethod(Class<?> klass) throws Throwable { in testFromSuiteMethod() argument 31 suiteMethod = klass.getMethod("suite"); in testFromSuiteMethod() 33 throw new Exception(klass.getName() + ".suite() must be static"); in testFromSuiteMethod()
|
/external/vogar/src/vogar/ |
D | ClassAnalyzer.java | 23 private final Class<?> klass; field in ClassAnalyzer 25 public ClassAnalyzer(Class<?> klass) { in ClassAnalyzer() argument 26 this.klass = klass; in ClassAnalyzer() 32 Method candidate = klass.getMethod(name, parameters); in hasMethod()
|
/external/python/cpython2/Lib/ |
D | io.py | 84 for klass in (BytesIO, BufferedReader, BufferedWriter, BufferedRandom, 86 BufferedIOBase.register(klass) 88 for klass in (StringIO, TextIOWrapper): 89 TextIOBase.register(klass) 90 del klass
|
/external/vogar/src/vogar/target/ |
D | TestRunner.java | 188 for (Class<?> klass : classes) { in run() 189 if (klass.getName().endsWith(".AllTests")) { in run() 190 toRemove.add(klass); in run() 197 for (Class<?> klass : classes) { in run() 200 targetRunner = runnerFactory.newRunner(monitor, qualification, klass, in run() 203 monitor.outcomeStarted(klass.getName()); in run() 210 monitor.outcomeStarted(klass.getName()); in run() 211 System.out.println("Skipping " + klass.getName() in run() 245 Class<?> klass, AtomicReference<String> skipPastReference, in newRunner() argument 248 TargetRunner targetRunner = runnerFactory.newRunner(monitor, qualification, klass, in newRunner()
|
/external/protobuf/ruby/lib/google/ |
D | protobuf.rb | 67 def self.decode(klass, proto) argument 68 klass.decode(proto) 71 def self.decode_json(klass, json) argument 72 klass.decode_json(json)
|
/external/autotest/tko/ |
D | frontend.py | 139 def select(klass, db): argument 144 return [klass(db, groupname) for groupname in groupnames] 168 def select(klass, db, where = {}): argument 172 machines.append(klass(db, *row)) 186 def select(klass, db, where = {}): argument 189 return [klass(db, *row) for row in rows] 203 def select(klass, db, where={}, distinct=False): argument 209 tests.append(klass(db, *row)) 214 def select_sql(klass, db, sql, values): argument 219 return [klass(db, *row) for row in rows] [all …]
|