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

1234567891011>>

/frameworks/base/services/core/jni/
H A Donload.cpp23 int register_android_server_AlarmManagerService(JNIEnv* env);
24 int register_android_server_AssetAtlasService(JNIEnv* env);
25 int register_android_server_BatteryStatsService(JNIEnv* env);
26 int register_android_server_ConsumerIrService(JNIEnv *env);
27 int register_android_server_InputApplicationHandle(JNIEnv* env);
28 int register_android_server_InputWindowHandle(JNIEnv* env);
29 int register_android_server_InputManager(JNIEnv* env);
30 int register_android_server_LightsService(JNIEnv* env);
31 int register_android_server_PowerManagerService(JNIEnv* env);
32 int register_android_server_SerialService(JNIEnv* env);
51 JNIEnv* env = NULL; local
[all...]
/frameworks/base/include/android_runtime/
H A DLog.h27 #define LOG_EX(env, priority, tag, ...) \
28 jniLogException(env, ANDROID_##priority, tag, ##__VA_ARGS__)
29 #define LOGV_EX(env, ...) LOG_EX(env, LOG_VERBOSE, LOG_TAG, ##__VA_ARGS__)
30 #define LOGD_EX(env, ...) LOG_EX(env, LOG_DEBUG, LOG_TAG, ##__VA_ARGS__)
31 #define LOGI_EX(env, ...) LOG_EX(env, LOG_INFO, LOG_TAG, ##__VA_ARGS__)
32 #define LOGW_EX(env, ...) LOG_EX(env, LOG_WAR
[all...]
/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) {
/frameworks/ex/framesequence/jni/
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)) {
H A DFrameSequenceJNI.h22 jint FrameSequence_OnLoad(JNIEnv* env);
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);
/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...]
/frameworks/opt/net/wifi/service/jni/
H A Djni_helper.cpp34 void throwException( JNIEnv *env, const char *message, int line ) argument
40 jclass exClass = (env)->FindClass(className );
47 (env)->ThrowNew(exClass, message);
50 jboolean getBoolField(JNIEnv *env, jobject obj, const char *name) argument
52 jclass cls = (env)->GetObjectClass(obj);
53 jfieldID field = (env)->GetFieldID(cls, name, "Z");
55 THROW(env, "Error in accessing field");
59 jboolean value = (env)->GetBooleanField(obj, field);
60 env->DeleteLocalRef(cls);
64 jint getIntField(JNIEnv *env, jobjec argument
78 getLongField(JNIEnv *env, jobject obj, const char *name) argument
92 getStaticLongField(JNIEnv *env, jobject obj, const char *name) argument
100 getStaticLongField(JNIEnv *env, jclass cls, const char *name) argument
112 getObjectField(JNIEnv *env, jobject obj, const char *name, const char *type) argument
126 getLongArrayField(JNIEnv *env, jobject obj, const char *name, int index) argument
156 getStaticLongArrayField(JNIEnv *env, jobject obj, const char *name, int index) argument
164 getStaticLongArrayField(JNIEnv *env, jclass cls, const char *name, int index) argument
186 getObjectArrayField(JNIEnv *env, jobject obj, const char *name, const char *type, int index) argument
207 setIntField(JNIEnv *env, jobject obj, const char *name, jint value) argument
225 setLongField(JNIEnv *env, jobject obj, const char *name, jlong value) argument
243 setStaticLongField(JNIEnv *env, jobject obj, const char *name, jlong value) argument
255 setStaticLongField(JNIEnv *env, jclass cls, const char *name, jlong value) argument
266 setLongArrayField(JNIEnv *env, jobject obj, const char *name, jlongArray value) argument
288 setStaticLongArrayField(JNIEnv *env, jobject obj, const char *name, jlongArray value) argument
302 setStaticLongArrayField(JNIEnv *env, jclass cls, const char *name, jlongArray value) argument
314 setLongArrayElement(JNIEnv *env, jobject obj, const char *name, int index, jlong value) argument
352 setObjectField(JNIEnv *env, jobject obj, const char *name, const char *type, jobject value) argument
370 setStringField(JNIEnv *env, jobject obj, const char *name, const char *value) argument
383 reportEvent(JNIEnv *env, jclass cls, const char *method, const char *signature, ...) argument
398 createObject(JNIEnv *env, const char *className) argument
[all...]
H A Djni_helper.h6 void throwException( JNIEnv *env, const char *message, int line );
7 jboolean getBoolField(JNIEnv *env, jobject obj, const char *name);
8 jint getIntField(JNIEnv *env, jobject obj, const char *name);
9 jlong getLongField(JNIEnv *env, jobject obj, const char *name);
10 jobject getObjectField(JNIEnv *env, jobject obj, const char *name, const char *type);
11 jlong getLongArrayField(JNIEnv *env, jobject obj, const char *name, int index);
12 jobject getObjectArrayField(JNIEnv *env, jobject obj, const char *name, const char *type, int index);
13 void setIntField(JNIEnv *env, jobject obj, const char *name, jint value);
14 void setLongField(JNIEnv *env, jobject obj, const char *name, jlong value);
15 void setLongArrayField(JNIEnv *env, jobjec
[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_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 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr);
88 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument
90 env->SetLongField(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
249 android_view_InputChannel_nativeDup(JNIEnv* env, jobject obj, jobject otherObj) argument
291 register_android_view_InputChannel(JNIEnv* env) argument
[all...]
H A Dandroid_net_NetUtils.cpp81 static jint android_net_utils_resetConnections(JNIEnv* env, jobject clazz, argument
86 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
88 ALOGD("android_net_utils_resetConnections in env=%p clazz=%p iface=%s mask=0x%x\n",
89 env, clazz, nameStr, mask);
92 env->ReleaseStringUTFChars(ifname, nameStr);
96 static jboolean android_net_utils_runDhcpCommon(JNIEnv* env, jobject clazz, jstring ifname, argument
114 const char *nameStr = env->GetStringUTFChars(ifname, NULL);
128 env->ReleaseStringUTFChars(ifname, nameStr);
130 env->CallVoidMethod(dhcpResults, dhcpResultsFieldIds.clear);
134 result = env
186 android_net_utils_runDhcp(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument
191 android_net_utils_runDhcpRenew(JNIEnv* env, jobject clazz, jstring ifname, jobject info) argument
198 android_net_utils_stopDhcp(JNIEnv* env, jobject clazz, jstring ifname) argument
208 android_net_utils_releaseDhcpLease(JNIEnv* env, jobject clazz, jstring ifname) argument
218 android_net_utils_getDhcpError(JNIEnv* env, jobject clazz) argument
223 android_net_utils_bindProcessToNetwork(JNIEnv *env, jobject thiz, jint netId) argument
228 android_net_utils_getNetworkBoundToProcess(JNIEnv *env, jobject thiz) argument
233 android_net_utils_bindProcessToNetworkForHostResolution(JNIEnv *env, jobject thiz, jint netId) argument
239 android_net_utils_bindSocketToNetwork(JNIEnv *env, jobject thiz, jint socket, jint netId) argument
245 android_net_utils_protectFromVpn(JNIEnv *env, jobject thiz, jint socket) argument
270 register_android_net_NetworkUtils(JNIEnv* env) argument
[all...]
H A Dcom_android_internal_os_ZygoteInit.cpp40 JNIEnv* env, jobject clazz, jint ruid, jint euid)
53 JNIEnv* env, jobject clazz, jint rgid, jint egid)
66 JNIEnv* env, jobject clazz, jint pid, jint pgid)
79 JNIEnv* env, jobject clazz, jint pid)
85 jniThrowIOException(env, errno);
91 static void com_android_internal_os_ZygoteInit_reopenStdio(JNIEnv* env, argument
97 fd = jniGetFDFromFileDescriptor(env, in);
99 if (env->ExceptionOccurred() != NULL) {
107 fd = jniGetFDFromFileDescriptor(env, out);
109 if (env
39 com_android_internal_os_ZygoteInit_setreuid( JNIEnv* env, jobject clazz, jint ruid, jint euid) argument
52 com_android_internal_os_ZygoteInit_setregid( JNIEnv* env, jobject clazz, jint rgid, jint egid) argument
65 com_android_internal_os_ZygoteInit_setpgid( JNIEnv* env, jobject clazz, jint pid, jint pgid) argument
78 com_android_internal_os_ZygoteInit_getpgid( JNIEnv* env, jobject clazz, jint pid) argument
128 com_android_internal_os_ZygoteInit_setCloseOnExec(JNIEnv *env, jobject clazz, jobject descriptor, jboolean flag) argument
162 com_android_internal_os_ZygoteInit_selectReadable( JNIEnv *env, jobject clazz, jobjectArray fds) argument
229 com_android_internal_os_ZygoteInit_createFileDescriptor( JNIEnv *env, jobject clazz, jint fd) argument
259 register_com_android_internal_os_ZygoteInit(JNIEnv* env) argument
[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/base/media/jni/
H A Dandroid_media_MediaRecorder.cpp48 extern sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, struct JNICameraContext** context);
65 JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
74 JNIMediaRecorderListener::JNIMediaRecorderListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
79 jclass clazz = env->GetObjectClass(thiz);
82 jniThrowException(env, "java/lang/Exception", NULL);
85 mClass = (jclass)env->NewGlobalRef(clazz);
89 mObject = env->NewGlobalRef(weak_thiz);
95 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
96 env->DeleteGlobalRef(mObject);
97 env
104 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
110 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
170 android_media_MediaRecorder_setVideoSource(JNIEnv *env, jobject thiz, jint vs) argument
182 android_media_MediaRecorder_setAudioSource(JNIEnv *env, jobject thiz, jint as) argument
195 android_media_MediaRecorder_setOutputFormat(JNIEnv *env, jobject thiz, jint of) argument
207 android_media_MediaRecorder_setVideoEncoder(JNIEnv *env, jobject thiz, jint ve) argument
219 android_media_MediaRecorder_setAudioEncoder(JNIEnv *env, jobject thiz, jint ae) argument
231 android_media_MediaRecorder_setParameter(JNIEnv *env, jobject thiz, jstring params) argument
254 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
268 android_media_MediaRecorder_setVideoSize(JNIEnv *env, jobject thiz, jint width, jint height) argument
281 android_media_MediaRecorder_setVideoFrameRate(JNIEnv *env, jobject thiz, jint rate) argument
293 android_media_MediaRecorder_setMaxDuration(JNIEnv *env, jobject thiz, jint max_duration_ms) argument
305 android_media_MediaRecorder_setMaxFileSize( JNIEnv *env, jobject thiz, jlong max_filesize_bytes) argument
318 android_media_MediaRecorder_prepare(JNIEnv *env, jobject thiz) argument
344 android_media_MediaRecorder_native_getMaxAmplitude(JNIEnv *env, jobject thiz) argument
354 android_media_MediaRecorder_getSurface(JNIEnv *env, jobject thiz) argument
374 android_media_MediaRecorder_start(JNIEnv *env, jobject thiz) argument
382 android_media_MediaRecorder_stop(JNIEnv *env, jobject thiz) argument
390 android_media_MediaRecorder_native_reset(JNIEnv *env, jobject thiz) argument
398 android_media_MediaRecorder_release(JNIEnv *env, jobject thiz) argument
412 android_media_MediaRecorder_native_init(JNIEnv *env) argument
445 android_media_MediaRecorder_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, jstring packageName) argument
477 android_media_MediaRecorder_native_finalize(JNIEnv *env, jobject thiz) argument
514 register_android_media_MediaRecorder(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaPlayer.cpp75 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
84 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
89 jclass clazz = env->GetObjectClass(thiz);
92 jniThrowException(env, "java/lang/Exception", NULL);
95 mClass = (jclass)env->NewGlobalRef(clazz);
99 mObject = env->NewGlobalRef(weak_thiz);
105 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
106 env->DeleteGlobalRef(mObject);
107 env->DeleteGlobalRef(mClass);
112 JNIEnv *env local
135 getMediaPlayer(JNIEnv* env, jobject thiz) argument
142 setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument
160 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument
187 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jobject httpServiceBinderObj, jstring path, jobjectArray keys, jobjectArray values) argument
237 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument
255 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument
261 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument
275 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument
315 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument
321 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument
338 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument
355 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument
367 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument
379 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument
391 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument
405 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jint msec) argument
417 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument
434 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument
452 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument
466 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument
480 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument
492 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, jint streamtype) argument
504 android_media_MediaPlayer_getAudioStreamType(JNIEnv *env, jobject thiz) argument
518 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument
537 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument
549 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument
561 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume) argument
575 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument
594 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument
613 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument
645 android_media_MediaPlayer_native_init(JNIEnv *env) argument
686 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument
704 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument
717 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument
727 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument
737 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument
749 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument
760 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument
771 android_media_MediaPlayer_pullBatteryData( JNIEnv *env, jobject , jobject java_reply) argument
787 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz, jstring addrString, jint port) argument
826 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player) argument
901 register_android_media_MediaPlayer(JNIEnv *env) argument
927 JNIEnv* env = NULL; local
[all...]
H A Dandroid_media_Utils.cpp32 JNIEnv *env, jobjectArray keys, jobjectArray values,
38 nKeyValuePairs = env->GetArrayLength(keys);
39 failed = (nKeyValuePairs != env->GetArrayLength(values));
49 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
56 jstring key = (jstring) env->GetObjectArrayElement(keys, i);
57 jstring value = (jstring) env->GetObjectArrayElement(values, i);
59 const char* keyStr = env->GetStringUTFChars(key, NULL);
64 const char* valueStr = env->GetStringUTFChars(value, NULL);
66 env->ReleaseStringUTFChars(key, keyStr);
72 env
31 ConvertKeyValueArraysToKeyedVector( JNIEnv *env, jobjectArray keys, jobjectArray values, KeyedVector<String8, String8>* keyedVector) argument
80 makeIntegerObject(JNIEnv *env, int32_t value) argument
91 makeLongObject(JNIEnv *env, int64_t value) argument
101 makeFloatObject(JNIEnv *env, float value) argument
112 makeByteBufferObject( JNIEnv *env, const void *data, size_t size) argument
133 SetMapInt32( JNIEnv *env, jobject hashMapObj, jmethodID hashMapPutID, const char *key, int32_t value) argument
146 ConvertMessageToMap( JNIEnv *env, const sp<AMessage> &msg, jobject *map) argument
282 ConvertKeyValueArraysToMessage( JNIEnv *env, jobjectArray keys, jobjectArray values, sp<AMessage> *out) argument
[all...]
H A Dandroid_media_MediaDrm.cpp39 var = env->FindClass(className); \
43 var = env->GetFieldID(clazz, fieldName, fieldDescriptor); \
47 var = env->GetMethodID(clazz, fieldName, fieldDescriptor); \
51 var = env->GetStaticFieldID(clazz, fieldName, fieldDescriptor); \
55 var = env->GetStaticMethodID(clazz, fieldName, fieldDescriptor); \
143 JNIDrmListener(JNIEnv* env, jobject thiz, jobject weak_thiz);
152 JNIDrmListener::JNIDrmListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument
156 jclass clazz = env->GetObjectClass(thiz);
159 jniThrowException(env, "java/lang/Exception",
163 mClass = (jclass)env
173 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
202 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
221 throwStateException(JNIEnv *env, const char *msg, status_t err) argument
230 throwExceptionAsNecessary( JNIEnv *env, status_t err, const char *msg = NULL) argument
298 GetDrm(JNIEnv *env, jobject thiz) argument
303 JDrm( JNIEnv *env, jobject thiz, const uint8_t uuid[16]) argument
313 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
401 JByteArrayToVector(JNIEnv *env, jbyteArray const &byteArray) argument
409 VectorToJByteArray(JNIEnv *env, Vector<uint8_t> const &vector) argument
418 JStringToString8(JNIEnv *env, jstring const &jstr) argument
441 HashMapToKeyedVector(JNIEnv *env, jobject &hashMap) argument
484 KeyedVectorToHashMap(JNIEnv *env, KeyedVector<String8, String8> const &map) argument
497 ListOfVectorsToArrayListOfByteArray(JNIEnv *env, List<Vector<uint8_t> > list) argument
516 setDrm( JNIEnv *env, jobject thiz, const sp<JDrm> &drm) argument
530 CheckSession(JNIEnv *env, const sp<IDrm> &drm, jbyteArray const &jsessionId) argument
544 android_media_MediaDrm_release(JNIEnv *env, jobject thiz) argument
552 android_media_MediaDrm_native_init(JNIEnv *env) argument
630 android_media_MediaDrm_native_setup( JNIEnv *env, jobject thiz, jobject weak_this, jbyteArray uuidObj) argument
664 android_media_MediaDrm_native_finalize( JNIEnv *env, jobject thiz) argument
669 android_media_MediaDrm_isCryptoSchemeSupportedNative( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jstring jmimeType) argument
695 android_media_MediaDrm_openSession( JNIEnv *env, jobject thiz) argument
715 android_media_MediaDrm_closeSession( JNIEnv *env, jobject thiz, jbyteArray jsessionId) argument
730 android_media_MediaDrm_getKeyRequest( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jinitData, jstring jmimeType, jint jkeyType, jobject joptParams) argument
797 android_media_MediaDrm_provideKeyResponse( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jresponse) argument
823 android_media_MediaDrm_removeKeys( JNIEnv *env, jobject thiz, jbyteArray jkeysetId) argument
840 android_media_MediaDrm_restoreKeys( JNIEnv *env, jobject thiz, jbyteArray jsessionId, jbyteArray jkeysetId) argument
863 android_media_MediaDrm_queryKeyStatus( JNIEnv *env, jobject thiz, jbyteArray jsessionId) argument
883 android_media_MediaDrm_getProvisionRequestNative( JNIEnv *env, jobject thiz, jint jcertType, jstring jcertAuthority) argument
930 android_media_MediaDrm_provideProvisionResponseNative( JNIEnv *env, jobject thiz, jbyteArray jresponse) argument
969 android_media_MediaDrm_unprovisionDeviceNative( JNIEnv *env, jobject thiz) argument
985 android_media_MediaDrm_getSecureStops( JNIEnv *env, jobject thiz) argument
1006 android_media_MediaDrm_releaseSecureStops( JNIEnv *env, jobject thiz, jbyteArray jssRelease) argument
1023 android_media_MediaDrm_getPropertyString( JNIEnv *env, jobject thiz, jstring jname) argument
1051 android_media_MediaDrm_getPropertyByteArray( JNIEnv *env, jobject thiz, jstring jname) argument
1079 android_media_MediaDrm_setPropertyString( JNIEnv *env, jobject thiz, jstring jname, jstring jvalue) argument
1109 android_media_MediaDrm_setPropertyByteArray( JNIEnv *env, jobject thiz, jstring jname, jbyteArray jvalue) argument
1139 android_media_MediaDrm_setCipherAlgorithmNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm) argument
1163 android_media_MediaDrm_setMacAlgorithmNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm) argument
1188 android_media_MediaDrm_encryptNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jinput, jbyteArray jiv) argument
1219 android_media_MediaDrm_decryptNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jinput, jbyteArray jiv) argument
1249 android_media_MediaDrm_signNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jmessage) argument
1279 android_media_MediaDrm_verifyNative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jbyteArray jkeyId, jbyteArray jmessage, jbyteArray jsignature) argument
1308 android_media_MediaDrm_signRSANative( JNIEnv *env, jobject thiz, jobject jdrm, jbyteArray jsessionId, jstring jalgorithm, jbyteArray jwrappedKey, jbyteArray jmessage) argument
1426 register_android_media_Drm(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaCodecList.cpp34 static sp<IMediaCodecList> getCodecList(JNIEnv *env) { argument
39 env, "java/lang/RuntimeException", "cannot get MediaCodecList");
45 JNIEnv *env, jobject thiz) {
46 sp<IMediaCodecList> mcl = getCodecList(env);
55 JNIEnv *env, jobject thiz, jint index) {
56 sp<IMediaCodecList> mcl = getCodecList(env);
64 jniThrowException(env, "java/lang/IllegalArgumentException", NULL);
69 return env->NewStringUTF(name);
73 JNIEnv *env, jobject thiz, jstring name) {
75 jniThrowException(env, "jav
44 android_media_MediaCodecList_getCodecCount( JNIEnv *env, jobject thiz) argument
54 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument
72 android_media_MediaCodecList_findCodecByName( JNIEnv *env, jobject thiz, jstring name) argument
97 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument
114 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument
146 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
265 android_media_MediaCodecList_native_init(JNIEnv *env) argument
286 register_android_media_MediaCodecList(JNIEnv *env) argument
[all...]
H A Dandroid_media_MediaHTTPConnection.cpp34 JMediaHTTPConnection::JMediaHTTPConnection(JNIEnv *env, jobject thiz) argument
38 jclass clazz = env->GetObjectClass(thiz);
41 mClass = (jclass)env->NewGlobalRef(clazz);
42 mObject = env->NewWeakGlobalRef(thiz);
48 env, env->NewByteArray(JMediaHTTPConnection::kBufferSize));
50 mByteArrayObj = (jbyteArray)env->NewGlobalRef(tmp.get());
54 JNIEnv *env = AndroidRuntime::getJNIEnv(); local
56 env->DeleteGlobalRef(mByteArrayObj);
58 env
84 setObject( JNIEnv *env, jobject thiz, const sp<JMediaHTTPConnection> &conn) argument
100 getObject(JNIEnv *env, jobject thiz) argument
104 android_media_MediaHTTPConnection_native_init(JNIEnv *env) argument
115 android_media_MediaHTTPConnection_native_setup( JNIEnv *env, jobject thiz) argument
122 android_media_MediaHTTPConnection_native_finalize( JNIEnv *env, jobject thiz) argument
127 android_media_MediaHTTPConnection_native_getIMemory( JNIEnv *env, jobject thiz) argument
134 android_media_MediaHTTPConnection_native_readAt( JNIEnv *env, jobject thiz, jlong offset, jint size) argument
175 register_android_media_MediaHTTPConnection(JNIEnv *env) argument
[all...]
/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/core/jni/android/graphics/
H A DSurfaceTexture.cpp54 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument
58 (GLConsumer*)env->GetLongField(thiz, fields.surfaceTexture);
65 env->SetLongField(thiz, fields.surfaceTexture, (jlong)surfaceTexture.get());
68 static void SurfaceTexture_setProducer(JNIEnv* env, jobject thiz, argument
72 (IGraphicBufferProducer*)env->GetLongField(thiz, fields.producer);
79 env->SetLongField(thiz, fields.producer, (jlong)producer.get());
82 static void SurfaceTexture_setFrameAvailableListener(JNIEnv* env, argument
87 env->GetLongField(thiz, fields.frameAvailableListener);
94 env->SetLongField(thiz, fields.frameAvailableListener, (jlong)listener.get());
97 sp<GLConsumer> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobjec argument
101 SurfaceTexture_getProducer(JNIEnv* env, jobject thiz) argument
105 android_SurfaceTexture_getNativeWindow(JNIEnv* env, jobject thiz) argument
112 android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument
134 JNISurfaceTextureContext(JNIEnv* env, jobject weakThiz, jclass clazz) argument
142 JNIEnv* env = AndroidRuntime::getJNIEnv(); local
168 JNIEnv* env = getJNIEnv(&needsDetach); local
183 JNIEnv* env = getJNIEnv(&needsDetach); local
202 SurfaceTexture_classInit(JNIEnv* env, jclass clazz) argument
230 SurfaceTexture_init(JNIEnv* env, jobject thiz, jboolean isDetached, jint texName, jboolean singleBufferMode, jobject weakThiz) argument
272 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument
281 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument
287 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument
299 SurfaceTexture_releaseTexImage(JNIEnv* env, jobject thiz) argument
311 SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) argument
317 SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument
323 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument
332 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument
338 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument
360 register_android_graphics_SurfaceTexture(JNIEnv* env) argument
[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
199 getDrmManagerClientImpl(JNIEnv* env, jobject thiz) argument
209 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz) argument
222 android_drm_DrmManagerClient_setListeners( JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) argument
233 android_drm_DrmManagerClient_release( JNIEnv* env, jobject thiz, jint uniqueId) argument
247 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument
296 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument
336 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument
383 android_drm_DrmManagerClient_installDrmEngine( JNIEnv* env, jobject thiz, jint uniqueId, jstring engineFilePath) argument
391 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument
414 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
425 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument
508 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument
580 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument
591 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument
607 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument
617 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument
624 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument
631 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument
641 GetConvertedStatus(JNIEnv* env, DrmConvertedStatus* pDrmConvertedStatus) argument
672 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument
691 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId) argument
764 registerNativeMethods(JNIEnv* env) argument
780 JNIEnv* env = NULL; local
[all...]

Completed in 237 milliseconds

1234567891011>>