/frameworks/base/include/android_runtime/ |
H A D | android_graphics_SurfaceTexture.h | 29 JNIEnv* env, jobject thiz); 30 extern bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz); 33 extern sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz);
|
H A D | android_view_Surface.h | 33 extern sp<Surface> Surface_getSurface(JNIEnv* env, jobject thiz);
|
/frameworks/base/core/jni/ |
H A D | android_media_ToneGenerator.cpp | 41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument 42 LOGV("android_media_ToneGenerator_startTone: %x\n", (int)thiz); 44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument 55 LOGV("android_media_ToneGenerator_stopTone: %x\n", (int)thiz); 57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 68 static void android_media_ToneGenerator_release(JNIEnv *env, jobject thiz) { argument 69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 73 env->SetIntField(thiz, fields.context, 0); 80 static void android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, argument 107 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_os_StatFs.cpp | 43 android_os_StatFs_getBlockSize(JNIEnv *env, jobject thiz) argument 45 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); 50 android_os_StatFs_getBlockCount(JNIEnv *env, jobject thiz) argument 52 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); 57 android_os_StatFs_getFreeBlocks(JNIEnv *env, jobject thiz) argument 59 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); 64 android_os_StatFs_getAvailableBlocks(JNIEnv *env, jobject thiz) argument 66 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, fields.context); 71 android_os_StatFs_native_restat(JNIEnv *env, jobject thiz, jstring path) argument 79 struct statfs *stat = (struct statfs *)env->GetIntField(thiz, field 104 android_os_StatFs_native_setup(JNIEnv *env, jobject thiz, jstring path) argument 121 android_os_StatFs_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_hardware_UsbRequest.cpp | 42 android_hardware_UsbRequest_init(JNIEnv *env, jobject thiz, jobject java_device, argument 64 env->SetIntField(thiz, field_context, (int)request); 69 android_hardware_UsbRequest_close(JNIEnv *env, jobject thiz) argument 72 struct usb_request* request = get_request_from_object(env, thiz); 75 env->SetIntField(thiz, field_context, 0); 80 android_hardware_UsbRequest_queue_array(JNIEnv *env, jobject thiz, argument 83 struct usb_request* request = get_request_from_object(env, thiz); 111 request->client_data = (void *)env->NewGlobalRef(thiz); 117 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, argument 120 struct usb_request* request = get_request_from_object(env, thiz); 136 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument 167 android_hardware_UsbRequest_dequeue_direct(JNIEnv *env, jobject thiz) argument 179 android_hardware_UsbRequest_cancel(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_hardware_UsbDeviceConnection.cpp | 42 android_hardware_UsbDeviceConnection_open(JNIEnv *env, jobject thiz, jstring deviceName, argument 54 env->SetIntField(thiz, field_context, (int)device); 65 android_hardware_UsbDeviceConnection_close(JNIEnv *env, jobject thiz) argument 68 struct usb_device* device = get_device_from_object(env, thiz); 71 env->SetIntField(thiz, field_context, 0); 76 android_hardware_UsbDeviceConnection_get_fd(JNIEnv *env, jobject thiz) argument 78 struct usb_device* device = get_device_from_object(env, thiz); 87 android_hardware_UsbDeviceConnection_get_desc(JNIEnv *env, jobject thiz) argument 90 int fd = android_hardware_UsbDeviceConnection_get_fd(env, thiz); 108 android_hardware_UsbDeviceConnection_claim_interface(JNIEnv *env, jobject thiz, argument 127 android_hardware_UsbDeviceConnection_release_interface(JNIEnv *env, jobject thiz, int interfaceID) argument 143 android_hardware_UsbDeviceConnection_control_request(JNIEnv *env, jobject thiz, jint requestType, jint request, jint value, jint index, jbyteArray buffer, jint length, jint timeout) argument 172 android_hardware_UsbDeviceConnection_bulk_request(JNIEnv *env, jobject thiz, jint endpoint, jbyteArray buffer, jint length, jint timeout) argument 199 android_hardware_UsbDeviceConnection_request_wait(JNIEnv *env, jobject thiz) argument 215 android_hardware_UsbDeviceConnection_get_serial(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_AudioRecord.cpp | 128 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 191 jclass clazz = env->GetObjectClass(thiz); 230 env->SetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj, (int)lpRecorder); 234 env->SetIntField(thiz, javaAudioRecordFields.nativeCallbackCookie, (int)lpCallbackData); 247 env->SetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj, 0); 248 env->SetIntField(thiz, javaAudioRecordFields.nativeCallbackCookie, 0); 257 android_media_AudioRecord_start(JNIEnv *env, jobject thiz) argument 260 (AudioRecord *)env->GetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj); 272 android_media_AudioRecord_stop(JNIEnv *env, jobject thiz) argument 275 (AudioRecord *)env->GetIntField(thiz, javaAudioRecordField 287 android_media_AudioRecord_release(JNIEnv *env, jobject thiz) argument 319 android_media_AudioRecord_finalize(JNIEnv *env, jobject thiz) argument 325 android_media_AudioRecord_readInByteArray(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes) argument 367 android_media_AudioRecord_readInShortArray(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts) argument 378 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes) argument 410 android_media_AudioRecord_set_marker_pos(JNIEnv *env, jobject thiz, jint markerPos) argument 428 android_media_AudioRecord_get_marker_pos(JNIEnv *env, jobject thiz) argument 446 android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument 464 android_media_AudioRecord_get_pos_update_period(JNIEnv *env, jobject thiz) argument 485 android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument [all...] |
H A D | android_media_JetPlayer.cpp | 79 android_media_JetPlayer_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 90 env->SetIntField(thiz, javaJetPlayerFields.nativePlayerInJavaObj, (int)lpJet); 103 android_media_JetPlayer_finalize(JNIEnv *env, jobject thiz) argument 107 thiz, javaJetPlayerFields.nativePlayerInJavaObj); 119 android_media_JetPlayer_release(JNIEnv *env, jobject thiz) argument 121 android_media_JetPlayer_finalize(env, thiz); 122 env->SetIntField(thiz, javaJetPlayerFields.nativePlayerInJavaObj, 0); 129 android_media_JetPlayer_loadFromFile(JNIEnv *env, jobject thiz, jstring path) argument 132 thiz, javaJetPlayerFields.nativePlayerInJavaObj); 164 android_media_JetPlayer_loadFromFileD(JNIEnv *env, jobject thiz, argument 194 android_media_JetPlayer_closeFile(JNIEnv *env, jobject thiz) argument 215 android_media_JetPlayer_play(JNIEnv *env, jobject thiz) argument 238 android_media_JetPlayer_pause(JNIEnv *env, jobject thiz) argument 265 android_media_JetPlayer_queueSegment(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jint muteFlags, jbyte userID) argument 291 android_media_JetPlayer_queueSegmentMuteArray(JNIEnv *env, jobject thiz, jint segmentNum, jint libNum, jint repeatCount, jint transpose, jbooleanArray muteArray, jbyte userID) argument 337 android_media_JetPlayer_setMuteFlags(JNIEnv *env, jobject thiz, jint muteFlags , jboolean bSync) argument 361 android_media_JetPlayer_setMuteArray(JNIEnv *env, jobject thiz, jbooleanArray muteArray, jboolean bSync) argument 406 android_media_JetPlayer_setMuteFlag(JNIEnv *env, jobject thiz, jint trackId, jboolean muteFlag, jboolean bSync) argument 432 android_media_JetPlayer_triggerClip(JNIEnv *env, jobject thiz, jint clipId) argument 456 android_media_JetPlayer_clearQueue(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_AudioSystem.cpp | 58 android_media_AudioSystem_muteMicrophone(JNIEnv *env, jobject thiz, jboolean on) argument 64 android_media_AudioSystem_isMicrophoneMuted(JNIEnv *env, jobject thiz) argument 72 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) argument 80 android_media_AudioSystem_setParameters(JNIEnv *env, jobject thiz, jstring keyValuePairs) argument 93 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument 132 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 143 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument 153 android_media_AudioSystem_setPhoneState(JNIEnv *env, jobject thiz, jint state) argument 159 android_media_AudioSystem_setRingerMode(JNIEnv *env, jobject thiz, jint mode, jint mask) argument 165 android_media_AudioSystem_setForceUse(JNIEnv *env, jobject thiz, jin argument 172 android_media_AudioSystem_getForceUse(JNIEnv *env, jobject thiz, jint usage) argument 178 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) argument 186 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index) argument 192 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream) argument 202 android_media_AudioSystem_getDevicesForStream(JNIEnv *env, jobject thiz, jint stream) argument [all...] |
H A D | android_media_AudioTrack.cpp | 169 android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 251 jclass clazz = env->GetObjectClass(thiz); 341 env->SetIntField(thiz, javaAudioTrackFields.nativeTrackInJavaObj, (int)lpTrack); 345 env->SetIntField(thiz, javaAudioTrackFields.jniData, (int)lpJniStorage); 352 env->SetIntField(thiz, javaAudioTrackFields.nativeTrackInJavaObj, 0); 361 env->SetIntField(thiz, javaAudioTrackFields.jniData, 0); 369 android_media_AudioTrack_start(JNIEnv *env, jobject thiz) argument 372 thiz, javaAudioTrackFields.nativeTrackInJavaObj); 385 android_media_AudioTrack_stop(JNIEnv *env, jobject thiz) argument 388 thiz, javaAudioTrackField 401 android_media_AudioTrack_pause(JNIEnv *env, jobject thiz) argument 417 android_media_AudioTrack_flush(JNIEnv *env, jobject thiz) argument 432 android_media_AudioTrack_set_volume(JNIEnv *env, jobject thiz, jfloat leftVol, jfloat rightVol ) argument 446 android_media_AudioTrack_native_finalize(JNIEnv *env, jobject thiz) argument 471 android_media_AudioTrack_native_release(JNIEnv *env, jobject thiz) argument 522 android_media_AudioTrack_native_write(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes, jint javaAudioFormat) argument 566 android_media_AudioTrack_native_write_short(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts, jint javaAudioFormat) argument 579 android_media_AudioTrack_get_native_frame_count(JNIEnv *env, jobject thiz) argument 594 android_media_AudioTrack_set_playback_rate(JNIEnv *env, jobject thiz, jint sampleRateInHz) argument 610 android_media_AudioTrack_get_playback_rate(JNIEnv *env, jobject thiz) argument 625 android_media_AudioTrack_set_marker_pos(JNIEnv *env, jobject thiz, jint markerPos) argument 642 android_media_AudioTrack_get_marker_pos(JNIEnv *env, jobject thiz) argument 660 android_media_AudioTrack_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument 677 android_media_AudioTrack_get_pos_update_period(JNIEnv *env, jobject thiz) argument 695 android_media_AudioTrack_set_position(JNIEnv *env, jobject thiz, jint position) argument 712 android_media_AudioTrack_get_position(JNIEnv *env, jobject thiz) argument 730 android_media_AudioTrack_set_loop(JNIEnv *env, jobject thiz, jint loopStart, jint loopEnd, jint loopCount) argument 746 android_media_AudioTrack_reload(JNIEnv *env, jobject thiz) argument 761 android_media_AudioTrack_get_output_sample_rate(JNIEnv *env, jobject thiz, jint javaStreamType) argument 800 android_media_AudioTrack_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument 813 android_media_AudioTrack_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level ) argument 827 android_media_AudioTrack_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument [all...] |
H A D | android_hardware_Camera.cpp | 110 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) argument 114 JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetIntField(thiz, fields.context)); 440 static jint android_hardware_Camera_getNumberOfCameras(JNIEnv *env, jobject thiz) argument 445 static void android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, argument 459 static void android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, argument 475 jclass clazz = env->GetObjectClass(thiz); 484 context->incStrong(thiz); 488 env->SetIntField(thiz, fields.context, (int)context.get()); 495 static void android_hardware_Camera_release(JNIEnv *env, jobject thiz) argument 503 context = reinterpret_cast<JNICameraContext*>(env->GetIntField(thiz, field 526 android_hardware_Camera_setPreviewDisplay(JNIEnv *env, jobject thiz, jobject jSurface) argument 541 android_hardware_Camera_setPreviewTexture(JNIEnv *env, jobject thiz, jobject jSurfaceTexture) argument 559 android_hardware_Camera_startPreview(JNIEnv *env, jobject thiz) argument 571 android_hardware_Camera_stopPreview(JNIEnv *env, jobject thiz) argument 580 android_hardware_Camera_previewEnabled(JNIEnv *env, jobject thiz) argument 589 android_hardware_Camera_setHasPreviewCallback(JNIEnv *env, jobject thiz, jboolean installed, jboolean manualBuffer) argument 604 android_hardware_Camera_addCallbackBuffer(JNIEnv *env, jobject thiz, jbyteArray bytes, int msgType) argument 614 android_hardware_Camera_autoFocus(JNIEnv *env, jobject thiz) argument 626 android_hardware_Camera_cancelAutoFocus(JNIEnv *env, jobject thiz) argument 638 android_hardware_Camera_takePicture(JNIEnv *env, jobject thiz, int msgType) argument 669 android_hardware_Camera_setParameters(JNIEnv *env, jobject thiz, jstring params) argument 687 android_hardware_Camera_getParameters(JNIEnv *env, jobject thiz) argument 696 android_hardware_Camera_reconnect(JNIEnv *env, jobject thiz) argument 708 android_hardware_Camera_lock(JNIEnv *env, jobject thiz) argument 719 android_hardware_Camera_unlock(JNIEnv *env, jobject thiz) argument 730 android_hardware_Camera_startSmoothZoom(JNIEnv *env, jobject thiz, jint value) argument 746 android_hardware_Camera_stopSmoothZoom(JNIEnv *env, jobject thiz) argument 757 android_hardware_Camera_setDisplayOrientation(JNIEnv *env, jobject thiz, jint value) argument 769 android_hardware_Camera_startFaceDetection(JNIEnv *env, jobject thiz, jint type) argument 787 android_hardware_Camera_stopFaceDetection(JNIEnv *env, jobject thiz) argument [all...] |
/frameworks/base/media/jni/soundpool/ |
H A D | android_media_SoundPool.cpp | 36 static inline SoundPool* MusterSoundPool(JNIEnv *env, jobject thiz) { argument 37 return (SoundPool*)env->GetIntField(thiz, fields.mNativeContext); 42 android_media_SoundPool_load_URL(JNIEnv *env, jobject thiz, jstring path, jint priority) argument 45 SoundPool *ap = MusterSoundPool(env, thiz); 57 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, argument 61 SoundPool *ap = MusterSoundPool(env, thiz); 68 android_media_SoundPool_unload(JNIEnv *env, jobject thiz, jint sampleID) { argument 70 SoundPool *ap = MusterSoundPool(env, thiz); 76 android_media_SoundPool_play(JNIEnv *env, jobject thiz, jint sampleID, argument 81 SoundPool *ap = MusterSoundPool(env, thiz); 87 android_media_SoundPool_pause(JNIEnv *env, jobject thiz, jint channelID) argument 96 android_media_SoundPool_resume(JNIEnv *env, jobject thiz, jint channelID) argument 105 android_media_SoundPool_autoPause(JNIEnv *env, jobject thiz) argument 114 android_media_SoundPool_autoResume(JNIEnv *env, jobject thiz) argument 123 android_media_SoundPool_stop(JNIEnv *env, jobject thiz, jint channelID) argument 132 android_media_SoundPool_setVolume(JNIEnv *env, jobject thiz, jint channelID, float leftVolume, float rightVolume) argument 142 android_media_SoundPool_setPriority(JNIEnv *env, jobject thiz, jint channelID, int priority) argument 152 android_media_SoundPool_setLoop(JNIEnv *env, jobject thiz, jint channelID, int loop) argument 162 android_media_SoundPool_setRate(JNIEnv *env, jobject thiz, jint channelID, float rate) argument 179 android_media_SoundPool_native_setup(JNIEnv *env, jobject thiz, jobject weakRef, jint maxChannels, jint streamType, jint srcQuality) argument 197 android_media_SoundPool_release(JNIEnv *env, jobject thiz) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaRecorder.cpp | 45 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); 130 static sp<MediaRecorder> getMediaRecorder(JNIEnv* env, jobject thiz) argument 133 MediaRecorder* const p = (MediaRecorder*)env->GetIntField(thiz, fields.context); 137 static sp<MediaRecorder> setMediaRecorder(JNIEnv* env, jobject thiz, const sp<MediaRecorder>& recorder) argument 140 sp<MediaRecorder> old = (MediaRecorder*)env->GetIntField(thiz, fields.context); 142 recorder->incStrong(thiz); 145 old->decStrong(thiz); 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 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 [all...] |
H A D | android_media_MediaPlayer.cpp | 67 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 76 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument 81 jclass clazz = env->GetObjectClass(thiz); 123 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) argument 126 MediaPlayer* const p = (MediaPlayer*)env->GetIntField(thiz, fields.context); 130 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument 133 sp<MediaPlayer> old = (MediaPlayer*)env->GetIntField(thiz, fields.context); 135 player->incStrong(thiz); 138 old->decStrong(thiz); 140 env->SetIntField(thiz, field 148 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument 175 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument 218 android_media_MediaPlayer_setDataSource(JNIEnv *env, jobject thiz, jstring path) argument 224 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 242 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument 248 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument 262 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument 297 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument 303 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument 320 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument 337 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument 349 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument 361 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument 373 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument 387 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, int msec) argument 399 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument 416 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument 434 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument 448 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument 462 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument 474 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, int streamtype) argument 486 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument 498 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument 510 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, float leftVolume, float rightVolume) argument 523 android_media_MediaPlayer_getFrameAt(JNIEnv *env, jobject thiz, jint msec) argument 532 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument 552 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument 571 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument 626 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument 644 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument 657 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument 667 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument 677 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument 689 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument 700 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument 711 android_media_MediaPlayer_pullBatteryData(JNIEnv *env, jobject thiz, jobject java_reply) argument 726 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument 745 android_media_MediaPlayer_getParameter(JNIEnv *env, jobject thiz, jint key, jobject java_reply) argument [all...] |
H A D | android_mtp_MtpServer.cpp | 55 static inline MtpServer* getMtpServer(JNIEnv *env, jobject thiz) { argument 56 return (MtpServer*)env->GetIntField(thiz, field_MtpServer_nativeContext); 60 android_mtp_MtpServer_setup(JNIEnv *env, jobject thiz, jobject javaDatabase, jboolean usePtp) argument 66 env->SetIntField(thiz, field_MtpServer_nativeContext, (int)server); 73 android_mtp_MtpServer_run(JNIEnv *env, jobject thiz) argument 75 MtpServer* server = getMtpServer(env, thiz); 83 android_mtp_MtpServer_cleanup(JNIEnv *env, jobject thiz) argument 87 MtpServer* server = getMtpServer(env, thiz); 90 env->SetIntField(thiz, field_MtpServer_nativeContext, 0); 97 android_mtp_MtpServer_send_object_added(JNIEnv *env, jobject thiz, jin argument 109 android_mtp_MtpServer_send_object_removed(JNIEnv *env, jobject thiz, jint handle) argument 121 android_mtp_MtpServer_add_storage(JNIEnv *env, jobject thiz, jobject jstorage) argument 153 android_mtp_MtpServer_remove_storage(JNIEnv *env, jobject thiz, jint storageId) argument [all...] |
H A D | android_media_MediaMetadataRetriever.cpp | 67 static MediaMetadataRetriever* getRetriever(JNIEnv* env, jobject thiz) argument 70 MediaMetadataRetriever* retriever = (MediaMetadataRetriever*) env->GetIntField(thiz, fields.context); 74 static void setRetriever(JNIEnv* env, jobject thiz, int retriever) argument 77 MediaMetadataRetriever *old = (MediaMetadataRetriever*) env->GetIntField(thiz, fields.context); 78 env->SetIntField(thiz, fields.context, retriever); 83 JNIEnv *env, jobject thiz, jstring path, 87 MediaMetadataRetriever* retriever = getRetriever(env, thiz); 136 JNIEnv *env, jobject thiz, jstring path) { 138 env, thiz, path, NULL, NULL); 141 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobjec argument 82 android_media_MediaMetadataRetriever_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument 135 android_media_MediaMetadataRetriever_setDataSource( JNIEnv *env, jobject thiz, jstring path) argument 225 android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env, jobject thiz, jlong timeUs, jint option) argument 306 android_media_MediaMetadataRetriever_getEmbeddedPicture( JNIEnv *env, jobject thiz, jint pictureType) argument 346 android_media_MediaMetadataRetriever_extractMetadata(JNIEnv *env, jobject thiz, jint keyCode) argument 363 android_media_MediaMetadataRetriever_release(JNIEnv *env, jobject thiz) argument 372 android_media_MediaMetadataRetriever_native_finalize(JNIEnv *env, jobject thiz) argument 437 android_media_MediaMetadataRetriever_native_setup(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_MediaScanner.cpp | 226 static MediaScanner *getNativeScanner_l(JNIEnv* env, jobject thiz) argument 228 return (MediaScanner *) env->GetIntField(thiz, fields.context); 231 static void setNativeScanner_l(JNIEnv* env, jobject thiz, MediaScanner *s) argument 233 env->SetIntField(thiz, fields.context, (int)s); 238 JNIEnv *env, jobject thiz, jstring path, jobject client) 241 MediaScanner *mp = getNativeScanner_l(env, thiz); 267 JNIEnv *env, jobject thiz, jstring path, 273 MediaScanner *mp = getNativeScanner_l(env, thiz); 310 JNIEnv *env, jobject thiz, jstring locale) 313 MediaScanner *mp = getNativeScanner_l(env, thiz); 237 android_media_MediaScanner_processDirectory( JNIEnv *env, jobject thiz, jstring path, jobject client) argument 266 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument 309 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument 333 android_media_MediaScanner_extractAlbumArt( JNIEnv *env, jobject thiz, jobject fileDescriptor) argument 390 android_media_MediaScanner_native_setup(JNIEnv *env, jobject thiz) argument 404 android_media_MediaScanner_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_mtp_MtpDevice.cpp | 104 android_mtp_MtpDevice_open(JNIEnv *env, jobject thiz, jstring deviceName, jint fd) argument 115 env->SetIntField(thiz, field_context, (int)device); 120 android_mtp_MtpDevice_close(JNIEnv *env, jobject thiz) argument 122 MtpDevice* device = get_device_from_object(env, thiz); 126 env->SetIntField(thiz, field_context, 0); 131 android_mtp_MtpDevice_get_device_info(JNIEnv *env, jobject thiz) argument 133 MtpDevice* device = get_device_from_object(env, thiz); 168 android_mtp_MtpDevice_get_storage_ids(JNIEnv *env, jobject thiz) argument 170 MtpDevice* device = get_device_from_object(env, thiz); 187 android_mtp_MtpDevice_get_storage_info(JNIEnv *env, jobject thiz, jin argument 221 android_mtp_MtpDevice_get_object_handles(JNIEnv *env, jobject thiz, jint storageID, jint format, jint objectID) argument 241 android_mtp_MtpDevice_get_object_info(JNIEnv *env, jobject thiz, jint objectID) argument 315 android_mtp_MtpDevice_get_object(JNIEnv *env, jobject thiz, jint objectID, jint objectSize) argument 337 android_mtp_MtpDevice_get_thumbnail(JNIEnv *env, jobject thiz, jint objectID) argument 355 android_mtp_MtpDevice_delete_object(JNIEnv *env, jobject thiz, jint object_id) argument 365 android_mtp_MtpDevice_get_parent(JNIEnv *env, jobject thiz, jint object_id) argument 375 android_mtp_MtpDevice_get_storage_id(JNIEnv *env, jobject thiz, jint object_id) argument 385 android_mtp_MtpDevice_import_file(JNIEnv *env, jobject thiz, jint object_id, jstring dest_path) argument [all...] |
H A D | android_media_MediaProfiles.cpp | 48 android_media_MediaProfiles_native_get_num_file_formats(JNIEnv *env, jobject thiz) argument 55 android_media_MediaProfiles_native_get_file_format(JNIEnv *env, jobject thiz, jint index) argument 68 android_media_MediaProfiles_native_get_num_video_encoders(JNIEnv *env, jobject thiz) argument 75 android_media_MediaProfiles_native_get_video_encoder_cap(JNIEnv *env, jobject thiz, jint index) argument 119 android_media_MediaProfiles_native_get_num_audio_encoders(JNIEnv *env, jobject thiz) argument 126 android_media_MediaProfiles_native_get_audio_encoder_cap(JNIEnv *env, jobject thiz, jint index) argument 173 android_media_MediaProfiles_native_get_camcorder_profile(JNIEnv *env, jobject thiz, jint id, jint quality) argument 222 android_media_MediaProfiles_native_has_camcorder_profile(JNIEnv *env, jobject thiz, jint id, jint quality) argument 234 android_media_MediaProfiles_native_get_num_video_decoders(JNIEnv *env, jobject thiz) argument 241 android_media_MediaProfiles_native_get_video_decoder_type(JNIEnv *env, jobject thiz, jin argument 255 android_media_MediaProfiles_native_get_num_audio_decoders(JNIEnv *env, jobject thiz) argument 262 android_media_MediaProfiles_native_get_audio_decoder_type(JNIEnv *env, jobject thiz, jint index) argument 276 android_media_MediaProfiles_native_get_num_image_encoding_quality_levels(JNIEnv *env, jobject thiz, jint cameraId) argument 283 android_media_MediaProfiles_native_get_image_encoding_quality_level(JNIEnv *env, jobject thiz, jint cameraId, jint index) argument 294 android_media_MediaProfiles_native_get_videoeditor_profile(JNIEnv *env, jobject thiz) argument 332 android_media_MediaProfiles_native_get_videoeditor_export_profile( JNIEnv *env, jobject thiz, jint codec) argument 348 android_media_MediaProfiles_native_get_videoeditor_export_level( JNIEnv *env, jobject thiz, jint codec) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | SurfaceTexture.cpp | 48 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument 52 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture); 54 surfaceTexture->incStrong(thiz); 57 p->decStrong(thiz); 59 env->SetIntField(thiz, fields.surfaceTexture, (int)surfaceTexture.get()); 62 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) argument 65 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture)); 70 JNIEnv* env, jobject thiz) 72 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz)); 78 bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument 69 android_SurfaceTexture_getNativeWindow( JNIEnv* env, jobject thiz) argument 178 SurfaceTexture_init(JNIEnv* env, jobject thiz, jint texName, jobject weakThiz, jboolean allowSynchronous) argument 201 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument 208 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument 215 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument 221 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument 230 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument 236 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument [all...] |
/frameworks/base/voip/jni/rtp/ |
H A D | RtpStream.cpp | 38 jint create(JNIEnv *env, jobject thiz, jstring jAddress) argument 40 env->SetIntField(thiz, gNative, -1); 61 env->SetIntField(thiz, gNative, socket); 78 env->SetIntField(thiz, gNative, socket); 89 jint dup(JNIEnv *env, jobject thiz) argument 91 int socket = ::dup(env->GetIntField(thiz, gNative)); 98 void close(JNIEnv *env, jobject thiz) argument 100 int socket = env->GetIntField(thiz, gNative); 102 env->SetIntField(thiz, gNative, -1);
|
/frameworks/base/media/jni/audioeffect/ |
H A D | android_media_Visualizer.cpp | 162 static Visualizer *getVisualizer(JNIEnv* env, jobject thiz) argument 165 thiz, fields.fidNativeVisualizer); 225 android_media_visualizer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 282 env->SetIntField(thiz, fields.fidNativeVisualizer, (int)lpVisualizer); 284 env->SetIntField(thiz, fields.fidJniData, (int)lpJniStorage); 298 env->SetIntField(thiz, fields.fidNativeVisualizer, 0); 303 env->SetIntField(thiz, fields.fidJniData, 0); 309 static void android_media_visualizer_native_finalize(JNIEnv *env, jobject thiz) { argument 310 LOGV("android_media_visualizer_native_finalize jobject: %x\n", (int)thiz); 314 thiz, field 330 android_media_visualizer_native_release(JNIEnv *env, jobject thiz) argument 341 android_media_visualizer_native_setEnabled(JNIEnv *env, jobject thiz, jboolean enabled) argument 352 android_media_visualizer_native_getEnabled(JNIEnv *env, jobject thiz) argument 363 android_media_visualizer_native_getCaptureSizeRange(JNIEnv *env, jobject thiz) argument 375 android_media_visualizer_native_getMaxCaptureRate(JNIEnv *env, jobject thiz) argument 381 android_media_visualizer_native_setCaptureSize(JNIEnv *env, jobject thiz, jint size) argument 392 android_media_visualizer_native_getCaptureSize(JNIEnv *env, jobject thiz) argument 402 android_media_visualizer_native_getSamplingRate(JNIEnv *env, jobject thiz) argument 412 android_media_visualizer_native_getWaveForm(JNIEnv *env, jobject thiz, jbyteArray jWaveform) argument 430 android_media_visualizer_native_getFft(JNIEnv *env, jobject thiz, jbyteArray jFft) argument 449 android_media_setPeriodicCapture(JNIEnv *env, jobject thiz, jint rate, jboolean jWaveform, jboolean jFft) argument [all...] |
/frameworks/base/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 157 JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 168 JNIOnInfoListener::JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz) { argument 169 jclass clazz = env->GetObjectClass(thiz); 202 JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) { 207 sp<DrmManagerClientImpl> old = (DrmManagerClientImpl*)env->GetIntField(thiz, fieldId); 209 client->incStrong(thiz); 212 old->decStrong(thiz); 214 env->SetIntField(thiz, fieldId, (int)client.get()); 218 static sp<DrmManagerClientImpl> getDrmManagerClientImpl(JNIEnv* env, jobject thiz) { argument 223 DrmManagerClientImpl* const client = (DrmManagerClientImpl*)env->GetIntField(thiz, fieldI 201 setDrmManagerClientImpl( JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) argument 227 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz, jobject weak_thiz) argument 245 android_drm_DrmManagerClient_finalize(JNIEnv* env, jobject thiz, jint uniqueId) argument 258 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument 305 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument 342 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument 389 android_drm_DrmManagerClient_installDrmEngine( JNIEnv* env, jobject thiz, jint uniqueId, jstring engineFilePath) argument 397 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument 420 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 431 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument 513 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument 583 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 594 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument 604 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument 614 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument 621 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument 627 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument 637 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument 678 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, int uniqueId, jint convertId) argument [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_UsbHostManager.cpp | 65 jobject thiz = (jobject)client_data; local 111 env->CallVoidMethod(thiz, method_usbDeviceAdded, 125 jobject thiz = (jobject)client_data; local 128 env->CallVoidMethod(thiz, method_usbDeviceRemoved, deviceName); 134 static void android_server_UsbHostManager_monitorUsbHostBus(JNIEnv *env, jobject thiz) argument 141 // this will never return so it is safe to pass thiz directly 142 usb_host_run(context, usb_device_added, usb_device_removed, NULL, (void *)thiz); 145 static jobject android_server_UsbHostManager_openDevice(JNIEnv *env, jobject thiz, jstring deviceName) argument
|
H A D | com_android_server_UsbDeviceManager.cpp | 65 static jobjectArray android_server_UsbDeviceManager_getAccessoryStrings(JNIEnv *env, jobject thiz) argument 87 static jobject android_server_UsbDeviceManager_openAccessory(JNIEnv *env, jobject thiz) argument 102 static jboolean android_server_UsbDeviceManager_isStartRequested(JNIEnv *env, jobject thiz) argument
|