Home
last modified time | relevance | path

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

123

/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_InstanceNonce.c29 static void InstanceNonce_nop(JNIEnv *env, jobject this) { in InstanceNonce_nop() argument
34 static jboolean InstanceNonce_returnBoolean(JNIEnv *env, jobject this) { in InstanceNonce_returnBoolean() argument
39 static jbyte InstanceNonce_returnByte(JNIEnv *env, jobject this) { in InstanceNonce_returnByte() argument
44 static jshort InstanceNonce_returnShort(JNIEnv *env, jobject this) { in InstanceNonce_returnShort() argument
49 static jchar InstanceNonce_returnChar(JNIEnv *env, jobject this) { in InstanceNonce_returnChar() argument
54 static jint InstanceNonce_returnInt(JNIEnv *env, jobject this) { in InstanceNonce_returnInt() argument
59 static jlong InstanceNonce_returnLong(JNIEnv *env, jobject this) { in InstanceNonce_returnLong() argument
64 static jfloat InstanceNonce_returnFloat(JNIEnv *env, jobject this) { in InstanceNonce_returnFloat() argument
69 static jdouble InstanceNonce_returnDouble(JNIEnv *env, jobject this) { in InstanceNonce_returnDouble() argument
74 static jobject InstanceNonce_returnNull(JNIEnv *env, jobject this) { in InstanceNonce_returnNull() argument
[all …]
Dmacroized_tests.c63 #define CALL(name, args...) env->name(args)
69 #define CALL(name, args...) (*env)->name(env , ## args)
87 static char *initializeVariables(JNIEnv *env) { in initializeVariables() argument
126 static jobject getStandardInstance(JNIEnv *env) { in getStandardInstance() argument
134 static jmethodID findStaticMethod(JNIEnv *env, char **errorMsg, in findStaticMethod() argument
150 static jmethodID findInstanceMethod(JNIEnv *env, char **errorMsg, in findInstanceMethod() argument
167 static jmethodID findAppropriateMethod(JNIEnv *env, char **errorMsg, in findAppropriateMethod() argument
171 return findStaticMethod(env, errorMsg, name, sig); in findAppropriateMethod()
173 return findInstanceMethod(env, errorMsg, name, sig); in findAppropriateMethod()
185 static char *help_CallBooleanMethod(JNIEnv *env, callType ct, ...) { in help_CallBooleanMethod() argument
[all …]
Dhelper.c47 char *runJniTests(JNIEnv *env, ...) { in runJniTests() argument
51 va_start(args, env); in runJniTests()
63 char *oneResult = function(env); in runJniTests()
77 jthrowable oneException = (*env)->ExceptionOccurred(env); in runJniTests()
79 (*env)->ExceptionDescribe(env); in runJniTests()
80 (*env)->ExceptionClear(env); in runJniTests()
Dregister.c27 JNIEnv *env = NULL; in JNI_OnLoad() local
29 if ((*vm)->GetEnv(vm, (void **) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
34 if (register_InstanceNonce(env)) { in JNI_OnLoad()
40 if (register_StaticNonce(env)) { in JNI_OnLoad()
46 if (register_JniCTest(env)) { in JNI_OnLoad()
52 if (register_JniCppTest(env)) { in JNI_OnLoad()
Dandroid_jni_cts_JniStaticTest.cpp25 JNIEnv* env, in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode() argument
29 jmethodID midFindClass = env->GetMethodID(appLoaderClass, "findClass", in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode()
31 jstring coreClsName = env->NewStringUTF("android.jni.cts.ClassLoaderStaticNonce"); in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode()
32 jobject coreClass = env->CallObjectMethod(appLoader, midFindClass, coreClsName); in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode()
33 jmethodID midHashCode = env->GetMethodID((jclass)coreClass, "hashCode", "()I"); in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode()
34 jint hash = env->CallIntMethod(coreClass, midHashCode); in Java_android_jni_cts_ClassLoaderHelper_nativeGetHashCode()
Dandroid_jni_cts_JniCTest.c34 static jstring JniCTest_runAllTests(JNIEnv *env, jclass clazz) { in JniCTest_runAllTests() argument
36 return runAllTests(env); in JniCTest_runAllTests()
44 int register_JniCTest(JNIEnv *env) { in register_JniCTest() argument
46 env, "android/jni/cts/JniCTest", in register_JniCTest()
/cts/apps/CtsVerifier/jni/verifier/
Dcom_android_cts_verifier_os_FileUtils.cpp40 jboolean com_android_cts_verifier_os_FileUtils_getFileStatus(JNIEnv* env, jobject thiz, in com_android_cts_verifier_os_FileUtils_getFileStatus() argument
43 const char* pathStr = env->GetStringUTFChars(path, NULL); in com_android_cts_verifier_os_FileUtils_getFileStatus()
52 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in com_android_cts_verifier_os_FileUtils_getFileStatus()
53 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in com_android_cts_verifier_os_FileUtils_getFileStatus()
54 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in com_android_cts_verifier_os_FileUtils_getFileStatus()
55 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in com_android_cts_verifier_os_FileUtils_getFileStatus()
56 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in com_android_cts_verifier_os_FileUtils_getFileStatus()
57 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in com_android_cts_verifier_os_FileUtils_getFileStatus()
58 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in com_android_cts_verifier_os_FileUtils_getFileStatus()
59 env->SetIntField(fileStatus, gFileStatusBlksizeFieldID, s.st_blksize); in com_android_cts_verifier_os_FileUtils_getFileStatus()
[all …]
/cts/libs/deviceutil/jni/
Dandroid_cts_FileUtils.cpp48 jboolean android_cts_FileUtils_getFileStatus(JNIEnv* env, jobject thiz, in android_cts_FileUtils_getFileStatus() argument
51 const char* pathStr = env->GetStringUTFChars(path, NULL); in android_cts_FileUtils_getFileStatus()
60 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in android_cts_FileUtils_getFileStatus()
61 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in android_cts_FileUtils_getFileStatus()
62 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in android_cts_FileUtils_getFileStatus()
63 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in android_cts_FileUtils_getFileStatus()
64 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in android_cts_FileUtils_getFileStatus()
65 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in android_cts_FileUtils_getFileStatus()
66 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in android_cts_FileUtils_getFileStatus()
67 env->SetIntField(fileStatus, gFileStatusBlksizeFieldID, s.st_blksize); in android_cts_FileUtils_getFileStatus()
[all …]
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp52 jboolean android_permission_cts_FileUtils_getFileStatus(JNIEnv* env, in android_permission_cts_FileUtils_getFileStatus() argument
55 ScopedUtfChars cPath(env, path); in android_permission_cts_FileUtils_getFileStatus()
65 env->SetIntField(fileStatus, gFileStatusDevFieldID, s.st_dev); in android_permission_cts_FileUtils_getFileStatus()
66 env->SetIntField(fileStatus, gFileStatusInoFieldID, s.st_ino); in android_permission_cts_FileUtils_getFileStatus()
67 env->SetIntField(fileStatus, gFileStatusModeFieldID, s.st_mode); in android_permission_cts_FileUtils_getFileStatus()
68 env->SetIntField(fileStatus, gFileStatusNlinkFieldID, s.st_nlink); in android_permission_cts_FileUtils_getFileStatus()
69 env->SetIntField(fileStatus, gFileStatusUidFieldID, s.st_uid); in android_permission_cts_FileUtils_getFileStatus()
70 env->SetIntField(fileStatus, gFileStatusGidFieldID, s.st_gid); in android_permission_cts_FileUtils_getFileStatus()
71 env->SetLongField(fileStatus, gFileStatusSizeFieldID, s.st_size); in android_permission_cts_FileUtils_getFileStatus()
72 env->SetIntField(fileStatus, gFileStatusBlksizeFieldID, s.st_blksize); in android_permission_cts_FileUtils_getFileStatus()
[all …]
/cts/tests/tests/security/jni/
DCtsSecurityJniOnLoad.cpp26 extern int register_android_security_cts_MMapExecutableTest(JNIEnv* env);
27 extern int register_android_security_cts_AudioPolicyBinderTest(JNIEnv* env);
28 extern int register_android_security_cts_EncryptionTest(JNIEnv* env);
31 JNIEnv *env = NULL; in JNI_OnLoad() local
33 if (vm->GetEnv((void **) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
37 if (register_android_security_cts_CharDeviceTest(env)) { in JNI_OnLoad()
41 if (register_android_security_cts_LinuxRngTest(env)) { in JNI_OnLoad()
45 if (register_android_security_cts_NativeCodeTest(env)) { in JNI_OnLoad()
49 if (register_android_security_cts_LoadEffectLibraryTest(env)) { in JNI_OnLoad()
53 if (register_android_security_cts_SELinuxTest(env)) { in JNI_OnLoad()
[all …]
Dandroid_security_cts_LinuxRngTest.cpp29 static void throwIOException(JNIEnv* env, const char *format, ...) { in throwIOException() argument
38 jclass cls = env->FindClass("java/io/IOException"); in throwIOException()
39 env->ThrowNew(cls, message); in throwIOException()
44 jint android_security_cts_LinuxRngTest_getCharDeviceMajor(JNIEnv* env, in android_security_cts_LinuxRngTest_getCharDeviceMajor() argument
47 const char* nameStr = env->GetStringUTFChars(name, NULL); in android_security_cts_LinuxRngTest_getCharDeviceMajor()
52 throwIOException(env, "Failed to stat %s: %s", nameStr, strerror(errno)); in android_security_cts_LinuxRngTest_getCharDeviceMajor()
57 throwIOException(env, "%s is not a character device: mode is 0%o", nameStr, st.st_mode); in android_security_cts_LinuxRngTest_getCharDeviceMajor()
65 env->ReleaseStringUTFChars(name, nameStr); in android_security_cts_LinuxRngTest_getCharDeviceMajor()
70 jint android_security_cts_LinuxRngTest_getCharDeviceMinor(JNIEnv* env, in android_security_cts_LinuxRngTest_getCharDeviceMinor() argument
73 const char* nameStr = env->GetStringUTFChars(name, NULL); in android_security_cts_LinuxRngTest_getCharDeviceMinor()
[all …]
Dandroid_security_cts_SELinuxTest.cpp41 static jboolean android_security_cts_SELinuxTest_checkSELinuxAccess(JNIEnv *env, jobject, jstring s… in android_security_cts_SELinuxTest_checkSELinuxAccess() argument
45 jniThrowNullPointerException(env, NULL); in android_security_cts_SELinuxTest_checkSELinuxAccess()
49 ScopedUtfChars subjectContext(env, subjectContextStr); in android_security_cts_SELinuxTest_checkSELinuxAccess()
50 ScopedUtfChars objectContext(env, objectContextStr); in android_security_cts_SELinuxTest_checkSELinuxAccess()
51 ScopedUtfChars objectClass(env, objectClassStr); in android_security_cts_SELinuxTest_checkSELinuxAccess()
52 ScopedUtfChars permission(env, permissionStr); in android_security_cts_SELinuxTest_checkSELinuxAccess()
53 ScopedUtfChars aux(env, auxStr); in android_security_cts_SELinuxTest_checkSELinuxAccess()
62 static jboolean android_security_cts_SELinuxTest_checkSELinuxContext(JNIEnv *env, jobject, jstring … in android_security_cts_SELinuxTest_checkSELinuxContext() argument
64 jniThrowNullPointerException(env, NULL); in android_security_cts_SELinuxTest_checkSELinuxContext()
68 ScopedUtfChars context(env, contextStr); in android_security_cts_SELinuxTest_checkSELinuxContext()
[all …]
/cts/tests/tests/os/jni/
DCtsOsJniOnLoad.cpp35 JNIEnv *env = NULL; in JNI_OnLoad() local
37 if (vm->GetEnv((void **) &env, JNI_VERSION_1_4) != JNI_OK) { in JNI_OnLoad()
41 if (register_android_os_cts_CpuFeatures(env)) { in JNI_OnLoad()
45 if (register_android_os_cts_CpuInstructions(env)) { in JNI_OnLoad()
49 if (register_android_os_cts_TaggedPointer(env)) { in JNI_OnLoad()
53 if (register_android_os_cts_HardwareName(env)) { in JNI_OnLoad()
57 if (register_android_os_cts_OSFeatures(env)) { in JNI_OnLoad()
61 if (register_android_os_cts_NoExecutePermissionTest(env)) { in JNI_OnLoad()
65 if (register_android_os_cts_SeccompTest(env)) { in JNI_OnLoad()
Dandroid_os_cts_CpuFeatures.cpp22 jboolean android_os_cts_CpuFeatures_isArmCpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArmCpu() argument
28 jboolean android_os_cts_CpuFeatures_isArm7Compatible(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArm7Compatible() argument
34 jboolean android_os_cts_CpuFeatures_isMipsCpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isMipsCpu() argument
40 jboolean android_os_cts_CpuFeatures_isX86Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isX86Cpu() argument
46 jboolean android_os_cts_CpuFeatures_isArm64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArm64Cpu() argument
52 jboolean android_os_cts_CpuFeatures_isMips64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isMips64Cpu() argument
58 jboolean android_os_cts_CpuFeatures_isX86_64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isX86_64Cpu() argument
88 int register_android_os_cts_CpuFeatures(JNIEnv* env) in register_android_os_cts_CpuFeatures() argument
90 jclass clazz = env->FindClass("android/os/cts/CpuFeatures"); in register_android_os_cts_CpuFeatures()
92 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_CpuFeatures()
Dandroid_os_cts_HardwareName.cpp21 jstring android_os_cts_HardwareName_getName(JNIEnv* env, jobject thiz) in android_os_cts_HardwareName_getName() argument
31 return env->NewStringUTF(name); in android_os_cts_HardwareName_getName()
39 int register_android_os_cts_HardwareName(JNIEnv* env) in register_android_os_cts_HardwareName() argument
41 jclass clazz = env->FindClass("android/os/cts/HardwareName"); in register_android_os_cts_HardwareName()
43 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_HardwareName()
Dandroid_os_cts_OSFeatures.cpp34 jint android_os_cts_OSFeatures_getNoNewPrivs(JNIEnv* env, jobject thiz) in android_os_cts_OSFeatures_getNoNewPrivs() argument
39 jint android_os_cts_OSFeatures_prctlCapBsetRead(JNIEnv* env, jobject thiz, jint i) in android_os_cts_OSFeatures_prctlCapBsetRead() argument
66 jboolean android_os_cts_OSFeatures_hasSeccompSupport(JNIEnv* env, jobject) in android_os_cts_OSFeatures_hasSeccompSupport() argument
70 jclass cls = env->FindClass("java/lang/RuntimeException"); in android_os_cts_OSFeatures_hasSeccompSupport()
71 env->ThrowNew(cls, "fork failed"); in android_os_cts_OSFeatures_hasSeccompSupport()
123 int register_android_os_cts_OSFeatures(JNIEnv* env) in register_android_os_cts_OSFeatures() argument
125 jclass clazz = env->FindClass("android/os/cts/OSFeatures"); in register_android_os_cts_OSFeatures()
127 return env->RegisterNatives(clazz, gMethods, in register_android_os_cts_OSFeatures()
/cts/hostsidetests/appsecurity/test-apps/SplitApp/jni/
Dcom_android_cts_splitapp_Native.cpp28 static jint add(JNIEnv *env, jobject thiz, jint a, jint b) { in add() argument
34 static jstring arch(JNIEnv *env, jobject thiz) { in arch() argument
35 return env->NewStringUTF(__ANDROID_ARCH__); in arch()
45 static int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int… in registerNativeMethods() argument
48 clazz = env->FindClass(className); in registerNativeMethods()
53 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { in registerNativeMethods()
61 static int registerNatives(JNIEnv* env) { in registerNatives() argument
62 if (!registerNativeMethods(env, classPathName, methods, sizeof(methods) / sizeof(methods[0]))) { in registerNatives()
70 JNIEnv* env; member
78 JNIEnv* env = NULL; in JNI_OnLoad() local
[all …]
/cts/tests/tests/media/libaudiojni/
Dsl-utils.h64 jbyte *envGetArrayElements(JNIEnv *env, jbyteArray array, jboolean *isCopy) { in envGetArrayElements() argument
65 return env->GetByteArrayElements(array, isCopy); in envGetArrayElements()
69 void envReleaseArrayElements(JNIEnv *env, jbyteArray array, jbyte *elems, jint mode) { in envReleaseArrayElements() argument
70 env->ReleaseByteArrayElements(array, elems, mode); in envReleaseArrayElements()
74 jshort *envGetArrayElements(JNIEnv *env, jshortArray array, jboolean *isCopy) { in envGetArrayElements() argument
75 return env->GetShortArrayElements(array, isCopy); in envGetArrayElements()
79 void envReleaseArrayElements(JNIEnv *env, jshortArray array, jshort *elems, jint mode) { in envReleaseArrayElements() argument
80 env->ReleaseShortArrayElements(array, elems, mode); in envReleaseArrayElements()
84 jfloat *envGetArrayElements(JNIEnv *env, jfloatArray array, jboolean *isCopy) { in envGetArrayElements() argument
85 return env->GetFloatArrayElements(array, isCopy); in envGetArrayElements()
[all …]
/cts/tests/tests/media/libmediandkjni/
Dcodec-utils-jni.cpp112 void initializeGlobalFields(JNIEnv *env) { in initializeGlobalFields() argument
117 jclass imageFormatClazz = env->FindClass("android/graphics/ImageFormat"); in initializeGlobalFields()
118 const jfieldID fieldYUV420888 = env->GetStaticFieldID(imageFormatClazz, "YUV_420_888", "I"); in initializeGlobalFields()
119 gFields.YUV_420_888 = env->GetStaticIntField(imageFormatClazz, fieldYUV420888); in initializeGlobalFields()
120 env->DeleteLocalRef(imageFormatClazz); in initializeGlobalFields()
125 jclass imageClazz = env->FindClass("android/media/cts/CodecImage"); in initializeGlobalFields()
126 gFields.methodWidth = env->GetMethodID(imageClazz, "getWidth", "()I"); in initializeGlobalFields()
127 gFields.methodHeight = env->GetMethodID(imageClazz, "getHeight", "()I"); in initializeGlobalFields()
128 gFields.methodFormat = env->GetMethodID(imageClazz, "getFormat", "()I"); in initializeGlobalFields()
129 gFields.methodTimestamp = env->GetMethodID(imageClazz, "getTimestamp", "()J"); in initializeGlobalFields()
[all …]
/cts/tests/tests/rscpp/librscpptest/
Drs_jni.cpp65 extern "C" JNIEXPORT jboolean JNICALL Java_android_cts_rscpp_RSInitTest_initTest(JNIEnv * env, in Java_android_cts_rscpp_RSInitTest_initTest() argument
69 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSInitTest_initTest()
76 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSInitTest_initTest()
80 extern "C" JNIEXPORT jboolean JNICALL Java_android_cts_rscpp_RSBlurTest_blurTest(JNIEnv * env, in Java_android_cts_rscpp_RSBlurTest_blurTest() argument
89 const char * path = env->GetStringUTFChars(pathObj, NULL); in Java_android_cts_rscpp_RSBlurTest_blurTest()
90 jbyte * input = (jbyte *) env->GetPrimitiveArrayCritical(inputByteArray, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
91 jbyte * output = (jbyte *) env->GetPrimitiveArrayCritical(outputByteArray, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
114 env->ReleasePrimitiveArrayCritical(inputByteArray, input, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
115 env->ReleasePrimitiveArrayCritical(outputByteArray, output, 0); in Java_android_cts_rscpp_RSBlurTest_blurTest()
116 env->ReleaseStringUTFChars(pathObj, path); in Java_android_cts_rscpp_RSBlurTest_blurTest()
[all …]
/cts/tests/tests/nativeopengl/standalone/jni/
DGLTestHelper.cpp29 CTSGTestListener(JNIEnv *env, jobject activity) in CTSGTestListener() argument
30 : mActivity(activity), mEnv(env) { in CTSGTestListener()
32 jclass clazz = env->FindClass( in CTSGTestListener()
34 mSendStatusID = env->GetMethodID(clazz, "sendStatus", in CTSGTestListener()
210 void GLTestHelper::setWindow(JNIEnv *env, jobject obj, jobject surface) { in setWindow() argument
211 mWindow = ANativeWindow_fromSurface(env, surface); in setWindow()
231 int GLTestHelper::runTests(JNIEnv *env, jobject obj, jstring filter) { in runTests() argument
239 const char * ptr = env->GetStringUTFChars(filter, NULL); in runTests()
241 env->ReleaseStringUTFChars(filter, ptr); in runTests()
254 int GLTestHelper::runTestsCTS(JNIEnv *env, jobject obj, jobject activity) { in runTestsCTS() argument
[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)); \
240 extern "C" void Java_android_mediastress_cts_NativeMediaActivity_shutdown(JNIEnv* env, in Java_android_mediastress_cts_NativeMediaActivity_shutdown() argument
284 extern "C" jboolean Java_android_mediastress_cts_NativeMediaActivity_createEngine(JNIEnv* env, 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()
314 extern "C" jboolean Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer(JNIEnv* env, in Java_android_mediastress_cts_NativeMediaActivity_createMediaPlayer() argument
[all …]
/cts/tests/tests/renderscript/libbnnmdata/
Dtest_data.cpp56572 Java_android_renderscript_cts_BNNMTest_getData(JNIEnv * env, in Java_android_renderscript_cts_BNNMTest_getData() argument
56579 jbyte * a_byte = (jbyte *) env->GetPrimitiveArrayCritical(a, 0); in Java_android_renderscript_cts_BNNMTest_getData()
56580 jbyte * b_byte = (jbyte *) env->GetPrimitiveArrayCritical(b, 0); in Java_android_renderscript_cts_BNNMTest_getData()
56581 jbyte * c_byte = (jbyte *) env->GetPrimitiveArrayCritical(c, 0); in Java_android_renderscript_cts_BNNMTest_getData()
56588 env->ReleasePrimitiveArrayCritical(c, c_byte, 0); in Java_android_renderscript_cts_BNNMTest_getData()
56589 env->ReleasePrimitiveArrayCritical(b, b_byte, 0); in Java_android_renderscript_cts_BNNMTest_getData()
56590 env->ReleasePrimitiveArrayCritical(a, a_byte, 0); in Java_android_renderscript_cts_BNNMTest_getData()
/cts/apps/CtsVerifier/jni/audio_loopback/
Djni_sles.c25 (JNIEnv *env __unused, jobject obj __unused, jint samplingRate, jint frameCount, jint micSource) { in Java_com_android_cts_verifier_audio_NativeAudioThread_slesInit()
39 (JNIEnv *env __unused, jobject obj __unused, jlong sles, jdoubleArray samplesArray, in Java_com_android_cts_verifier_audio_NativeAudioThread_slesProcessNext()
43 long maxSamples = (*env)->GetArrayLength(env, samplesArray); in Java_com_android_cts_verifier_audio_NativeAudioThread_slesProcessNext()
44 double *pSamples = (*env)->GetDoubleArrayElements(env, samplesArray,0); in Java_com_android_cts_verifier_audio_NativeAudioThread_slesProcessNext()
58 (JNIEnv *env __unused, jobject obj __unused, jlong sles) { in Java_com_android_cts_verifier_audio_NativeAudioThread_slesDestroy()

123