Home
last modified time | relevance | path

Searched refs:generator (Results 1 – 25 of 1043) sorted by relevance

12345678910>>...42

/external/vixl/tools/
Dgenerate_tests.py709 def GenerateTest(generator, clang_format, skip_traces): argument
710 template_file = template_files[generator.test_type]
723 'instruction_list_declaration': generator.InstructionListDeclaration(),
726 'operand_list_declaration': generator.OperandDeclarations(),
727 'input_declarations': generator.InputDeclarations(),
730 'input_definitions': generator.InputDefinitions(),
731 'test_case_definitions': generator.TestCaseDefinitions(),
734 'include_trace_files': generator.IncludeTraceFiles(),
737 'macroassembler_method_args': generator.MacroAssemblerMethodArgs(),
740 'macroassembler_set_isa': generator.MacroAssemblerSetISA(),
[all …]
/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/
DTestAttributes.java57 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testEscapedLessThanInAction() local
59 ActionTranslator translator = new ActionTranslator(generator,"a", in testEscapedLessThanInAction()
82 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testEscaped$InAction() local
83 g.setCodeGenerator(generator); in testEscaped$InAction()
84 generator.genRecognizer(); // forces load of templates in testEscaped$InAction()
86 new ActionTranslator(generator, in testEscaped$InAction()
104 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testArguments() local
105 g.setCodeGenerator(generator); in testArguments()
106 generator.genRecognizer(); // forces load of templates in testArguments()
107 ActionTranslator translator = new ActionTranslator(generator,"a", in testArguments()
[all …]
DTestTemplates.java66 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testTemplateConstructor() local
67 g.setCodeGenerator(generator); in testTemplateConstructor()
68 generator.genRecognizer(); // forces load of templates in testTemplateConstructor()
70 new ActionTranslator(generator, in testTemplateConstructor()
103 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testTemplateConstructorNoArgs() local
104 g.setCodeGenerator(generator); in testTemplateConstructorNoArgs()
105 generator.genRecognizer(); // forces load of templates in testTemplateConstructorNoArgs()
107 new ActionTranslator(generator, in testTemplateConstructorNoArgs()
141 CodeGenerator generator = new CodeGenerator(antlr, g, "Java"); in testIndirectTemplateConstructor() local
142 g.setCodeGenerator(generator); in testIndirectTemplateConstructor()
[all …]
/external/webrtc/webrtc/modules/audio_processing/test/
Ddebug_dump_test.cc473 DebugDumpGenerator generator(config); in TEST_F() local
474 generator.StartRecording(); in TEST_F()
475 generator.Process(100); in TEST_F()
476 generator.StopRecording(); in TEST_F()
477 VerifyDebugDump(generator.dump_file_name()); in TEST_F()
482 DebugDumpGenerator generator(config); in TEST_F() local
483 generator.StartRecording(); in TEST_F()
484 generator.Process(100); in TEST_F()
485 generator.SetInputRate(48000); in TEST_F()
487 generator.ForceInputMono(true); in TEST_F()
[all …]
/external/v8/src/runtime/
Druntime-generator.cc28 Handle<JSGeneratorObject> generator = in RUNTIME_FUNCTION() local
30 generator->set_function(*function); in RUNTIME_FUNCTION()
31 generator->set_context(isolate->context()); in RUNTIME_FUNCTION()
32 generator->set_receiver(*receiver); in RUNTIME_FUNCTION()
33 generator->set_register_file(*register_file); in RUNTIME_FUNCTION()
34 generator->set_continuation(JSGeneratorObject::kGeneratorExecuting); in RUNTIME_FUNCTION()
35 return *generator; in RUNTIME_FUNCTION()
41 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
43 generator->set_continuation(JSGeneratorObject::kGeneratorClosed); in RUNTIME_FUNCTION()
51 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION()
[all …]
/external/guava/guava-testlib/test/com/google/common/testing/
DFreshValueGeneratorTest.java155 FreshValueGenerator generator = new FreshValueGenerator(); in testStringArray() local
156 String[] a1 = generator.generate(String[].class); in testStringArray()
157 String[] a2 = generator.generate(String[].class); in testStringArray()
162 FreshValueGenerator generator = new FreshValueGenerator(); in testPrimitiveArray() local
163 int[] a1 = generator.generate(int[].class); in testPrimitiveArray()
164 int[] a2 = generator.generate(int[].class); in testPrimitiveArray()
217 FreshValueGenerator generator = new FreshValueGenerator(); in testImmutableMap() local
219 ImmutableMap.of(generator.generate(String.class), generator.generate(int.class)), in testImmutableMap()
225 FreshValueGenerator generator = new FreshValueGenerator(); in testImmutableSortedMap() local
227 ImmutableSortedMap.of(generator.generate(String.class), generator.generate(int.class)), in testImmutableSortedMap()
[all …]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java69 PBEParametersGenerator generator; in makePBEGenerator() local
82 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator()
87 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator()
104 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator()
109 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator()
124 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA256()); in makePBEGenerator()
133 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA224()); in makePBEGenerator()
138 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA384()); in makePBEGenerator()
143 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA512()); in makePBEGenerator()
160 generator = new PKCS12ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator()
[all …]
/external/robolectric-shadows/sandbox/src/main/java/org/robolectric/internal/bytecode/
DSandboxClassLoader.java433 RobolectricGeneratorAdapter generator = new RobolectricGeneratorAdapter(defaultConstructor); in addNoArgsConstructor() local
434 generator.loadThis(); in addNoArgsConstructor()
435 generator.visitMethodInsn(INVOKESPECIAL, classNode.superName, "<init>", "()V", false); in addNoArgsConstructor()
436 generator.loadThis(); in addNoArgsConstructor()
437 generator.invokeVirtual(classType, new Method(ROBO_INIT_METHOD_NAME, "()V")); in addNoArgsConstructor()
438 generator.returnValue(); in addNoArgsConstructor()
447 RobolectricGeneratorAdapter generator = new RobolectricGeneratorAdapter(initMethodNode); in addRoboInitMethod() local
449 generator.loadThis(); // this in addRoboInitMethod()
450generator.getField(classType, ShadowConstants.CLASS_HANDLER_DATA_FIELD_NAME, OBJECT_TYPE); // con… in addRoboInitMethod()
451 generator.ifNonNull(alreadyInitialized); in addRoboInitMethod()
[all …]
/external/tensorflow/tensorflow/python/data/kernel_tests/
Ddataset_from_generator_op_test.py32 def _testFromGenerator(self, generator, elem_sequence, num_repeats): argument
34 dataset_ops.Dataset.from_generator(generator, output_types=dtypes.int64)
50 def _testFromGeneratorOneShot(self, generator, elem_sequence, num_repeats): argument
52 dataset_ops.Dataset.from_generator(generator, output_types=dtypes.int64)
66 def generator(): function
69 elem_sequence = list(generator())
70 self._testFromGenerator(generator, elem_sequence, 1)
71 self._testFromGenerator(generator, elem_sequence, 5)
72 self._testFromGeneratorOneShot(generator, elem_sequence, 1)
73 self._testFromGeneratorOneShot(generator, elem_sequence, 5)
[all …]
/external/pdfium/third_party/agg23/
Dagg_conv_stroke.h38 base_type::generator().line_cap(lc); in line_cap()
42 base_type::generator().line_join(lj); in line_join()
46 base_type::generator().inner_join(ij); in inner_join()
50 return base_type::generator().line_cap(); in line_cap()
54 return base_type::generator().line_join(); in line_join()
58 return base_type::generator().inner_join(); in inner_join()
62 base_type::generator().width(w); in width()
66 base_type::generator().miter_limit(ml); in miter_limit()
70 base_type::generator().miter_limit_theta(t); in miter_limit_theta()
74 base_type::generator().inner_miter_limit(ml); in inner_miter_limit()
[all …]
/external/webrtc/webrtc/test/
Dframe_generator_unittest.cc91 rtc::scoped_ptr<FrameGenerator> generator(FrameGenerator::CreateFromYuvFile( in TEST_F() local
94 CheckFrameAndMutate(generator->NextFrame(), 255, 255, 255); in TEST_F()
95 CheckFrameAndMutate(generator->NextFrame(), 255, 255, 255); in TEST_F()
99 rtc::scoped_ptr<FrameGenerator> generator(FrameGenerator::CreateFromYuvFile( in TEST_F() local
102 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0); in TEST_F()
103 CheckFrameAndMutate(generator->NextFrame(), 127, 127, 127); in TEST_F()
104 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0); in TEST_F()
112 rtc::scoped_ptr<FrameGenerator> generator( in TEST_F() local
114 CheckFrameAndMutate(generator->NextFrame(), 0, 0, 0); in TEST_F()
115 CheckFrameAndMutate(generator->NextFrame(), 127, 127, 127); in TEST_F()
[all …]
/external/nanopb-c/tools/
Dmake_mac_package.sh21 make -BC $DEST/generator/proto
24 ( cd $DEST/generator; pyinstaller nanopb_generator.py )
25 mv $DEST/generator/dist/nanopb_generator $DEST/generator-bin
28 rm -rf $DEST/generator/dist $DEST/generator/build $DEST/generator/nanopb_generator.spec
31 cp $DEST/generator-bin/nanopb_generator $DEST/generator-bin/protoc-gen-nanopb
34 cp `which protoc` $DEST/generator-bin/protoc.bin
37 cp $LIBPROTOC $LIBPROTOBUF $DEST/generator-bin/
38 cat > $DEST/generator-bin/protoc << EOF
45 chmod +x $DEST/generator-bin/protoc
Dmake_linux_package.sh19 make -BC $DEST/generator/proto
22 cp $DEST/generator/nanopb_generator.py $DEST/generator/protoc-gen-nanopb.py
25 ( cd $DEST/generator; bbfreeze nanopb_generator.py protoc-gen-nanopb.py )
26 mv $DEST/generator/dist $DEST/generator-bin
29 rm $DEST/generator/protoc-gen-nanopb.py
32 cp `which protoc` $DEST/generator-bin/protoc.bin
34 cp $LIBPROTOC $DEST/generator-bin/
35 cat > $DEST/generator-bin/protoc << EOF
42 chmod +x $DEST/generator-bin/protoc
Dmake_windows_package.sh20 make -BC $DEST/generator/proto
23 cp $DEST/generator/nanopb_generator.py $DEST/generator/protoc-gen-nanopb.py
26 ( cd $DEST/generator; bbfreeze nanopb_generator.py protoc-gen-nanopb.py )
27 mv $DEST/generator/dist $DEST/generator-bin
30 rm $DEST/generator/protoc-gen-nanopb.py
34 …oft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4974_none_50940634bcb759cb/MSVCR90.DLL $DEST/generator-bin/
35 cat > $DEST/generator-bin/Microsoft.VC90.CRT.manifest <<EOF
45 cp `which protoc.exe` $DEST/generator-bin/
46 cp `which MSVCR100.DLL` $DEST/generator-bin/
47 cp `which MSVCP100.DLL` $DEST/generator-bin/
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DTextFormat.java261 final TextGenerator generator) in printUnknownFieldValue() argument
265 generator.print(unsignedToString((Long) value)); in printUnknownFieldValue()
268 generator.print( in printUnknownFieldValue()
272 generator.print(String.format((Locale) null, "0x%016x", (Long) value)); in printUnknownFieldValue()
275 generator.print("\""); in printUnknownFieldValue()
276 generator.print(escapeBytes((ByteString) value)); in printUnknownFieldValue()
277 generator.print("\""); in printUnknownFieldValue()
280 DEFAULT_PRINTER.printUnknownFields((UnknownFieldSet) value, generator); in printUnknownFieldValue() local
310 final MessageOrBuilder message, final TextGenerator generator) in print() argument
314 printField(field.getKey(), field.getValue(), generator); in print() local
[all …]
/external/protobuf/src/google/protobuf/
Dtext_format.cc1484 TextGenerator generator(output, initial_indent_level_); in Print() local
1486 Print(message, generator); in Print()
1489 return !generator.failed(); in Print()
1495 TextGenerator generator(output, initial_indent_level_); in PrintUnknownFields() local
1497 PrintUnknownFields(unknown_fields, generator); in PrintUnknownFields()
1500 return !generator.failed(); in PrintUnknownFields()
1515 TextGenerator& generator) const { in PrintAny()
1548 generator.Print(StrCat("[", type_url, "]")); in PrintAny()
1551 generator.Print( in PrintAny()
1553 generator.Indent(); in PrintAny()
[all …]
/external/tensorflow/tensorflow/contrib/learn/python/learn/learn_io/
Dgenerator_io_test.py33 def generator(): function
43 generator,
67 def generator(): function
73 generator, target_key=None, batch_size=2, shuffle=False, num_epochs=1)
91 def generator(): function
102 generator,
129 def generator(): function
139 generator,
173 def generator(): function
179 generator, batch_size=2, shuffle=False, num_epochs=1)
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_vec4_cse.cpp41 vec4_instruction *generator; member
157 if (!(entry->generator->dst.is_null() && !inst->dst.is_null()) && in opt_cse_local()
158 instructions_match(inst, entry->generator)) { in opt_cse_local()
173 entry->generator = inst; in opt_cse_local()
181 if (no_existing_temp && !entry->generator->dst.is_null()) { in opt_cse_local()
183 regs_written(entry->generator)), in opt_cse_local()
186 const unsigned width = entry->generator->exec_size; in opt_cse_local()
189 DIV_ROUND_UP(entry->generator->size_written, component_size); in opt_cse_local()
192 MOV(offset(entry->generator->dst, width, i), in opt_cse_local()
195 copy->group = entry->generator->group; in opt_cse_local()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/res/
DResourceIdGeneratorTest.java14 ResourceIdGenerator generator = new ResourceIdGenerator(0x7F); in shouldGenerateUniqueId() local
15 generator.record(0x7F010001, "string", "some_name"); in shouldGenerateUniqueId()
16 generator.record(0x7F010002, "string", "another_name"); in shouldGenerateUniqueId()
18 assertThat(generator.generate("string", "next_name")).isEqualTo(0x7F010003); in shouldGenerateUniqueId()
23 ResourceIdGenerator generator = new ResourceIdGenerator(0x7F); in shouldIdForUnseenType() local
24 generator.record(0x7F010001, "string", "some_name"); in shouldIdForUnseenType()
25 generator.record(0x7F010002, "string", "another_name"); in shouldIdForUnseenType()
27 assertThat(generator.generate("int", "int_name")).isEqualTo(0x7F020001); in shouldIdForUnseenType()
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DOneSizeGenerator.java35 private final TestContainerGenerator<T, E> generator; field in OneSizeGenerator
38 public OneSizeGenerator(TestContainerGenerator<T, E> generator, in OneSizeGenerator() argument
40 this.generator = generator; in OneSizeGenerator()
46 return generator; in getInnerGenerator()
51 return generator.samples(); in samples()
56 return generator.create(elements); in create()
61 return generator.createArray(length); in createArray()
68 return generator.create(elements.toArray()); in createTestSubject()
87 return generator.order(insertionOrder); in order()
/external/v8/src/builtins/
Dbuiltins-async-function.cc24 void AsyncFunctionAwait(Node* const context, Node* const generator,
51 Node* const generator = in AsyncFunctionAwaitResumeClosure() local
53 CSA_SLOW_ASSERT(this, HasInstanceType(generator, JS_GENERATOR_OBJECT_TYPE)); in AsyncFunctionAwaitResumeClosure()
63 LoadObjectField(generator, JSGeneratorObject::kContinuationOffset), in AsyncFunctionAwaitResumeClosure()
68 CallStub(callable, context, sent_value, generator, SmiConstant(resume_mode)); in AsyncFunctionAwaitResumeClosure()
105 Node* const context, Node* const generator, Node* const awaited, in AsyncFunctionAwait() argument
107 CSA_SLOW_ASSERT(this, HasInstanceType(generator, JS_GENERATOR_OBJECT_TYPE)); in AsyncFunctionAwait()
114 generator); in AsyncFunctionAwait()
126 context, generator, awaited, outer_promise, create_closure_context, in AsyncFunctionAwait()
137 Node* const generator = Parameter(1); in TF_BUILTIN() local
[all …]
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/
DObjCTarget.java40 CodeGenerator generator, in genRecognizerHeaderFile() argument
46generator.write(headerFileST, grammar.name + Grammar.grammarTypeToFileNameSuffix[grammar.type] + e… in genRecognizerHeaderFile()
49 public String getTargetCharLiteralFromANTLRCharLiteral(CodeGenerator generator, in getTargetCharLiteralFromANTLRCharLiteral() argument
70 public String getTargetStringLiteralFromANTLRStringLiteral(CodeGenerator generator, in getTargetStringLiteralFromANTLRStringLiteral() argument
82 public String getTokenTypeAsTargetLabel(CodeGenerator generator, int ttype) { in getTokenTypeAsTargetLabel() argument
83 String name = generator.grammar.getTokenDisplayName(ttype); in getTokenTypeAsTargetLabel()
95 …public String getTokenTextAndTypeAsTargetLabel(CodeGenerator generator, String text, int tokenType… in getTokenTextAndTypeAsTargetLabel() argument
96 String name = generator.grammar.getTokenDisplayName(tokenType); in getTokenTextAndTypeAsTargetLabel()
105 …return generator.grammar.name + Grammar.grammarTypeToFileNameSuffix[generator.grammar.type] + "_" … in getTokenTextAndTypeAsTargetLabel()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DJsonFormat.java432 private final TextGenerator generator; field in JsonFormat.PrinterImpl
448 this.generator = new TextGenerator(jsonOutput); in PrinterImpl()
584 generator.print("{\n"); in printAny()
585 generator.indent(); in printAny()
586 generator.print("\"@type\": " + gson.toJson(typeUrl) + ",\n"); in printAny()
587 generator.print("\"value\": "); in printAny()
589 generator.print("\n"); in printAny()
590 generator.outdent(); in printAny()
591 generator.print("}"); in printAny()
621 generator.print("\"" + TimeUtil.toString(value) + "\""); in printTimestamp()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DUncorrelatedRandomVectorGenerator.java37 private final NormalizedRandomGenerator generator; field in UncorrelatedRandomVectorGenerator
55 NormalizedRandomGenerator generator) { in UncorrelatedRandomVectorGenerator() argument
61 this.generator = generator; in UncorrelatedRandomVectorGenerator()
72 NormalizedRandomGenerator generator) { in UncorrelatedRandomVectorGenerator() argument
76 this.generator = generator; in UncorrelatedRandomVectorGenerator()
86 random[i] = mean[i] + standardDeviation[i] * generator.nextNormalizedDouble(); in nextVector()
/external/libmojo/mojo/public/cpp/bindings/tests/
Dmultiplex_router_unittest.cc70 ResponseGenerator generator; in TEST_F() local
71 InterfaceEndpointClient client1(std::move(endpoint1_), &generator, in TEST_F()
117 ResponseGenerator generator; in TEST_F() local
118 InterfaceEndpointClient client1(std::move(endpoint1_), &generator, in TEST_F()
193 LazyResponseGenerator generator(run_loop.QuitClosure()); in TEST_F() local
194 InterfaceEndpointClient client1(std::move(endpoint1_), &generator, in TEST_F()
212 EXPECT_TRUE(generator.responder_is_valid()); in TEST_F()
213 generator.CompleteWithResponse(); in TEST_F()
225 generator.set_closure(run_loop3.QuitClosure()); in TEST_F()
239 EXPECT_TRUE(generator.responder_is_valid()); in TEST_F()
[all …]

12345678910>>...42