Home
last modified time | relevance | path

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

12

/development/ndk/sources/android/ndk_helper/
DJNIHelper.cpp56 JNIEnv *env; in ~JNIHelper() local
57 activity_->vm->AttachCurrentThread( &env, NULL ); in ~JNIHelper()
59 env->DeleteGlobalRef( jni_helper_java_ref_ ); in ~JNIHelper()
60 env->DeleteGlobalRef( jni_helper_java_class_ ); in ~JNIHelper()
78 JNIEnv *env; in Init() local
79 helper.activity_->vm->AttachCurrentThread( &env, NULL ); in Init()
82 jclass android_content_Context = env->GetObjectClass( helper.activity_->clazz ); in Init()
83 jmethodID midGetPackageName = env->GetMethodID( android_content_Context, "getPackageName", in Init()
86 jstring packageName = (jstring) env->CallObjectMethod( helper.activity_->clazz, in Init()
88 const char* appname = env->GetStringUTFChars( packageName, NULL ); in Init()
[all …]
DJNIHelper.h58 jstring GetExternalFilesDirJString( JNIEnv *env );
/development/samples/SimpleJNI/jni/
Dnative.cpp25 add(JNIEnv *env, jobject thiz, jint a, jint b) { in add() argument
40 static int registerNativeMethods(JNIEnv* env, const char* className, in registerNativeMethods() argument
45 clazz = env->FindClass(className); in registerNativeMethods()
50 if (env->RegisterNatives(clazz, gMethods, numMethods) < 0) { in registerNativeMethods()
63 static int registerNatives(JNIEnv* env) in registerNatives() argument
65 if (!registerNativeMethods(env, classPathName, in registerNatives()
81 JNIEnv* env; member
90 JNIEnv* env = NULL; in JNI_OnLoad() local
98 env = uenv.env; in JNI_OnLoad()
100 if (registerNatives(env) != JNI_TRUE) { in JNI_OnLoad()
/development/ndk/platforms/android-4/samples/san-angeles/jni/
Dapp-android.c48 Java_com_example_SanAngeles_DemoRenderer_nativeInit( JNIEnv* env ) in Java_com_example_SanAngeles_DemoRenderer_nativeInit() argument
56 Java_com_example_SanAngeles_DemoRenderer_nativeResize( JNIEnv* env, jobject thiz, jint w, jint h ) in Java_com_example_SanAngeles_DemoRenderer_nativeResize() argument
65 Java_com_example_SanAngeles_DemoRenderer_nativeDone( JNIEnv* env ) in Java_com_example_SanAngeles_DemoRenderer_nativeDone() argument
93 Java_com_example_SanAngeles_DemoGLSurfaceView_nativeTogglePauseResume( JNIEnv* env ) in Java_com_example_SanAngeles_DemoGLSurfaceView_nativeTogglePauseResume() argument
103 Java_com_example_SanAngeles_DemoGLSurfaceView_nativePause( JNIEnv* env ) in Java_com_example_SanAngeles_DemoGLSurfaceView_nativePause() argument
109 Java_com_example_SanAngeles_DemoGLSurfaceView_nativeResume( JNIEnv* env ) in Java_com_example_SanAngeles_DemoGLSurfaceView_nativeResume() argument
116 Java_com_example_SanAngeles_DemoRenderer_nativeRender( JNIEnv* env ) in Java_com_example_SanAngeles_DemoRenderer_nativeRender() argument
/development/ndk/platforms/android-9/samples/native-audio/jni/
Dnative-audio-jni.c150 void Java_com_example_nativeaudio_NativeAudio_createEngine(JNIEnv* env, jclass clazz) in Java_com_example_nativeaudio_NativeAudio_createEngine() argument
198 void Java_com_example_nativeaudio_NativeAudio_createBufferQueueAudioPlayer(JNIEnv* env, in Java_com_example_nativeaudio_NativeAudio_createBufferQueueAudioPlayer() argument
271 jboolean Java_com_example_nativeaudio_NativeAudio_createUriAudioPlayer(JNIEnv* env, jclass clazz, in Java_com_example_nativeaudio_NativeAudio_createUriAudioPlayer() argument
277 const char *utf8 = (*env)->GetStringUTFChars(env, uri, NULL); in Java_com_example_nativeaudio_NativeAudio_createUriAudioPlayer()
301 (*env)->ReleaseStringUTFChars(env, uri, utf8); in Java_com_example_nativeaudio_NativeAudio_createUriAudioPlayer()
338 void Java_com_example_nativeaudio_NativeAudio_setPlayingUriAudioPlayer(JNIEnv* env, in Java_com_example_nativeaudio_NativeAudio_setPlayingUriAudioPlayer() argument
357 void Java_com_example_nativeaudio_NativeAudio_setLoopingUriAudioPlayer(JNIEnv* env, in Java_com_example_nativeaudio_NativeAudio_setLoopingUriAudioPlayer() argument
387 void Java_com_example_nativeaudio_NativeAudio_setChannelMuteUriAudioPlayer(JNIEnv* env, in Java_com_example_nativeaudio_NativeAudio_setChannelMuteUriAudioPlayer() argument
399 void Java_com_example_nativeaudio_NativeAudio_setChannelSoloUriAudioPlayer(JNIEnv* env, in Java_com_example_nativeaudio_NativeAudio_setChannelSoloUriAudioPlayer() argument
411 int Java_com_example_nativeaudio_NativeAudio_getNumChannelsUriAudioPlayer(JNIEnv* env, jclass clazz) in Java_com_example_nativeaudio_NativeAudio_getNumChannelsUriAudioPlayer() argument
[all …]
/development/ndk/samples/hello-jni/jni/
Dhello-jni.c27 Java_com_example_hellojni_HelloJni_stringFromJNI( JNIEnv* env, in Java_com_example_hellojni_HelloJni_stringFromJNI() argument
62 return (*env)->NewStringUTF(env, "Hello from JNI ! Compiled with ABI " ABI "."); in Java_com_example_hellojni_HelloJni_stringFromJNI()
/development/ndk/platforms/android-8/include/android/
Dbitmap.h55 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
71 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr);
76 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap);
/development/ndk/platforms/android-18/include/android/
Dbitmap.h55 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
71 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr);
76 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap);
/development/ndk/platforms/android-9/include/android/
Dbitmap.h54 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap,
70 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr);
75 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap);
Dnative_window_jni.h34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
Dasset_manager_jni.h34 AAssetManager* AAssetManager_fromJava(JNIEnv* env, jobject assetManager);
/development/ndk/platforms/android-13/include/android/
Dnative_window_jni.h34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
42 ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture);
/development/ndk/platforms/android-14/samples/native-media/jni/
Dnative-media-jni.c245 void Java_com_example_nativemedia_NativeMedia_createEngine(JNIEnv* env, jclass clazz) in Java_com_example_nativemedia_NativeMedia_createEngine() argument
329 jboolean Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer(JNIEnv* env, in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer() argument
335 const char *utf8 = (*env)->GetStringUTFChars(env, filename, NULL); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer()
380 (*env)->ReleaseStringUTFChars(env, filename, utf8); in Java_com_example_nativemedia_NativeMedia_createStreamingMediaPlayer()
437 void Java_com_example_nativemedia_NativeMedia_setPlayingStreamingMediaPlayer(JNIEnv* env, in Java_com_example_nativemedia_NativeMedia_setPlayingStreamingMediaPlayer() argument
456 void Java_com_example_nativemedia_NativeMedia_shutdown(JNIEnv* env, jclass clazz) in Java_com_example_nativemedia_NativeMedia_shutdown() argument
496 void Java_com_example_nativemedia_NativeMedia_setSurface(JNIEnv *env, jclass clazz, jobject surface) in Java_com_example_nativemedia_NativeMedia_setSurface() argument
499 theNativeWindow = ANativeWindow_fromSurface(env, surface); in Java_com_example_nativemedia_NativeMedia_setSurface()
504 void Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer(JNIEnv *env, jclass clazz) in Java_com_example_nativemedia_NativeMedia_rewindStreamingMediaPlayer() argument
/development/tutorials/MoarRam/jni/
Dbar.c31 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative() argument
44 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative() argument
Dfoo.c31 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative() argument
44 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative() argument
Dbaz.c33 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative() argument
57 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative() argument
Ddf.c28 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative() argument
/development/ndk/platforms/android-5/samples/hello-gl2/jni/
Dgl_code.cpp172 …JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_init(JNIEnv * env, jobject obj, jint wid…
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 widt… in Java_com_android_gl2jni_GL2JNILib_init() argument
181 JNIEXPORT void JNICALL Java_com_android_gl2jni_GL2JNILib_step(JNIEnv * env, jobject obj) in Java_com_android_gl2jni_GL2JNILib_step() argument
/development/ndk/platforms/android-18/samples/gles3jni/jni/
Dgles3jni.cpp239 JNIEXPORT void JNICALL Java_com_android_gles3jni_GLES3JNILib_init(JNIEnv* env, jobject obj);
240 …JNIEXPORT void JNICALL Java_com_android_gles3jni_GLES3JNILib_resize(JNIEnv* env, jobject obj, jint…
241 JNIEXPORT void JNICALL Java_com_android_gles3jni_GLES3JNILib_step(JNIEnv* env, jobject obj);
251 Java_com_android_gles3jni_GLES3JNILib_init(JNIEnv* env, jobject obj) { in Java_com_android_gles3jni_GLES3JNILib_init() argument
273 Java_com_android_gles3jni_GLES3JNILib_resize(JNIEnv* env, jobject obj, jint width, jint height) { in Java_com_android_gles3jni_GLES3JNILib_resize() argument
280 Java_com_android_gles3jni_GLES3JNILib_step(JNIEnv* env, jobject obj) { in Java_com_android_gles3jni_GLES3JNILib_step() argument
/development/ndk/samples/hello-neon/jni/
Dhelloneon.c80 Java_com_example_neon_HelloNeon_stringFromJNI( JNIEnv* env, in Java_com_example_neon_HelloNeon_stringFromJNI() argument
162 return (*env)->NewStringUTF(env, buffer); in Java_com_example_neon_HelloNeon_stringFromJNI()
/development/ndk/platforms/android-16/include/android/
Dnative_window_jni.h34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
/development/ndk/samples/two-libs/jni/
Dsecond.c21 Java_com_example_twolibs_TwoLibs_add( JNIEnv* env, in Java_com_example_twolibs_TwoLibs_add() argument
/development/ndk/platforms/android-9/arch-mips/src/
Dcrtbegin.c33 extern int main(int argc, char** argv, char** env);
/development/ndk/platforms/android-3/arch-arm/src/
Dcrtbegin_static.c37 extern int main(int argc, char **argv, char **env);
Dcrtbegin_dynamic.c37 extern int main(int argc, char **argv, char **env);

12