/external/antlr/antlr-3.4/tool/src/test/java/org/antlr/test/ |
D | TestAttributes.java | 57 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 …]
|
D | TestTemplates.java | 66 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/ |
D | FreshValueGeneratorTest.java | 155 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/webrtc/webrtc/modules/audio_processing/test/ |
D | debug_dump_test.cc | 473 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/test/mjsunit/es6/ |
D | generators-poisoned-properties.js | 8 function* generator() { "use strict"; } generator 9 assertFalse(generator.hasOwnProperty("arguments")); 10 assertThrows(function() { return generator.arguments; }, TypeError); 11 assertThrows(function() { return generator.arguments = {}; }, TypeError); 13 assertFalse(generator.hasOwnProperty("caller")); 14 assertThrows(function() { return generator.caller; }, TypeError); 15 assertThrows(function() { return generator.caller = {}; }, TypeError); 20 function* generator() {} generator 21 assertFalse(generator.hasOwnProperty("arguments")); 22 assertThrows(function() { return generator.arguments; }, TypeError); [all …]
|
D | generators-debug-liveedit.js | 12 var Generator = (function*(){}).constructor; class 21 return Generator('callback', 38 var generator = MakeGenerator(); 40 var iter = generator(callback); 63 var generator = MakeGenerator(); 69 assertThrows(function() { patch(generator, "'Cat'", "'Capybara'") }, 72 var iter = generator(attempt_gen_patch); 74 // Patch should not succeed because there is a live generator activation on 80 patch(generator, "'Cat'", "'Capybara'"); 81 iter = generator(function(){}); [all …]
|
/external/chromium-trace/catapult/tracing/tracing/base/ |
D | sinebow_color_generator_test.html | 14 var generator = new tr.b.SinebowColorGenerator(); 16 generator.colorForKey('z').toString()); 18 generator.colorForKey('y').toString()); 20 generator.colorForKey('x').toString()); 22 generator.colorForKey('z').toString()); 24 generator = new tr.b.SinebowColorGenerator(0.5); 26 generator.colorForKey('z').toString()); 28 generator.colorForKey('y').toString()); 30 generator.colorForKey('x').toString()); 32 generator.colorForKey('z').toString()); [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
D | PBE.java | 65 PBEParametersGenerator generator; in makePBEGenerator() local 73 // generator = new PKCS5S1ParametersGenerator(new MD2Digest()); in makePBEGenerator() 78 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator() 83 generator = new PKCS5S1ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator() 96 // generator = new PKCS5S2ParametersGenerator(new MD2Digest()); in makePBEGenerator() 101 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getMD5()); in makePBEGenerator() 106 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA1()); in makePBEGenerator() 111 // generator = new PKCS5S2ParametersGenerator(new RIPEMD160Digest()); in makePBEGenerator() 114 // generator = new PKCS5S2ParametersGenerator(new TigerDigest()); in makePBEGenerator() 119 generator = new PKCS5S2ParametersGenerator(AndroidDigestFactory.getSHA256()); in makePBEGenerator() [all …]
|
/external/v8/src/runtime/ |
D | runtime-generator.cc | 33 Handle<JSGeneratorObject> generator = in RUNTIME_FUNCTION() local 35 generator->set_function(*function); in RUNTIME_FUNCTION() 36 generator->set_context(isolate->context()); in RUNTIME_FUNCTION() 37 generator->set_receiver(*receiver); in RUNTIME_FUNCTION() 38 generator->set_operand_stack(*operand_stack); in RUNTIME_FUNCTION() 39 generator->set_continuation(JSGeneratorObject::kGeneratorExecuting); in RUNTIME_FUNCTION() 40 return *generator; in RUNTIME_FUNCTION() 86 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION() 88 generator->set_continuation(JSGeneratorObject::kGeneratorClosed); in RUNTIME_FUNCTION() 96 CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); in RUNTIME_FUNCTION() [all …]
|
/external/nanopb-c/tools/ |
D | make_mac_package.sh | 21 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
|
D | make_linux_package.sh | 19 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
|
D | make_windows_package.sh | 20 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/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/particle/ |
D | VoronoiDiagram.java | 8 public static class Generator { class in VoronoiDiagram 14 Generator m_generator; 18 public VoronoiDiagramTask(int x, int y, int i, Generator g) { in VoronoiDiagramTask() 25 public VoronoiDiagramTask set(int x, int y, int i, Generator g) { in set() 38 private Generator[] m_generatorBuffer; 42 private Generator[] m_diagram; 45 m_generatorBuffer = new Generator[generatorCapacity]; in VoronoiDiagram() 47 m_generatorBuffer[i] = new Generator(); in VoronoiDiagram() 59 Generator a = m_diagram[i]; in getNodes() 60 Generator b = m_diagram[i + 1]; in getNodes() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/random/ |
D | UncorrelatedRandomVectorGenerator.java | 36 /** 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 …]
|
D | RandomGenerator.java | 30 * 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 …]
|
D | UniformRandomGenerator.java | 23 * 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()
|
D | GaussianRandomGenerator.java | 21 * 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()
|
/external/webrtc/webrtc/test/ |
D | frame_generator_unittest.cc | 91 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/ |
D | agg_conv_stroke.h | 38 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/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Test/ |
D | Antlr3.Runtime.Test.csproj | 70 <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/skia/src/core/ |
D | SkImageCacherator.cpp | 49 // we need a different uniqueID since we really are a subset of the raw generator in NewFromGenerator() 56 // Now that we know we can hand-off the generator (to be owned by the cacherator) we can in NewFromGenerator() 73 ScopedGenerator generator(this); in refEncoded() local 74 return generator->refEncodedData(ctx); in refEncoded() 90 ScopedGenerator generator(this); in generateBitmap() local 91 const SkImageInfo& genInfo = generator->getInfo(); in generateBitmap() 95 return generator->tryGenerateBitmap(bitmap, fInfo, allocator); in generateBitmap() 101 if (!generator->tryGenerateBitmap(&full, genInfo, allocator)) { in generateBitmap() 114 ScopedGenerator generator(this); in directGeneratePixels() local 115 const SkImageInfo& genInfo = generator->getInfo(); in directGeneratePixels() [all …]
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/spec/ |
D | ECParameterSpec_ImplTest.java | 65 * <code>curve</code>, <code>generator</code> or <code>order</code> is <code>null</code><br> 75 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec02() local 80 new ECParameterSpec(null, generator, order, 10); in testECParameterSpec02() 86 // Test case 2: generator is null in testECParameterSpec02() 96 new ECParameterSpec(curve, generator, null, 10); in testECParameterSpec02() 123 ECPoint generator = new ECPoint(BigInteger.ZERO, BigInteger.valueOf(2L)); in testECParameterSpec03() local 128 new ECParameterSpec(curve, generator, BigInteger.valueOf(-5L), 10); in testECParameterSpec03() 136 new ECParameterSpec(curve, generator, BigInteger.ZERO, 10); in testECParameterSpec03() 144 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), -10); in testECParameterSpec03() 152 new ECParameterSpec(curve, generator, BigInteger.valueOf(5L), 0); in testECParameterSpec03() [all …]
|
/external/antlr/antlr-3.4/tool/src/main/java/org/antlr/codegen/ |
D | ObjCTarget.java | 40 CodeGenerator generator, in genRecognizerHeaderFile() argument 46 …generator.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/tools/gyp/pylib/gyp/ |
D | __init__.py | 56 Returns the generator for the specified format and the 70 default_variables['GENERATOR'] = format 74 # within gyp.generator. 79 # Make sure the path to the custom generator is in sys.path 81 # to each generator that is used in sys.path is likely harmless and 87 generator_name = 'gyp.generator.' + format 91 generator = __import__(generator_name, globals(), locals(), generator_name) 92 for (key, val) in generator.generator_default_variables.items(): 95 # Give the generator the opportunity to set additional variables based on 97 if getattr(generator, 'CalculateVariables', None): [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/ |
D | OneSizeGenerator.java | 28 * 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()
|