Home
last modified time | relevance | path

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

12

/cts/tests/signature/lib/android/src/android/signature/cts/
DDexMemberChecker.java42 private static void call_VMDebug_allowHiddenApiReflectionFrom(Class<?> klass) throws Exception { in call_VMDebug_allowHiddenApiReflectionFrom() argument
54 method.invoke(null, klass); in call_VMDebug_allowHiddenApiReflectionFrom()
82 Class<?> klass = findClass(dexMember); in checkSingleMember() local
83 if (klass == null) { in checkSingleMember()
94 hasMatchingField_Reflection(klass, field), in checkSingleMember()
99 observer.fieldAccessibleViaJni(hasMatchingField_JNI(klass, field), field); in checkSingleMember()
114 hasMatchingMethod_Reflection(klass, method), method); in checkSingleMember()
121 observer.methodAccessibleViaJni(hasMatchingMethod_JNI(klass, method), method); in checkSingleMember()
160 private static boolean hasMatchingField_Reflection(Class<?> klass, DexField dexField) { in hasMatchingField_Reflection() argument
162 klass.getDeclaredField(dexField.getName()); in hasMatchingField_Reflection()
[all …]
/cts/tests/signature/dex-checker/
Ddex-checker.cpp47 JNIEnv* env, jclass, jclass klass, jstring name, jstring type) { in Java_android_signature_cts_DexMemberChecker_getField_1JNI() argument
50 jfieldID fid = env->GetFieldID(klass, utf_name.c_str(), utf_type.c_str()); in Java_android_signature_cts_DexMemberChecker_getField_1JNI()
56 return env->ToReflectedField(klass, fid, /* static */ false); in Java_android_signature_cts_DexMemberChecker_getField_1JNI()
61 JNIEnv* env, jclass, jclass klass, jstring name, jstring type) { in Java_android_signature_cts_DexMemberChecker_getStaticField_1JNI() argument
64 jfieldID fid = env->GetStaticFieldID(klass, utf_name.c_str(), utf_type.c_str()); in Java_android_signature_cts_DexMemberChecker_getStaticField_1JNI()
70 return env->ToReflectedField(klass, fid, /* static */ true); in Java_android_signature_cts_DexMemberChecker_getStaticField_1JNI()
75 JNIEnv* env, jclass, jclass klass, jstring name, jstring signature) { in Java_android_signature_cts_DexMemberChecker_getMethod_1JNI() argument
78 jmethodID mid = env->GetMethodID(klass, utf_name.c_str(), utf_signature.c_str()); in Java_android_signature_cts_DexMemberChecker_getMethod_1JNI()
84 return env->ToReflectedMethod(klass, mid, /* static */ false); in Java_android_signature_cts_DexMemberChecker_getMethod_1JNI()
89 JNIEnv* env, jclass, jclass klass, jstring name, jstring signature) { in Java_android_signature_cts_DexMemberChecker_getStaticMethod_1JNI() argument
[all …]
/cts/hostsidetests/jvmti/base/jni/
Dtagging.cpp31 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj, jlong tag) { in Java_android_jvmti_cts_JniBindings_setTag()
37 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jobject obj) { in Java_android_jvmti_cts_JniBindings_getTag()
48 jclass klass ATTRIBUTE_UNUSED, in Java_android_jvmti_cts_JvmtiTaggingTest_getTaggedObjects()
144 ScopedLocalRef<jclass> klass(env, GetClass(jenv, env, "art/Main", nullptr)); in register_art_Main() local
145 if (klass.get() == nullptr) { in register_art_Main()
150 env->RegisterNatives(klass.get(), gMethodsForMain, in register_art_Main()
164 ScopedLocalRef<jclass> klass(env, GetClass(jenv, env, in register_android_jvmti_cts_JvmtiTaggingTest() local
166 if (klass.get() == nullptr) { in register_android_jvmti_cts_JvmtiTaggingTest()
171 env->RegisterNatives(klass.get(), gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_jvmti_cts_JvmtiTaggingTest()
Dredefine.cpp36 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jclass target, jbyteArray dex_bytes) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_redefineClass()
38 def.klass = target; in Java_android_jvmti_cts_JvmtiRedefineClassesTest_redefineClass()
54 JNIEnv* env ATTRIBUTE_UNUSED, jclass klass ATTRIBUTE_UNUSED, jclass target) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_retransformClass()
134 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jboolean enable) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setTransformationEvent()
152 JNIEnv* env ATTRIBUTE_UNUSED, jclass klass ATTRIBUTE_UNUSED) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_clearTransformations()
158 JNIEnv* env ATTRIBUTE_UNUSED, jclass klass ATTRIBUTE_UNUSED, jboolean enable) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_setPopTransformations()
164 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jstring class_name, jbyteArray dex_bytes) { in Java_android_jvmti_cts_JvmtiRedefineClassesTest_pushTransformationResult()
197 ScopedLocalRef<jclass> klass(env, GetClass(jenv, env, in register_android_jvmti_cts_JvmtiRedefineClassesTest() local
199 if (klass.get() == nullptr) { in register_android_jvmti_cts_JvmtiRedefineClassesTest()
204 env->RegisterNatives(klass.get(), gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_jvmti_cts_JvmtiRedefineClassesTest()
Dcts_agent.cpp49 ScopedLocalRef<jclass> klass(env, GetClass(jenv, env, class_name, nullptr)); in InformMainAttach() local
50 CHECK(klass.get() != nullptr) << class_name; in InformMainAttach()
52 jmethodID method = env->GetStaticMethodID(klass.get(), method_name, "()V"); in InformMainAttach()
55 env->CallStaticVoidMethod(klass.get(), method); in InformMainAttach()
Dtracking.cpp79 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jboolean enable, jboolean global) { in Java_android_jvmti_cts_JvmtiTrackingTest_setupObjectAllocCallback()
93 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED, jthread thread, jboolean enable) { in Java_android_jvmti_cts_JvmtiTrackingTest_enableAllocationTracking()
117 JNIEnv* env, jclass klass ATTRIBUTE_UNUSED) { in Java_android_jvmti_cts_JvmtiTrackingTest_getAndResetAllocationTrackingString()
155 ScopedLocalRef<jclass> klass(env, GetClass(jenv, env, in register_android_jvmti_cts_JvmtiTrackingTest() local
157 if (klass.get() == nullptr) { in register_android_jvmti_cts_JvmtiTrackingTest()
162 env->RegisterNatives(klass.get(), gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_jvmti_cts_JvmtiTrackingTest()
Dcts_logging.cpp53 ScopedLocalRef<jclass> klass( in register_android_jvmti_cts_JvmtiRunTestBasedTest() local
55 if (klass.get() == nullptr) { in register_android_jvmti_cts_JvmtiRunTestBasedTest()
60 env->RegisterNatives(klass.get(), gMethods, sizeof(gMethods) / sizeof(JNINativeMethod)); in register_android_jvmti_cts_JvmtiRunTestBasedTest()
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/
DSingleTestNgTestExecutor.java40 public static Result execute(Class<?> klass, String methodName) { in execute() argument
41 if (klass == null) { in execute()
59 TestNG testng = createTestNG(klass.getName(), methodName, listener); in execute()
65 Log.w("TestNgExec", "execute class " + klass.getName() + ", method " + methodName + in execute()
72 private static org.testng.TestNG createTestNG(String klass, String method, in createTestNG() argument
103 XmlClass the_class = new XmlClass(klass); in createTestNG()
DTestNgRunner.java107 Class<?> klass; in run() local
109 klass = Class.forName(className, false, Thread.currentThread().getContextClassLoader()); in run()
117 SingleTestNgTestExecutor.Result result = SingleTestNgTestExecutor.execute(klass, methodName); in run()
/cts/tests/signature/api-check/src/java/android/signature/cts/api/
DBootClassPathClassesProvider.java68 public Stream<DexMember> getAllMembers(Class<?> klass) { in getAllMembers() argument
71 String[][] field_infos = getClassMemberNamesAndTypes(klass, /* fields */ true); in getAllMembers()
72 String[][] method_infos = getClassMemberNamesAndTypes(klass, /* fields */ false); in getAllMembers()
78 String klass_desc = "L" + klass.getName().replace('.', '/') + ";"; in getAllMembers()
127 private static native String[][] getClassMemberNamesAndTypes(Class<?> klass, boolean getFields); in getClassMemberNamesAndTypes() argument
DBaseKillswitchTest.java132 mClassProvider.getAllClasses().forEach(klass -> { in doTestKillswitchMechanism()
133 mClassProvider.getAllMembers(klass) in doTestKillswitchMechanism()
/cts/tests/signature/lib/common/src/android/signature/cts/
DExcludingClassProvider.java50 public Stream<DexMember> getAllMembers(Class<?> klass) { in getAllMembers() argument
51 return base.getAllMembers(klass); in getAllMembers()
DClassProvider.java43 public abstract Stream<DexMember> getAllMembers(Class<?> klass); in getAllMembers() argument
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBroadcastsTestRunner.java35 public BroadcastsTestRunner(Class<?> klass) throws InitializationError { in BroadcastsTestRunner() argument
36 super(klass); in BroadcastsTestRunner()
/cts/tests/BlobStore/src/com/android/cts/blob/
DBlobStoreTestRunner.java34 public BlobStoreTestRunner(Class<?> klass) throws InitializationError { in BlobStoreTestRunner() argument
35 super(klass); in BlobStoreTestRunner()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTestRunner.java35 public UsageStatsTestRunner(Class<?> klass) throws InitializationError { in UsageStatsTestRunner() argument
36 super(klass); in UsageStatsTestRunner()
/cts/hostsidetests/jvmti/attaching/app/jni/
Dcts_agent.cpp34 static std::string GetClassName(jvmtiEnv* jenv, JNIEnv* jni_env, jclass klass) { in GetClassName() argument
36 jvmtiError result = jenv->GetClassSignature(klass, &name, nullptr); in GetClassName()
94 jclass klass) { in ClassPrepareCallback() argument
95 std::string name = GetClassName(jenv, jni_env, klass); in ClassPrepareCallback()
/cts/hostsidetests/jvmti/redefining/app/src/android/jvmti/cts/
DJvmtiRedefineClassesTest.java63 public RedefineError(int err, Class<?> klass, byte[] dex) { in RedefineError() argument
65 this.target = klass; in RedefineError()
727 public void ensureHasMethod(Class<?> klass) throws Exception { in ensureHasMethod() argument
729 assertEquals(returnType, klass.getDeclaredMethod(name, params).getReturnType()); in ensureHasMethod()
731 Assert.fail("Could not find method: " + klass + ": " + name + in ensureHasMethod()
/cts/hostsidetests/jvmti/tagging/app/src/art/
DMain.java25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
/cts/hostsidetests/jvmti/redefining/app/src/art/
DMain.java25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
/cts/hostsidetests/jvmti/allocation-tracking/app/src/art/
DMain.java25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
/cts/tests/signature/api-check/src/jni/
Dclassdescriptors.cpp161 JNIEnv* env, jclass, jclass klass, jboolean getFields) { in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes() argument
169 error = (getFields != JNI_FALSE) ? jvmti_env->GetClassFields(klass, &count, fids.GetPtr()) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
170 : jvmti_env->GetClassMethods(klass, &count, mids.GetPtr()); in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
193 ? jvmti_env->GetFieldName(klass, fids.Get()[i], name.GetPtr(), type.GetPtr(), nullptr) in Java_android_signature_cts_api_BootClassPathClassesProvider_getClassMemberNamesAndTypes()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DSetRequestedOrientationRule.java67 Class<T> klass) {
70 klass);
/cts/tests/tests/jvmti/attaching/jni/
Dagent.c42 JNIEnv* env, jclass klass) { in NAME()
/cts/hostsidetests/install/src/android/cts/install/host/
DDeviceParameterized.java44 public DeviceParameterized(Class<?> klass) throws Throwable { in DeviceParameterized() argument
45 super(klass); in DeviceParameterized()

12