Searched defs:env (Results 1 - 22 of 22) sorted by relevance

/development/ndk/samples/hello-jni/jni/
H A Dhello-jni.c27 Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env, argument
30 return (*env)->NewStringUTF(env, "Hello from JNI !");
/development/ndk/samples/two-libs/jni/
H A Dsecond.c21 Java_com_example_twolibs_TwoLibs_add( JNIEnv* env, argument
/development/samples/BrowserPlugin/jni/
H A Djni-bridge.cpp28 static void surfaceCreated(JNIEnv* env, jobject thiz, jint npp, jobject surface) { argument
39 static void surfaceChanged(JNIEnv* env, jobject thiz, jint npp, jint format, jint width, jint height) { argument
51 static void surfaceDestroyed(JNIEnv* env, jobject thiz, jint npp) { argument
72 JNIEnv* env = NULL; local
74 if (vm->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
78 jniRegisterNativeMethods(env, "com/android/sampleplugin/PaintSurface",
H A DPluginObject.cpp57 JNIEnv* env = NULL; local
58 if (gVM->GetEnv((void**) &env, JNI_VERSION_1_4) == JNI_OK) {
62 env->DeleteGlobalRef(m_context);
68 context = env->NewGlobalRef(context);
H A Dmain.cpp140 JNIEnv* env = (JNIEnv*)java_env; local
141 env->GetJavaVM(&gVM);
/development/samples/BrowserPlugin/jni/video/
H A DVideoPlugin.cpp72 JNIEnv* env = NULL; local
73 if (gVM->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
74 gLogI.log(kError_ANPLogType, " ---- getSurface: failed to get env");
86 jmethodID constructor = env->GetMethodID(videoClass, "<init>", "(Landroid/content/Context;)V");
87 jobject videoSurface = env->NewObject(videoClass, constructor, m_context);
94 m_surface = env->NewGlobalRef(videoSurface);
99 JNIEnv* env = NULL; local
100 if (m_surface && gVM->GetEnv((void**) &env, JNI_VERSION_1_4) == JNI_OK) {
101 env->DeleteGlobalRef(m_surface);
/development/ndk/platforms/android-4/samples/san-angeles/jni/
H A Dapp-android.c46 Java_com_example_SanAngeles_DemoRenderer_nativeInit( JNIEnv* env )
56 Java_com_example_SanAngeles_DemoRenderer_nativeResize( JNIEnv* env, jobject thiz, jint w, jint h ) argument
65 Java_com_example_SanAngeles_DemoRenderer_nativeDone( JNIEnv* env )
75 Java_com_example_SanAngeles_DemoGLSurfaceView_nativePause( JNIEnv* env )
91 Java_com_example_SanAngeles_DemoRenderer_nativeRender( JNIEnv* env )
/development/samples/SimpleJNI/jni/
H A Dnative.cpp25 add(JNIEnv *env, jobject thiz, jint a, jint b) { argument
40 static int registerNativeMethods(JNIEnv* env, const char* className, argument
45 clazz = env->FindClass(className);
50 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) {
63 static int registerNatives(JNIEnv* env) argument
65 if (!registerNativeMethods(env, classPathName,
81 JNIEnv* env; member in union:__anon590
90 JNIEnv* env = NULL; local
98 env = uenv.env;
[all...]
/development/ndk/platforms/android-5/samples/hello-gl2/jni/
H A Dgl_code.cpp172 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height);
173 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj);
176 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint width, jint height) argument
181 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj) argument
/development/ndk/platforms/android-9/include/android/
H A Dnative_activity.h60 JNIEnv* env; member in struct:ANativeActivity
/development/ndk/samples/hello-neon/jni/
H A Dhelloneon.c80 Java_com_example_neon_HelloNeon_stringFromJNI( JNIEnv* env, argument
162 return (*env)->NewStringUTF(env, buffer);
/development/samples/BrowserPlugin/jni/animation/
H A DAnimationPlugin.cpp81 JNIEnv* env = NULL; local
82 if (gVM->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
83 gLogI.log(kError_ANPLogType, " ---- getSurface: failed to get env");
95 jmethodID constructor = env->GetMethodID(fullScreenClass, "<init>", "(Landroid/content/Context;)V");
96 jobject fullScreenSurface = env->NewObject(fullScreenClass, constructor, m_context);
105 m_surface = env->NewGlobalRef(fullScreenSurface);
110 JNIEnv* env = NULL; local
111 if (m_surface && gVM->GetEnv((void**) &env, JNI_VERSION_1_4) == JNI_OK) {
112 env->DeleteGlobalRef(m_surface);
/development/samples/BrowserPlugin/jni/paint/
H A DPaintPlugin.cpp99 JNIEnv* env = NULL; local
100 if (!m_surface || gVM->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK ||
101 !gSurfaceI.lock(env, m_surface, &bitmap, dirtyRect)) {
134 JNIEnv* env = NULL; local
135 if (m_surface && gVM->GetEnv((void**) &env, JNI_VERSION_1_4) == JNI_OK) {
136 gSurfaceI.unlock(env, m_surface);
232 JNIEnv* env = NULL; local
233 if (gVM->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
234 gLogI.log(kError_ANPLogType, " ---- getSurface: failed to get env");
250 jmethodID constructor = env
263 JNIEnv* env = NULL; local
[all...]
/development/ndk/platforms/android-14/samples/native-media/jni/
H A Dnative-media-jni.c245 void Java_com_example_nativemedia_NativeMedia_createEngine(JNIEnv* env, jclass clazz) argument
329 jboolean Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer(JNIEnv* env, argument
335 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL);
380 (*env)->ReleaseStringUTFChars(env, filename, utf8);
437 void Java_com_example_nativemedia_NativeMedia_setPlayingStreamingMediaPlayer(JNIEnv* env, argument
456 void Java_com_example_nativemedia_NativeMedia_shutdown(JNIEnv* env, jclass clazz) argument
496 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) argument
499 theNativeWindow = ANativeWindow_fromSurface(env, surfac
504 Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer(JNIEnv *env, jclass clazz) argument
[all...]
/development/samples/BrowserPlugin/jni/background/
H A DBackgroundPlugin.cpp93 JNIEnv* env = NULL; local
94 if (gVM->GetEnv((void**) &env, JNI_VERSION_1_4) != JNI_OK) {
95 gLogI.log(kError_ANPLogType, " ---- getSurface: failed to get env");
107 jmethodID constructor = env->GetMethodID(backgroundClass, "<init>", "(Landroid/content/Context;)V");
108 jobject backgroundSurface = env->NewObject(backgroundClass, constructor, m_context);
115 m_surface = env->NewGlobalRef(backgroundSurface);
120 JNIEnv* env = NULL; local
121 if (m_surface && gVM->GetEnv((void**) &env, JNI_VERSION_1_4) == JNI_OK) {
122 env->DeleteGlobalRef(m_surface);
149 JNIEnv* env local
471 JNIEnv* env = NULL; local
[all...]
/development/ndk/platforms/android-8/samples/bitmap-plasma/jni/
H A Dplasma.c364 JNIEXPORT void JNICALL Java_com_example_plasma_PlasmaView_renderPlasma(JNIEnv * env, jobject obj, jobject bitmap, jlong time_ms) argument
378 if ((ret = AndroidBitmap_getInfo(env, bitmap, &info)) < 0) {
388 if ((ret = AndroidBitmap_lockPixels(env, bitmap, &pixels)) < 0) {
397 AndroidBitmap_unlockPixels(env, bitmap);
/development/ndk/platforms/android-9/samples/native-audio/jni/
H A Dnative-audio-jni.c149 void Java_com_example_nativeaudio_NativeAudio_createEngine(JNIEnv* env, jclass clazz) argument
191 void Java_com_example_nativeaudio_NativeAudio_createBufferQueueAudioPlayer(JNIEnv* env, argument
256 jboolean Java_com_example_nativeaudio_NativeAudio_createUriAudioPlayer(JNIEnv* env, jclass clazz, argument
262 const jbyte *utf8 = (*env)->GetStringUTFChars(env, uri, NULL);
285 (*env)->ReleaseStringUTFChars(env, uri, utf8);
318 void Java_com_example_nativeaudio_NativeAudio_setPlayingUriAudioPlayer(JNIEnv* env, argument
337 void Java_com_example_nativeaudio_NativeAudio_setLoopingUriAudioPlayer(JNIEnv* env, argument
367 void Java_com_example_nativeaudio_NativeAudio_setChannelMuteUriAudioPlayer(JNIEnv* env, argument
378 Java_com_example_nativeaudio_NativeAudio_setChannelSoloUriAudioPlayer(JNIEnv* env, jclass clazz, jint chan, jboolean solo) argument
389 Java_com_example_nativeaudio_NativeAudio_getNumChannelsUriAudioPlayer(JNIEnv* env, jclass clazz) argument
420 Java_com_example_nativeaudio_NativeAudio_setVolumeUriAudioPlayer(JNIEnv* env, jclass clazz, jint millibel) argument
431 Java_com_example_nativeaudio_NativeAudio_setMuteUriAudioPlayer(JNIEnv* env, jclass clazz, jboolean mute) argument
442 Java_com_example_nativeaudio_NativeAudio_enableStereoPositionUriAudioPlayer(JNIEnv* env, jclass clazz, jboolean enable) argument
453 Java_com_example_nativeaudio_NativeAudio_setStereoPositionUriAudioPlayer(JNIEnv* env, jclass clazz, jint permille) argument
465 Java_com_example_nativeaudio_NativeAudio_enableReverb(JNIEnv* env, jclass clazz, jboolean enabled) argument
487 Java_com_example_nativeaudio_NativeAudio_selectClip(JNIEnv* env, jclass clazz, jint which, jint count) argument
542 Java_com_example_nativeaudio_NativeAudio_createAssetAudioPlayer(JNIEnv* env, jclass clazz, jobject assetManager, jstring filename) argument
615 Java_com_example_nativeaudio_NativeAudio_setPlayingAssetAudioPlayer(JNIEnv* env, jclass clazz, jboolean isPlaying) argument
634 Java_com_example_nativeaudio_NativeAudio_createAudioRecorder(JNIEnv* env, jclass clazz) argument
685 Java_com_example_nativeaudio_NativeAudio_startRecording(JNIEnv* env, jclass clazz) argument
714 Java_com_example_nativeaudio_NativeAudio_shutdown(JNIEnv* env, jclass clazz) argument
[all...]
/development/samples/ApiDemos/src/com/example/android/apis/graphics/spritetext/
H A DMatrixTrackingGL.java865 public void glGetTexEnviv(int env, int pname, int[] params, int offset) { argument
869 public void glGetTexEnviv(int env, int pname, IntBuffer params) { argument
873 public void glGetTexEnvxv(int env, int pname, int[] params, int offset) { argument
877 public void glGetTexEnvxv(int env, int pname, IntBuffer params) { argument
/development/ndk/platforms/android-3/include/
H A Djni.h1076 jint GetEnv(void** env, jint version) argument
1077 { return functions->GetEnv(this, env, version); }
/development/tools/emulator/opengl/system/GLESv1_enc/
H A Dgl_enc.cpp246 void glGetTexEnvfv_enc(void *self , GLenum env, GLenum pname, GLfloat* params) argument
259 memcpy(ptr, &env, 4); ptr += 4;
1482 void glGetTexEnviv_enc(void *self , GLenum env, GLenum pname, GLint* params) argument
1495 memcpy(ptr, &env, 4); ptr += 4;
1501 void glGetTexEnvxv_enc(void *self , GLenum env, GLenum pname, GLfixed* params) argument
1514 memcpy(ptr, &env, 4); ptr += 4;
3233 void glGetTexEnvxvOES_enc(void *self , GLenum env, GLenum pname, GLfixed* params) argument
3246 memcpy(ptr, &env, 4); ptr += 4;
H A Dgl_entry.cpp22 void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat* params);
97 void glGetTexEnviv(GLenum env, GLenum pname, GLint* params);
98 void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed* params);
199 void glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params);
387 void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat* params) argument
390 ctx->glGetTexEnvfv(ctx, env, pname, params);
841 void glGetTexEnviv(GLenum env, GLenum pname, GLint* params) argument
844 ctx->glGetTexEnviv(ctx, env, pname, params);
847 void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed* params) argument
850 ctx->glGetTexEnvxv(ctx, env, pnam
1453 glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed* params) argument
[all...]
/development/tools/emulator/opengl/tests/gles_android_wrapper/
H A Dgles.cpp121 void glGetTexEnvfv(GLenum env, GLenum pname, GLfloat *params) argument
123 getDispatch()->glGetTexEnvfv(env, pname, params);
501 void glGetTexEnviv(GLenum env, GLenum pname, GLint *params) argument
503 getDispatch()->glGetTexEnviv(env, pname, params);
506 void glGetTexEnvxv(GLenum env, GLenum pname, GLfixed *params) argument
508 getDispatch()->glGetTexEnvxv(env, pname, params);
911 void glGetTexEnvxvOES(GLenum env, GLenum pname, GLfixed *params) argument
913 getDispatch()->glGetTexEnvxvOES(env, pname, params);

Completed in 1280 milliseconds