/frameworks/base/services/core/jni/ |
H A D | onload.cpp | 23 int register_android_server_ActivityManagerService(JNIEnv* env); 24 int register_android_server_AlarmManagerService(JNIEnv* env); 25 int register_android_server_AssetAtlasService(JNIEnv* env); 26 int register_android_server_BatteryStatsService(JNIEnv* env); 27 int register_android_server_ConsumerIrService(JNIEnv *env); 28 int register_android_server_InputApplicationHandle(JNIEnv* env); 29 int register_android_server_InputWindowHandle(JNIEnv* env); 30 int register_android_server_InputManager(JNIEnv* env); 31 int register_android_server_LightsService(JNIEnv* env); 32 int register_android_server_PowerManagerService(JNIEnv* env); 55 JNIEnv* env = NULL; local [all...] |
/frameworks/base/include/android_runtime/ |
H A D | Log.h | 27 #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 D | rtp_jni.cpp | 21 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 D | BitmapDecoderJNI.cpp | 27 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 D | FrameSequenceJNI.h | 22 jint FrameSequence_OnLoad(JNIEnv* env);
|
H A D | JNIHelpers.cpp | 20 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 D | jni_native_buffer.cpp | 20 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 D | jni_util.cpp | 35 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/ |
H A D | android_os_Parcel.h | 25 extern Parcel* parcelForJavaObject(JNIEnv* env, jobject obj); 26 extern jobject createJavaParcelObject(JNIEnv* env); 27 extern void recycleJavaParcelObject(JNIEnv* env, jobject object);
|
H A D | android_view_PointerIcon.cpp | 48 jobject android_view_PointerIcon_getSystemIcon(JNIEnv* env, jobject contextObj, int32_t style) { argument 49 jobject pointerIconObj = env->CallStaticObjectMethod(gPointerIconClassInfo.clazz, 51 if (env->ExceptionCheck()) { 53 LOGW_EX(env); 54 env->ExceptionClear(); 60 status_t android_view_PointerIcon_load(JNIEnv* env, jobject pointerIconObj, jobject contextObj, argument 68 ScopedLocalRef<jobject> loadedPointerIconObj(env, env->CallObjectMethod(pointerIconObj, 70 if (env->ExceptionCheck() || !loadedPointerIconObj.get()) { 72 LOGW_EX(env); 79 android_view_PointerIcon_getLoadedIcon(JNIEnv* env, jobject pointerIconObj, PointerIcon* outPointerIcon) argument 107 android_view_PointerIcon_loadSystemIcon(JNIEnv* env, jobject contextObj, int32_t style, PointerIcon* outPointerIcon) argument 124 register_android_view_PointerIcon(JNIEnv* env) argument [all...] |
H A D | android_content_res_ObbScanner.cpp | 41 static void android_content_res_ObbScanner_getObbInfo(JNIEnv* env, jobject clazz, jstring file, argument 44 const char* filePath = env->GetStringUTFChars(file, NULL); 48 env->ReleaseStringUTFChars(file, filePath); 49 jniThrowException(env, "java/io/IOException", "Could not read OBB file"); 53 env->ReleaseStringUTFChars(file, filePath); 57 jstring packageName = env->NewStringUTF(packageNameStr); 59 jniThrowException(env, "java/io/IOException", "Could not read OBB file"); 63 env->SetObjectField(obbInfo, gObbInfoClassInfo.packageName, packageName); 64 env->SetIntField(obbInfo, gObbInfoClassInfo.version, obb->getVersion()); 65 env 85 register_android_content_res_ObbScanner(JNIEnv* env) argument [all...] |
H A D | android_database_SQLiteCommon.h | 33 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 D | android_util_Binder.h | 28 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 D | android_util_Log.cpp | 50 static jboolean android_util_Log_isLoggable(JNIEnv* env, jobject clazz, jstring tag, jint level) argument 56 const char* chars = env->GetStringUTFChars(tag, NULL); 67 jniThrowException(env, "java/lang/IllegalArgumentException", buf2); 72 env->ReleaseStringUTFChars(tag, chars); 84 static jint android_util_Log_println_native(JNIEnv* env, jobject clazz, argument 91 jniThrowNullPointerException(env, "println needs a message"); 96 jniThrowNullPointerException(env, "bad bufID"); 101 tag = env->GetStringUTFChars(tagObj, NULL); 102 msg = env->GetStringUTFChars(msgObj, NULL); 107 env 133 register_android_util_Log(JNIEnv* env) argument [all...] |
H A D | android_view_InputChannel.cpp | 52 void invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj); 74 void NativeInputChannel::invokeAndRemoveDisposeCallback(JNIEnv* env, jobject obj) { argument 76 mDisposeCallback(env, obj, mInputChannel, mDisposeData); 84 static NativeInputChannel* android_view_InputChannel_getNativeInputChannel(JNIEnv* env, argument 86 jlong longPtr = env->GetLongField(inputChannelObj, gInputChannelClassInfo.mPtr); 90 static void android_view_InputChannel_setNativeInputChannel(JNIEnv* env, jobject inputChannelObj, argument 92 env->SetLongField(inputChannelObj, gInputChannelClassInfo.mPtr, 96 sp<InputChannel> android_view_InputChannel_getInputChannel(JNIEnv* env, jobject inputChannelObj) { argument 98 android_view_InputChannel_getNativeInputChannel(env, inputChannelObj); 102 void android_view_InputChannel_setDisposeCallback(JNIEnv* env, jobjec argument 113 android_view_InputChannel_createInputChannel(JNIEnv* env, NativeInputChannel* nativeInputChannel) argument 123 android_view_InputChannel_nativeOpenInputChannelPair(JNIEnv* env, jclass clazz, jstring nameObj) argument 162 android_view_InputChannel_nativeDispose(JNIEnv* env, jobject obj, jboolean finalized) argument 178 android_view_InputChannel_nativeTransferTo(JNIEnv* env, jobject obj, jobject otherObj) argument 192 android_view_InputChannel_nativeReadFromParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument 222 android_view_InputChannel_nativeWriteToParcel(JNIEnv* env, jobject obj, jobject parcelObj) argument 240 android_view_InputChannel_nativeGetName(JNIEnv* env, jobject obj) argument 251 android_view_InputChannel_nativeDup(JNIEnv* env, jobject obj, jobject otherObj) argument 280 register_android_view_InputChannel(JNIEnv* env) argument [all...] |
H A D | android_hardware_SoundTrigger.cpp | 171 JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz); 184 JNISoundTriggerCallback::JNISoundTriggerCallback(JNIEnv* env, jobject thiz, jobject weak_thiz) argument 189 jclass clazz = env->GetObjectClass(thiz); 194 mClass = (jclass)env->NewGlobalRef(clazz); 198 mObject = env->NewGlobalRef(weak_thiz); 204 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 205 env->DeleteGlobalRef(mObject); 206 env->DeleteGlobalRef(mClass); 211 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 216 jData = env 311 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 337 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 348 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 360 getSoundTrigger(JNIEnv* env, jobject thiz) argument 368 setSoundTrigger(JNIEnv* env, jobject thiz, const sp<SoundTrigger>& module) argument 385 android_hardware_SoundTrigger_listModules(JNIEnv *env, jobject clazz, jobject jModules) argument 461 android_hardware_SoundTrigger_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument 479 android_hardware_SoundTrigger_detach(JNIEnv *env, jobject thiz) argument 491 android_hardware_SoundTrigger_finalize(JNIEnv *env, jobject thiz) argument 502 android_hardware_SoundTrigger_loadSoundModel(JNIEnv *env, jobject thiz, jobject jSoundModel, jintArray jHandle) argument 670 android_hardware_SoundTrigger_unloadSoundModel(JNIEnv *env, jobject thiz, jint jHandle) argument 685 android_hardware_SoundTrigger_startRecognition(JNIEnv *env, jobject thiz, jint jHandle, jobject jConfig) argument 778 android_hardware_SoundTrigger_stopRecognition(JNIEnv *env, jobject thiz, jint jHandle) argument 822 register_android_hardware_SoundTrigger(JNIEnv *env) argument [all...] |
H A D | android_media_DeviceCallback.cpp | 34 JNIDeviceCallback::JNIDeviceCallback(JNIEnv* env, jobject thiz, jobject weak_thiz, argument 40 jclass clazz = env->GetObjectClass(thiz); 44 mClass = (jclass)env->NewGlobalRef(clazz); 48 mObject = env->NewGlobalRef(weak_thiz); 56 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 57 if (env == NULL) { 60 env->DeleteGlobalRef(mObject); 61 env->DeleteGlobalRef(mClass); 67 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 68 if (env [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_SyncParams.cpp | 23 void SyncParams::fields_t::init(JNIEnv *env) { argument 24 jclass lclazz = env->FindClass("android/media/SyncParams"); 29 clazz = (jclass)env->NewGlobalRef(lclazz); 34 constructID = env->GetMethodID(clazz, "<init>", "()V"); 36 sync_source = env->GetFieldID(clazz, "mSyncSource", "I"); 37 audio_adjust_mode = env->GetFieldID(clazz, "mAudioAdjustMode", "I"); 38 tolerance = env->GetFieldID(clazz, "mTolerance", "F"); 39 frame_rate = env->GetFieldID(clazz, "mFrameRate", "F"); 40 set = env->GetFieldID(clazz, "mSet", "I"); 43 env 54 exit(JNIEnv *env) argument 59 fillFromJobject(JNIEnv *env, const fields_t& fields, jobject params) argument 72 asJobject(JNIEnv *env, const fields_t& fields) argument [all...] |
H A D | android_mtp_MtpDevice.cpp | 112 JavaArrayWriter(JNIEnv* env, jbyteArray array) : argument 113 mEnv(env), mArray(array), mSize(mEnv->GetArrayLength(mArray)) {} 133 MtpDevice* get_device_from_object(JNIEnv* env, jobject javaDevice) argument 135 return (MtpDevice*)env->GetLongField(javaDevice, field_context); 138 void fill_jobject_from_object_info(JNIEnv* env, jobject object, MtpObjectInfo* objectInfo) { argument 140 env->SetIntField(object, field_objectInfo_handle, objectInfo->mHandle); 142 env->SetIntField(object, field_objectInfo_storageId, objectInfo->mStorageID); 144 env->SetIntField(object, field_objectInfo_format, objectInfo->mFormat); 146 env->SetIntField(object, field_objectInfo_protectionStatus, objectInfo->mProtectionStatus); 148 env 190 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument 206 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument 217 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument 284 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument 303 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jint storageID) argument 337 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument 357 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument 377 check_uint32_arg(JNIEnv *env, const char* name, jlong value, uint32_t* out) argument 390 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jlong objectSizeLong) argument 417 android_mtp_MtpDevice_get_partial_object(JNIEnv *env, jobject thiz, jint objectID, jlong offsetLong, jlong sizeLong, jbyteArray array) argument 454 android_mtp_MtpDevice_get_partial_object_64(JNIEnv *env, jobject thiz, jint objectID, jlong offset, jlong size, jbyteArray array) argument 508 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument 526 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument 537 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument 547 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument 557 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument 575 android_mtp_MtpDevice_import_file_to_fd(JNIEnv *env, jobject thiz, jint object_id, jint fd) argument 585 android_mtp_MtpDevice_send_object( JNIEnv *env, jobject thiz, jint object_id, jlong sizeLong, jint fd) argument 600 android_mtp_MtpDevice_send_object_info(JNIEnv *env, jobject thiz, jobject info) argument 666 android_mtp_MtpDevice_submit_event_request(JNIEnv *env, jobject thiz) argument 676 android_mtp_MtpDevice_reap_event_request(JNIEnv *env, jobject thiz, jint seq) argument 697 android_mtp_MtpDevice_discard_event_request(JNIEnv *env, jobject thiz, jint seq) argument 708 android_mtp_MtpDevice_get_object_size_long( JNIEnv *env, jobject thiz, jint handle, jint format) argument 779 register_android_mtp_MtpDevice(JNIEnv *env) argument [all...] |
H A D | android_media_MediaHTTPConnection.cpp | 34 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 174 register_android_media_MediaHTTPConnection(JNIEnv *env) argument [all...] |
H A D | android_media_MediaPlayer.cpp | 82 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 91 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument 96 jclass clazz = env->GetObjectClass(thiz); 99 jniThrowException(env, "java/lang/Exception", NULL); 102 mClass = (jclass)env->NewGlobalRef(clazz); 106 mObject = env->NewGlobalRef(weak_thiz); 112 JNIEnv *env = AndroidRuntime::getJNIEnv(); local 113 env->DeleteGlobalRef(mObject); 114 env->DeleteGlobalRef(mClass); 119 JNIEnv *env local 142 getMediaPlayer(JNIEnv* env, jobject thiz) argument 149 setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument 167 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument 196 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jobject httpServiceBinderObj, jstring path, jobjectArray keys, jobjectArray values) argument 246 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 264 android_media_MediaPlayer_setDataSourceCallback(JNIEnv *env, jobject thiz, jobject dataSource) argument 281 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument 287 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument 301 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument 341 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument 347 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument 364 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument 381 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument 393 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument 405 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument 417 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument 431 android_media_MediaPlayer_setPlaybackParams(JNIEnv *env, jobject thiz, jobject params) argument 477 android_media_MediaPlayer_getPlaybackParams(JNIEnv *env, jobject thiz) argument 502 android_media_MediaPlayer_setSyncParams(JNIEnv *env, jobject thiz, jobject params) argument 545 android_media_MediaPlayer_getSyncParams(JNIEnv *env, jobject thiz) argument 580 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, jint msec) argument 592 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument 609 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument 627 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument 641 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument 655 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument 667 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, jint streamtype) argument 679 android_media_MediaPlayer_getAudioStreamType(JNIEnv *env, jobject thiz) argument 693 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument 712 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument 724 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument 736 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, jfloat leftVolume, jfloat rightVolume) argument 750 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument 769 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument 788 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument 820 android_media_MediaPlayer_native_init(JNIEnv *env) argument 868 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument 886 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument 899 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument 909 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument 921 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument 933 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument 944 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument 955 android_media_MediaPlayer_pullBatteryData( JNIEnv *env, jobject , jobject java_reply) argument 971 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz, jstring addrString, jint port) argument 1010 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player) argument 1088 register_android_media_MediaPlayer(JNIEnv *env) argument 1116 JNIEnv* env = NULL; local [all...] |
/frameworks/webview/chromium/plat_support/ |
H A D | jni_entry_point.cpp | 24 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/packages/services/PacProcessor/jni/ |
H A D | jni_init.cpp | 23 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/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 47 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 392 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument 415 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 426 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument 509 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument 581 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 592 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument 608 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument 618 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument 625 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument 632 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument 642 GetConvertedStatus(JNIEnv* env, DrmConvertedStatus* pDrmConvertedStatus) argument 673 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument 692 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId) argument 765 registerNativeMethods(JNIEnv* env) argument 781 JNIEnv* env = NULL; local [all...] |
/frameworks/base/services/tests/servicestests/jni/ |
H A D | UidRangeTest.cpp | 26 JNIEXPORT jbyteArray Java_android_net_UidRangeTest_readAndWriteNative(JNIEnv* env, jclass, argument 28 const UidRange range = unmarshall(env, inParcel); 29 return marshall(env, range); 33 JNIEXPORT jint Java_android_net_UidRangeTest_getStart(JNIEnv* env, jclass, jbyteArray inParcel) { argument 34 const UidRange range = unmarshall(env, inParcel); 39 JNIEXPORT jint Java_android_net_UidRangeTest_getStop(JNIEnv* env, jclass, jbyteArray inParcel) { argument 40 const UidRange range = unmarshall(env, inParcel); 49 UidRange unmarshall(JNIEnv* env, jbyteArray parcelData) { argument 50 const int length = env->GetArrayLength(parcelData); 53 env 70 marshall(JNIEnv* env, const UidRange& range) argument [all...] |