/cts/tests/tests/jni/libjnitest/ |
D | android_jni_cts_StaticNonce.c | 30 static void StaticNonce_nop(JNIEnv *env, jclass clazz) { in StaticNonce_nop() argument 36 jclass clazz) { in Java_android_jni_cts_StaticNonce_nopDlsym() argument 42 static void StaticNonce_nopFast(JNIEnv *env, jclass clazz) { in StaticNonce_nopFast() argument 49 jclass clazz) { in Java_android_jni_cts_StaticNonce_nopFastDlsym() argument 66 static jboolean StaticNonce_returnBoolean(JNIEnv *env, jclass clazz) { in StaticNonce_returnBoolean() argument 72 static jboolean StaticNonce_returnBooleanFast(JNIEnv *env, jclass clazz) { in StaticNonce_returnBooleanFast() argument 83 static jbyte StaticNonce_returnByte(JNIEnv *env, jclass clazz) { in StaticNonce_returnByte() argument 89 static jbyte StaticNonce_returnByteFast(JNIEnv *env, jclass clazz) { in StaticNonce_returnByteFast() argument 100 static jshort StaticNonce_returnShort(JNIEnv *env, jclass clazz) { in StaticNonce_returnShort() argument 106 static jshort StaticNonce_returnShortFast(JNIEnv *env, jclass clazz) { in StaticNonce_returnShortFast() argument [all …]
|
D | helper.c | 96 jclass clazz = (*env)->FindClass(env, className); in registerJniMethods() local 97 int result = (*env)->RegisterNatives(env, clazz, methods, numMethods); in registerJniMethods() 98 (*env)->DeleteLocalRef(env, clazz); in registerJniMethods() 109 jclass clazz = (*env)->FindClass(env, className); in throwException() local 110 int result = (*env)->ThrowNew(env, clazz, message); in throwException()
|
D | android_jni_cts_LinkerNamespacesTest.cpp | 131 static std::string load_library(JNIEnv* env, jclass clazz, const std::string& path, in load_library() argument 145 env->GetStaticMethodID(clazz, "loadWithSystemLoad", "(Ljava/lang/String;)Ljava/lang/String;"); in load_library() 147 jstring java_load_errmsg = jstring(env->CallStaticObjectMethod(clazz, java_load, jpath.get())); in load_library() 159 clazz, "loadWithSystemLoadLibrary", "(Ljava/lang/String;)Ljava/lang/String;"); in load_library() 160 java_load_lib_errmsg = jstring(env->CallStaticObjectMethod(clazz, java_load_lib, jname.get())); in load_library() 213 jclass clazz, in check_lib() argument 220 std::string err = load_library(env, clazz, path, test_system_load_library); in check_lib() 280 jclass clazz, in check_path() argument 323 !check_lib(env, clazz, path, library_search_paths, public_library_basenames, in check_path() 388 jclass clazz, in Java_android_jni_cts_LinkerNamespacesHelper_runAccessibilityTestImpl() argument [all …]
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | BedsteadServiceLocator.kt | 38 fun <T : Any> get(clazz: KClass<T>): T { in <lambda>() 39 val existingInstance = dependenciesMap[clazz] in <lambda>() 43 createDependency(clazz).also { in <lambda>() 44 dependenciesMap[clazz] = it in <lambda>() 65 fun <T : Any> get(clazz: Class<T>): T = get(clazz.kotlin) in <lambda>() 67 private fun <T : Any> createDependency(clazz: KClass<T>): T { in <lambda>() 69 val dependency = it.getDependency(clazz) in <lambda>() 74 return createDependencyByReflection(clazz.java) in <lambda>() 77 private fun <T : Any> createDependencyByReflection(clazz: Class<T>): T { in <lambda>() 79 return clazz.getDeclaredConstructor().newInstance() in <lambda>() [all …]
|
/cts/tests/tests/mediastress/jni/ |
D | native-media-jni.cpp | 62 #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/tests/signature/lib/common/src/android/signature/cts/ |
D | AnnotationChecker.java | 52 classProvider.getAllClasses().forEach(clazz -> { in AnnotationChecker() 53 if (ReflectionHelper.hasMatchingAnnotation(clazz, annotationSpec)) { in AnnotationChecker() 54 annotatedClassesMap.put(clazz.getName(), clazz); in AnnotationChecker() 56 Set<Constructor<?>> constructors = ReflectionHelper.getAnnotatedConstructors(clazz, in AnnotationChecker() 59 annotatedConstructorsMap.put(clazz.getName(), constructors.stream(). in AnnotationChecker() 62 Set<Method> methods = ReflectionHelper.getAnnotatedMethods(clazz, annotationSpec); in AnnotationChecker() 64 annotatedMethodsMap.put(clazz.getName(), methods.stream(). in AnnotationChecker() 67 Set<Field> fields = ReflectionHelper.getAnnotatedFields(clazz, annotationSpec); in AnnotationChecker() 69 annotatedFieldsMap.put(clazz.getName(), fields.stream(). in AnnotationChecker() 79 public boolean skip(Class<?> clazz); in skip() argument [all …]
|
D | ReflectionHelper.java | 495 public static Set<Constructor<?>> getAnnotatedConstructors(Class<?> clazz, in getAnnotatedConstructors() argument 498 return getAnnotatedConstructorsImpl(clazz, annotationSpec); in getAnnotatedConstructors() 500 LogHelper.loge(TAG + ": Could not retrieve constructors of " + clazz in getAnnotatedConstructors() 506 private static Set<Constructor<?>> getAnnotatedConstructorsImpl(Class<?> clazz, in getAnnotatedConstructorsImpl() argument 510 for (Constructor<?> c : clazz.getDeclaredConstructors()) { in getAnnotatedConstructorsImpl() 529 public static Set<Method> getAnnotatedMethods(Class<?> clazz, String annotationSpec) { in getAnnotatedMethods() argument 531 return getAnnotatedMethodsImpl(clazz, annotationSpec); in getAnnotatedMethods() 533 LogHelper.loge(TAG + ": Could not retrieve methods of " + clazz in getAnnotatedMethods() 539 private static Set<Method> getAnnotatedMethodsImpl(Class<?> clazz, String annotationSpec) { in getAnnotatedMethodsImpl() argument 542 for (Method m : clazz.getDeclaredMethods()) { in getAnnotatedMethodsImpl() [all …]
|
/cts/apps/CtsVerifier/jni/megaaudio/common/ |
D | Globals.cpp | 31 JNIEnv *env, jclass clazz, jboolean enabled) { in Java_org_hyphonate_megaaudio_common_Globals_setOboeWorkaroundsEnabled() argument 36 Java_org_hyphonate_megaaudio_common_Globals_isMMapSupported(JNIEnv *env, jclass clazz) { in Java_org_hyphonate_megaaudio_common_Globals_isMMapSupported() argument 41 Java_org_hyphonate_megaaudio_common_Globals_isMMapExclusiveSupported(JNIEnv *env, jclass clazz) { in Java_org_hyphonate_megaaudio_common_Globals_isMMapExclusiveSupported() argument 47 JNIEnv *env, jclass clazz, jboolean enabled) { in Java_org_hyphonate_megaaudio_common_Globals_setMMapEnabled() argument 53 JNIEnv *env, jclass clazz) { in Java_org_hyphonate_megaaudio_common_Globals_isMMapEnabled() argument
|
/cts/common/device-side/nativetesthelper/jni/ |
D | gtest_wrapper.cpp | 37 jclass clazz; member 47 jclass clazz; member 57 jclass clazz; member 62 jclass clazz; member 88 return env->CallStaticObjectMethod(gDescription.clazz, gDescription.createTestDescription, in createTestDescription() 133 ScopedLocalRef<jobject> jthrowable(mEnv, mEnv->NewObject(gAssertionFailure.clazz, in OnTestEnd() 135 ScopedLocalRef<jobject> jfailure(mEnv, mEnv->NewObject(gFailure.clazz, in OnTestEnd() 181 gDescription.clazz = (jclass) env->NewGlobalRef(env->FindClass("org/junit/runner/Description")); in Java_com_android_gtestrunner_GtestRunner_nInitialize() 182 …gDescription.createTestDescription = env->GetStaticMethodID(gDescription.clazz, "createTestDescrip… in Java_com_android_gtestrunner_GtestRunner_nInitialize() 184 gDescription.addChild = env->GetMethodID(gDescription.clazz, "addChild", in Java_com_android_gtestrunner_GtestRunner_nInitialize() [all …]
|
/cts/tests/tests/view/jni/ |
D | android_view_cts_AInputNativeTest.cpp | 175 jclass clazz = env->FindClass("android/view/MotionEvent"); in register_android_view_cts_AMotionEventNativeTest() local 176 gMotionEventMethodIds.getAction = env->GetMethodID(clazz, "getAction", "()I"); in register_android_view_cts_AMotionEventNativeTest() 177 gMotionEventMethodIds.getMetaState = env->GetMethodID(clazz, "getMetaState", "()I"); in register_android_view_cts_AMotionEventNativeTest() 178 gMotionEventMethodIds.getDownTime = env->GetMethodID(clazz, "getDownTime", "()J"); in register_android_view_cts_AMotionEventNativeTest() 179 gMotionEventMethodIds.getEventTime = env->GetMethodID(clazz, "getEventTime", "()J"); in register_android_view_cts_AMotionEventNativeTest() 180 gMotionEventMethodIds.getPointerCount = env->GetMethodID(clazz, "getPointerCount", "()I"); in register_android_view_cts_AMotionEventNativeTest() 181 gMotionEventMethodIds.getRawX = env->GetMethodID(clazz, "getRawX", "(I)F"); in register_android_view_cts_AMotionEventNativeTest() 182 gMotionEventMethodIds.getRawY = env->GetMethodID(clazz, "getRawY", "(I)F"); in register_android_view_cts_AMotionEventNativeTest() 183 gMotionEventMethodIds.getActionButton = env->GetMethodID(clazz, "getActionButton", "()I"); in register_android_view_cts_AMotionEventNativeTest() 184 gMotionEventMethodIds.getClassification = env->GetMethodID(clazz, "getClassification", "()I"); in register_android_view_cts_AMotionEventNativeTest() [all …]
|
/cts/tests/tests/car/lib/CarIntegrationTestUtilsLib/src/android/car/cts/utils/ |
D | VehiclePropertyUtils.java | 31 public static List<Integer> getIntegersFromDataEnums(Class<?> clazz) { in getIntegersFromDataEnums() argument 32 Field[] fields = clazz.getDeclaredFields(); in getIntegersFromDataEnums() 37 integerList.add(f.getInt(clazz)); in getIntegersFromDataEnums() 39 Log.w(clazz.getSimpleName(), "Failed to get value"); in getIntegersFromDataEnums()
|
/cts/hostsidetests/os/test-apps/StaticSharedNativeLibConsumer/jni/ |
D | version.cpp | 35 jclass clazz; in registerNativeMethods() local 36 clazz = env->FindClass(className); in registerNativeMethods() 37 if (clazz == NULL) { in registerNativeMethods() 41 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { in registerNativeMethods()
|
/cts/tests/core/runner-axt/src/com/android/cts/core/runner/support/ |
D | MainMethodRunner.java | 33 private MainMethodRunner(TestClass clazz) throws InitializationError { in MainMethodRunner() argument 34 super(clazz); in MainMethodRunner() 60 public static MainMethodRunner createRunner(Class<?> clazz) { 61 Method m = getMainMethod(clazz); 69 testClass = new TestClass(clazz); 82 throw new IllegalArgumentException("Class: " + clazz.getName(), e);
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | ProtoUtils.java | 34 public static <T> T getProto(UiAutomation automation, Class<T> clazz, String command) in getProto() argument 36 return clazz.cast(clazz.getDeclaredMethod("parseFrom", byte[].class) in getProto()
|
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
D | ExternalStorageHostTest.java | 58 public final String clazz; field in ExternalStorageHostTest.Config 60 public Config(String apk, String pkg, String clazz) { in Config() argument 63 this.clazz = clazz; in Config() 565 runDeviceTests(MEDIA_29.pkg, MEDIA_29.clazz, "testStageFiles", user); in doMediaLegacy() 566 runDeviceTests(config.pkg, config.clazz, "testLegacy", user); in doMediaLegacy() 567 runDeviceTests(MEDIA_29.pkg, MEDIA_29.clazz, "testClearFiles", user); in doMediaLegacy() 594 runDeviceTests(MEDIA.pkg, MEDIA.clazz, in testOwningOneFileNotGrantPrefixUriPermission() 622 runDeviceTests(MEDIA.pkg, MEDIA.clazz, in testReadUriPermissionOnUriWithoutId_sameQueryResult() 660 runDeviceTests(config.pkg, config.clazz, method, user); in doGrantUriPermission() 688 runDeviceTests(config.pkg, config.clazz, "testMediaNone", user); in doMediaNone() [all …]
|
/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
D | ClassUtils.java | 112 public static File getResrouceFile(Class clazz, String fileName) throws IOException { in getResrouceFile() argument 115 try (InputStream input = openResourceAsStream(clazz, fileName); in getResrouceFile() 133 public static String getResrouceContentString(Class clazz, String fileName) throws IOException { in getResrouceContentString() argument 134 InputStream inStream = openResourceAsStream(clazz, fileName); in getResrouceContentString() 155 public static InputStream openResourceAsStream(Class clazz, String fileName) { in openResourceAsStream() argument 156 InputStream input = clazz.getResourceAsStream("/" + fileName); in openResourceAsStream() 167 public static InputStreamReader openResourceAsStreamReader(Class clazz, String fileName) { in openResourceAsStreamReader() argument 169 openResourceAsStream(clazz, fileName), Charset.forName("UTF-8")); in openResourceAsStreamReader()
|
/cts/tests/tests/graphics/jni/ |
D | android_graphics_cts_VulkanPreTransformCtsActivity.cpp | 34 jclass clazz = env->FindClass("android/graphics/cts/VulkanPreTransformTest"); in validatePixelValues() local 35 jmethodID mid = env->GetStaticMethodID(clazz, "validatePixelValuesAfterRotation", "(IIZI)Z"); in validatePixelValues() 40 return env->CallStaticBooleanMethod(clazz, mid, width, height, setPreTransform, in validatePixelValues() 91 jclass clazz = env->FindClass("android/graphics/cts/VulkanPreTransformCtsActivity"); in register_android_graphics_cts_VulkanPreTransformCtsActivity() local 92 return env->RegisterNatives(clazz, JNI_METHODS.data(), JNI_METHODS.size()); in register_android_graphics_cts_VulkanPreTransformCtsActivity()
|
/cts/tests/sensor/jni/ |
D | android_hardware_cts_SensorDirectReportTest.cpp | 67 jclass clazz = env->FindClass("android/hardware/cts/SensorDirectReportTest"); in register_android_hardware_cts_SensorDirectReportTest() local 68 return env->RegisterNatives(clazz, gMethods, in register_android_hardware_cts_SensorDirectReportTest() 73 jclass clazz = env->FindClass( in register_android_hardware_cts_helpers_SensorRatePermissionDirectReportTestHelper() local 75 return env->RegisterNatives(clazz, gMethods, in register_android_hardware_cts_helpers_SensorRatePermissionDirectReportTestHelper()
|
/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | legacy_binder.cpp | 41 auto clazz = AIBinder_Class_define("LegacyBinder", LegacyBinder_OnCreate, LegacyBinder_OnDestroy, in __anon98128ec90102() local 43 AIBinder_Class_disableInterfaceTokenHeader(clazz); in __anon98128ec90102() 44 return clazz; in __anon98128ec90102()
|
/cts/hostsidetests/incrementalinstall/app/v1/src/android/incrementalinstall/incrementaltestapp/dynamiccode/ |
D | DynamicCodeShim.java | 28 Class clazz; in getString() local 30 clazz = Class.forName(IMPL_CLASS_NAME); in getString() 35 mImpl = (IDynamicCode) clazz.newInstance(); in getString()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | InstrumentedAccessibilityService.java | 178 public static void enableServiceWithoutWait(Class clazz, Instrumentation instrumentation, in enableServiceWithoutWait() argument 180 final String serviceName = clazz.getSimpleName(); in enableServiceWithoutWait() 208 Class<T> clazz) { in enableService() argument 215 enableServiceWithoutWait(clazz, instrumentation, enabledServices); in enableService() 217 final T instance = getInstanceForClass(clazz, TIMEOUT_SERVICE_ENABLE); in enableService() 225 + clazz.getSimpleName() in enableService() 234 Class<T> clazz, long timeoutMillis) { in getInstanceForClass() argument 238 final T instance = getInstanceForClass(clazz); in getInstanceForClass() 253 Class<T> clazz) { in getInstanceForClass() argument 255 final WeakReference<InstrumentedAccessibilityService> ref = sInstances.get(clazz); in getInstanceForClass() [all …]
|
D | InstrumentedAccessibilityServiceTestRule.java | 72 public InstrumentedAccessibilityServiceTestRule(@NonNull Class<T> clazz) { in InstrumentedAccessibilityServiceTestRule() argument 73 this(clazz, true); in InstrumentedAccessibilityServiceTestRule() 91 public InstrumentedAccessibilityServiceTestRule(@NonNull Class<T> clazz, in InstrumentedAccessibilityServiceTestRule() argument 93 mAccessibilityServiceClass = clazz; in InstrumentedAccessibilityServiceTestRule()
|
/cts/tests/app/FgsTimeoutTest/FgsTimeoutTestHelper/src/android/app/cts/fgstimeouttesthelper/ |
D | FgsTimeoutHelper.java | 114 public static void sendBackMethodName(Class<?> clazz, String methodName, in sendBackMethodName() argument 117 m.setComponentName(new ComponentName(sContext, clazz.getName())); in sendBackMethodName() 128 public static void sendBackMethodName(Class<?> clazz, String methodName) { in sendBackMethodName() argument 129 sendBackMethodName(clazz, methodName, (Consumer) null); in sendBackMethodName() 135 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument 136 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | CVE_2022_20135.java | 46 Class clazz = Class.forName("android.service.gatekeeper.GateKeeperResponse"); in testPocCVE_2022_20135() local 47 assumeNotNull(clazz); in testPocCVE_2022_20135() 48 Object obj = clazz.getMethod("createGenericResponse", int.class).invoke(null, 0); in testPocCVE_2022_20135() 50 Field field = clazz.getDeclaredField("mPayload"); in testPocCVE_2022_20135()
|
/cts/tests/app/ShortFgsTest/ShortFgsTestHelper/src/android/app/cts/shortfgstesthelper/ |
D | ShortFgsHelper.java | 134 public static void sendBackMethodName(Class<?> clazz, String methodName, in sendBackMethodName() argument 137 m.setComponentName(new ComponentName(sContext, clazz.getName())); in sendBackMethodName() 148 public static void sendBackMethodName(Class<?> clazz, String methodName) { in sendBackMethodName() argument 149 sendBackMethodName(clazz, methodName, (Consumer) null); in sendBackMethodName() 155 public static void sendBackMethodName(Class<?> clazz, String methodName, ComponentName cn) { in sendBackMethodName() argument 156 sendBackMethodName(clazz, methodName, (m) -> m.setComponentName(cn)); in sendBackMethodName()
|