Home
last modified time | relevance | path

Searched refs:jc (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/external/jcommander/src/test/java/com/beust/jcommander/command/
DCommandAliasTest.java39 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 …]
DCommandTest.java33 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/
DFinderTest.java18 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 …]
DPositiveIntegerTest.java16 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()
DJCommanderTest.java136 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 …]
DCmdTest.java24 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()
DConverterFactoryTest.java53 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()
/external/smali/baksmali/src/main/java/org/jf/baksmali/
DListCommand.java59 @Override protected void setupCommand(JCommander jc) { in setupCommand() argument
62 ExtendedCommands.addExtendedCommand(jc, new ListStringsCommand(hierarchy)); in setupCommand()
63 ExtendedCommands.addExtendedCommand(jc, new ListMethodsCommand(hierarchy)); in setupCommand()
64 ExtendedCommands.addExtendedCommand(jc, new ListFieldsCommand(hierarchy)); in setupCommand()
65 ExtendedCommands.addExtendedCommand(jc, new ListTypesCommand(hierarchy)); in setupCommand()
66 ExtendedCommands.addExtendedCommand(jc, new ListClassesCommand(hierarchy)); in setupCommand()
67 ExtendedCommands.addExtendedCommand(jc, new ListDexCommand(hierarchy)); in setupCommand()
68 ExtendedCommands.addExtendedCommand(jc, new ListVtablesCommand(hierarchy)); in setupCommand()
69 ExtendedCommands.addExtendedCommand(jc, new ListFieldOffsetsCommand(hierarchy)); in setupCommand()
70 ExtendedCommands.addExtendedCommand(jc, new ListDependenciesCommand(hierarchy)); in setupCommand()
[all …]
DMain.java62 private JCommander jc; field in Main
72 return jc; in getJCommander()
78 JCommander jc = new JCommander(main); in main() local
79 main.jc = jc; in main()
80 jc.setProgramName("baksmali"); in main()
83 ExtendedCommands.addExtendedCommand(jc, new DisassembleCommand(commandHierarchy)); in main()
84 ExtendedCommands.addExtendedCommand(jc, new DeodexCommand(commandHierarchy)); in main()
85 ExtendedCommands.addExtendedCommand(jc, new DumpCommand(commandHierarchy)); in main()
86 ExtendedCommands.addExtendedCommand(jc, new HelpCommand(commandHierarchy)); in main()
87 ExtendedCommands.addExtendedCommand(jc, new HlepCommand(commandHierarchy)); in main()
[all …]
/external/smali/util/src/main/java/org/jf/util/jcommander/
DExtendedCommands.java59 public static String commandName(JCommander jc) { in commandName() argument
60 return getExtendedParameters(jc.getObjects().get(0)).commandName(); in commandName()
69 public static String[] commandAliases(JCommander jc) { in commandAliases() argument
70 return commandAliases(jc.getObjects().get(0)); in commandAliases()
78 public static boolean includeParametersInUsage(JCommander jc) { in includeParametersInUsage() argument
79 return includeParametersInUsage(jc.getObjects().get(0)); in includeParametersInUsage()
87 public static String postfixDescription(JCommander jc) { in postfixDescription() argument
88 return postfixDescription(jc.getObjects().get(0)); in postfixDescription()
96 public static void addExtendedCommand(JCommander jc, Command command) { in addExtendedCommand() argument
97 jc.addCommand(commandName(command), command, commandAliases(command)); in addExtendedCommand()
[all …]
DHelpFormatter.java64 private static ExtendedParameters getExtendedParameters(JCommander jc) { in getExtendedParameters() argument
65 …ExtendedParameters anno = jc.getObjects().get(0).getClass().getAnnotation(ExtendedParameters.class… in getExtendedParameters()
73 private static List<String> getCommandAliases(JCommander jc) { in getCommandAliases() argument
74 return Lists.newArrayList(getExtendedParameters(jc).commandAliases()); in getCommandAliases()
77 private static boolean includeParametersInUsage(@Nonnull JCommander jc) { in includeParametersInUsage() argument
78 return getExtendedParameters(jc).includeParametersInUsage(); in includeParametersInUsage()
82 private static String getPostfixDescription(@Nonnull JCommander jc) { in getPostfixDescription() argument
83 return getExtendedParameters(jc).postfixDescription(); in getPostfixDescription()
97 private List<ParameterDescription> getSortedParameters(JCommander jc) { in getSortedParameters() argument
98 List<ParameterDescription> parameters = Lists.newArrayList(jc.getParameters()); in getSortedParameters()
[all …]
/external/smali/smali/src/main/java/org/jf/smali/
DMain.java62 private JCommander jc; field in Main
68 return jc; in getJCommander()
78 JCommander jc = new JCommander(main); in main() local
79 main.jc = jc; in main()
80 jc.setProgramName("smali"); in main()
83 ExtendedCommands.addExtendedCommand(jc, new AssembleCommand(commandHierarchy)); in main()
84 ExtendedCommands.addExtendedCommand(jc, new HelpCommand(commandHierarchy)); in main()
85 ExtendedCommands.addExtendedCommand(jc, new HlepCommand(commandHierarchy)); in main()
87 jc.parse(args); in main()
93 if (jc.getParsedCommand() == null || main.help) { in main()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/generic/
DObjectType.java84 final JavaClass jc = Repository.lookupClass(class_name); in referencesClass() local
85 return jc.isClass(); in referencesClass()
102 final JavaClass jc = Repository.lookupClass(class_name); in referencesInterface() local
103 return !jc.isClass(); in referencesInterface()
119 final JavaClass jc = Repository.lookupClass(class_name); in referencesClassExact() local
120 return jc.isClass(); in referencesClassExact()
133 final JavaClass jc = Repository.lookupClass(class_name); in referencesInterfaceExact() local
134 return !jc.isClass(); in referencesInterfaceExact()
157 final JavaClass jc = Repository.lookupClass(class_name); in accessibleTo() local
158 if (jc.isPublic()) { in accessibleTo()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/statics/
DPass1Verifier.java44 private JavaClass jc; field in Pass1Verifier
56 if (jc == null) { in getJavaClass()
58 jc = Repository.lookupClass(myOwner.getClassName()); in getJavaClass()
66 return jc; in getJavaClass()
148 JavaClass jc; in do_verify() local
150 jc = getJavaClass(); //loads in the class file if not already done. in do_verify()
152 if (jc != null) { in do_verify()
154 if (! myOwner.getClassName().equals(jc.getClassName())) { in do_verify()
157 … throw new LoadingException("Wrong name: the internal name of the .class file '"+jc.getClassName()+ in do_verify()
176 if (jc != null) { in do_verify()
DPass3aVerifier.java165 final JavaClass jc = Repository.lookupClass(myOwner.getClassName()); in do_verify() local
166 final Method[] methods = jc.getMethods(); in do_verify()
598 final JavaClass jc = Repository.lookupClass(getObjectType(o).getClassName()); in visitFieldInstruction() local
599 Field[] fields = jc.getFields(); in visitFieldInstruction()
615 final JavaClass[] superclasses = jc.getSuperClasses(); in visitFieldInstruction()
634 …tViolated(o, "Referenced field '"+field_name+"' does not exist in class '"+jc.getClassName()+"'."); in visitFieldInstruction()
1053 final JavaClass jc = Repository.lookupClass(getObjectType(o).getClassName()); in visitPUTSTATIC() local
1054 final Field[] fields = jc.getFields(); in visitPUTSTATIC()
1063 …row new AssertionViolatedException("Field '" + field_name + "' not found in " + jc.getClassName()); in visitPUTSTATIC()
1081 if ((!(jc.isClass())) && (!(meth_name.equals(Const.STATIC_INITIALIZER_NAME)))) { in visitPUTSTATIC()
[all …]
DPass2Verifier.java195 JavaClass jc = Repository.lookupClass(myOwner.getClassName()); in every_class_has_an_accessible_superclass() local
199 supidx = jc.getSuperclassNameIndex(); in every_class_has_an_accessible_superclass()
202 if (jc != Repository.lookupClass(Type.OBJECT.getClassName())) { in every_class_has_an_accessible_superclass()
203 throw new ClassConstraintException("Superclass of '"+jc.getClassName()+ in every_class_has_an_accessible_superclass()
208 final String supername = jc.getSuperclassName(); in every_class_has_an_accessible_superclass()
218 jc = Repository.lookupClass(supername); in every_class_has_an_accessible_superclass()
220 if (jc.isFinal()) { in every_class_has_an_accessible_superclass()
247 JavaClass jc = Repository.lookupClass(myOwner.getClassName()); in final_methods_are_not_overridden() local
251 supidx = jc.getSuperclassNameIndex(); in final_methods_are_not_overridden()
253 final Method[] methods = jc.getMethods(); in final_methods_are_not_overridden()
[all …]
/external/webrtc/webrtc/modules/audio_coding/codecs/isac/main/source/
Dfft.c276 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/libcxx/test/std/algorithms/alg.modifying.operations/alg.reverse/
Dreverse_copy.pass.cpp58 int jc[sc] = {-1}; in test() local
59 r = std::reverse_copy(InIter(ic), InIter(ic+sc), OutIter(jc)); in test()
60 assert(base(r) == jc+sc); in test()
61 assert(jc[0] == 2); in test()
62 assert(jc[1] == 1); in test()
63 assert(jc[2] == 0); in test()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/generic/
DMethodGenTestCase.java54 final JavaClass jc = Repository.lookupClass(cls); in getMethod() local
55 final ConstantPoolGen cp = new ConstantPoolGen(jc.getConstantPool()); in getMethod()
56 for (final Method method : jc.getMethods()) { in getMethod()
58 return new MethodGen(method, jc.getClassName(), cp); in getMethod()
109 final JavaClass jc = Repository.lookupClass(Bar.Inner.class); in testAnnotationsAreUnpacked() local
110 final ClassGen cg = new ClassGen(jc); in testAnnotationsAreUnpacked()
DGeneratingAnnotatedClassesTestCase.java86 final JavaClass jc = getClassFrom(".", "HelloWorld"); in testGenerateClassLevelAnnotations() local
87 final AnnotationEntry[] as = jc.getAnnotationEntries(); in testGenerateClassLevelAnnotations()
200 final JavaClass jc = getTestClass(PACKAGE_BASE_NAME+".data.SimpleAnnotatedClass"); in testTransformClassToClassGen_SimpleTypes() local
201 final ClassGen cgen = new ClassGen(jc); in testTransformClassToClassGen_SimpleTypes()
215 final JavaClass jc = getTestClass(PACKAGE_BASE_NAME+".data.AnnotatedWithEnumClass"); in testTransformClassToClassGen_EnumType() local
216 final ClassGen cgen = new ClassGen(jc); in testTransformClassToClassGen_EnumType()
230 … final JavaClass jc = getTestClass(PACKAGE_BASE_NAME+".data.AnnotatedWithCombinedAnnotation"); in testTransformClassToClassGen_ArrayAndAnnotationTypes() local
231 final ClassGen cgen = new ClassGen(jc); in testTransformClassToClassGen_ArrayAndAnnotationTypes()
337 final JavaClass jc = getTestClass(PACKAGE_BASE_NAME+".data.ComplexAnnotatedClass"); in testTransformComplexClassToClassGen() local
338 final ClassGen cgen = new ClassGen(jc); in testTransformComplexClassToClassGen()
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/
DVerifierAppFrame.java288 final JavaClass jc = Repository.lookupClass(current_class); in verify() local
295 final String[] methodnames = new String[jc.getMethods().length]; in verify()
296 for (int i = 0; i < jc.getMethods().length; i++) { in verify()
297 methodnames[i] = jc.getMethods()[i].toString().replace('\n', ' ').replace('\t', in verify()
301 pass3aJList.setSelectionInterval(0, jc.getMethods().length - 1); in verify()
303 pass3bJList.setSelectionInterval(0, jc.getMethods().length - 1); in verify()
344 JavaClass jc = null; in pass3aJList_valueChanged() local
346 jc = Repository.lookupClass(v.getClassName()); in pass3aJList_valueChanged()
347 all3amsg.append("Method '").append(jc.getMethods()[i]).append("': ") in pass3aJList_valueChanged()
375 JavaClass jc = null; in pass3bJList_valueChanged() local
[all …]
DTransitiveHull.java63 final JavaClass jc = Repository.lookupClass(v.getClassName()); in update() local
64 for (int i = 0; i < jc.getMethods().length; i++) { in update()
68 + jc.getMethods()[i] + "']:\n" + vr); in update()
73 + jc.getMethods()[i] + "']:\n" + vr); in update()
/external/apache-commons-bcel/src/test/java/org/apache/bcel/classfile/
DJDKClassDumpTestCase.java71 final JavaClass jc = parser.parse(); in testJar() local
72 compare(jc, jar.getInputStream(e), name); in testJar()
79 …private void compare(final JavaClass jc, final InputStream inputStream, final String name) throws … in compare() argument
82 jc.dump(dos); in compare()
/external/jcommander/src/test/java/com/beust/jcommander/args/
DArgsEnum.java47 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/jcommander/src/main/java/com/beust/jcommander/
DJCommander.java690 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 …]

12345678910>>...12