Home
last modified time | relevance | path

Searched refs:JNIEnv (Results 1 – 25 of 68) sorted by relevance

123

/cts/tests/tests/renderscript/libcoremathtestcpp/
DCoreMathTestJni.cpp43 JNIEnv* mEnv;
54 JavaStruct(JNIEnv* env, const std::string& name);
62 JavaStruct::JavaStruct(JNIEnv* env, const std::string& name) : mEnv(env), mClass(0), mObject(0) { in JavaStruct()
119 Java_android_renderscript_cts_CoreMathVerifier_acos(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acos() argument
124 Java_android_renderscript_cts_CoreMathVerifier_acosh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_acosh() argument
129 Java_android_renderscript_cts_CoreMathVerifier_asin(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asin() argument
134 Java_android_renderscript_cts_CoreMathVerifier_asinh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_asinh() argument
139 Java_android_renderscript_cts_CoreMathVerifier_atan(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_atan() argument
144 Java_android_renderscript_cts_CoreMathVerifier_atan2(JNIEnv*, jclass, jfloat x, jfloat y) { in Java_android_renderscript_cts_CoreMathVerifier_atan2() argument
149 Java_android_renderscript_cts_CoreMathVerifier_atanh(JNIEnv*, jclass, jfloat x) { in Java_android_renderscript_cts_CoreMathVerifier_atanh() argument
[all …]
/cts/tests/tests/security/jni/
DCtsSecurityJniOnLoad.cpp20 extern int register_android_security_cts_KernelSettingsTest(JNIEnv*);
21 extern int register_android_security_cts_CharDeviceTest(JNIEnv*);
22 extern int register_android_security_cts_LinuxRngTest(JNIEnv*);
23 extern int register_android_security_cts_NativeCodeTest(JNIEnv*);
24 extern int register_android_security_cts_LoadEffectLibraryTest(JNIEnv*);
25 extern int register_android_security_cts_SELinuxTest(JNIEnv*);
26 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()
Dandroid_security_cts_NativeCodeTest.cpp44 static jboolean android_security_cts_NativeCodeTest_doPerfEventTest(JNIEnv* env, jobject thiz) in android_security_cts_NativeCodeTest_doPerfEventTest()
70 static jboolean android_security_cts_NativeCodeTest_doPerfEventTest2(JNIEnv* env, jobject thiz) in android_security_cts_NativeCodeTest_doPerfEventTest2()
104 static jboolean android_security_cts_NativeCodeTest_doVrootTest(JNIEnv*, jobject) in android_security_cts_NativeCodeTest_doVrootTest() argument
142 static jboolean android_security_cts_NativeCodeTest_doCVE20141710Test(JNIEnv*, jobject) in android_security_cts_NativeCodeTest_doCVE20141710Test() argument
187 static jboolean android_security_cts_NativeCodeTest_doFutexTest(JNIEnv*, jobject) in android_security_cts_NativeCodeTest_doFutexTest() argument
202 static jboolean android_security_cts_NativeCodeTest_doNvmapIocFromIdTest(JNIEnv*, jobject) in android_security_cts_NativeCodeTest_doNvmapIocFromIdTest() argument
231 static jboolean android_security_cts_NativeCodeTest_doPingPongRootTest(JNIEnv*, jobject) in android_security_cts_NativeCodeTest_doPingPongRootTest() argument
271 int register_android_security_cts_NativeCodeTest(JNIEnv* env) in register_android_security_cts_NativeCodeTest()
Dandroid_security_cts_EncryptionTest.cpp42 static jboolean android_security_cts_EncryptionTest_deviceIsEncrypted(JNIEnv *, jobject) in android_security_cts_EncryptionTest_deviceIsEncrypted() argument
60 static jboolean android_security_cts_EncryptionTest_cpuHasAes(JNIEnv *, jobject) in android_security_cts_EncryptionTest_cpuHasAes() argument
83 static jboolean android_security_cts_EncryptionTest_cpuHasNeon(JNIEnv *, jobject) in android_security_cts_EncryptionTest_cpuHasNeon() argument
105 static jboolean android_security_cts_EncryptionTest_neonIsEnabled(JNIEnv *, jobject) in android_security_cts_EncryptionTest_neonIsEnabled() argument
132 static jboolean android_security_cts_EncryptionTest_aesIsFast(JNIEnv *env, jobject) in android_security_cts_EncryptionTest_aesIsFast()
195 int register_android_security_cts_EncryptionTest(JNIEnv* env) in register_android_security_cts_EncryptionTest()
/cts/tests/tests/os/jni/
DCtsOsJniOnLoad.cpp20 extern int register_android_os_cts_CpuFeatures(JNIEnv*);
22 extern int register_android_os_cts_CpuInstructions(JNIEnv*);
24 extern int register_android_os_cts_TaggedPointer(JNIEnv*);
26 extern int register_android_os_cts_HardwareName(JNIEnv*);
28 extern int register_android_os_cts_OSFeatures(JNIEnv*);
30 extern int register_android_os_cts_NoExecutePermissionTest(JNIEnv*);
32 extern int register_android_os_cts_SeccompTest(JNIEnv*);
35 JNIEnv *env = NULL; in JNI_OnLoad()
Dandroid_os_cts_CpuFeatures.cpp22 jboolean android_os_cts_CpuFeatures_isArmCpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArmCpu()
28 jboolean android_os_cts_CpuFeatures_isArm7Compatible(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArm7Compatible()
34 jboolean android_os_cts_CpuFeatures_isMipsCpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isMipsCpu()
40 jboolean android_os_cts_CpuFeatures_isX86Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isX86Cpu()
46 jboolean android_os_cts_CpuFeatures_isArm64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isArm64Cpu()
52 jboolean android_os_cts_CpuFeatures_isMips64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isMips64Cpu()
58 jboolean android_os_cts_CpuFeatures_isX86_64Cpu(JNIEnv* env, jobject thiz) in android_os_cts_CpuFeatures_isX86_64Cpu()
64 jint android_os_cts_CpuFeatures_getHwCaps(JNIEnv*, jobject) in android_os_cts_CpuFeatures_getHwCaps() argument
88 int register_android_os_cts_CpuFeatures(JNIEnv* env) in register_android_os_cts_CpuFeatures()
Dandroid_os_cts_CpuInstructions.cpp72 jboolean android_os_cts_CpuInstructions_canReadCntvct(JNIEnv *, jobject) in android_os_cts_CpuInstructions_canReadCntvct() argument
77 jboolean android_os_cts_CpuInstructions_canReadCntvct(JNIEnv *, jobject) in android_os_cts_CpuInstructions_canReadCntvct() argument
104 jboolean android_os_cts_CpuInstructions_hasSwp(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasSwp() argument
109 jboolean android_os_cts_CpuInstructions_hasSetend(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasSetend() argument
114 jboolean android_os_cts_CpuInstructions_hasCp15Barriers(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasCp15Barriers() argument
119 jboolean android_os_cts_CpuInstructions_hasSwp(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasSwp() argument
124 jboolean android_os_cts_CpuInstructions_hasSetend(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasSetend() argument
129 jboolean android_os_cts_CpuInstructions_hasCp15Barriers(JNIEnv *, jobject) in android_os_cts_CpuInstructions_hasCp15Barriers() argument
143 int register_android_os_cts_CpuInstructions(JNIEnv *env) in register_android_os_cts_CpuInstructions()
Dandroid_os_cts_OSFeatures.cpp34 jint android_os_cts_OSFeatures_getNoNewPrivs(JNIEnv* env, jobject thiz) in android_os_cts_OSFeatures_getNoNewPrivs()
39 jint android_os_cts_OSFeatures_prctlCapBsetRead(JNIEnv* env, jobject thiz, jint i) in android_os_cts_OSFeatures_prctlCapBsetRead()
66 jboolean android_os_cts_OSFeatures_hasSeccompSupport(JNIEnv* env, jobject) in android_os_cts_OSFeatures_hasSeccompSupport()
85 jboolean android_os_cts_OSFeatures_needsSeccompSupport(JNIEnv*, jobject) in android_os_cts_OSFeatures_needsSeccompSupport() argument
123 int register_android_os_cts_OSFeatures(JNIEnv* env) in register_android_os_cts_OSFeatures()
Dandroid_os_cts_NoExecutePermissionTest.cpp48 static jboolean android_os_cts_NoExecutePermissionTest_isMyCodeExecutable(JNIEnv*, jobject) in android_os_cts_NoExecutePermissionTest_isMyCodeExecutable() argument
53 static jboolean android_os_cts_NoExecutePermissionTest_isStackExecutable(JNIEnv*, jobject) in android_os_cts_NoExecutePermissionTest_isStackExecutable() argument
60 static jboolean android_os_cts_NoExecutePermissionTest_isHeapExecutable(JNIEnv*, jobject) in android_os_cts_NoExecutePermissionTest_isHeapExecutable() argument
81 int register_android_os_cts_NoExecutePermissionTest(JNIEnv* env) in register_android_os_cts_NoExecutePermissionTest()
Dandroid_os_cts_SeccompTest.cpp39 JNIEnv* env, jobject thiz __unused, jstring name) { in android_security_cts_SeccompBpfTest_runKernelUnitTest()
57 jboolean android_security_cts_SeccompBpfTest_installTestFilter(JNIEnv*, jclass) { in android_security_cts_SeccompBpfTest_installTestFilter() argument
71 jint android_security_cts_SeccompBpfTest_getClockBootTime(JNIEnv*, jclass) { in android_security_cts_SeccompBpfTest_getClockBootTime() argument
86 int register_android_os_cts_SeccompTest(JNIEnv* env) { in register_android_os_cts_SeccompTest()
/cts/tests/tests/jni/libjnitest/
Dandroid_jni_cts_InstanceNonce.c29 static void InstanceNonce_nop(JNIEnv *env, jobject this) { in InstanceNonce_nop()
34 static jboolean InstanceNonce_returnBoolean(JNIEnv *env, jobject this) { in InstanceNonce_returnBoolean()
39 static jbyte InstanceNonce_returnByte(JNIEnv *env, jobject this) { in InstanceNonce_returnByte()
44 static jshort InstanceNonce_returnShort(JNIEnv *env, jobject this) { in InstanceNonce_returnShort()
49 static jchar InstanceNonce_returnChar(JNIEnv *env, jobject this) { in InstanceNonce_returnChar()
54 static jint InstanceNonce_returnInt(JNIEnv *env, jobject this) { in InstanceNonce_returnInt()
59 static jlong InstanceNonce_returnLong(JNIEnv *env, jobject this) { in InstanceNonce_returnLong()
64 static jfloat InstanceNonce_returnFloat(JNIEnv *env, jobject this) { in InstanceNonce_returnFloat()
69 static jdouble InstanceNonce_returnDouble(JNIEnv *env, jobject this) { in InstanceNonce_returnDouble()
74 static jobject InstanceNonce_returnNull(JNIEnv *env, jobject this) { in InstanceNonce_returnNull()
[all …]
Dandroid_jni_cts_StaticNonce.c29 static void StaticNonce_nop(JNIEnv *env, jclass clazz) { in StaticNonce_nop()
34 static jboolean StaticNonce_returnBoolean(JNIEnv *env, jclass clazz) { in StaticNonce_returnBoolean()
39 static jbyte StaticNonce_returnByte(JNIEnv *env, jclass clazz) { in StaticNonce_returnByte()
44 static jshort StaticNonce_returnShort(JNIEnv *env, jclass clazz) { in StaticNonce_returnShort()
49 static jchar StaticNonce_returnChar(JNIEnv *env, jclass clazz) { in StaticNonce_returnChar()
54 static jint StaticNonce_returnInt(JNIEnv *env, jclass clazz) { in StaticNonce_returnInt()
59 static jlong StaticNonce_returnLong(JNIEnv *env, jclass clazz) { in StaticNonce_returnLong()
64 static jfloat StaticNonce_returnFloat(JNIEnv *env, jclass clazz) { in StaticNonce_returnFloat()
69 static jdouble StaticNonce_returnDouble(JNIEnv *env, jclass clazz) { in StaticNonce_returnDouble()
74 static jobject StaticNonce_returnNull(JNIEnv *env, jclass clazz) { in StaticNonce_returnNull()
[all …]
Dregister.c27 JNIEnv *env = NULL; in JNI_OnLoad()
33 extern int register_InstanceNonce(JNIEnv *); in JNI_OnLoad()
39 extern int register_StaticNonce(JNIEnv *); in JNI_OnLoad()
45 extern int register_JniCTest(JNIEnv *); in JNI_OnLoad()
51 extern int register_JniCppTest(JNIEnv *); in JNI_OnLoad()
Dhelper.h27 typedef char *JniTestFunction(JNIEnv *env);
40 #define TEST_DECLARATION(name) static char *test_##name(JNIEnv *env)
61 char *runJniTests(JNIEnv *env, ...);
Dandroid_jni_cts_JniCTest.c34 static jstring JniCTest_runAllTests(JNIEnv *env, jclass clazz) { in JniCTest_runAllTests()
44 int register_JniCTest(JNIEnv *env) { in register_JniCTest()
Dandroid_jni_cts_JniCppTest.cpp34 static jstring JniCppTest_runAllTests(JNIEnv *env, jclass clazz) { in JniCppTest_runAllTests()
44 extern "C" int register_JniCppTest(JNIEnv *env) { in register_JniCppTest()
/cts/tests/tests/nativeopengl/standalone/jni/
DGLTestHelper.h30 static int runTests(JNIEnv* env, jobject obj, jstring filter);
31 static int runTestsCTS(JNIEnv* env, jobject obj, jobject activity);
34 static void setWindow(JNIEnv* env, jobject obj, jobject surface);
35 static int registerNative(JNIEnv* env);
/cts/tests/tests/media/libaudiojni/
Dsl-utils.h64 jbyte *envGetArrayElements(JNIEnv *env, jbyteArray array, jboolean *isCopy) { in envGetArrayElements()
69 void envReleaseArrayElements(JNIEnv *env, jbyteArray array, jbyte *elems, jint mode) { in envReleaseArrayElements()
74 jshort *envGetArrayElements(JNIEnv *env, jshortArray array, jboolean *isCopy) { in envGetArrayElements()
79 void envReleaseArrayElements(JNIEnv *env, jshortArray array, jshort *elems, jint mode) { in envReleaseArrayElements()
84 jfloat *envGetArrayElements(JNIEnv *env, jfloatArray array, jboolean *isCopy) { in envGetArrayElements()
89 void envReleaseArrayElements(JNIEnv *env, jfloatArray array, jfloat *elems, jint mode) { in envReleaseArrayElements()
/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()
34 static jstring arch(JNIEnv *env, jobject thiz) { in arch()
45 static int registerNativeMethods(JNIEnv* env, const char* className, JNINativeMethod* gMethods, int… in registerNativeMethods()
61 static int registerNatives(JNIEnv* env) { in registerNatives()
70 JNIEnv* env;
78 JNIEnv* env = NULL; in JNI_OnLoad()
/cts/apps/CtsVerifier/jni/audio_loopback/
Djni_sles.h28 (JNIEnv *, jobject, jint, jint, jint );
31 (JNIEnv *, jobject , jlong, jdoubleArray, jlong );
34 (JNIEnv *, jobject , jlong );
/cts/tests/tests/opengl/libopengltest/
Dgl2_jni_libone.cpp49 (JNIEnv *, jclass pClass, jint pCategory, jint pSubCategory, jint width, jint height) { in Java_android_opengl_cts_GL2JniLibOne_init() argument
113 extern "C" JNIEXPORT void JNICALL Java_android_opengl_cts_GL2JniLibOne_step(JNIEnv * env, jclass ob… in Java_android_opengl_cts_GL2JniLibOne_step()
118 extern "C" JNIEXPORT jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getAttachShaderError(JNIEnv in Java_android_opengl_cts_GL2JniLibOne_getAttachShaderError()
122 extern "C" JNIEXPORT jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getLoadShaderError(JNIEnv * … in Java_android_opengl_cts_GL2JniLibOne_getLoadShaderError()
126 extern "C" JNIEXPORT jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getProgramError(JNIEnv * env… in Java_android_opengl_cts_GL2JniLibOne_getProgramError()
130 …jint JNICALL Java_android_opengl_cts_GL2JniLibOne_getAttachedShaderCount(JNIEnv * env, jclass obj){ in Java_android_opengl_cts_GL2JniLibOne_getAttachedShaderCount()
134 extern "C" JNIEXPORT jfloatArray JNICALL Java_android_opengl_cts_GL2JniLibOne_draw(JNIEnv * env, in Java_android_opengl_cts_GL2JniLibOne_draw()
/cts/tests/tests/permission/jni/
Dandroid_permission_cts_FileUtils.cpp52 jboolean android_permission_cts_FileUtils_getFileStatus(JNIEnv* env, in android_permission_cts_FileUtils_getFileStatus()
83 jstring android_permission_cts_FileUtils_getUserName(JNIEnv* env, in android_permission_cts_FileUtils_getUserName()
90 jstring android_permission_cts_FileUtils_getGroupName(JNIEnv* env, in android_permission_cts_FileUtils_getGroupName()
97 static jboolean isPermittedCapBitSet(JNIEnv* env, jstring path, size_t capId) in isPermittedCapBitSet()
117 jboolean android_permission_cts_FileUtils_hasSetUidCapability(JNIEnv* env, in android_permission_cts_FileUtils_hasSetUidCapability()
123 jboolean android_permission_cts_FileUtils_hasSetGidCapability(JNIEnv* env, in android_permission_cts_FileUtils_hasSetGidCapability()
129 static bool throwNamedException(JNIEnv* env, const char* className, in throwNamedException()
145 static bool fillPermittedCaps(vfs_cap_data* capData, JNIEnv* env, jintArray capIds) in fillPermittedCaps()
168 jboolean android_permission_cts_FileUtils_CapabilitySet_fileHasOnly(JNIEnv* env, in android_permission_cts_FileUtils_CapabilitySet_fileHasOnly()
217 int register_android_permission_cts_FileUtils(JNIEnv* env) in register_android_permission_cts_FileUtils()
DCtsPermissionsJniOnLoad.cpp20 extern int register_android_permission_cts_FileUtils(JNIEnv*);
23 JNIEnv *env = NULL; in JNI_OnLoad()
/cts/tests/tests/drm/jni/
DCtsDrmJniOnLoad.cpp20 extern int register_android_drm_cts_NativeCodeTest(JNIEnv*);
23 JNIEnv *env = NULL; in JNI_OnLoad()
/cts/libs/deviceutil/jni/
DCtsJniOnLoad.cpp20 extern int register_android_cts_FileUtils(JNIEnv*);
23 JNIEnv *env = NULL; in JNI_OnLoad()

123