Home
last modified time | relevance | path

Searched full:generator (Results 1 – 25 of 3742) sorted by relevance

12345678910>>...150

/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/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/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/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/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java73 PBEParametersGenerator generator; in makePBEGenerator() local
81 // generator = new PKCS5S1ParametersGenerator(new MD2Digest()); in makePBEGenerator()
86 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator()
91 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator()
104 // generator = new PKCS5S2ParametersGenerator(new MD2Digest()); in makePBEGenerator()
109 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator()
115 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator()
120 // generator = new PKCS5S2ParametersGenerator(new RIPEMD160Digest()); in makePBEGenerator()
123 // generator = new PKCS5S2ParametersGenerator(new TigerDigest()); in makePBEGenerator()
128 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA224()); in makePBEGenerator()
[all …]
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorGenerator.h18 * \brief Tensor generator class.
23 template<typename Generator, typename XprType>
24 struct traits<TensorGeneratorOp<Generator, XprType> > : public traits<XprType>
36 template<typename Generator, typename XprType>
37 struct eval<TensorGeneratorOp<Generator, XprType>, Eigen::Dense>
39 typedef const TensorGeneratorOp<Generator, XprType>& type;
42 template<typename Generator, typename XprType>
43 struct nested<TensorGeneratorOp<Generator, XprType>, 1, typename eval<TensorGeneratorOp<Generator, …
45 typedef TensorGeneratorOp<Generator, XprType> type;
52 template<typename Generator, typename XprType>
[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
30 # Make the nanopb generator available as a protoc plugin
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
21 # Make the nanopb generator available as a protoc plugin
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
22 # Make the nanopb generator available as a protoc plugin
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/
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/
DUncorrelatedRandomVectorGenerator.java36 /** Underlying scalar generator. */
37 private final NormalizedRandomGenerator generator; field in UncorrelatedRandomVectorGenerator
46 * <p>Build an uncorrelated random vector generator from
50 * @param generator underlying generator for uncorrelated normalized
55 NormalizedRandomGenerator generator) { in UncorrelatedRandomVectorGenerator() argument
61 this.generator = generator; in UncorrelatedRandomVectorGenerator()
66 * uncorrelated vector generator</p>
68 * @param generator underlying generator for uncorrelated normalized
72 NormalizedRandomGenerator generator) { in UncorrelatedRandomVectorGenerator() argument
76 this.generator = generator; in UncorrelatedRandomVectorGenerator()
[all …]
DRandomGenerator.java30 * Sets the seed of the underlying random number generator using an
40 * Sets the seed of the underlying random number generator using an
50 * Sets the seed of the underlying random number generator using a
71 * value from this random number generator's sequence.
76 * value from this random number generator's sequence
83 * this random number generator's sequence.
95 * value from this random number generator's sequence. All
100 *value from this random number generator's sequence
106 * <code>boolean</code> value from this random number generator's
110 * <code>boolean</code> value from this random number generator's
[all …]
DUniformRandomGenerator.java23 * This class implements a normalized uniform random generator.
24 * <p>Since it is a normalized random generator, it generates values
42 /** Underlying generator. */
43 private final RandomGenerator generator; field in UniformRandomGenerator
45 /** Create a new generator.
46 * @param generator underlying random generator to use
48 public UniformRandomGenerator(RandomGenerator generator) { in UniformRandomGenerator() argument
49 this.generator = generator; in UniformRandomGenerator()
58 return SQRT3 * (2 * generator.nextDouble() - 1.0); in nextNormalizedDouble()
DGaussianRandomGenerator.java21 * This class is a gaussian normalized random generator for scalars.
30 /** Underlying generator. */
31 private final RandomGenerator generator; field in GaussianRandomGenerator
33 /** Create a new generator.
34 * @param generator underlying random generator to use
36 public GaussianRandomGenerator(final RandomGenerator generator) { in GaussianRandomGenerator() argument
37 this.generator = generator; in GaussianRandomGenerator()
44 return generator.nextGaussian(); in nextNormalizedDouble()
DAbstractWell.java22 /** This abstract class implements the WELL class of pseudo-random number generator
25 * <p>This generator is described in a paper by Fran&ccedil;ois Panneton,
32 …* @see <a href="http://www.iro.umontreal.ca/~panneton/WELLRNG.html">WELL Random number generator</…
63 /** Creates a new random number generator.
75 /** Creates a new random number generator using a single int seed.
86 /** Creates a new random number generator using an int array seed.
92 * the seed of the generator will be related to the current time
124 /** Creates a new random number generator using a single long seed.
135 /** Reinitialize the generator as if just built with the given int seed.
136 * <p>The state of the generator is exactly the same as a new
[all …]
DRandomAdaptor.java37 * Prevent instantiation without a generator argument
45 * @param randomGenerator the wrapped generator
64 * <code>boolean</code> value from this random number generator's
68 * <code>boolean</code> value from this random number generator's
92 * <code>1.0</code> from this random number generator's sequence.
96 * <code>1.0</code> from this random number generator's sequence
106 * number generator's sequence.
110 * random number generator's sequence
120 * deviation <code>1.0</code> from this random number generator's sequence.
125 * generator's sequence
[all …]
DMersenneTwister.java24 /** This class implements a powerful pseudo-random number generator
28 * <p>This generator features an extremely long period
30 * bits accuracy. The home page for this generator is located at <a
34 * <p>This generator is described in a paper by Makoto Matsumoto and
38 * Number Generator</a>, ACM Transactions on Modeling and Computer
42 * the generator written in C by Makoto Matsumoto and Takuji
102 /** Creates a new random number generator.
111 /** Creates a new random number generator using a single int seed.
119 /** Creates a new random number generator using an int array seed.
121 * the seed of the generator will be related to the current time
[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/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/python/cpython2/Doc/library/
Demail.generator.rst1 :mod:`email.generator`: Generating MIME documents
4 .. module:: email.generator
12 producing a flat text document is the job of the :class:`Generator` class.
15 functionality of the bundled generator; you could write one from scratch
16 yourself. However the bundled generator knows how to generate most email in a
21 using the Generator on a :class:`~email.message.Message` constructed by program
25 Here are the public methods of the :class:`Generator` class, imported from the
26 :mod:`email.generator` module:
29 .. class:: Generator(outfp[, mangle_from_[, maxheaderlen]])
31 The constructor for the :class:`Generator` class takes a file-like object called
[all …]
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/
DAntlr3.Runtime.Test.csproj70 <Generator>MSBuild:Compile</Generator>
89 <Generator>MSBuild:Compile</Generator>
100 <Generator>MSBuild:Compile</Generator>
106 <Generator>MSBuild:Compile</Generator>
118 <Generator>MSBuild:Compile</Generator>
156 <Generator>MSBuild:Compile</Generator>
165 <Generator>MSBuild:Compile</Generator>
168 <Generator>MSBuild:Compile</Generator>
171 <Generator>MSBuild:Compile</Generator>
179 <Generator>MSBuild:Compile</Generator>
[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()
89 …//return generator.grammar.name + Grammar.grammarTypeToFileNameSuffix[generator.grammar.type] + "_… in getTokenTypeAsTargetLabel()
90 //return super.getTokenTypeAsTargetLabel(generator, ttype); in getTokenTypeAsTargetLabel()
91 //return this.getTokenTextAndTypeAsTargetLabel(generator, null, ttype); in getTokenTypeAsTargetLabel()
95 …public String getTokenTextAndTypeAsTargetLabel(CodeGenerator generator, String text, int tokenType… in getTokenTextAndTypeAsTargetLabel() argument
[all …]
/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()
57 // TODO(jgruber): Refactor to reuse code from builtins-generator.cc. in AsyncFunctionAwaitResumeClosure()
59 // Ensure that the generator is neither closed nor running. in AsyncFunctionAwaitResumeClosure()
63 LoadObjectField(generator, JSGeneratorObject::kContinuationOffset), in AsyncFunctionAwaitResumeClosure()
68 CallStub(callable, context, sent_value, generator, SmiConstant(resume_mode)); in AsyncFunctionAwaitResumeClosure()
100 // yield AsyncFunctionAwait{Caught,Uncaught}(.generator, awaited, .promise)
101 // The 'awaited' parameter is the value; the generator stands in
105 Node* const context, Node* const generator, Node* const awaited, in AsyncFunctionAwait() argument
[all …]
/external/guava/guava-testlib/src/com/google/common/collect/testing/
DOneSizeGenerator.java28 * Generator for collection of a particular size.
35 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/google-benchmark/
Dappveyor.yml12 generator: "Visual Studio 15 2017"
15 generator: "Visual Studio 15 2017 Win64"
18 generator: "Visual Studio 14 2015"
21 generator: "Visual Studio 14 2015 Win64"
24 generator: "Visual Studio 12 2013"
27 generator: "Visual Studio 12 2013 Win64"
30 generator: "MinGW Makefiles"
39 - if "%generator%"=="MinGW Makefiles" (set "PATH=%PATH:C:\Program Files\Git\usr\bin;=%")
46 - cmake -G "%generator%" "-DCMAKE_BUILD_TYPE=%configuration%" ..

12345678910>>...150