Home
last modified time | relevance | path

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

/cts/tools/signature-tools/src/signature/model/util/
DTypePool.java57 SigClassDefinition clazz = classPool.get(key); in getClass() local
58 if (clazz == null) { in getClass()
59 clazz = new SigClassDefinition(packageName, className); in getClass()
60 classPool.put(key, clazz); in getClass()
62 return clazz; in getClass()
151 for (SigClassDefinition clazz : classPool.values()) { in replaceAllUninitialiezWithNull()
152 replaceUninitializedWithNull(clazz); in replaceAllUninitialiezWithNull()
157 SigClassDefinition clazz) { in replaceUninitializedWithNull() argument
158 if (clazz == null) { in replaceUninitializedWithNull()
161 if (!isInitialized(clazz.getAnnotationFields())) { in replaceUninitializedWithNull()
[all …]
DModelUtil.java45 for (IClassDefinition clazz : aPackage.getClasses()) { in getClass()
46 if (qualifiedClassName.equals(clazz.getName())) { in getClass()
47 return clazz; in getClass()
74 public static IField getField(IClassDefinition clazz, String fieldName) { in getField() argument
75 for (IField field : clazz.getFields()) { in getField()
164 IClassDefinition clazz = (IClassDefinition) type; in isJavaLangObject() local
165 if ("java.lang".equals(clazz.getPackageName())) { in isJavaLangObject()
166 return "Object".equals(clazz.getName()); in isJavaLangObject()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_StaticNonce.c29 static void StaticNonce_nop(JNIEnv *env, jclass clazz) { in StaticNonce_nop() argument
34 static jboolean StaticNonce_returnBoolean(JNIEnv *env, jclass clazz) { in StaticNonce_returnBoolean() argument
39 static jbyte StaticNonce_returnByte(JNIEnv *env, jclass clazz) { in StaticNonce_returnByte() argument
44 static jshort StaticNonce_returnShort(JNIEnv *env, jclass clazz) { in StaticNonce_returnShort() argument
49 static jchar StaticNonce_returnChar(JNIEnv *env, jclass clazz) { in StaticNonce_returnChar() argument
54 static jint StaticNonce_returnInt(JNIEnv *env, jclass clazz) { in StaticNonce_returnInt() argument
59 static jlong StaticNonce_returnLong(JNIEnv *env, jclass clazz) { in StaticNonce_returnLong() argument
64 static jfloat StaticNonce_returnFloat(JNIEnv *env, jclass clazz) { in StaticNonce_returnFloat() argument
69 static jdouble StaticNonce_returnDouble(JNIEnv *env, jclass clazz) { in StaticNonce_returnDouble() argument
74 static jobject StaticNonce_returnNull(JNIEnv *env, jclass clazz) { in StaticNonce_returnNull() argument
[all …]
Dandroid_jni_cts_JniCTest.c34 static jstring JniCTest_runAllTests(JNIEnv *env, jclass clazz) { in JniCTest_runAllTests() argument
Dandroid_jni_cts_JniCppTest.cpp34 static jstring JniCppTest_runAllTests(JNIEnv *env, jclass clazz) { in JniCppTest_runAllTests() argument
Dmacroized_tests.c88 jclass clazz; in initializeVariables() local
91 clazz = CALL(FindClass, "android/jni/cts/StaticFromNative"); in initializeVariables()
92 if (clazz == NULL) { in initializeVariables()
96 StaticFromNative = (jclass) CALL(NewGlobalRef, clazz); in initializeVariables()
98 clazz = CALL(FindClass, "android/jni/cts/InstanceFromNative"); in initializeVariables()
99 if (clazz == NULL) { in initializeVariables()
103 InstanceFromNative = (jclass) CALL(NewGlobalRef, clazz); in initializeVariables()
1509 jclass clazz = CALL(DefineClass, "foo", NULL, NULL, 0); in TEST_DECLARATION() local
1511 if (clazz != NULL) { in TEST_DECLARATION()
1512 return failure("Expected NULL but got %p", clazz); in TEST_DECLARATION()
/cts/tools/dex-tools/test/dex/reader/
DDexTestsCommon.java96 for (DexClass clazz : file.getDefinedClasses()) { in getClass()
97 if(className.equals(clazz.getName())){ in getClass()
98 return clazz; in getClass()
105 protected DexField getField(DexClass clazz, String fieldName) { in getField() argument
106 assertNotNull(clazz); in getField()
108 for (DexField field : clazz.getFields()) { in getField()
113 fail("Field: " + fieldName +" not present in class: " + clazz.getName()); in getField()
114 …throw new IllegalArgumentException("Field: " + fieldName +" not present in class: " + clazz.getNam… in getField()
129 protected DexMethod getMethod(DexClass clazz, String methodName, String... typeNames) { in getMethod() argument
130 assertNotNull(clazz); in getMethod()
[all …]
DLargeDexTests.java47 DexClass clazz = dexFile.getDefinedClasses().get(0); in testManyFields() local
48 assertEquals("LL0;", clazz.getName()); in testManyFields()
49 assertPublic(clazz); in testManyFields()
50 assertEquals(NR_OF_FIELDS, clazz.getFields().size()); in testManyFields()
DDexFileReaderTests.java85 DexClass clazz = dexFile.getDefinedClasses().get(0); in testT0() local
86 assertEquals("LT0;", clazz.getName()); in testT0()
87 assertPublic(clazz); in testT0()
89 assertEquals(4, clazz.getFields().size()); in testT0()
90 DexField field = getField(clazz, "publicIntField"); in testT0()
92 field = getField(clazz, "protectedLongField"); in testT0()
94 field = getField(clazz, "defaultShortField"); in testT0()
96 field = getField(clazz, "privateDoubleField"); in testT0()
99 DexMethod method = getMethod(clazz, "publicStringMethodInt", "I"); in testT0()
101 method = getMethod(clazz, "protectedStringMethodInt", "I");/** a.b.C */ in testT0()
[all …]
/cts/tests/jni/
Dandroid_os_cts_CpuFeatures.cpp42 jclass clazz = env->FindClass("android/os/cts/CpuFeatures"); in register_android_os_cts_CpuFeatures() local
44 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_CpuFeatures()
Dandroid_net_cts_NetlinkSocket.cpp69 jclass clazz = env->FindClass("android/net/cts/NetlinkSocket"); in register_android_net_cts_NetlinkSocket() local
71 return env->RegisterNatives(clazz, gMethods, in register_android_net_cts_NetlinkSocket()
Dandroid_os_cts_FileUtils.cpp93 jint android_os_cts_FileUtils_setPermissions(JNIEnv* env, jobject clazz, in android_os_cts_FileUtils_setPermissions() argument
124 jclass clazz = env->FindClass("android/os/cts/FileUtils"); in register_android_os_cts_FileUtils() local
140 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_FileUtils()
/cts/tools/utils/
DDescriptionGenerator.java131 for (ClassDoc clazz : classes) { in start()
132 if ((!clazz.isAbstract()) && (isValidJUnitTestCase(clazz))) { in start()
133 xmlGenerator.addTestClass(new TestClass(clazz, ctsExpectationStore)); in start()
166 static boolean isValidJUnitTestCase(ClassDoc clazz) { in isValidJUnitTestCase() argument
167 while((clazz = clazz.superclass()) != null) { in isValidJUnitTestCase()
168 if (JUNIT_TEST_CASE_CLASS_NAME.equals(clazz.qualifiedName().toLowerCase())) { in isValidJUnitTestCase()
514 TestClass(ClassDoc clazz, ExpectationStore expectationStore) { in TestClass() argument
515 mName = clazz.toString(); in TestClass()
516 mCases = getTestMethods(expectationStore, clazz); in TestClass()
525 Collection<TestMethod> getTestMethods(ExpectationStore expectationStore, ClassDoc clazz) { in getTestMethods() argument
[all …]
/cts/tools/signature-tools/src/signature/converter/dex/
DDexUtil.java131 public static int getClassModifiers(DexClass clazz) { in getClassModifiers() argument
133 if (isInnerClass(clazz)) { in getClassModifiers()
135 getAnnotation(clazz, INNER_CLASS_ANNOTATION), in getClassModifiers()
139 modifiers = clazz.getModifiers(); in getClassModifiers()
445 for (IClassDefinition clazz : aPackage.getClasses()) { in findPackageInfo()
446 if (PACKAGE_INFO.equals(clazz.getName())) { in findPackageInfo()
447 return clazz; in findPackageInfo()
453 public static boolean isPackageInfo(DexClass clazz) { in isPackageInfo() argument
454 return PACKAGE_INFO.equals(getClassName(clazz.getName())); in isPackageInfo()
467 public static boolean isInnerClass(DexClass clazz) { in isInnerClass() argument
[all …]
/cts/tests/tests/acceleration/src/android/acceleration/cts/
DBaseAccelerationTest.java43 BaseAccelerationTest(Class<B> clazz) { in BaseAccelerationTest() argument
44 super(clazz); in BaseAccelerationTest()
/cts/tests/core/runner/src/android/test/
DInstrumentationCtsTestRunner.java205 Class<?> clazz = test.getClass(); in getAndroidTestRunner()
207 while (clazz != TestCase.class) { in getAndroidTestRunner()
208 Field[] fields = clazz.getDeclaredFields(); in getAndroidTestRunner()
222 clazz = clazz.getSuperclass(); in getAndroidTestRunner()
/cts/tests/tests/view/src/android/view/cts/
DAccessibilityEventTest.java94 Class<?> clazz = AccessibilityEvent.class; in assertNoNewNonStaticFieldsAdded() local
95 while (clazz != null) { in assertNoNewNonStaticFieldsAdded()
96 for (Field field : clazz.getDeclaredFields()) { in assertNoNewNonStaticFieldsAdded()
101 clazz = clazz.getSuperclass(); in assertNoNewNonStaticFieldsAdded()
DLayoutInflaterTest.java64 public boolean onLoadClass(Class clazz) {
221 public boolean onLoadClass(Class clazz) { in testCreateView()
/cts/tools/signature-tools/test/signature/converter/
DConvertParameterizedTypeTest.java65 String clazz = in convertWildcardLowerBound() local
74 …IApi api = convert(Visibility.PRIVATE, new CompilationUnit("a.A", clazz),new CompilationUnit("a.I"… in convertWildcardLowerBound()
DConvertClassTest.java471 … IClassDefinition clazz = ((IClassReference) arrayType.getComponentType()).getClassDefinition(); in convertArrayMethod() local
472 assertEquals("java.lang.String", clazz.getQualifiedName()); in convertArrayMethod()
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp101 jclass clazz = env->FindClass("android/permission/cts/FileUtils"); in register_android_permission_cts_FileUtils() local
117 return env->RegisterNatives(clazz, gMethods, in register_android_permission_cts_FileUtils()
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp95 jclass clazz = env->FindClass("com/android/cts/verifier/os/FileUtils"); in register_com_android_cts_verifier_os_FileUtils() local
111 return env->RegisterNatives(clazz, gMethods, in register_com_android_cts_verifier_os_FileUtils()
/cts/tools/signature-tools/src/signature/compare/
DApiComparator.java341 private Set<ITypeReference> getInterfaceClosure(IClassDefinition clazz) { in getInterfaceClosure() argument
343 collectInterfaceClosure(ViewpointAdapter.getReferenceTo(clazz), in getInterfaceClosure()
348 private void collectInterfaceClosure(ITypeReference clazz, in collectInterfaceClosure() argument
351 IClassDefinition classDefinition = getClassDefinition(clazz); in collectInterfaceClosure()
511 private Set<IMethod> getMethodClosure(IClassDefinition clazz) {
513 collectMethods(new ClassProjection(clazz,
519 private void collectMethods(IClassDefinition clazz, Set<IMethod> closure) {
520 if (clazz == null) {
523 if (clazz.getMethods() != null) {
524 closure.addAll(clazz.getMethods());
[all …]
/cts/tools/signature-tools/src/signature/converter/doclet/
DDocletToSigConverter.java113 for (ClassDoc clazz : packageDoc.allClasses()) { in convertPackage()
115 classes.add(convertClass(clazz)); in convertPackage()
/cts/tools/dex-tools/dex/
Dclasses0.out.dex15595 private final java.lang.Class clazz