Home
last modified time | relevance | path

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

123

/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/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/
DJavaScannerDoclet.java46 for (ClassDoc clazz : classes) { in start()
47 if (clazz.isAbstract() || !isValidJUnitTestCase(clazz)) { in start()
50 writer.append("suite:").println(clazz.containingPackage().name()); in start()
51 writer.append("case:").println(clazz.name()); in start()
52 for (; clazz != null; clazz = clazz.superclass()) { in start()
53 for (MethodDoc method : clazz.methods()) { in start()
65 private static boolean isValidJUnitTestCase(ClassDoc clazz) { in isValidJUnitTestCase() argument
66 while ((clazz = clazz.superclass()) != null) { in isValidJUnitTestCase()
67 if (JUNIT_TEST_CASE_CLASS_NAME.equals(clazz.qualifiedName().toLowerCase())) { in isValidJUnitTestCase()
/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 …]
/cts/tools/cts-java-scanner-doclet/src/com/android/cts/javascannerdoclet/
DCtsJavaScannerDoclet.java76 for (ClassDoc clazz : classes) { in start()
77 if (clazz.isAbstract()) { in start()
81 final boolean isJUnit3 = isJUnit3TestCase(clazz); in start()
82 if (!isJUnit3 && !isJUnit4TestClass(clazz)) { in start()
86 writer.append("suite:").println(clazz.containingPackage().name()); in start()
87 writer.append("case:").println(clazz.name()); in start()
88 for (; clazz != null; clazz = clazz.superclass()) { in start()
89 for (MethodDoc method : clazz.methods()) { in start()
146 private static boolean isJUnit3TestCase(ClassDoc clazz) { in isJUnit3TestCase() argument
147 while((clazz = clazz.superclass()) != null) { in isJUnit3TestCase()
[all …]
/cts/tests/tests/mediastress/jni/
Dnative-media-jni.cpp62 #define RETURN_ON_ASSERTION_FAILURE(cond, env, clazz) \ argument
65 Java_android_mediastress_cts_NativeMediaActivity_shutdown((env), (clazz)); \
241 jclass clazz) in Java_android_mediastress_cts_NativeMediaActivity_shutdown() argument
285 jclass clazz) in Java_android_mediastress_cts_NativeMediaActivity_createEngine() argument
291 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine()
295 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine()
299 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine()
303 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine()
307 RETURN_ON_ASSERTION_FAILURE((XA_RESULT_SUCCESS == res), env, clazz); in Java_android_mediastress_cts_NativeMediaActivity_createEngine()
315 jclass clazz, jstring fileUri) in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer() argument
[all …]
/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/hostsidetests/appsecurity/test-apps/SplitApp/jni/
Dcom_android_cts_splitapp_Native.cpp46 jclass clazz; in registerNativeMethods() local
48 clazz = env->FindClass(className); in registerNativeMethods()
49 if (clazz == NULL) { in registerNativeMethods()
53 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { in registerNativeMethods()
/cts/tools/utils/
DDescriptionGenerator.java143 for (ClassDoc clazz : classes) { in start()
144 if ((!clazz.isAbstract()) && (isValidJUnitTestCase(clazz))) { in start()
145 xmlGenerator.addTestClass(new TestClass(clazz, ctsExpectationStore, architecture)); in start()
178 static boolean isValidJUnitTestCase(ClassDoc clazz) { in isValidJUnitTestCase() argument
179 while((clazz = clazz.superclass()) != null) { in isValidJUnitTestCase()
180 if (JUNIT_TEST_CASE_CLASS_NAME.equals(clazz.qualifiedName().toLowerCase())) { in isValidJUnitTestCase()
532 TestClass(ClassDoc clazz, ExpectationStore expectationStore, String architecture) { in TestClass() argument
533 mName = clazz.toString(); in TestClass()
534 mCases = getTestMethods(expectationStore, architecture, clazz); in TestClass()
544 String architecture, ClassDoc clazz) { in getTestMethods() argument
[all …]
/cts/tests/tests/security/jni/
Dandroid_security_cts_KernelSettingsTest.cpp36 jclass clazz = env->FindClass("android/security/cts/KernelSettingsTest"); in register_android_security_cts_KernelSettingsTest() local
37 return env->RegisterNatives(clazz, gMethods, in register_android_security_cts_KernelSettingsTest()
Dandroid_security_cts_LoadEffectLibraryTest.cpp87 jclass clazz = env->FindClass("android/security/cts/LoadEffectLibraryTest"); in register_android_security_cts_LoadEffectLibraryTest() local
88 return env->RegisterNatives(clazz, gMethods, in register_android_security_cts_LoadEffectLibraryTest()
Dandroid_security_cts_MMapExecutableTest.cpp81 jclass clazz = env->FindClass("android/security/cts/MMapExecutableTest"); in register_android_security_cts_MMapExecutableTest() local
83 clazz, gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_security_cts_MMapExecutableTest()
/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/os/jni/
Dandroid_os_cts_HardwareName.cpp41 jclass clazz = env->FindClass("android/os/cts/HardwareName"); in register_android_os_cts_HardwareName() local
43 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_HardwareName()
Dandroid_os_cts_TaggedPointer.cpp81 jclass clazz = env->FindClass("android/os/cts/TaggedPointer"); in register_android_os_cts_TaggedPointer() local
83 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_TaggedPointer()
Dandroid_os_cts_NoExecutePermissionTest.cpp83 jclass clazz = env->FindClass("android/os/cts/NoExecutePermissionTest"); in register_android_os_cts_NoExecutePermissionTest() local
85 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_NoExecutePermissionTest()
Dandroid_os_cts_SeccompTest.cpp87 jclass clazz = env->FindClass("android/os/cts/SeccompTest"); in register_android_os_cts_SeccompTest() local
88 return env->RegisterNatives(clazz, methods, sizeof(methods) / sizeof(JNINativeMethod)); in register_android_os_cts_SeccompTest()
Dandroid_os_cts_CpuFeatures.cpp90 jclass clazz = env->FindClass("android/os/cts/CpuFeatures"); in register_android_os_cts_CpuFeatures() local
92 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_CpuFeatures()
/cts/tests/tests/drm/jni/
Dandroid_drm_cts_NativeCodeTest.cpp57 jclass clazz = env->FindClass("android/drm/cts/NativeCodeTest"); in register_android_drm_cts_NativeCodeTest() local
58 return env->RegisterNatives(clazz, gMethods, in register_android_drm_cts_NativeCodeTest()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java34 .clazz(android.widget.Button.class.getName())
38 .clazz(android.widget.TextView.class.getName())
42 .clazz(android.widget.Button.class.getName())
/cts/libs/deviceutil/jni/
Dandroid_cts_FileUtils.cpp94 jint android_cts_FileUtils_setPermissions(JNIEnv* env, jobject clazz, in android_cts_FileUtils_setPermissions() argument
125 jclass clazz = env->FindClass("android/cts/util/FileUtils"); in register_android_cts_FileUtils() local
126 assert(clazz != null); in register_android_cts_FileUtils()
143 return env->RegisterNatives(clazz, gMethods, in register_android_cts_FileUtils()
/cts/tests/tests/acceleration/src/android/acceleration/cts/
DBaseAccelerationTest.java43 BaseAccelerationTest(Class<B> clazz) { in BaseAccelerationTest() argument
44 super(clazz); in BaseAccelerationTest()
/cts/tests/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityRecordTest.java204 static void assertNoNewNonStaticFieldsAdded(Class<?> clazz, int expectedCount) { in assertNoNewNonStaticFieldsAdded() argument
207 while (clazz != Object.class) { in assertNoNewNonStaticFieldsAdded()
208 for (Field field : clazz.getDeclaredFields()) { in assertNoNewNonStaticFieldsAdded()
213 clazz = clazz.getSuperclass(); in assertNoNewNonStaticFieldsAdded()

123