Searched refs:env (Results 1 - 25 of 251) sorted by relevance

1234567891011

/frameworks/base/services/jni/
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_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/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) {
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_buffer.cpp20 char* GetJBufferData(JNIEnv* env, jobject buffer, int* size) { argument
21 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
24 jfieldID ptr_field = env->GetFieldID(base_class, "mDataPointer", "J");
25 jfieldID size_field = env->GetFieldID(base_class, "mSize", "I");
28 char* data = reinterpret_cast<char*>(env->GetLongField(buffer, ptr_field));
30 *size = env->GetIntField(buffer, size_field);
34 env->DeleteLocalRef(base_class);
39 bool AttachDataToJBuffer(JNIEnv* env, jobject buffer, char* data, int size) { argument
40 jclass base_class = env->FindClass("android/filterfw/core/NativeBuffer");
43 jfieldID ptr_field = env
53 Java_android_filterfw_core_NativeBuffer_allocate(JNIEnv* env, jobject thiz, jint size) argument
58 Java_android_filterfw_core_NativeBuffer_deallocate(JNIEnv* env, jobject thiz, jboolean owns_data) argument
68 Java_android_filterfw_core_NativeBuffer_nativeCopyTo(JNIEnv* env, jobject thiz, jobject new_buffer) argument
[all...]
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...]
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp13 void doThrowNPE(JNIEnv* env) { argument
14 jniThrowNullPointerException(env, NULL);
17 void doThrowAIOOBE(JNIEnv* env) { argument
18 jniThrowException(env, "java/lang/ArrayIndexOutOfBoundsException", NULL);
21 void doThrowRE(JNIEnv* env, const char* msg) { argument
22 jniThrowRuntimeException(env, msg);
25 void doThrowIAE(JNIEnv* env, const char* msg) { argument
26 jniThrowException(env, "java/lang/IllegalArgumentException", msg);
29 void doThrowISE(JNIEnv* env, const char* msg) { argument
30 jniThrowException(env, "jav
33 doThrowOOME(JNIEnv* env, const char* msg) argument
37 doThrowIOE(JNIEnv* env, const char* msg) argument
41 hasException(JNIEnv *env) argument
52 AutoJavaFloatArray(JNIEnv* env, jfloatArray array, int minLength, JNIAccess access) argument
72 AutoJavaIntArray(JNIEnv* env, jintArray array, int minLength) argument
91 AutoJavaShortArray(JNIEnv* env, jshortArray array, int minLength, JNIAccess access) argument
111 AutoJavaByteArray(JNIEnv* env, jbyteArray array, int minLength) argument
177 get_jrect(JNIEnv* env, jobject obj, int* L, int* T, int* R, int* B) argument
187 set_jrect(JNIEnv* env, jobject obj, int L, int T, int R, int B) argument
197 jrect_to_irect(JNIEnv* env, jobject obj, SkIRect* ir) argument
208 irect_to_jrect(const SkIRect& ir, JNIEnv* env, jobject obj) argument
218 jrectf_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
229 jrect_to_rect(JNIEnv* env, jobject obj, SkRect* r) argument
240 rect_to_jrectf(const SkRect& r, JNIEnv* env, jobject obj) argument
250 jpoint_to_ipoint(JNIEnv* env, jobject obj, SkIPoint* point) argument
259 ipoint_to_jpoint(const SkIPoint& ir, JNIEnv* env, jobject obj) argument
267 jpointf_to_point(JNIEnv* env, jobject obj, SkPoint* point) argument
276 point_to_jpointf(const SkPoint& r, JNIEnv* env, jobject obj) argument
284 getNativeBitmap(JNIEnv* env, jobject bitmap) argument
293 getNativeBitmapConfig(JNIEnv* env, jobject jconfig) argument
307 getNativeCanvas(JNIEnv* env, jobject canvas) argument
316 getNativePaint(JNIEnv* env, jobject paint) argument
325 getNativePicture(JNIEnv* env, jobject picture) argument
335 getNativeRegion(JNIEnv* env, jobject region) argument
347 createBitmap(JNIEnv* env, SkBitmap* bitmap, jbyteArray buffer, bool isMutable, jbyteArray ninepatch, jintArray layoutbounds, int density) argument
360 createBitmap(JNIEnv* env, SkBitmap* bitmap, bool isMutable, jbyteArray ninepatch, int density) argument
367 createBitmapRegionDecoder(JNIEnv* env, SkBitmapRegionDecoder* bitmap) argument
378 createRegion(JNIEnv* env, SkRegion* region) argument
389 JNIEnv* env = NULL; local
400 AndroidPixelRef(JNIEnv* env, void* storage, size_t size, jbyteArray storageObj, SkColorTable* ctable) argument
420 JNIEnv* env = vm2env(fVM); local
441 JNIEnv *env = vm2env(fVM); local
465 JNIEnv *env = vm2env(fVM); local
481 allocateJavaPixelRef(JNIEnv* env, SkBitmap* bitmap, SkColorTable* ctable) argument
509 JavaPixelAllocator(JNIEnv* env) argument
519 JNIEnv* env = vm2env(fVM); local
528 JavaHeapBitmapRef(JNIEnv* env, SkBitmap* nativeBitmap, jbyteArray buffer) argument
547 make_globalref(JNIEnv* env, const char classname[]) argument
554 getFieldIDCheck(JNIEnv* env, jclass clazz, const char fieldname[], const char type[]) argument
562 register_android_graphics_Graphics(JNIEnv* env) argument
[all...]
H A DMovie.cpp22 jobject create_jmovie(JNIEnv* env, SkMovie* moov) { argument
26 return env->NewObject(gMovie_class, gMovie_constructorMethodID,
30 static SkMovie* J2Movie(JNIEnv* env, jobject movie) { argument
31 SkASSERT(env);
33 SkASSERT(env->IsInstanceOf(movie, gMovie_class));
34 SkMovie* m = (SkMovie*)env->GetIntField(movie, gMovie_nativeInstanceID);
41 static int movie_width(JNIEnv* env, jobject movie) { argument
42 NPE_CHECK_RETURN_ZERO(env, movie);
43 return J2Movie(env, movie)->width();
46 static int movie_height(JNIEnv* env, jobjec argument
51 movie_isOpaque(JNIEnv* env, jobject movie) argument
56 movie_duration(JNIEnv* env, jobject movie) argument
61 movie_setTime(JNIEnv* env, jobject movie, int ms) argument
66 movie_draw(JNIEnv* env, jobject movie, jobject canvas, jfloat fx, jfloat fy, jobject jpaint) argument
82 movie_decodeStream(JNIEnv* env, jobject clazz, jobject istream) argument
98 movie_decodeByteArray(JNIEnv* env, jobject clazz, jbyteArray byteArray, int offset, int length) argument
115 movie_destructor(JNIEnv* env, jobject, SkMovie* movie) argument
142 register_android_graphics_Movie(JNIEnv* env) argument
[all...]
H A DSurfaceTexture.cpp49 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument
53 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture);
60 env->SetIntField(thiz, fields.surfaceTexture, (int)surfaceTexture.get());
63 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) argument
66 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture));
71 JNIEnv* env, jobject thiz)
73 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz));
79 bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument
81 jclass surfaceTextureClass = env->FindClass(kSurfaceTextureClassPathName);
82 return env
70 android_SurfaceTexture_getNativeWindow( JNIEnv* env, jobject thiz) argument
102 JNISurfaceTextureContext(JNIEnv* env, jobject weakThiz, jclass clazz) argument
110 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
135 JNIEnv* env = getJNIEnv(&needsDetach); local
150 JNIEnv* env = getJNIEnv(&needsDetach); local
163 SurfaceTexture_classInit(JNIEnv* env, jclass clazz) argument
179 SurfaceTexture_init(JNIEnv* env, jobject thiz, jint texName, jobject weakThiz, jboolean allowSynchronous) argument
202 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument
209 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument
216 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument
228 SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) argument
234 SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument
240 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument
249 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument
255 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument
276 register_android_graphics_SurfaceTexture(JNIEnv* env) argument
[all...]
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);
H A DCreateJavaOutputStreamAdaptor.cpp14 JavaInputStreamAdaptor(JNIEnv* env, jobject js, jbyteArray ar) argument
15 : fEnv(env), fJavaInputStream(js), fJavaByteArray(ar) {
17 fCapacity = env->GetArrayLength(ar);
23 JNIEnv* env = fEnv; local
27 env->CallVoidMethod(fJavaInputStream, gInputStream_resetMethodID);
28 if (env->ExceptionCheck()) {
29 env->ExceptionDescribe();
30 env->ExceptionClear();
38 JNIEnv* env = fEnv; local
46 jint n = env
78 JNIEnv* env = fEnv; local
96 JNIEnv* env = fEnv; local
109 JNIEnv* env = fEnv; local
145 CreateJavaInputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage, int markSize) argument
187 SkJavaOutputStream(JNIEnv* env, jobject stream, jbyteArray storage) argument
193 JNIEnv* env = fEnv; local
237 CreateJavaOutputStreamAdaptor(JNIEnv* env, jobject stream, jbyteArray storage) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_os_Parcel.h25 extern Parcel* parcelForJavaObject(JNIEnv* env, jobject obj);
26 extern jobject createJavaParcelObject(JNIEnv* env);
27 extern void recycleJavaParcelObject(JNIEnv* env, jobject object);
H A Dandroid_database_SQLiteCommon.h33 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle);
36 void throw_sqlite3_exception(JNIEnv* env, const char* message);
41 void throw_sqlite3_exception(JNIEnv* env, sqlite3* handle, const char* message);
44 void throw_sqlite3_exception_errcode(JNIEnv* env, int errcode, const char* message);
46 void throw_sqlite3_exception(JNIEnv* env, int errcode,
H A Dandroid_util_Binder.h28 extern jobject javaObjectForIBinder(JNIEnv* env, const sp<IBinder>& val);
29 extern sp<IBinder> ibinderForJavaObject(JNIEnv* env, jobject obj);
31 extern jobject newParcelFileDescriptor(JNIEnv* env, jobject fileDesc);
33 extern void set_dalvik_blockguard_policy(JNIEnv* env, jint strict_policy);
35 extern void signalExceptionForError(JNIEnv* env, jobject obj, status_t err,
H A Dandroid_net_NetUtils.cpp76 static jint android_net_utils_enableInterface(JNIEnv* env, jobject clazz, jstring ifname) argument
80 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
82 env->ReleaseStringUTFChars(ifname, nameStr);
86 static jint android_net_utils_disableInterface(JNIEnv* env, jobject clazz, jstring ifname) argument
90 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
92 env->ReleaseStringUTFChars(ifname, nameStr);
96 static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz, argument
101 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
103 ALOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n",
104 env, claz
111 android_net_utils_runDhcpCommon(JNIEnv* env, jobject clazz, jstring ifname, jobject info, bool renew) argument
173 android_net_utils_runDhcp(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument
178 android_net_utils_runDhcpRenew(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument
184 android_net_utils_stopDhcp(JNIEnv* env, jobject clazz, jstring ifname) argument
194 android_net_utils_releaseDhcpLease(JNIEnv* env, jobject clazz, jstring ifname) argument
204 android_net_utils_getDhcpError(JNIEnv* env, jobject clazz) argument
227 register_android_net_NetworkUtils(JNIEnv* env) argument
[all...]
H A Dandroid_text_format_Time.cpp61 static inline bool java2time(JNIEnv* env, Time* t, jobject o) argument
63 t->t.tm_sec = env->GetIntField(o, g_secField);
64 t->t.tm_min = env->GetIntField(o, g_minField);
65 t->t.tm_hour = env->GetIntField(o, g_hourField);
66 t->t.tm_mday = env->GetIntField(o, g_mdayField);
67 t->t.tm_mon = env->GetIntField(o, g_monField);
68 t->t.tm_year = (env->GetIntField(o, g_yearField))-1900;
69 t->t.tm_wday = env->GetIntField(o, g_wdayField);
70 t->t.tm_yday = env->GetIntField(o, g_ydayField);
71 t->t.tm_isdst = env
83 time2java(JNIEnv* env, jobject o, const Time &t) argument
108 android_text_format_Time_normalize(JNIEnv* env, jobject This, jboolean ignoreDst) argument
123 android_text_format_Time_switchTimezone(JNIEnv* env, jobject This, jstring timezoneObject) argument
142 android_text_format_Time_compare(JNIEnv* env, jobject clazz, jobject aObject, jobject bObject) argument
161 android_text_format_Time_format2445(JNIEnv* env, jobject This) argument
187 android_text_format_Time_format(JNIEnv* env, jobject This, jstring formatObject) argument
313 android_text_format_Time_toString(JNIEnv* env, jobject This) argument
326 android_text_format_Time_setToNow(JNIEnv* env, jobject This) argument
338 android_text_format_Time_toMillis(JNIEnv* env, jobject This, jboolean ignoreDst) argument
352 android_text_format_Time_set(JNIEnv* env, jobject This, jlong millis) argument
368 get_char(JNIEnv* env, const ScopedStringChars& s, int spos, int mul, bool* thrown) argument
384 check_char(JNIEnv* env, const ScopedStringChars& s, int spos, jchar expected) argument
397 android_text_format_Time_parse(JNIEnv* env, jobject This, jstring strObj) argument
476 android_text_format_Time_parse3339(JNIEnv* env, jobject This, jstring strObj) argument
654 register_android_text_format_Time(JNIEnv* env) argument
[all...]
H A Dandroid_os_MessageQueue.cpp38 virtual void raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj);
40 void pollOnce(JNIEnv* env, int timeoutMillis);
56 bool MessageQueue::raiseAndClearException(JNIEnv* env, const char* msg) { argument
57 jthrowable exceptionObj = env->ExceptionOccurred();
59 env->ExceptionClear();
60 raiseException(env, msg, exceptionObj);
61 env->DeleteLocalRef(exceptionObj);
78 void NativeMessageQueue::raiseException(JNIEnv* env, const char* msg, jthrowable exceptionObj) { argument
82 env->DeleteLocalRef(mExceptionObj);
84 mExceptionObj = jthrowable(env
95 pollOnce(JNIEnv* env, int timeoutMillis) argument
112 android_os_MessageQueue_getNativeMessageQueue(JNIEnv* env, jobject messageQueueObj) argument
118 android_os_MessageQueue_setNativeMessageQueue(JNIEnv* env, jobject messageQueueObj, NativeMessageQueue* nativeMessageQueue) argument
124 android_os_MessageQueue_getMessageQueue(JNIEnv* env, jobject messageQueueObj) argument
130 android_os_MessageQueue_nativeInit(JNIEnv* env, jobject obj) argument
141 android_os_MessageQueue_nativeDestroy(JNIEnv* env, jobject obj) argument
150 throwQueueNotInitialized(JNIEnv* env) argument
154 android_os_MessageQueue_nativePollOnce(JNIEnv* env, jobject obj, jint ptr, jint timeoutMillis) argument
160 android_os_MessageQueue_nativeWake(JNIEnv* env, jobject obj, jint ptr) argument
183 register_android_os_MessageQueue(JNIEnv* env) argument
[all...]
H A Dandroid_os_ParcelFileDescriptor.cpp37 static jobject android_os_ParcelFileDescriptor_getFileDescriptorFromFd(JNIEnv* env, argument
42 jniThrowException(env, "java/io/IOException", strerror(errno));
45 return jniCreateFileDescriptor(env, fd);
48 static jobject android_os_ParcelFileDescriptor_getFileDescriptorFromFdNoDup(JNIEnv* env, argument
51 return jniCreateFileDescriptor(env, fd);
54 static void android_os_ParcelFileDescriptor_createPipeNative(JNIEnv* env, argument
60 jniThrowException(env, "java/io/IOException", strerror(therr));
65 jobject fdObj = jniCreateFileDescriptor(env, fds[i]);
66 env->SetObjectArrayElement(outFds, i, fdObj);
70 static jint getFd(JNIEnv* env, jobjec argument
77 android_os_ParcelFileDescriptor_getStatSize(JNIEnv* env, jobject clazz) argument
98 android_os_ParcelFileDescriptor_seekTo(JNIEnv* env, jobject clazz, jlong pos) argument
110 android_os_ParcelFileDescriptor_getFdNative(JNIEnv* env, jobject clazz) argument
138 register_android_os_ParcelFileDescriptor(JNIEnv* env) argument
[all...]
H A Dandroid_animation_PropertyValuesHolder.cpp33 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
35 const char *nativeString = env->GetStringUTFChars(methodName, 0);
36 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(I)V");
37 env->ReleaseStringUTFChars(methodName, nativeString);
42 JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName)
44 const char *nativeString = env->GetStringUTFChars(methodName, 0);
45 jmethodID mid = env->GetMethodID(targetClass, nativeString, "(F)V");
46 env->ReleaseStringUTFChars(methodName, nativeString);
51 JNIEnv* env, jclass pvhObject, jobject target, jmethodID methodID, int arg)
53 env
32 android_animation_PropertyValuesHolder_getIntMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) argument
41 android_animation_PropertyValuesHolder_getFloatMethod( JNIEnv* env, jclass pvhClass, jclass targetClass, jstring methodName) argument
50 android_animation_PropertyValuesHolder_callIntMethod( JNIEnv* env, jclass pvhObject, jobject target, jmethodID methodID, int arg) argument
56 android_animation_PropertyValuesHolder_callFloatMethod( JNIEnv* env, jclass pvhObject, jobject target, jmethodID methodID, float arg) argument
73 register_android_animation_PropertyValuesHolder(JNIEnv* env) argument
[all...]
H A Dandroid_view_InputChannel.cpp50 void invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj);
72 void NativeInputChannel::invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj) { argument
74 mDisposeCallback(env, obj, mInputChannel, mDisposeData);
82 static NativeInputChannel* android_view_InputChannel_getNativeInputChannel(JNIEnv* env, argument
84 jint intPtr = env->GetIntField(inputChannelObj, gInputChannelClassInfo.mPtr);
88 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument
90 env->SetIntField(inputChannelObj, gInputChannelClassInfo.mPtr,
94 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) { argument
96 android_view_InputChannel_getNativeInputChannel(env, inputChannelObj);
100 void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobjec argument
111 android_view_InputChannel_createInputChannel(JNIEnv* env, NativeInputChannel* nativeInputChannel) argument
121 android_view_InputChannel_nativeOpenInputChannelPair(JNIEnv* env, jclass clazz, jstring nameObj) argument
160 android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jboolean finalized) argument
176 android_view_InputChannel_nativeTransferTo(JNIEnv* env, jobject obj, jobject otherObj) argument
190 android_view_InputChannel_nativeReadFromParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument
220 android_view_InputChannel_nativeWriteToParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument
238 android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj) argument
280 register_android_view_InputChannel(JNIEnv* env) argument
[all...]
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_debug_JNITest.cpp33 static jint android_debug_JNITest_part1(JNIEnv* env, jobject object, argument
45 clazz = env->GetObjectClass(object);
46 part2id = env->GetMethodID(clazz,
54 arrayLen = env->GetArrayLength(arrayArg);
62 arrayVal = (int) env->GetObjectArrayElement(arrayArg, arrayLen-1);
66 result = env->CallIntMethod(object, part2id,
76 static jint android_debug_JNITest_part3(JNIEnv* env, jclass clazz, argument
84 utfChars = env->GetStringUTFChars(stringArg, &isCopy);
88 env->ReleaseStringUTFChars(stringArg, utfChars);
103 int register_android_debug_JNITest(JNIEnv* env) argument
[all...]
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodecList.cpp31 JNIEnv *env, jobject thiz) {
36 JNIEnv *env, jobject thiz, jint index) {
40 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
44 return env->NewStringUTF(name);
48 JNIEnv *env, jobject thiz, jint index) {
53 JNIEnv *env, jobject thiz, jint index) {
59 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
63 jclass clazz = env->FindClass("java/lang/String");
66 jobjectArray array = env->NewObjectArray(types.size(), clazz, NULL);
69 jstring obj = env
30 android_media_MediaCodecList_getCodecCount( JNIEnv *env, jobject thiz) argument
35 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument
47 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument
52 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument
78 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
168 android_media_MediaCodecList_native_init(JNIEnv *env) argument
186 register_android_media_MediaCodecList(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaRecorder.cpp45 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context);
64 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
73 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
78 jclass clazz = env->GetObjectClass(thiz);
81 jniThrowException(env, "java/lang/Exception", NULL);
84 mClass = (jclass)env->NewGlobalRef(clazz);
88 mObject = env->NewGlobalRef(weak_thiz);
94 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
95 env->DeleteGlobalRef(mObject);
96 env
103 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
109 get_surface(JNIEnv* env, jobject clazz) argument
117 process_media_recorder_call(JNIEnv *env, status_t opStatus, const char* exception, const char* message) argument
130 getMediaRecorder(JNIEnv* env, jobject thiz) argument
137 setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recorder) argument
152 android_media_MediaRecorder_setCamera(JNIEnv* env, jobject thiz, jobject camera) argument
166 android_media_MediaRecorder_setVideoSource(JNIEnv *env, jobject thiz, jint vs) argument
178 android_media_MediaRecorder_setAudioSource(JNIEnv *env, jobject thiz, jint as) argument
191 android_media_MediaRecorder_setOutputFormat(JNIEnv *env, jobject thiz, jint of) argument
203 android_media_MediaRecorder_setVideoEncoder(JNIEnv *env, jobject thiz, jint ve) argument
215 android_media_MediaRecorder_setAudioEncoder(JNIEnv *env, jobject thiz, jint ae) argument
227 android_media_MediaRecorder_setParameter(JNIEnv *env, jobject thiz, jstring params) argument
250 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
264 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument
277 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
289 android_media_MediaRecorder_setMaxDuration(JNIEnv *env, jobject thiz, jint max_duration_ms) argument
301 android_media_MediaRecorder_setMaxFileSize( JNIEnv *env, jobject thiz, jlong max_filesize_bytes) argument
314 android_media_MediaRecorder_prepare(JNIEnv *env, jobject thiz) argument
340 android_media_MediaRecorder_native_getMaxAmplitude(JNIEnv *env, jobject thiz) argument
350 android_media_MediaRecorder_start(JNIEnv *env, jobject thiz) argument
358 android_media_MediaRecorder_stop(JNIEnv *env, jobject thiz) argument
366 android_media_MediaRecorder_native_reset(JNIEnv *env, jobject thiz) argument
374 android_media_MediaRecorder_release(JNIEnv *env, jobject thiz) argument
388 android_media_MediaRecorder_native_init(JNIEnv *env) argument
426 android_media_MediaRecorder_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
447 android_media_MediaRecorder_native_finalize(JNIEnv *env, jobject thiz) argument
483 register_android_media_MediaRecorder(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaPlayer.cpp68 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
77 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
82 jclass clazz = env->GetObjectClass(thiz);
85 jniThrowException(env, "java/lang/Exception", NULL);
88 mClass = (jclass)env->NewGlobalRef(clazz);
92 mObject = env->NewGlobalRef(weak_thiz);
98 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
99 env->DeleteGlobalRef(mObject);
100 env->DeleteGlobalRef(mClass);
105 JNIEnv *env local
127 getMediaPlayer(JNIEnv* env, jobject thiz) argument
134 setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument
152 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument
179 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument
222 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
240 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument
246 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument
260 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument
300 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument
306 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument
323 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument
340 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument
352 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument
364 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument
376 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument
390 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, int msec) argument
402 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument
419 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument
437 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument
451 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument
465 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument
477 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, int streamtype) argument
489 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument
501 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument
513 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, float leftVolume, float rightVolume) argument
526 android_media_MediaPlayer_getFrameAt(JNIEnv *env, jobject thiz, jint msec) argument
535 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument
554 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument
573 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument
601 android_media_MediaPlayer_native_init(JNIEnv *env) argument
628 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
646 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument
659 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument
669 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument
679 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument
691 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument
702 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument
713 android_media_MediaPlayer_pullBatteryData(JNIEnv *env, jobject thiz, jobject java_reply) argument
728 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz, jstring addrString, jint port) argument
767 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument
786 android_media_MediaPlayer_getParameter(JNIEnv *env, jobject thiz, jint key, jobject java_reply) argument
800 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player) argument
875 register_android_media_MediaPlayer(JNIEnv *env) argument
897 JNIEnv* env = NULL; local
[all...]
/frameworks/base/drm/jni/
H A Dandroid_drm_DrmManagerClient.cpp47 static String8 getStringValue(JNIEnv* env, jobject object, const char* fieldName);
50 JNIEnv* env, jobject object, const char* fieldName, int* dataLength);
53 JNIEnv* env, jbyteArray byteArray, int* dataLength);
55 static String8 getStringValue(JNIEnv* env, jstring string);
57 static int getIntValue(JNIEnv* env, jobject object, const char* fieldName);
60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { argument
63 = env->GetFieldID(env->GetObjectClass(object), fieldName , "Ljava/lang/String;");
66 jstring valueString = (jstring) env->GetObjectField(object, fieldID);
67 return Utility::getStringValue(env, valueStrin
74 getStringValue(JNIEnv* env, jstring string) argument
91 getByteArrayValue( JNIEnv* env, jobject object, const char* fieldName, int* dataLength) argument
105 getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) argument
119 getIntValue(JNIEnv* env, jobject object, const char* fieldName) argument
148 JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
161 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
169 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
181 setDrmManagerClientImpl( JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) argument
198 getDrmManagerClientImpl(JNIEnv* env, jobject thiz) argument
207 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz) argument
220 android_drm_DrmManagerClient_setListeners( JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) argument
231 android_drm_DrmManagerClient_release( JNIEnv* env, jobject thiz, jint uniqueId) argument
245 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
294 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument
334 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument
381 android_drm_DrmManagerClient_installDrmEngine( JNIEnv* env, jobject thiz, jint uniqueId, jstring engineFilePath) argument
389 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument
412 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
423 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument
506 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument
578 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
589 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument
605 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument
615 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument
622 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument
628 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
638 GetConvertedStatus(JNIEnv* env, DrmConvertedStatus* pDrmConvertedStatus) argument
669 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument
688 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, int uniqueId, jint convertId) argument
761 registerNativeMethods(JNIEnv* env) argument
777 JNIEnv* env = NULL; local
[all...]

Completed in 285 milliseconds

1234567891011