/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | DexMemberChecker.java | 42 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/ |
D | dex-checker.cpp | 47 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/ |
D | tagging.cpp | 31 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()
|
D | redefine.cpp | 36 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()
|
D | cts_agent.cpp | 49 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()
|
D | tracking.cpp | 79 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()
|
D | cts_logging.cpp | 53 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/ |
D | SingleTestNgTestExecutor.java | 40 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()
|
D | TestNgRunner.java | 107 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/ |
D | BootClassPathClassesProvider.java | 68 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
|
D | BaseKillswitchTest.java | 132 mClassProvider.getAllClasses().forEach(klass -> { in doTestKillswitchMechanism() 133 mClassProvider.getAllMembers(klass) in doTestKillswitchMechanism()
|
/cts/tests/signature/lib/common/src/android/signature/cts/ |
D | ExcludingClassProvider.java | 50 public Stream<DexMember> getAllMembers(Class<?> klass) { in getAllMembers() argument 51 return base.getAllMembers(klass); in getAllMembers()
|
D | ClassProvider.java | 43 public abstract Stream<DexMember> getAllMembers(Class<?> klass); in getAllMembers() argument
|
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/ |
D | BroadcastsTestRunner.java | 35 public BroadcastsTestRunner(Class<?> klass) throws InitializationError { in BroadcastsTestRunner() argument 36 super(klass); in BroadcastsTestRunner()
|
/cts/tests/BlobStore/src/com/android/cts/blob/ |
D | BlobStoreTestRunner.java | 34 public BlobStoreTestRunner(Class<?> klass) throws InitializationError { in BlobStoreTestRunner() argument 35 super(klass); in BlobStoreTestRunner()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | UsageStatsTestRunner.java | 35 public UsageStatsTestRunner(Class<?> klass) throws InitializationError { in UsageStatsTestRunner() argument 36 super(klass); in UsageStatsTestRunner()
|
/cts/hostsidetests/jvmti/attaching/app/jni/ |
D | cts_agent.cpp | 34 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/ |
D | JvmtiRedefineClassesTest.java | 63 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/ |
D | Main.java | 25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
|
/cts/hostsidetests/jvmti/redefining/app/src/art/ |
D | Main.java | 25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
|
/cts/hostsidetests/jvmti/allocation-tracking/app/src/art/ |
D | Main.java | 25 public static native void bindAgentJNIForClass(Class<?> klass); in bindAgentJNIForClass() argument
|
/cts/tests/signature/api-check/src/jni/ |
D | classdescriptors.cpp | 161 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/ |
D | SetRequestedOrientationRule.java | 67 Class<T> klass) { 70 klass);
|
/cts/tests/tests/jvmti/attaching/jni/ |
D | agent.c | 42 JNIEnv* env, jclass klass) { in NAME()
|
/cts/hostsidetests/install/src/android/cts/install/host/ |
D | DeviceParameterized.java | 44 public DeviceParameterized(Class<?> klass) throws Throwable { in DeviceParameterized() argument 45 super(klass); in DeviceParameterized()
|