/development/ndk/sources/android/ndk_helper/ |
D | JNIHelper.cpp | 56 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 …]
|
D | JNIHelper.h | 58 jstring GetExternalFilesDirJString( JNIEnv *env );
|
/development/samples/SimpleJNI/jni/ |
D | native.cpp | 25 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/ |
D | app-android.c | 48 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/ |
D | native-audio-jni.c | 150 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/ |
D | hello-jni.c | 27 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/ |
D | bitmap.h | 55 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/ |
D | bitmap.h | 55 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/ |
D | bitmap.h | 54 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);
|
D | native_window_jni.h | 34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
|
D | asset_manager_jni.h | 34 AAssetManager* AAssetManager_fromJava(JNIEnv* env, jobject assetManager);
|
/development/ndk/platforms/android-13/include/android/ |
D | native_window_jni.h | 34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface); 42 ANativeWindow* ANativeWindow_fromSurfaceTexture(JNIEnv* env, jobject surfaceTexture);
|
/development/ndk/platforms/android-14/samples/native-media/jni/ |
D | native-media-jni.c | 245 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/ |
D | bar.c | 31 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_add2MByteBlocksNative() argument 44 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_free2MByteBlocksNative() argument
|
D | foo.c | 31 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_add32ByteBlocksNative() argument 44 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_free32ByteBlocksNative() argument
|
D | baz.c | 33 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_addVariableSizedBlocksNative() argument 57 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_freeVariableSizedBlocksNative() argument
|
D | df.c | 28 JNIEnv* env, in Java_com_android_benchmark_moarram_MainActivity_forceDoubleFreeNative() argument
|
/development/ndk/platforms/android-5/samples/hello-gl2/jni/ |
D | gl_code.cpp | 172 …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/ |
D | gles3jni.cpp | 239 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/ |
D | helloneon.c | 80 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/ |
D | native_window_jni.h | 34 ANativeWindow* ANativeWindow_fromSurface(JNIEnv* env, jobject surface);
|
/development/ndk/samples/two-libs/jni/ |
D | second.c | 21 Java_com_example_twolibs_TwoLibs_add( JNIEnv* env, in Java_com_example_twolibs_TwoLibs_add() argument
|
/development/ndk/platforms/android-9/arch-mips/src/ |
D | crtbegin.c | 33 extern int main(int argc, char** argv, char** env);
|
/development/ndk/platforms/android-3/arch-arm/src/ |
D | crtbegin_static.c | 37 extern int main(int argc, char **argv, char **env);
|
D | crtbegin_dynamic.c | 37 extern int main(int argc, char **argv, char **env);
|