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

12345678

/frameworks/base/voip/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/services/jni/
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 Donload.cpp23 int register_android_server_AlarmManagerService(JNIEnv* env);
24 int register_android_server_BatteryService(JNIEnv* env);
25 int register_android_server_InputApplicationHandle(JNIEnv* env);
26 int register_android_server_InputWindowHandle(JNIEnv* env);
27 int register_android_server_InputManager(JNIEnv* env);
28 int register_android_server_LightsService(JNIEnv* env);
29 int register_android_server_PowerManagerService(JNIEnv* env);
30 int register_android_server_SerialService(JNIEnv* env);
31 int register_android_server_UsbDeviceManager(JNIEnv* env);
32 int register_android_server_UsbHostManager(JNIEnv* env);
43 JNIEnv* env = NULL; local
[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",
/frameworks/base/core/jni/android/graphics/
H A DLayerRasterizer.cpp6 static SkRasterizer* create(JNIEnv* env, jobject) { argument
10 static void addLayer(JNIEnv* env, jobject, SkLayerRasterizer* layer, const SkPaint* paint, float dx, float dy) { argument
26 int register_android_graphics_LayerRasterizer(JNIEnv* env) argument
28 return android::AndroidRuntime::registerNativeMethods(env,
H A DPorterDuff.cpp34 static SkXfermode* CreateXfermode(JNIEnv* env, jobject, argument
45 int register_android_graphics_PorterDuff(JNIEnv* env) { argument
46 int result = AndroidRuntime::registerNativeMethods(env,
H A DRasterizer.cpp34 static void finalizer(JNIEnv* env, jobject clazz, SkRasterizer* obj) { argument
44 int register_android_graphics_Rasterizer(JNIEnv* env) { argument
45 int result = AndroidRuntime::registerNativeMethods(env, "android/graphics/Rasterizer", methods,
H A DDrawFilter.cpp36 static void finalizer(JNIEnv* env, jobject clazz, SkDrawFilter* obj) { argument
40 static SkDrawFilter* CreatePaintFlagsDF(JNIEnv* env, jobject clazz, argument
62 #define REG(env, name, array) \
63 result = android::AndroidRuntime::registerNativeMethods(env, name, array, SK_ARRAY_COUNT(array)); \
67 int register_android_graphics_DrawFilter(JNIEnv* env) { argument
70 REG(env, "android/graphics/DrawFilter", drawfilter_methods);
71 REG(env, "android/graphics/PaintFlagsDrawFilter", paintflags_methods);
H A DXfermode.cpp29 static void finalizer(JNIEnv* env, jobject, SkXfermode* obj) argument
34 static SkXfermode* avoid_create(JNIEnv* env, jobject, SkColor opColor, argument
40 static SkXfermode* pixelxor_create(JNIEnv* env, jobject, SkColor opColor) argument
62 #define REG(env, name, array) \
63 result = android::AndroidRuntime::registerNativeMethods(env, name, array, \
67 int register_android_graphics_Xfermode(JNIEnv* env) { argument
70 REG(env, "android/graphics/Xfermode", gXfermodeMethods);
71 REG(env, "android/graphics/AvoidXfermode", gAvoidMethods);
72 REG(env, "android/graphics/PixelXorXfermode", gPixelXorMethods);
/frameworks/base/core/jni/
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 Dandroid_database_SQLiteDebug.cpp39 static void nativeGetPagerStats(JNIEnv *env, jobject clazz, jobject statsObj) argument
49 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.memoryUsed, memoryUsed);
50 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.pageCacheOverflow,
52 env->SetIntField(statsObj, gSQLiteDebugPagerStatsClassInfo.largestMemAlloc, largestMemAlloc);
66 var = env->FindClass(className); \
70 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
73 int register_android_database_SQLiteDebug(JNIEnv *env) argument
85 return AndroidRuntime::registerNativeMethods(env, "android/database/sqlite/SQLiteDebug",
H A Dandroid_database_SQLiteGlobal.cpp70 static jint nativeReleaseMemory(JNIEnv* env, jclass clazz) { argument
81 int register_android_database_SQLiteGlobal(JNIEnv *env) argument
85 return AndroidRuntime::registerNativeMethods(env, "android/database/sqlite/SQLiteGlobal",
H A Dandroid_graphics_PixelFormat.cpp43 JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject)
70 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
75 env->SetIntField(pixelFormatObject, offsets.bytesPerPixel, info.bytesPerPixel);
76 env->SetIntField(pixelFormatObject, offsets.bitsPerPixel, info.bitsPerPixel);
82 static void nativeClassInit(JNIEnv* env, jclass clazz);
92 void nativeClassInit(JNIEnv* env, jclass clazz) argument
94 offsets.bytesPerPixel = env->GetFieldID(clazz, "bytesPerPixel", "I");
95 offsets.bitsPerPixel = env->GetFieldID(clazz, "bitsPerPixel", "I");
98 int register_android_graphics_PixelFormat(JNIEnv* env) argument
100 return AndroidRuntime::registerNativeMethods(env,
42 android_graphics_getPixelFormatInfo( JNIEnv* env, jobject clazz, jint format, jobject pixelFormatObject) argument
[all...]
H A Dandroid_hardware_UsbDevice.cpp30 android_hardware_UsbDevice_get_device_id(JNIEnv *env, jobject clazz, jstring name) argument
32 const char *nameStr = env->GetStringUTFChars(name, NULL);
34 env->ReleaseStringUTFChars(name, nameStr);
39 android_hardware_UsbDevice_get_device_name(JNIEnv *env, jobject clazz, jint id) argument
42 jstring result = env->NewStringUTF(name);
55 int register_android_hardware_UsbDevice(JNIEnv *env) argument
57 return AndroidRuntime::registerNativeMethods(env, "android/hardware/usb/UsbDevice",
H A Dandroid_os_SystemClock.cpp38 static jboolean android_os_SystemClock_setCurrentTimeMillis(JNIEnv* env, argument
47 static jlong android_os_SystemClock_uptimeMillis(JNIEnv* env, argument
56 static jlong android_os_SystemClock_elapsedRealtime(JNIEnv* env, argument
65 static jlong android_os_SystemClock_currentThreadTimeMillis(JNIEnv* env, argument
85 static jlong android_os_SystemClock_currentThreadTimeMicro(JNIEnv* env, argument
105 static jlong android_os_SystemClock_currentTimeMicro(JNIEnv* env, argument
117 static jlong android_os_SystemClock_elapsedRealtimeNano(JNIEnv* env, argument
143 int register_android_os_SystemClock(JNIEnv* env) argument
145 return AndroidRuntime::registerNativeMethods(env,
H A Dandroid_os_Trace.cpp27 static jlong android_os_Trace_nativeGetEnabledTags(JNIEnv* env, jclass clazz) { argument
31 static void android_os_Trace_nativeTraceCounter(JNIEnv* env, jclass clazz, argument
33 ScopedUtfChars name(env, nameStr);
37 static void android_os_Trace_nativeTraceBegin(JNIEnv* env, jclass clazz, argument
39 ScopedUtfChars name(env, nameStr);
43 static void android_os_Trace_nativeTraceEnd(JNIEnv* env, jclass clazz, argument
64 int register_android_os_Trace(JNIEnv* env) { argument
65 int res = jniRegisterNativeMethods(env, "android/os/Trace",
H A Dandroid_server_NetworkManagementSocketTagger.cpp33 static jint QTagUid_tagSocketFd(JNIEnv* env, jclass, argument
36 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor);
38 if (env->ExceptionOccurred() != NULL) {
50 static int QTagUid_untagSocketFd(JNIEnv* env, jclass, argument
52 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor);
54 if (env->ExceptionOccurred() != NULL) {
66 static jint QTagUid_setCounterSet(JNIEnv* env, jclass, argument
76 static jint QTagUid_deleteTagData(JNIEnv* env, jclass, argument
93 int register_android_server_NetworkManagementSocketTagger(JNIEnv* env) { argument
94 return jniRegisterNativeMethods(env, "co
[all...]
/frameworks/base/core/tests/coretests/apks/install_jni_lib/
H A Dcom_android_frameworks_coretests_JNITest.cpp30 int register_com_android_framework_coretests_JNITests(JNIEnv* env) { argument
31 return jniRegisterNativeMethods(env, "com/android/framework/coretests/JNITests", sMethods,
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/
H A DImageEncoder.java58 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.java50 public void process(FilterContext env) { argument
51 Frame output = env.getFrameManager().newFrame(mOutputFormat);
H A DToUpperCase.java45 public void process(FilterContext env) { argument
49 Frame output = env.getFrameManager().newFrame(mOutputFormat);
/frameworks/base/native/graphics/jni/
H A Dbitmap.cpp20 int AndroidBitmap_getInfo(JNIEnv* env, jobject jbitmap, argument
22 if (NULL == env || NULL == jbitmap) {
26 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap);
58 int AndroidBitmap_lockPixels(JNIEnv* env, jobject jbitmap, void** addrPtr) { argument
59 if (NULL == env || NULL == jbitmap) {
63 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap);
81 int AndroidBitmap_unlockPixels(JNIEnv* env, jobject jbitmap) { argument
82 if (NULL == env || NULL == jbitmap) {
86 SkBitmap* bm = GraphicsJNI::getNativeBitmap(env, jbitmap);
/frameworks/base/cmds/system_server/library/
H A Dsystem_init.cpp85 JNIEnv* env = runtime->getJNIEnv(); local
86 if (env == NULL) {
89 jclass clazz = env->FindClass("com/android/server/SystemServer");
93 jmethodID methodId = env->GetStaticMethodID(clazz, "init2", "()V");
97 env->CallStaticVoidMethod(clazz, methodId);

Completed in 41 milliseconds

12345678