/external/jcommander/src/test/java/com/beust/jcommander/command/ |
D | CommandAliasTest.java | 39 JCommander jc = new JCommander(cm); in oneCommandWithSingleAlias() local 41 jc.addCommand("add", add, "a"); in oneCommandWithSingleAlias() 42 jc.parse("a", "-i", "A.java"); in oneCommandWithSingleAlias() 44 Assert.assertEquals(jc.getParsedCommand(), "add"); in oneCommandWithSingleAlias() 45 Assert.assertEquals(jc.getParsedAlias(), "a"); in oneCommandWithSingleAlias() 62 JCommander jc = new JCommander(cm); in testCommitWithAlias() local 64 jc.addCommand("commit", commit, "ci", "cmt"); in testCommitWithAlias() 65 jc.parse(alias, "--amend", "--author", "jack", "file1.txt"); in testCommitWithAlias() 67 Assert.assertEquals(jc.getParsedCommand(), "commit"); in testCommitWithAlias() 68 Assert.assertEquals(jc.getParsedAlias(), alias); in testCommitWithAlias() [all …]
|
D | CommandTest.java | 33 JCommander jc = new JCommander(cm); in namedCommandTest1() local 35 jc.addCommand(add); in namedCommandTest1() 37 jc.addCommand("commit", commit); in namedCommandTest1() 38 jc.parse("add", "-i", "A.java"); in namedCommandTest1() 40 Assert.assertEquals(jc.getParsedCommand(), "add"); in namedCommandTest1() 48 JCommander jc = new JCommander(cm); in shouldComplainIfNoAnnotations() local 50 jc.addCommand(add); in shouldComplainIfNoAnnotations() 56 JCommander jc = new JCommander(cm); in commandTest1() local 58 jc.addCommand("add", add); in commandTest1() 60 jc.addCommand("commit", commit); in commandTest1() [all …]
|
/external/jcommander/src/test/java/com/beust/jcommander/ |
D | FinderTest.java | 18 JCommander jc = new JCommander(a); in caseInsensitiveOption() local 19 jc.setCaseSensitiveOptions(false); in caseInsensitiveOption() 20 jc.parse(new String[] { "--PARAM", "foo" }); in caseInsensitiveOption() 27 JCommander jc = new JCommander(a); in caseInsensitiveCommand() local 28 jc.addCommand(conf); in caseInsensitiveCommand() 29 jc.setCaseSensitiveOptions(false); in caseInsensitiveCommand() 31 jc.parse("--CONFIGURE"); in caseInsensitiveCommand() 32 String command = jc.getParsedCommand(); in caseInsensitiveCommand() 42 JCommander jc = new JCommander(a); in abbreviatedOptions() local 43 jc.setAllowAbbreviatedOptions(true); in abbreviatedOptions() [all …]
|
D | PositiveIntegerTest.java | 16 JCommander jc = new JCommander(arg); in validateTest() local 17 jc.parse(new String[] { "-p", "8080" }); in validateTest() 28 JCommander jc = new JCommander(arg); in validateTest2() local 29 jc.parse(new String[] { "-p", "" }); in validateTest2() 39 JCommander jc = new JCommander(arg); in validateTest3() local 40 jc.parse(new String[] { "-p", "-1" }); in validateTest3() 50 JCommander jc = new JCommander(arg); in validateTest4() local 51 jc.parse(new String[] { "-p", "abc" }); in validateTest4() 62 JCommander jc = new JCommander(arg); in validateTest5() local 63 jc.parse(new String[] { "--port", " " }); in validateTest5()
|
D | CmdTest.java | 24 JCommander jc = new JCommander(); in parseArgs() local 25 jc.addCommand(new CmdOne()); in parseArgs() 26 jc.addCommand(new CmdTwo()); in parseArgs() 36 jc.parseWithoutValidation(args); in parseArgs() 37 if (jc.getParsedCommand() == null) { in parseArgs() 41 jc.parse(newArgs.toArray(new String[0])); in parseArgs() 44 jc.parse(args); in parseArgs() 46 return jc.getParsedCommand(); in parseArgs()
|
D | JCommanderTest.java | 136 JCommander jc = new JCommander(args, argv); in repeatedArgs() local 137 Assert.assertEquals(jc.getParameters().size(), 8); in repeatedArgs() 156 JCommander jc = new JCommander(new Object(), argv); in nonexistentCommandShouldThrow() local 157 jc.getCommandDescription("foo"); in nonexistentCommandShouldThrow() 184 JCommander jc = new JCommander(i18n, bundle, argv); in i18n1() local 187 ParameterDescription pd = jc.getParameters().get(0); in i18n1() 206 JCommander jc = new JCommander(i18n, argv); in i18n2() local 207 ParameterDescription pd = jc.getParameters().get(0); in i18n2() 233 JCommander jc = new JCommander(new Object[]{argsHelp, new ArgsRequired()}, in usageWithRequiredArgsAndResourceBundle() local 236 jc.usage(new StringBuilder()); in usageWithRequiredArgsAndResourceBundle() [all …]
|
D | ConverterFactoryTest.java | 53 JCommander jc = new JCommander(a); in parameterWithHostPortParameters() local 54 jc.addConverterFactory(CONVERTER_FACTORY); in parameterWithHostPortParameters() 55 jc.parse("-hostport", "example.com:8080"); in parameterWithHostPortParameters() 66 JCommander jc = new JCommander(a); in mainWithHostPortParameters() local 67 if (f != null) jc.addConverterFactory(f); in mainWithHostPortParameters() 68 jc.parse("a.com:10", "b.com:20"); in mainWithHostPortParameters()
|
D | DefaultProviderTest.java | 38 JCommander jc = new JCommander(a); in defaultProvider() local 39 jc.setDefaultProvider(provider); in defaultProvider() 41 jc.parse(args); in defaultProvider()
|
/external/javassist/src/main/javassist/expr/ |
D | Instanceof.java | 98 Javac jc = new Javac(thisClass); in replace() local 108 jc.recordParams(javaLangObject, params, true, paramVar, in replace() 110 int retVar = jc.recordReturnType(retType, true); in replace() 111 jc.recordProceed(new ProceedForInstanceof(index)); in replace() 114 jc.recordType(getType()); in replace() 120 Bytecode bytecode = jc.getBytecode(); in replace() 122 jc.recordLocalVariables(ca, pos); in replace() 127 jc.compileStmnt(statement); in replace()
|
D | MethodCall.java | 203 Javac jc = new Javac(thisClass); in replace() local 210 jc.recordParams(classname, params, in replace() 212 int retVar = jc.recordReturnType(retType, true); in replace() 214 jc.recordStaticProceed(classname, methodname); in replace() 216 jc.recordSpecialProceed(Javac.param0Name, classname, in replace() 219 jc.recordProceed(Javac.param0Name, methodname); in replace() 225 Bytecode bytecode = jc.getBytecode(); in replace() 227 jc.recordLocalVariables(ca, pos); in replace() 234 jc.compileStmnt(statement); in replace()
|
D | Cast.java | 95 Javac jc = new Javac(thisClass); in replace() local 105 jc.recordParams(javaLangObject, params, true, paramVar, in replace() 107 int retVar = jc.recordReturnType(retType, true); in replace() 108 jc.recordProceed(new ProceedForCast(index, retType)); in replace() 114 Bytecode bytecode = jc.getBytecode(); in replace() 116 jc.recordLocalVariables(ca, pos); in replace() 121 jc.compileStmnt(statement); in replace()
|
D | FieldAccess.java | 155 Javac jc = new Javac(thisClass); in replace() local 175 jc.recordParams(constPool.getFieldrefClassName(index), params, in replace() 184 int retVar = jc.recordReturnType(retType, included); in replace() 186 jc.recordProceed(new ProceedForRead(retType, opcode, in replace() 190 jc.recordType(fieldType); in replace() 191 jc.recordProceed(new ProceedForWrite(params[0], opcode, in replace() 195 Bytecode bytecode = jc.getBytecode(); in replace() 197 jc.recordLocalVariables(ca, pos); in replace() 209 jc.compileStmnt(statement); in replace()
|
D | NewExpr.java | 182 Javac jc = new Javac(thisClass); in replace() local 189 jc.recordParams(newTypeName, params, in replace() 191 int retVar = jc.recordReturnType(newType, true); in replace() 192 jc.recordProceed(new ProceedForNew(newType, newIndex, in replace() 199 Bytecode bytecode = jc.getBytecode(); in replace() 201 jc.recordLocalVariables(ca, pos); in replace() 206 jc.compileStmnt(statement); in replace()
|
D | NewArray.java | 208 Javac jc = new Javac(thisClass); in replace2() local 216 jc.recordParams(javaLangObject, params, in replace2() 222 int retVar = jc.recordReturnType(retType, true); in replace2() 223 jc.recordProceed(new ProceedForArray(retType, opcode, index, dim)); in replace2() 225 Bytecode bytecode = jc.getBytecode(); in replace2() 227 jc.recordLocalVariables(ca, pos); in replace2() 232 jc.compileStmnt(statement); in replace2()
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/ |
D | reverse_copy.pass.cpp | 44 int jc[sc] = {-1}; in test() local 45 r = std::reverse_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test() 46 assert(base(r) == jc+sc); in test() 47 assert(jc[0] == 2); in test() 48 assert(jc[1] == 1); in test() 49 assert(jc[2] == 0); in test()
|
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/ |
D | fft.c | 276 int j, jc, jf, jj, k, k1, k2, k3, k4, kk, kt, nn, ns, nt; in FFTRADIX() local 362 jc = ns / (int)nPass; in FFTRADIX() 363 radf = pi2 * (double) jc; in FFTRADIX() 450 } while (kk < jc); in FFTRADIX() 477 kk += jc; in FFTRADIX() 480 kk = (k1 - kspan + 1) / 2 + jc - 1; in FFTRADIX() 481 } while (kk < (jc + jc)); in FFTRADIX() 548 kk = kk - nt + jc; in FFTRADIX() 551 } while (kk < jc); in FFTRADIX() 552 if (kspan == jc) in FFTRADIX() [all …]
|
/external/jcommander/src/test/java/com/beust/jcommander/args/ |
D | ArgsEnum.java | 47 JCommander jc = new JCommander(args, argv); in main() local 48 jc.usage(); in main() 49 Assert.assertEquals(jc.getParameters().get(0).getDescription(), in main()
|
/external/javassist/src/main/javassist/tools/reflect/ |
D | Metaobject.java | 159 Class jc = getClassMetaobject().getJavaClass(); in trapFieldRead() local 161 return jc.getField(name).get(getObject()); in trapFieldRead() 179 Class jc = getClassMetaobject().getJavaClass(); in trapFieldWrite() local 181 jc.getField(name).set(getObject(), value); in trapFieldWrite()
|
D | ClassMetaobject.java | 164 Class jc = getJavaClass(); in trapFieldRead() local 166 return jc.getField(name).get(null); in trapFieldRead() 184 Class jc = getJavaClass(); in trapFieldWrite() local 186 jc.getField(name).set(null, value); in trapFieldWrite()
|
/external/libcxx/test/std/algorithms/alg.modifying.operations/alg.unique/ |
D | unique_copy.pass.cpp | 46 int jc[sc] = {-1}; in test() local 47 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test() 48 assert(base(r) == jc + 1); in test() 49 assert(jc[0] == 0); in test()
|
D | unique_copy_pred.pass.cpp | 61 int jc[sc] = {-1}; in test() local 63 r = std::unique_copy(InIter(ic), InIter(ic+sc), OutIter(jc), count_equal()); in test() 64 assert(base(r) == jc + 1); in test() 65 assert(jc[0] == 0); in test()
|
/external/jcommander/src/main/java/com/beust/jcommander/ |
D | JCommander.java | 690 JCommander jc = findCommandByAlias(arg); in parseValues() local 692 if (! isDashDash && ! "--".equals(a) && isOption(args, a) && jc == null) { in parseValues() 782 if (jc == null && validate) { in parseValues() 784 } else if (jc != null){ in parseValues() 785 m_parsedCommand = jc.m_programName.m_name; in parseValues() 791 jc.parse(subArray(args, i + 1)); in parseValues() 989 JCommander jc = findCommandByAlias(commandName); in usage() local 994 jc.usage(out, indent); in usage() 1001 JCommander jc = findCommandByAlias(commandName); in getCommandDescription() local 1002 if (jc == null) { in getCommandDescription() [all …]
|
D | ParameterDescription.java | 57 ResourceBundle bundle, JCommander jc) { in ParameterDescription() argument 66 init(object, parameterized, bundle, jc); in ParameterDescription() 70 ResourceBundle bundle, JCommander jc) { in ParameterDescription() argument 73 init(object, parameterized, bundle, jc); in ParameterDescription()
|
/external/jcommander/src/test/java/test/ |
D | QuotedMainTest.java | 20 JCommander jc = new JCommander(this); in testMain() local 21 jc.parse(quoted); in testMain()
|
/external/testng/src/main/java/org/testng/ |
D | Converter.java | 53 JCommander jc = new JCommander(this); in run() local 55 jc.parse(args); in run() 88 jc.usage(); in run()
|