Searched refs:constructor (Results 1 - 11 of 11) sorted by relevance

/cts/tools/cts-api-coverage/src/com/android/cts/apicoverage/
H A DApiClass.java45 public void addConstructor(ApiConstructor constructor) { argument
46 mApiConstructors.add(constructor);
50 for (ApiConstructor constructor : mApiConstructors) {
51 if (parameterTypes.equals(constructor.getParameterTypes())) {
52 return constructor;
83 for (ApiConstructor constructor : mApiConstructors) {
84 if (constructor.isCovered()) {
H A DTextReport.java60 for (ApiConstructor constructor : constructors) {
61 printConstructor(constructor, out);
87 private static void printConstructor(ApiConstructor constructor, PrintStream out) { argument
89 .append(constructor.isCovered() ? "X" : " ")
90 .append("] ").append(constructor.getName()).append("(");
92 List<String> parameterTypes = constructor.getParameterTypes();
H A DXmlReport.java79 for (ApiConstructor constructor : apiClass.getConstructors()) {
80 out.println("<constructor name=\"" + constructor.getName()
81 + "\" covered=\"" + constructor.isCovered() + "\">");
83 for (String parameterType : constructor.getParameterTypes()) {
87 out.println("</constructor>");
/cts/tests/SignatureTest/tests/src/android/tests/sigtest/tests/
H A DJDiffClassDescriptionTest.java102 JDiffClassDescription.JDiffConstructor constructor = new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PUBLIC);
103 clz.addConstructor(constructor);
105 assertEquals(constructor.toSignatureString(), "public NormalClass()");
109 JDiffClassDescription.JDiffConstructor constructor = new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PRIVATE);
110 constructor.addParam("java.lang.String");
111 clz.addConstructor(constructor);
113 assertEquals(constructor.toSignatureString(), "private NormalClass(java.lang.String)");
117 JDiffClassDescription.JDiffConstructor constructor = new JDiffClassDescription.JDiffConstructor("NormalClass", Modifier.PROTECTED);
118 constructor.addParam("java.lang.String");
119 constructor
[all...]
/cts/tools/signature-tools/test/signature/converter/
H A DConvertClassTest.java359 IConstructor constructor = sigClass.getConstructors().iterator().next();
360 assertTrue(constructor.getModifiers().contains(Modifier.PUBLIC));
370 IConstructor constructor = sigClass.getConstructors().iterator().next();
371 assertTrue(constructor.getModifiers().contains(Modifier.PUBLIC));
381 IConstructor constructor = sigClass.getConstructors().iterator().next();
382 assertTrue(constructor.getModifiers().contains(Modifier.PROTECTED));
410 IConstructor constructor = sigClass.getConstructors().iterator().next();
411 assertTrue(constructor.getModifiers().contains(Modifier.PUBLIC));
412 assertEquals(1, constructor.getExceptions().size());
413 IClassReference exception = (IClassReference) constructor
[all...]
/cts/tools/signature-tools/src/signature/converter/dex/
H A DDexToSigConverter.java364 for (SigConstructor constructor : constructors) {
365 constructor.setDeclaringClass(sigClass);
591 * Converts a dexMethod which must be a constructor to the corresponding
595 * the dex constructor to convert
602 SigConstructor constructor = new SigConstructor(declaringClassName);
603 constructor.setModifiers(getModifier(dexMethod.getModifiers()));
610 constructor.setDeclaringClass(declaringClass);
613 constructor.setAnnotations(convertAnnotations(dexMethod
619 parser.parseForConstructor(constructor,
623 constructor
[all...]
/cts/tests/SignatureTest/src/android/tests/sigtest/
H A DSignatureTest.java41 private static final String TAG_CONSTRUCTOR = "constructor";
143 JDiffConstructor constructor = loadConstructorInfo(parser, currentClass);
144 currentClass.addConstructor(constructor);
145 currentMethod = constructor;
208 * Load constructor information from xml to memory.
212 * @return the new constructor
/cts/tools/signature-tools/src/signature/converter/doclet/
H A DDocletToSigConverter.java179 for (ConstructorDoc constructor : classDoc.constructors()) {
180 constructors.add(convertConstructor(constructor));
513 private IConstructor convertConstructor(ConstructorDoc constructor) { argument
514 SigConstructor c = new SigConstructor(constructor.name());
516 convertExecutableMember(constructor, c);
/cts/tools/dx-tests/lib/
H A Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/extensions/ junit/framework/ junit/runner/ junit/ ...
/cts/tools/utils/lib/
H A Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/extensions/ junit/framework/ junit/runner/ junit/ ...
/cts/tools/vm-tests/lib/
H A Djunit.jarMETA-INF/ META-INF/MANIFEST.MF junit/ junit/awtui/ junit/extensions/ junit/framework/ junit/runner/ junit/ ...

Completed in 1497 milliseconds