Searched refs:env (Results 26 - 50 of 316) sorted by relevance

1234567891011>>

/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp15 void doThrowNPE(JNIEnv* env) { argument
16 jniThrowNullPointerException(env, NULL);
19 void doThrowAIOOBE(JNIEnv* env) { argument
20 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL);
23 void doThrowRE(JNIEnv* env, const char* msg) { argument
24 jniThrowRuntimeException(env, msg);
27 void doThrowIAE(JNIEnv* env, const char* msg) { argument
28 jniThrowException(env, "java/lang/IllegalArgumentException", msg);
31 void doThrowISE(JNIEnv* env, const char* msg) { argument
32 jniThrowException(env, "jav
35 doThrowOOME(JNIEnv* env, const char* msg) argument
39 doThrowIOE(JNIEnv* env, const char* msg) argument
43 hasException(JNIEnv *env) argument
54 AutoJavaFloatArray(JNIEnv* env, jfloatArray array, int minLength, JNIAccess access) argument
74 AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength) argument
93 AutoJavaShortArray(JNIEnv* env, jshortArray array, int minLength, JNIAccess access) argument
113 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength) argument
188 get_jrect(JNIEnv* env, jobject obj, int* L, int* T, int* R, int* B) argument
198 set_jrect(JNIEnv* env, jobject obj, int L, int T, int R, int B) argument
208 jrect_to_irect(JNIEnv* env, jobject obj, SkIRect* ir) argument
219 irect_to_jrect(const SkIRect& ir, JNIEnv* env, jobject obj) argument
229 jrectf_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
240 jrect_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
251 rect_to_jrectf(const SkRect& r, JNIEnv* env, jobject obj) argument
261 jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
270 ipoint_to_jpoint(const SkIPoint& ir, JNIEnv* env, jobject obj) argument
278 jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
287 point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) argument
343 getNativeBitmap(JNIEnv* env, jobject bitmap) argument
353 getNativeBitmapColorType(JNIEnv* env, jobject jconfig) argument
363 getNativeCanvas(JNIEnv* env, jobject canvas) argument
373 getNativePaint(JNIEnv* env, jobject paint) argument
383 getNativeTypeface(JNIEnv* env, jobject paint) argument
392 getNativeRegion(JNIEnv* env, jobject region) argument
417 createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, int bitmapCreateFlags, jbyteArray ninePatchChunk, jobject ninePatchInsets, int density) argument
438 reinitBitmap(JNIEnv* env, jobject javaBitmap, SkBitmap* bitmap, bool isPremultiplied) argument
449 getBitmapAllocationByteCount(JNIEnv* env, jobject javaBitmap) argument
454 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
465 createRegion(JNIEnv* env, SkRegion* region) argument
476 JNIEnv* env = NULL; local
487 AndroidPixelRef(JNIEnv* env, const SkImageInfo& info, void* storage, size_t rowBytes, jbyteArray storageObj, SkColorTable* ctable) argument
527 JNIEnv* env = vm2env(fVM); local
562 JNIEnv *env = vm2env(fVM); local
591 JNIEnv *env = vm2env(fVM); local
605 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
638 JavaPixelAllocator(JNIEnv* env) argument
648 JNIEnv* env = vm2env(fVM); local
657 JavaHeapBitmapRef(JNIEnv* env, SkBitmap* nativeBitmap, jbyteArray buffer) argument
676 make_globalref(JNIEnv* env, const char classname[]) argument
683 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument
691 register_android_graphics_Graphics(JNIEnv* env) argument
[all...]
H A DMatrix.h26 extern SkMatrix* android_graphics_Matrix_getSkMatrix(JNIEnv* env, jobject matrixObj);
H A DRegion.h26 extern SkRegion* android_graphics_Region_getSkRegion(JNIEnv* env, jobject regionObj);
H A DColorFilter.cpp34 static void finalizer(JNIEnv* env, jobject clazz, jlong skFilterHandle) { argument
39 static jlong CreatePorterDuffFilter(JNIEnv* env, jobject, jint srcColor, argument
45 static jlong CreateLightingFilter(JNIEnv* env, jobject, jint mul, jint add) { argument
49 static jlong CreateColorMatrixFilter(JNIEnv* env, jobject, jfloatArray jarray) { argument
50 AutoJavaFloatArray autoArray(env, jarray, 20);
77 #define REG(env, name, array) \
78 result = android::AndroidRuntime::registerNativeMethods(env, name, array, \
82 int register_android_graphics_ColorFilter(JNIEnv* env) { argument
85 REG(env, "android/graphics/ColorFilter", colorfilter_methods);
86 REG(env, "androi
[all...]
H A DCreateJavaOutputStreamAdaptor.cpp17 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) argument
18 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) {
20 fCapacity = env->GetArrayLength(ar);
27 JNIEnv* env = fEnv; local
62 JNIEnv* env = fEnv; local
75 jint n = env->CallIntMethod(fJavaInputStream,
77 if (env->ExceptionCheck()) {
78 env->ExceptionDescribe();
79 env->ExceptionClear();
91 env
113 JNIEnv* env = fEnv; local
138 CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument
166 CopyJavaInputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument
182 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument
192 JNIEnv* env = fEnv; local
242 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument
254 findClassCheck(JNIEnv* env, const char classname[]) argument
260 getMethodIDCheck(JNIEnv* env, jclass clazz, const char methodname[], const char type[]) argument
267 register_android_graphics_CreateJavaOutputStreamAdaptor(JNIEnv* env) argument
[all...]
H A DMovie.cpp26 jobject create_jmovie(JNIEnv* env, SkMovie* moov) { argument
30 return env->NewObject(gMovie_class, gMovie_constructorMethodID,
34 static SkMovie* J2Movie(JNIEnv* env, jobject movie) { argument
35 SkASSERT(env);
37 SkASSERT(env->IsInstanceOf(movie, gMovie_class));
38 SkMovie* m = (SkMovie*)env->GetLongField(movie, gMovie_nativeInstanceID);
45 static jint movie_width(JNIEnv* env, jobject movie) { argument
46 NPE_CHECK_RETURN_ZERO(env, movie);
47 return static_cast<jint>(J2Movie(env, movie)->width());
50 static jint movie_height(JNIEnv* env, jobjec argument
55 movie_isOpaque(JNIEnv* env, jobject movie) argument
60 movie_duration(JNIEnv* env, jobject movie) argument
65 movie_setTime(JNIEnv* env, jobject movie, jint ms) argument
70 movie_draw(JNIEnv* env, jobject movie, jobject canvas, jfloat fx, jfloat fy, jobject jpaint) argument
84 movie_decodeAsset(JNIEnv* env, jobject clazz, jlong native_asset) argument
94 movie_decodeStream(JNIEnv* env, jobject clazz, jobject istream) argument
117 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, jint offset, jint length) argument
134 movie_destructor(JNIEnv* env, jobject, jlong movieHandle) argument
164 register_android_graphics_Movie(JNIEnv* env) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_content_res_ObbScanner.cpp39 static void android_content_res_ObbScanner_getObbInfo(JNIEnv* env, jobject clazz, jstring file, argument
42 const char* filePath = env->GetStringUTFChars(file, NULL);
46 env->ReleaseStringUTFChars(file, filePath);
47 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
51 env->ReleaseStringUTFChars(file, filePath);
55 jstring packageName = env->NewStringUTF(packageNameStr);
57 jniThrowException(env, "java/io/IOException", "Could not read OBB file");
61 env->SetObjectField(obbInfo, gObbInfoClassInfo.packageName, packageName);
62 env->SetIntField(obbInfo, gObbInfoClassInfo.version, obb->getVersion());
63 env
91 register_android_content_res_ObbScanner(JNIEnv* env) argument
[all...]
H A Dandroid_media_ToneGenerator.cpp41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument
44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
47 jniThrowRuntimeException(env, "Method called after release()");
54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument
57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
62 jniThrowRuntimeException(env, "Method called after release()");
68 static jint android_media_ToneGenerator_getAudioSessionId(JNIEnv *env, jobject thiz) { argument
69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetLongField(thiz,
72 jniThrowRuntimeException(env, "Method called after release()");
78 static void android_media_ToneGenerator_release(JNIEnv *env, jobjec argument
88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument
111 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument
136 register_android_media_ToneGenerator(JNIEnv *env) argument
[all...]
H A Dandroid_hardware_SoundTrigger.cpp162 JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz);
175 JNISoundTriggerCallback::JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
180 jclass clazz = env->GetObjectClass(thiz);
185 mClass = (jclass)env->NewGlobalRef(clazz);
189 mObject = env->NewGlobalRef(weak_thiz);
195 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
196 env->DeleteGlobalRef(mObject);
197 env->DeleteGlobalRef(mClass);
202 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
207 jData = env
293 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
319 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
330 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
342 getSoundTrigger(JNIEnv* env, jobject thiz) argument
350 setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) argument
367 android_hardware_SoundTrigger_listModules(JNIEnv *env, jobject clazz, jobject jModules) argument
443 android_hardware_SoundTrigger_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
461 android_hardware_SoundTrigger_detach(JNIEnv *env, jobject thiz) argument
473 android_hardware_SoundTrigger_finalize(JNIEnv *env, jobject thiz) argument
484 android_hardware_SoundTrigger_loadSoundModel(JNIEnv *env, jobject thiz, jobject jSoundModel, jintArray jHandle) argument
647 android_hardware_SoundTrigger_unloadSoundModel(JNIEnv *env, jobject thiz, jint jHandle) argument
662 android_hardware_SoundTrigger_startRecognition(JNIEnv *env, jobject thiz, jint jHandle, jobject jConfig) argument
755 android_hardware_SoundTrigger_stopRecognition(JNIEnv *env, jobject thiz, jint jHandle) argument
799 register_android_hardware_SoundTrigger(JNIEnv *env) argument
[all...]
H A Dandroid_util_Binder.cpp153 static void incRefsCreated(JNIEnv* env) argument
158 env->CallStaticVoidMethod(gBinderInternalOffsets.mClass,
165 static JavaVM* jnienv_to_javavm(JNIEnv* env) argument
168 return env->GetJavaVM(&vm) >= 0 ? vm : NULL;
173 JNIEnv* env; local
174 return vm->GetEnv((void **)&env, JNI_VERSION_1_4) >= 0 ? env : NULL;
177 static void report_exception(JNIEnv* env, jthrowable excep, const char* msg) argument
179 env->ExceptionClear();
181 jstring tagstr = env
232 JavaBBinder(JNIEnv* env, jobject object) argument
255 JNIEnv* env = javavm_to_jnienv(mVM); local
262 JNIEnv* env = javavm_to_jnienv(mVM); local
329 get(JNIEnv* env, jobject obj) argument
380 JavaDeathRecipient(JNIEnv* env, jobject object, const sp<DeathRecipientList>& list) argument
397 JNIEnv* env = javavm_to_jnienv(mVM); local
428 JNIEnv* env = javavm_to_jnienv(mVM); local
444 JNIEnv* env = javavm_to_jnienv(mVM); local
465 JNIEnv* env = javavm_to_jnienv(mVM); local
540 JNIEnv* env = javavm_to_jnienv((JavaVM*)cleanupCookie); local
546 javaObjectForIBinder(JNIEnv* env, const sp<IBinder>& val) argument
602 ibinderForJavaObject(JNIEnv* env, jobject obj) argument
621 newParcelFileDescriptor(JNIEnv* env, jobject fileDesc) argument
627 set_dalvik_blockguard_policy(JNIEnv* env, jint strict_policy) argument
636 signalExceptionForError(JNIEnv* env, jobject obj, status_t err, bool canThrowRemoteException) argument
745 android_os_Binder_getCallingPid(JNIEnv* env, jobject clazz) argument
750 android_os_Binder_getCallingUid(JNIEnv* env, jobject clazz) argument
755 android_os_Binder_clearCallingIdentity(JNIEnv* env, jobject clazz) argument
760 android_os_Binder_restoreCallingIdentity(JNIEnv* env, jobject clazz, jlong token) argument
774 android_os_Binder_setThreadStrictModePolicy(JNIEnv* env, jobject clazz, jint policyMask) argument
779 android_os_Binder_getThreadStrictModePolicy(JNIEnv* env, jobject clazz) argument
784 android_os_Binder_flushPendingCommands(JNIEnv* env, jobject clazz) argument
789 android_os_Binder_init(JNIEnv* env, jobject obj) argument
801 android_os_Binder_destroy(JNIEnv* env, jobject obj) argument
837 int_register_android_os_Binder(JNIEnv* env) argument
864 android_os_Debug_getLocalObjectCount(JNIEnv* env, jobject clazz) argument
869 android_os_Debug_getProxyObjectCount(JNIEnv* env, jobject clazz) argument
874 android_os_Debug_getDeathObjectCount(JNIEnv* env, jobject clazz) argument
885 android_os_BinderInternal_getContextObject(JNIEnv* env, jobject clazz) argument
891 android_os_BinderInternal_joinThreadPool(JNIEnv* env, jobject clazz) argument
897 android_os_BinderInternal_disableBackgroundScheduling(JNIEnv* env, jobject clazz, jboolean disable) argument
903 android_os_BinderInternal_handleGc(JNIEnv* env, jobject clazz) argument
921 int_register_android_os_BinderInternal(JNIEnv* env) argument
942 android_os_BinderProxy_pingBinder(JNIEnv* env, jobject obj) argument
953 android_os_BinderProxy_getInterfaceDescriptor(JNIEnv* env, jobject obj) argument
965 android_os_BinderProxy_isBinderAlive(JNIEnv* env, jobject obj) argument
1078 android_os_BinderProxy_transact(JNIEnv* env, jobject obj, jint code, jobject dataObj, jobject replyObj, jint flags) argument
1134 android_os_BinderProxy_linkToDeath(JNIEnv* env, jobject obj, jobject recipient, jint flags) argument
1165 android_os_BinderProxy_unlinkToDeath(JNIEnv* env, jobject obj, jobject recipient, jint flags) argument
1214 android_os_BinderProxy_destroy(JNIEnv* env, jobject obj) argument
1245 int_register_android_os_BinderProxy(JNIEnv* env) argument
1288 register_android_os_Binder(JNIEnv* env) argument
[all...]
H A Dandroid_backup_FileBackupHelperBase.cpp29 ctor(JNIEnv* env, jobject clazz) argument
35 dtor(JNIEnv* env, jobject clazz, jlong ptr) argument
41 performBackup_native(JNIEnv* env, jobject clazz, jobject oldState, jlong data, argument
47 int oldStateFD = oldState != NULL ? jniGetFDFromFileDescriptor(env, oldState) : -1;
48 int newStateFD = jniGetFDFromFileDescriptor(env, newState);
51 const int fileCount = env->GetArrayLength(files);
54 filesUTF[i] = env->GetStringUTFChars((jstring)env->GetObjectArrayElement(files, i), NULL);
57 const int keyCount = env->GetArrayLength(keys);
60 keysUTF[i] = env
80 writeFile_native(JNIEnv* env, jobject clazz, jlong ptr, jstring filenameObj, jlong backupReaderPtr) argument
97 writeSnapshot_native(JNIEnv* env, jobject clazz, jlong ptr, jobject fileDescriptor) argument
119 register_android_backup_FileBackupHelperBase(JNIEnv* env) argument
[all...]
H A Dandroid_media_RemoteDisplay.cpp53 NativeRemoteDisplayClient(JNIEnv* env, jobject remoteDisplayObj) : argument
54 mRemoteDisplayObjGlobal(env->NewGlobalRef(remoteDisplayObj)) {
59 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
60 env->DeleteGlobalRef(mRemoteDisplayObjGlobal);
66 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
68 jobject surfaceObj = android_view_Surface_createFromIGraphicBufferProducer(env, bufferProducer);
75 env->CallVoidMethod(mRemoteDisplayObjGlobal,
78 env->DeleteLocalRef(surfaceObj);
79 checkAndClearExceptionFromCallback(env, "notifyDisplayConnected");
83 JNIEnv* env local
91 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
101 checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) argument
137 nativeListen(JNIEnv* env, jobject remoteDisplayObj, jstring ifaceStr) argument
161 nativePause(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument
166 nativeResume(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument
171 nativeDispose(JNIEnv* env, jobject remoteDisplayObj, jlong ptr) argument
189 register_android_media_RemoteDisplay(JNIEnv* env) argument
[all...]
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_view_InputChannel.h26 typedef void (*InputChannelObjDisposeCallback)(JNIEnv* env, jobject inputChannelObj,
29 extern sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env,
35 extern void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobject inputChannelObj,
H A Dandroid_view_KeyEvent.h30 extern jobject android_view_KeyEvent_fromNative(JNIEnv* env, const KeyEvent* event);
34 extern status_t android_view_KeyEvent_toNative(JNIEnv* env, jobject eventObj,
41 extern status_t android_view_KeyEvent_recycle(JNIEnv* env, jobject eventObj);
H A Dandroid_view_MotionEvent.h29 extern jobject android_view_MotionEvent_obtainAsCopy(JNIEnv* env, const MotionEvent* event);
33 extern MotionEvent* android_view_MotionEvent_getNativePtr(JNIEnv* env, jobject eventObj);
37 extern status_t android_view_MotionEvent_recycle(JNIEnv* env, jobject eventObj);
/frameworks/base/media/mca/filterfw/jni/
H A Djni_util.cpp35 JavaObject::JavaObject(jobject object, JNIEnv* env)
39 object_ = env->NewGlobalRef(object_);
66 JNIEnv* env = GetCurrentJNIEnv();
67 if (!env)
70 env->DeleteGlobalRef(object_);
91 JNIEnv* env = NULL;
92 const jint result = vm->GetEnv(reinterpret_cast<void**>(&env),
94 return result == JNI_OK ? env : NULL;
98 jstring ToJString(JNIEnv* env, const std::string& value) { argument
99 return env
102 ToCppString(JNIEnv* env, jstring value) argument
121 IsJavaInstanceOf(JNIEnv* env, jobject object, const std::string& class_name) argument
127 CreateJObject(JNIEnv* env, const std::string& class_name, const std::string& signature, T value) argument
133 ToCValue(JNIEnv* env, jobject object) argument
162 ToJObject(JNIEnv* env, const Value& value) argument
[all...]
H A Djni_gl_environment.h27 Java_android_filterfw_core_GLEnvironment_nativeAllocate(JNIEnv* env, jobject thiz);
30 Java_android_filterfw_core_GLEnvironment_nativeDeallocate(JNIEnv* env, jobject thiz);
33 Java_android_filterfw_core_GLEnvironment_nativeInitWithNewContext(JNIEnv* env, jobject thiz);
36 Java_android_filterfw_core_GLEnvironment_nativeInitWithCurrentContext(JNIEnv* env, jobject thiz);
39 Java_android_filterfw_core_GLEnvironment_nativeIsActive(JNIEnv* env, jobject thiz);
42 Java_android_filterfw_core_GLEnvironment_nativeIsContextActive(JNIEnv* env, jobject thiz);
45 Java_android_filterfw_core_GLEnvironment_nativeIsAnyContextActive(JNIEnv* env, jclass clazz);
48 Java_android_filterfw_core_GLEnvironment_nativeActivate(JNIEnv* env, jobject thiz);
51 Java_android_filterfw_core_GLEnvironment_nativeDeactivate(JNIEnv* env, jobject thiz);
54 Java_android_filterfw_core_GLEnvironment_nativeSwapBuffers(JNIEnv* env, jobjec
[all...]
H A Djni_native_program.h27 Java_android_filterfw_core_NativeProgram_allocate(JNIEnv* env, jobject thiz);
30 Java_android_filterfw_core_NativeProgram_deallocate(JNIEnv* env, jobject thiz);
33 Java_android_filterfw_core_NativeProgram_nativeInit(JNIEnv* env, jobject thiz);
36 Java_android_filterfw_core_NativeProgram_openNativeLibrary(JNIEnv* env,
41 Java_android_filterfw_core_NativeProgram_bindInitFunction(JNIEnv* env,
46 Java_android_filterfw_core_NativeProgram_bindSetValueFunction(JNIEnv* env,
51 Java_android_filterfw_core_NativeProgram_bindGetValueFunction(JNIEnv* env,
56 Java_android_filterfw_core_NativeProgram_bindProcessFunction(JNIEnv* env,
61 Java_android_filterfw_core_NativeProgram_bindResetFunction(JNIEnv* env,
66 Java_android_filterfw_core_NativeProgram_bindTeardownFunction(JNIEnv* env,
[all...]
/frameworks/base/services/core/jni/
H A Dcom_android_server_input_InputApplicationHandle.cpp44 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
45 env->DeleteWeakGlobalRef(mObjWeak);
48 jobject NativeInputApplicationHandle::getInputApplicationHandleObjLocalRef(JNIEnv* env) { argument
49 return env->NewLocalRef(mObjWeak);
53 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
54 jobject obj = env->NewLocalRef(mObjWeak);
64 jstring nameObj = jstring(env->GetObjectField(obj,
67 const char* nameStr = env->GetStringUTFChars(nameObj, NULL);
69 env->ReleaseStringUTFChars(nameObj, nameStr);
70 env
85 android_server_InputApplicationHandle_getHandle( JNIEnv* env, jobject inputApplicationHandleObj) argument
110 android_server_InputApplicationHandle_nativeDispose(JNIEnv* env, jobject obj) argument
137 register_android_server_InputApplicationHandle(JNIEnv* env) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_mtp_MtpDevice.cpp89 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) argument
91 return (MtpDevice*)env->GetLongField(javaDevice, field_context);
94 static void checkAndClearExceptionFromCallback(JNIEnv* env, const char* methodName) { argument
95 if (env->ExceptionCheck()) {
97 LOGE_EX(env);
98 env->ExceptionClear();
105 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument
107 const char *deviceNameStr = env->GetStringUTFChars(deviceName, NULL);
113 env->ReleaseStringUTFChars(deviceName, deviceNameStr);
116 env
121 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument
132 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument
169 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument
188 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jint storageID) argument
222 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument
242 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument
304 JNIEnv *env; member in struct:get_object_callback_data
316 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jint objectSize) argument
338 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument
356 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument
367 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument
377 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument
387 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument
430 register_android_mtp_MtpDevice(JNIEnv *env) argument
[all...]
/frameworks/opt/net/voip/src/jni/rtp/
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/include/android_runtime/
H A Dandroid_graphics_SurfaceTexture.h29 extern sp<ANativeWindow> android_SurfaceTexture_getNativeWindow(JNIEnv* env, jobject thiz);
30 extern bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz);
33 extern sp<GLConsumer> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz);
36 extern sp<IGraphicBufferProducer> SurfaceTexture_getProducer(JNIEnv* env, jobject thiz);
H A Dandroid_view_Surface.h31 JNIEnv* env, jobject surfaceObj);
34 extern bool android_view_Surface_isInstanceOf(JNIEnv* env, jobject obj);
37 extern sp<Surface> android_view_Surface_getSurface(JNIEnv* env, jobject surfaceObj);
40 extern jobject android_view_Surface_createFromIGraphicBufferProducer(JNIEnv* env,
/frameworks/base/packages/PrintSpooler/jni/
H A Dcom_android_printspooler_util_BitmapSerializeUtils.cpp67 static void throwException(JNIEnv* env, const char* className, const char* message) { argument
68 jclass exceptionClass = env->FindClass(className);
69 env->ThrowNew(exceptionClass, message);
72 static void throwIllegalStateException(JNIEnv* env, char *message) { argument
74 throwException(env, className, message);
77 static void throwIllegalArgumentException(JNIEnv* env, char* message) { argument
79 throwException(env, className, message);
82 static void readBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) { argument
87 throwIllegalStateException(env, (char*) "Cannot read bitmap info");
93 int result = AndroidBitmap_getInfo(env, jbitma
130 writeBitmapPixels(JNIEnv* env, jclass clazz, jobject jbitmap, jint fd) argument
174 register_com_android_printspooler_util_BitmapSerializeUtils(JNIEnv* env) argument
182 JNIEnv *env = NULL; local
[all...]

Completed in 341 milliseconds

1234567891011>>