Searched defs:env (Results 1 - 25 of 199) sorted by last modified time

12345678

/frameworks/wilhelm/tests/native-media/jni/
H A Dnative-media-jni.c268 void Java_com_example_nativemedia_NativeMedia_createEngine(JNIEnv* env, jclass clazz) argument
340 jboolean Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer(JNIEnv* env, argument
346 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL);
393 (*env)->ReleaseStringUTFChars(env, filename, utf8);
455 void Java_com_example_nativemedia_NativeMedia_setPlayingStreamingMediaPlayer(JNIEnv* env, argument
474 void Java_com_example_nativemedia_NativeMedia_shutdown(JNIEnv* env, jclass clazz) argument
514 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument
517 theNativeWindow = ANativeWindow_fromSurface(env, surfac
522 Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer(JNIEnv *env, jclass clazz) argument
[all...]
/frameworks/support/renderscript/v8/jni/
H A Dandroid_renderscript_RenderScript.cpp39 AutoJavaStringToUTF8(JNIEnv* env, jstring str) : fEnv(env), fJStr(str) { argument
40 fCStr = env->GetStringUTFChars(str, NULL);
41 fLength = env->GetStringUTFLength(str);
58 AutoJavaStringArrayToUTF8(JNIEnv* env, jobjectArray strings, jsize stringsLength) argument
59 : mEnv(env), mStrings(strings), mStringsLength(stringsLength) {
338 static size_t GetBitmapSize(JNIEnv *env, jobject jbitmap) { argument
341 AndroidBitmap_getInfo(env, jbitmap, &info);
881 JNIEnv* env = NULL; local
884 if (vm->GetEnv((void**) &env, JNI_VERSION_1_
[all...]
/frameworks/ml/bordeaux/learning/multiclass_pa/jni/
H A Djni_multiclass_pa.cpp36 jint Java_android_bordeaux_learning_MulticlassPA_initNativeClassifier(JNIEnv* env, argument
48 jboolean Java_android_bordeaux_learning_MulticlassPA_deleteNativeClassifier(JNIEnv* env, argument
56 jboolean Java_android_bordeaux_learning_MulticlassPA_nativeSparseTrainOneExample(JNIEnv* env, argument
66 jfloat* values = env->GetFloatArrayElements(value_array, NULL);
67 jint* indices = env->GetIntArrayElements(index_array, NULL);
68 const int value_len = env->GetArrayLength(value_array);
69 const int index_len = env->GetArrayLength(index_array);
76 env->ReleaseIntArrayElements(index_array, indices, JNI_ABORT);
77 env->ReleaseFloatArrayElements(value_array, values, JNI_ABORT);
81 env
89 Java_android_bordeaux_learning_MulticlassPA_nativeSparseGetClass(JNIEnv* env, jobject thiz, jintArray index_array, jfloatArray value_array, jint paPtr) argument
[all...]
/frameworks/ml/bordeaux/learning/stochastic_linear_ranker/jni/
H A Djni_stochastic_linear_ranker.cpp30 void CreateSparseWeightVector(JNIEnv* env, const jobjectArray keys, const float* values, argument
35 jstring s = (jstring) env->GetObjectArrayElement(keys, i);
36 const char *key = env->GetStringUTFChars(s, &iscopy);
38 env->ReleaseStringUTFChars(s,key);
42 void ConvertParameter2Object(JNIEnv* env, jobjectArray *keys, jobjectArray *values, argument
45 jstring jstrK = env->NewStringUTF(name);
46 jstring jstrV = env->NewStringUTF(paramValue);
47 env->SetObjectArrayElement(*keys, index, jstrK);
48 env->SetObjectArrayElement(*values, index, jstrV);
51 void DecomposeSparseWeightVector(JNIEnv* env, jobjectArra argument
69 Java_android_bordeaux_learning_StochasticLinearRanker_nativeSetWeightClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_model, jfloatArray value_array_model, jfloat normalizer_model, jint paPtr) argument
95 Java_android_bordeaux_learning_StochasticLinearRanker_nativeSetParameterClassifier( JNIEnv* env, jobject thiz, jstring key, jstring value, jint paPtr) argument
229 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetLengthClassifier( JNIEnv* env, jobject thiz, jint paPtr) argument
249 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetParameterClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_param, jobjectArray value_array_param, jint paPtr) argument
368 Java_android_bordeaux_learning_StochasticLinearRanker_nativeGetWeightClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_model, jfloatArray value_array_model, jfloat normalizer, jint paPtr) argument
386 Java_android_bordeaux_learning_StochasticLinearRanker_initNativeClassifier(JNIEnv* env, jobject thiz) argument
392 Java_android_bordeaux_learning_StochasticLinearRanker_deleteNativeClassifier(JNIEnv* env, jobject thiz, jint paPtr) argument
400 Java_android_bordeaux_learning_StochasticLinearRanker_nativeUpdateClassifier( JNIEnv* env, jobject thiz, jobjectArray key_array_positive, jfloatArray value_array_positive, jobjectArray key_array_negative, jfloatArray value_array_negative, jint paPtr) argument
439 Java_android_bordeaux_learning_StochasticLinearRanker_nativeScoreSample( JNIEnv* env, jobject thiz, jobjectArray key_array, jfloatArray value_array, jint paPtr) argument
[all...]
/frameworks/native/include/android/
H A Dnative_activity.h60 JNIEnv* env; member in struct:ANativeActivity
/frameworks/native/opengl/libs/GLES_trace/src/
H A Dgltrace_api.cpp11525 void GLTrace_glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params) { argument
11531 // copy argument env
11535 arg_env->add_intvalue((int)env);
11552 glContext->hooks->gl.glGetTexEnvfv(env, pname, params);
13023 void GLTrace_glGetTexEnviv(GLenum env, GLenum pname, GLint *params) { argument
13029 // copy argument env
13033 arg_env->add_intvalue((int)env);
13050 glContext->hooks->gl.glGetTexEnviv(env, pname, params);
13064 void GLTrace_glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params) { argument
13070 // copy argument env
15410 GLTrace_glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed *params) argument
[all...]
/frameworks/native/opengl/tests/gl2_jni/jni/
H A Dgl_code.cpp152 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
153 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj);
156 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
161 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj) argument
/frameworks/native/opengl/tests/gl_jni/jni/
H A Dgl_code.cpp138 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
139 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_step(JNIEnv * env, jobject obj);
140 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_changeBackground(JNIEnv * env, jobject obj);
143 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
149 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_step(JNIEnv * env, jobject obj) argument
180 JNIEXPORT void JNICALL Java_com_android_gljni_GLJNILib_changeBackground(JNIEnv * env, jobject obj) argument
/frameworks/native/opengl/tests/gl_perfapp/jni/
H A Dgl_code.cpp62 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height);
63 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_step(JNIEnv * env, jobject obj);
66 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
92 JNIEXPORT void JNICALL Java_com_android_glperf_GLPerfLib_step(JNIEnv * env, jobject obj) argument
/frameworks/native/opengl/tests/gldual/jni/
H A Dgl_code.cpp152 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height);
153 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj);
156 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
161 JNIEXPORT void JNICALL Java_com_android_gldual_GLDualLib_step(JNIEnv * env, jobject obj) argument
/frameworks/native/services/surfaceflinger/
H A DDdmConnection.cpp33 JNIEnv* env; local
62 jint (*registerNatives)(JNIEnv* env, jclass clazz);
71 if (JNI_CreateJavaVM(&vm, &env, &args) == 0) {
76 if (registerNatives(env, 0) == 0) {
78 startClass = env->FindClass("android/ddm/DdmHandleAppName");
80 startMeth = env->GetStaticMethodID(startClass,
83 jstring str = env->NewStringUTF(name);
84 env->CallStaticVoidMethod(startClass, startMeth, str, getuid());
85 env->DeleteLocalRef(str);
91 startClass = env
[all...]
/frameworks/base/voip/jni/rtp/
H A DAudioGroup.cpp54 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
933 int add(JNIEnv *env, jobject thiz, jint mode, argument
943 if (parse(env, jRemoteAddress, remotePort, &remote) < 0) {
948 jniThrowNullPointerException(env, "codecSpec");
951 const char *codecSpec = env->GetStringUTFChars(jCodecSpec, NULL);
958 jniThrowException(env, "java/lang/IllegalStateException",
970 env->ReleaseStringUTFChars(jCodecSpec, codecSpec);
972 jniThrowException(env, "java/lang/IllegalStateException",
981 jniThrowException(env, "java/lang/IllegalStateException",
989 group = (AudioGroup *)env
1020 remove(JNIEnv *env, jobject thiz, jint stream) argument
1031 setMode(JNIEnv *env, jobject thiz, jint mode) argument
1039 sendDtmf(JNIEnv *env, jobject thiz, jint event) argument
1056 registerAudioGroup(JNIEnv *env) argument
[all...]
H A DRtpStream.cpp32 extern int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss);
38 jint create(JNIEnv *env, jobject thiz, jstring jAddress) argument
40 env->SetIntField(thiz, gSocket, -1);
43 if (parse(env, jAddress, 0, &ss) < 0) {
52 jniThrowException(env, "java/net/SocketException", strerror(errno));
61 env->SetIntField(thiz, gSocket, socket);
78 env->SetIntField(thiz, gSocket, socket);
84 jniThrowException(env, "java/net/SocketException", strerror(errno));
89 void close(JNIEnv *env, jobject thiz) argument
91 int socket = env
103 registerRtpStream(JNIEnv *env) argument
[all...]
H A Drtp_jni.cpp21 extern int registerRtpStream(JNIEnv *env);
22 extern int registerAudioGroup(JNIEnv *env);
26 JNIEnv *env = NULL; local
27 if (vm->GetEnv((void **)&env, JNI_VERSION_1_4) != JNI_OK ||
28 registerRtpStream(env) < 0 || registerAudioGroup(env) < 0) {
H A Dutil.cpp25 int parse(JNIEnv *env, jstring jAddress, int port, sockaddr_storage *ss) argument
28 jniThrowNullPointerException(env, "address");
32 jniThrowException(env, "java/lang/IllegalArgumentException", "port");
35 const char *address = env->GetStringUTFChars(jAddress, NULL);
46 env->ReleaseStringUTFChars(jAddress, address);
54 env->ReleaseStringUTFChars(jAddress, address);
58 env->ReleaseStringUTFChars(jAddress, address);
59 jniThrowException(env, "java/lang/IllegalArgumentException", "address");
/frameworks/base/services/jni/
H A Dcom_android_server_AlarmManagerService.cpp40 static jint android_server_AlarmManagerService_setKernelTimezone(JNIEnv* env, jobject obj, jint fd, jint minswest) argument
58 static jint android_server_AlarmManagerService_init(JNIEnv* env, jobject obj) argument
63 static void android_server_AlarmManagerService_close(JNIEnv* env, jobject obj, jint fd) argument
68 static void android_server_AlarmManagerService_set(JNIEnv* env, jobject obj, jint fd, jint type, jlong seconds, jlong nanoseconds) argument
81 static jint android_server_AlarmManagerService_waitForAlarm(JNIEnv* env, jobject obj, jint fd) argument
108 int register_android_server_AlarmManagerService(JNIEnv* env) argument
110 return jniRegisterNativeMethods(env, "com/android/server/AlarmManagerService",
H A Dcom_android_server_BatteryService.cpp159 static void setBooleanField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
170 env->SetBooleanField(obj, fieldID, value);
173 static void setIntField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
182 env->SetIntField(obj, fieldID, value);
185 static void setVoltageField(JNIEnv* env, jobject obj, const char* path, jfieldID fieldID) argument
195 env->SetIntField(obj, fieldID, value);
199 static void android_server_BatteryService_update(JNIEnv* env, jobject obj) argument
201 setBooleanField(env, obj, gPaths.acOnlinePath, gFieldIds.mAcOnline);
202 setBooleanField(env, obj, gPaths.usbOnlinePath, gFieldIds.mUsbOnline);
203 setBooleanField(env, ob
231 register_android_server_BatteryService(JNIEnv* env) argument
[all...]
H A Dcom_android_server_LightsService.cpp63 static jint init_native(JNIEnv *env, jobject clazz) argument
96 static void finalize_native(JNIEnv *env, jobject clazz, int ptr) argument
106 static void setLight_native(JNIEnv *env, jobject clazz, int ptr, argument
135 int register_android_server_LightsService(JNIEnv *env) argument
137 return jniRegisterNativeMethods(env, "com/android/server/LightsService",
H A Dcom_android_server_SerialService.cpp37 static jobject android_server_SerialService_open(JNIEnv *env, jobject thiz, jstring path) argument
39 const char *pathStr = env->GetStringUTFChars(path, NULL);
44 env->ReleaseStringUTFChars(path, pathStr);
47 env->ReleaseStringUTFChars(path, pathStr);
49 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
53 return env->NewObject(gParcelFileDescriptorOffsets.mClass,
63 int register_android_server_SerialService(JNIEnv *env) argument
65 jclass clazz = env->FindClass("com/android/server/SerialService");
71 clazz = env->FindClass("android/os/ParcelFileDescriptor");
73 gParcelFileDescriptorOffsets.mClass = (jclass) env
[all...]
H A Dcom_android_server_SystemServer.cpp26 static void android_server_SystemServer_init1(JNIEnv* env, jobject clazz) argument
39 int register_android_server_SystemServer(JNIEnv* env) argument
41 return jniRegisterNativeMethods(env, "com/android/server/SystemServer",
H A Dcom_android_server_UsbDeviceManager.cpp43 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
44 if (env->ExceptionCheck()) {
46 LOGE_EX(env);
47 env->ExceptionClear();
51 static void set_accessory_string(JNIEnv *env, int fd, int cmd, jobjectArray strArray, int index) argument
58 jstring obj = env->NewStringUTF(buffer);
59 env->SetObjectArrayElement(strArray, index, obj);
60 env->DeleteLocalRef(obj);
65 static jobjectArray android_server_UsbDeviceManager_getAccessoryStrings(JNIEnv *env, jobject thiz) argument
72 jclass stringClass = env
87 android_server_UsbDeviceManager_openAccessory(JNIEnv *env, jobject thiz) argument
102 android_server_UsbDeviceManager_isStartRequested(JNIEnv *env, jobject thiz) argument
114 android_server_UsbDeviceManager_getAudioMode(JNIEnv *env, jobject thiz) argument
137 register_android_server_UsbDeviceManager(JNIEnv *env) argument
[all...]
H A Dcom_android_server_UsbHostManager.cpp46 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
47 if (env->ExceptionCheck()) {
49 LOGE_EX(env);
50 env->ExceptionClear();
64 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
103 jintArray interfaceArray = env->NewIntArray(length);
104 env->SetIntArrayRegion(interfaceArray, 0, length, interfaceValues.array());
107 jintArray endpointArray = env->NewIntArray(length);
108 env->SetIntArrayRegion(endpointArray, 0, length, endpointValues.array());
110 jstring deviceName = env
124 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
134 android_server_UsbHostManager_monitorUsbHostBus(JNIEnv *env, jobject thiz) argument
145 android_server_UsbHostManager_openDevice(JNIEnv *env, jobject thiz, jstring deviceName) argument
174 register_android_server_UsbHostManager(JNIEnv *env) argument
[all...]
H A Dcom_android_server_VibratorService.cpp32 static jboolean vibratorExists(JNIEnv *env, jobject clazz) argument
37 static void vibratorOn(JNIEnv *env, jobject clazz, jlong timeout_ms) argument
43 static void vibratorOff(JNIEnv *env, jobject clazz) argument
55 int register_android_server_VibratorService(JNIEnv *env) argument
57 return jniRegisterNativeMethods(env, "com/android/server/VibratorService",
H A Dcom_android_server_connectivity_Vpn.cpp316 static void throwException(JNIEnv *env, int error, const char *message) argument
319 jniThrowException(env, "java/lang/IllegalStateException", message);
321 jniThrowException(env, "java/lang/IllegalArgumentException", message);
325 static jint create(JNIEnv *env, jobject thiz, jint mtu) argument
329 throwException(env, tun, "Cannot create interface");
335 static jstring getName(JNIEnv *env, jobject thiz, jint tun) argument
339 throwException(env, SYSTEM_ERROR, "Cannot get interface name");
342 return env->NewStringUTF(name);
345 static jint setAddresses(JNIEnv *env, jobject thiz, jstring jName, argument
352 name = jName ? env
378 setRoutes(JNIEnv *env, jobject thiz, jstring jName, jstring jRoutes) argument
411 reset(JNIEnv *env, jobject thiz, jstring jName) argument
424 check(JNIEnv *env, jobject thiz, jstring jName) argument
436 protect(JNIEnv *env, jobject thiz, jint socket, jstring jName) argument
461 register_android_server_connectivity_Vpn(JNIEnv *env) argument
[all...]
H A Dcom_android_server_input_InputApplicationHandle.cpp44 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
45 env->DeleteWeakGlobalRef(mObjWeak);
48 jobject NativeInputApplicationHandle::getInputApplicationHandleObjLocalRef(JNIEnv* env) { argument
49 return env->NewLocalRef(mObjWeak);
53 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
54 jobject obj = env->NewLocalRef(mObjWeak);
64 jstring nameObj = jstring(env->GetObjectField(obj,
67 const char* nameStr = env->GetStringUTFChars(nameObj, NULL);
69 env->ReleaseStringUTFChars(nameObj, nameStr);
70 env
85 android_server_InputApplicationHandle_getHandle( JNIEnv* env, jobject inputApplicationHandleObj) argument
110 android_server_InputApplicationHandle_nativeDispose(JNIEnv* env, jobject obj) argument
137 register_android_server_InputApplicationHandle(JNIEnv* env) argument
[all...]

Completed in 230 milliseconds

12345678