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

1234567891011>>

/frameworks/opt/net/voip/src/jni/rtp/
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/packages/services/PacProcessor/jni/
H A Djni_init.cpp23 extern int register_com_android_pacprocessor_PacNative(JNIEnv *env);
29 JNIEnv *env; local
30 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
35 register_com_android_pacprocessor_PacNative(env);
/frameworks/base/services/core/jni/
H A Donload.cpp23 int register_android_server_ActivityManagerService(JNIEnv* env);
24 int register_android_server_AlarmManagerService(JNIEnv* env);
25 int register_android_server_AssetAtlasService(JNIEnv* env);
26 int register_android_server_BatteryStatsService(JNIEnv* env);
27 int register_android_server_ConsumerIrService(JNIEnv *env);
28 int register_android_server_InputApplicationHandle(JNIEnv* env);
29 int register_android_server_InputWindowHandle(JNIEnv* env);
30 int register_android_server_InputManager(JNIEnv* env);
31 int register_android_server_LightsService(JNIEnv* env);
32 int register_android_server_PowerManagerService(JNIEnv* env);
55 JNIEnv* env = NULL; local
[all...]
H A Dcom_android_server_SystemServer.cpp28 static void android_server_SystemServer_startSensorService(JNIEnv* /* env */, jobject /* clazz */) {
45 int register_android_server_SystemServer(JNIEnv* env) argument
47 return jniRegisterNativeMethods(env, "com/android/server/SystemServer",
H A Dcom_android_server_vr_VrManagerService.cpp33 static void init_native(JNIEnv* /* env */, jclass /* clazz */) {
53 static void setVrMode_native(JNIEnv* /* env */, jclass /* clazz */, jboolean enabled) {
68 int register_android_server_vr_VrManagerService(JNIEnv *env) argument
70 return jniRegisterNativeMethods(env, "com/android/server/vr/VrManagerService",
/frameworks/ex/framesequence/jni/
H A DJNIHelpers.cpp20 void jniThrowException(JNIEnv* env, const char* className, const char* msg) { argument
21 jclass clazz = env->FindClass(className);
28 if (env->ThrowNew(clazz, msg) != JNI_OK) {
32 env->DeleteLocalRef(clazz);
H A DBitmapDecoderJNI.cpp27 void throwException(JNIEnv* env, const char* error) { argument
28 jclass clazz = env->FindClass("java/lang/RuntimeException");
29 env->ThrowNew(clazz, error);
33 JNIEnv* env; local
34 if (vm->GetEnv(reinterpret_cast<void**>(&env), JNI_VERSION_1_6) != JNI_OK) {
37 if (FrameSequence_OnLoad(env)) {
41 if (JavaStream_OnLoad(env)) {
/frameworks/base/core/jni/
H A Dandroid_app_Activity.cpp28 static jstring getDlWarning_native(JNIEnv* env, jobject) { argument
36 return msg.empty() ? nullptr : env->NewStringUTF(msg.c_str());
47 int register_android_app_Activity(JNIEnv* env) { argument
48 return RegisterMethodsOrDie(env, kActivityPathName, g_methods, NELEM(g_methods));
H A Dandroid_app_ApplicationLoaders.cpp23 static void setupVulkanLayerPath_native(JNIEnv* env, jobject clazz, argument
25 ScopedUtfChars layerPathChars(env, librarySearchPath);
28 loader_data.app_namespace = android::FindNamespaceByClassLoader(env, classLoader);
41 int register_android_app_ApplicationLoaders(JNIEnv* env) { argument
42 return RegisterMethodsOrDie(env, kApplicationLoadersName, g_methods, NELEM(g_methods));
H A Dandroid_database_SQLiteCommon.cpp24 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle) { argument
25 throw_sqlite3_exception(env, handle, NULL);
29 void throw_sqlite3_exception(JNIEnv* env, const char* message) { argument
30 throw_sqlite3_exception(env, NULL, message);
36 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message) { argument
42 throw_sqlite3_exception(env, sqlite3_extended_errcode(handle),
47 throw_sqlite3_exception(env, SQLITE_OK, "unknown error", message);
54 void throw_sqlite3_exception_errcode(JNIEnv* env, int errcode, const char* message) { argument
55 throw_sqlite3_exception(env, errcode, "unknown error", message);
61 void throw_sqlite3_exception(JNIEnv* env, in argument
[all...]
H A Dcom_android_internal_util_VirtualRefBasePtr.cpp23 static void incStrong(JNIEnv* env, jobject clazz, jlong objPtr) { argument
28 static void decStrong(JNIEnv* env, jobject clazz, jlong objPtr) { argument
44 int register_com_android_internal_util_VirtualRefBasePtr(JNIEnv* env) { argument
45 return RegisterMethodsOrDie(env, kClassPathName, gMethods, NELEM(gMethods));
H A Dandroid_database_SQLiteDebug.cpp41 static void nativeGetPagerStats(JNIEnv *env, jobject clazz, jobject statsObj) argument
51 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.memoryUsed, memoryUsed);
52 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.pageCacheOverflow,
54 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.largestMemAlloc, largestMemAlloc);
67 int register_android_database_SQLiteDebug(JNIEnv *env) argument
69 jclass clazz = FindClassOrDie(env, "android/database/sqlite/SQLiteDebug$PagerStats");
71 gSQLiteDebugPagerStatsClassInfo.memoryUsed = GetFieldIDOrDie(env, clazz, "memoryUsed", "I");
72 gSQLiteDebugPagerStatsClassInfo.largestMemAlloc = GetFieldIDOrDie(env, clazz,
74 gSQLiteDebugPagerStatsClassInfo.pageCacheOverflow = GetFieldIDOrDie(env, clazz,
77 return RegisterMethodsOrDie(env, "androi
[all...]
/frameworks/webview/chromium/plat_support/
H A Djni_entry_point.cpp24 void RegisterDrawGLFunctor(JNIEnv* env);
25 void RegisterGraphicsUtils(JNIEnv* env);
30 JNIEnv* env = NULL; local
31 jint ret = vm->AttachCurrentThread(&env, NULL);
33 android::RegisterDrawGLFunctor(env);
34 android::RegisterGraphicsUtils(env);
/frameworks/av/media/libstagefright/http/
H A DHTTPHelper.cpp39 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
42 env, env->FindClass("android/media/MediaHTTPService"));
45 jmethodID constructID = env->GetMethodID(clazz.get(), "<init>", "()V");
49 env, env->NewObject(clazz.get(), constructID));
54 env->GetMethodID(clazz.get(), "asBinder", "()Landroid/os/IBinder;");
58 env, env->CallObjectMethod(httpServiceObj.get(), asBinderID));
62 ibinderForJavaObject(env, httpServiceBinderOb
[all...]
/frameworks/base/core/jni/android/graphics/
H A DCanvasProperty.cpp29 static jlong createFloat(JNIEnv* env, jobject clazz, jfloat initialValue) { argument
33 static jlong createPaint(JNIEnv* env, jobject clazz, jlong paintPtr) { argument
47 int register_android_graphics_CanvasProperty(JNIEnv* env) { argument
48 return RegisterMethodsOrDie(env, "android/graphics/CanvasProperty", gMethods,
H A DPorterDuff.cpp34 static jlong CreateXfermode(JNIEnv* env, jobject, jint modeHandle) { argument
65 int register_android_graphics_PorterDuff(JNIEnv* env) { argument
66 return RegisterMethodsOrDie(env, "android/graphics/PorterDuffXfermode", methods, NELEM(methods));
H A DXfermode.cpp27 static void finalizer(JNIEnv* env, jobject, jlong objHandle) argument
40 int register_android_graphics_Xfermode(JNIEnv* env) { argument
41 android::RegisterMethodsOrDie(env, "android/graphics/Xfermode", gXfermodeMethods,
/frameworks/base/core/tests/coretests/apks/install_jni_lib/
H A Dcom_android_frameworks_coretests_JNITest.cpp30 int register_com_android_frameworks_coretests_JNITests(JNIEnv* env) { argument
31 return jniRegisterNativeMethods(env, "com/android/frameworks/coretests/JNITests", sMethods,
/frameworks/base/media/jni/
H A Dandroid_media_SyncParams.cpp23 void SyncParams::fields_t::init(JNIEnv *env) { argument
24 jclass lclazz = env->FindClass("android/media/SyncParams");
29 clazz = (jclass)env->NewGlobalRef(lclazz);
34 constructID = env->GetMethodID(clazz, "<init>", "()V");
36 sync_source = env->GetFieldID(clazz, "mSyncSource", "I");
37 audio_adjust_mode = env->GetFieldID(clazz, "mAudioAdjustMode", "I");
38 tolerance = env->GetFieldID(clazz, "mTolerance", "F");
39 frame_rate = env->GetFieldID(clazz, "mFrameRate", "F");
40 set = env->GetFieldID(clazz, "mSet", "I");
43 env
54 exit(JNIEnv *env) argument
59 fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) argument
72 asJobject(JNIEnv *env, const fields_t& fields) argument
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageEncoder.java53 public void process(FilterContext env) { argument
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/text/
H A DStringLogger.java43 public void process(FilterContext env) { argument
H A DStringSource.java48 public void process(FilterContext env) { argument
49 Frame output = env.getFrameManager().newFrame(mOutputFormat);
H A DToUpperCase.java47 public void process(FilterContext env) { argument
51 Frame output = env.getFrameManager().newFrame(mOutputFormat);
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp24 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, argument
26 if (NULL == env || NULL == jbitmap) {
31 GraphicsJNI::getSkBitmap(env, jbitmap, &bm);
60 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { argument
61 if (NULL == env || NULL == jbitmap) {
65 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap);
84 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap) { argument
85 if (NULL == env || NULL == jbitmap) {
89 SkPixelRef* pixelRef = GraphicsJNI::refSkPixelRef(env, jbitmap);

Completed in 370 milliseconds

1234567891011>>