/frameworks/base/core/jni/android/graphics/ |
H A D | SurfaceTexture.cpp | 49 static void SurfaceTexture_setSurfaceTexture(JNIEnv* env, jobject thiz, argument 53 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture); 55 surfaceTexture->incStrong(thiz); 58 p->decStrong(thiz); 60 env->SetIntField(thiz, fields.surfaceTexture, (int)surfaceTexture.get()); 63 sp<SurfaceTexture> SurfaceTexture_getSurfaceTexture(JNIEnv* env, jobject thiz) argument 66 (SurfaceTexture*)env->GetIntField(thiz, fields.surfaceTexture)); 71 JNIEnv* env, jobject thiz) 73 sp<SurfaceTexture> surfaceTexture(SurfaceTexture_getSurfaceTexture(env, thiz)); 79 bool android_SurfaceTexture_isInstanceOf(JNIEnv* env, jobject thiz) argument 70 android_SurfaceTexture_getNativeWindow( JNIEnv* env, jobject thiz) argument 179 SurfaceTexture_init(JNIEnv* env, jobject thiz, jint texName, jobject weakThiz, jboolean allowSynchronous) argument 202 SurfaceTexture_finalize(JNIEnv* env, jobject thiz) argument 209 SurfaceTexture_setDefaultBufferSize( JNIEnv* env, jobject thiz, jint width, jint height) argument 216 SurfaceTexture_updateTexImage(JNIEnv* env, jobject thiz) argument 228 SurfaceTexture_detachFromGLContext(JNIEnv* env, jobject thiz) argument 234 SurfaceTexture_attachToGLContext(JNIEnv* env, jobject thiz, jint tex) argument 240 SurfaceTexture_getTransformMatrix(JNIEnv* env, jobject thiz, jfloatArray jmtx) argument 249 SurfaceTexture_getTimestamp(JNIEnv* env, jobject thiz) argument 255 SurfaceTexture_release(JNIEnv* env, jobject thiz) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_hardware_Camera.cpp | 112 sp<Camera> get_native_camera(JNIEnv *env, jobject thiz, JNICameraContext** pContext) argument 116 JNICameraContext* context = reinterpret_cast<JNICameraContext*>(env->GetIntField(thiz, fields.context)); 442 static jint android_hardware_Camera_getNumberOfCameras(JNIEnv *env, jobject thiz) argument 447 static void android_hardware_Camera_getCameraInfo(JNIEnv *env, jobject thiz, argument 467 static void android_hardware_Camera_native_setup(JNIEnv *env, jobject thiz, argument 483 jclass clazz = env->GetObjectClass(thiz); 492 context->incStrong(thiz); 496 env->SetIntField(thiz, fields.context, (int)context.get()); 503 static void android_hardware_Camera_release(JNIEnv *env, jobject thiz) argument 511 context = reinterpret_cast<JNICameraContext*>(env->GetIntField(thiz, field 534 android_hardware_Camera_setPreviewDisplay(JNIEnv *env, jobject thiz, jobject jSurface) argument 549 android_hardware_Camera_setPreviewTexture(JNIEnv *env, jobject thiz, jobject jSurfaceTexture) argument 577 android_hardware_Camera_startPreview(JNIEnv *env, jobject thiz) argument 589 android_hardware_Camera_stopPreview(JNIEnv *env, jobject thiz) argument 598 android_hardware_Camera_previewEnabled(JNIEnv *env, jobject thiz) argument 607 android_hardware_Camera_setHasPreviewCallback(JNIEnv *env, jobject thiz, jboolean installed, jboolean manualBuffer) argument 622 android_hardware_Camera_addCallbackBuffer(JNIEnv *env, jobject thiz, jbyteArray bytes, int msgType) argument 632 android_hardware_Camera_autoFocus(JNIEnv *env, jobject thiz) argument 644 android_hardware_Camera_cancelAutoFocus(JNIEnv *env, jobject thiz) argument 656 android_hardware_Camera_takePicture(JNIEnv *env, jobject thiz, int msgType) argument 687 android_hardware_Camera_setParameters(JNIEnv *env, jobject thiz, jstring params) argument 705 android_hardware_Camera_getParameters(JNIEnv *env, jobject thiz) argument 719 android_hardware_Camera_reconnect(JNIEnv *env, jobject thiz) argument 731 android_hardware_Camera_lock(JNIEnv *env, jobject thiz) argument 742 android_hardware_Camera_unlock(JNIEnv *env, jobject thiz) argument 753 android_hardware_Camera_startSmoothZoom(JNIEnv *env, jobject thiz, jint value) argument 769 android_hardware_Camera_stopSmoothZoom(JNIEnv *env, jobject thiz) argument 780 android_hardware_Camera_setDisplayOrientation(JNIEnv *env, jobject thiz, jint value) argument 792 android_hardware_Camera_enableShutterSound(JNIEnv *env, jobject thiz, jboolean enabled) argument 811 android_hardware_Camera_startFaceDetection(JNIEnv *env, jobject thiz, jint type) argument 829 android_hardware_Camera_stopFaceDetection(JNIEnv *env, jobject thiz) argument 840 android_hardware_Camera_enableFocusMoveCallback(JNIEnv *env, jobject thiz, jint enable) argument [all...] |
H A D | android_hardware_SerialPort.cpp | 36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) argument 142 env->SetIntField(thiz, field_context, fd); 161 android_hardware_SerialPort_close(JNIEnv *env, jobject thiz) argument 163 int fd = env->GetIntField(thiz, field_context); 165 env->SetIntField(thiz, field_context, -1); 169 android_hardware_SerialPort_read_array(JNIEnv *env, jobject thiz, jbyteArray buffer, jint length) argument 171 int fd = env->GetIntField(thiz, field_context); 191 android_hardware_SerialPort_read_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 193 int fd = env->GetIntField(thiz, field_context); 208 android_hardware_SerialPort_write_array(JNIEnv *env, jobject thiz, jbyteArra argument 225 android_hardware_SerialPort_write_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length) argument 240 android_hardware_SerialPort_send_break(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_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); 112 request->client_data = (void *)env->NewGlobalRef(thiz); 118 android_hardware_UsbRequest_dequeue_array(JNIEnv *env, jobject thiz, argument 121 struct usb_request* request = get_request_from_object(env, thiz); 137 android_hardware_UsbRequest_queue_direct(JNIEnv *env, jobject thiz, jobject buffer, jint length, jboolean out) argument 168 android_hardware_UsbRequest_dequeue_direct(JNIEnv *env, jobject thiz) argument 181 android_hardware_UsbRequest_cancel(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_AudioRecord.cpp | 143 static sp<AudioRecord> getAudioRecord(JNIEnv* env, jobject thiz) argument 147 (AudioRecord*)env->GetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj); 151 static sp<AudioRecord> setAudioRecord(JNIEnv* env, jobject thiz, const sp<AudioRecord>& ar) argument 155 (AudioRecord*)env->GetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj); 157 ar->incStrong(thiz); 160 old->decStrong(thiz); 162 env->SetIntField(thiz, javaAudioRecordFields.nativeRecorderInJavaObj, (int)ar.get()); 168 android_media_AudioRecord_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 205 jclass clazz = env->GetObjectClass(thiz); 272 setAudioRecord(env, thiz, lpRecorde 294 android_media_AudioRecord_start(JNIEnv *env, jobject thiz, jint event, jint triggerSession) argument 309 android_media_AudioRecord_stop(JNIEnv *env, jobject thiz) argument 325 android_media_AudioRecord_release(JNIEnv *env, jobject thiz) argument 360 android_media_AudioRecord_finalize(JNIEnv *env, jobject thiz) argument 366 android_media_AudioRecord_readInByteArray(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes) argument 405 android_media_AudioRecord_readInShortArray(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts) argument 416 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes) argument 444 android_media_AudioRecord_set_marker_pos(JNIEnv *env, jobject thiz, jint markerPos) argument 458 android_media_AudioRecord_get_marker_pos(JNIEnv *env, jobject thiz) argument 474 android_media_AudioRecord_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument 489 android_media_AudioRecord_get_pos_update_period(JNIEnv *env, jobject thiz) argument 508 android_media_AudioRecord_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument [all...] |
H A D | android_media_AudioSystem.cpp | 57 android_media_AudioSystem_muteMicrophone(JNIEnv *env, jobject thiz, jboolean on) argument 63 android_media_AudioSystem_isMicrophoneMuted(JNIEnv *env, jobject thiz) argument 71 android_media_AudioSystem_isStreamActive(JNIEnv *env, jobject thiz, jint stream, jint inPastMs) argument 79 android_media_AudioSystem_isSourceActive(JNIEnv *env, jobject thiz, jint source) argument 87 android_media_AudioSystem_setParameters(JNIEnv *env, jobject thiz, jstring keyValuePairs) argument 100 android_media_AudioSystem_getParameters(JNIEnv *env, jobject thiz, jstring keys) argument 139 android_media_AudioSystem_setDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jint state, jstring device_address) argument 150 android_media_AudioSystem_getDeviceConnectionState(JNIEnv *env, jobject thiz, jint device, jstring device_address) argument 160 android_media_AudioSystem_setPhoneState(JNIEnv *env, jobject thiz, jint state) argument 166 android_media_AudioSystem_setForceUse(JNIEnv *env, jobject thiz, jin argument 173 android_media_AudioSystem_getForceUse(JNIEnv *env, jobject thiz, jint usage) argument 179 android_media_AudioSystem_initStreamVolume(JNIEnv *env, jobject thiz, jint stream, jint indexMin, jint indexMax) argument 187 android_media_AudioSystem_setStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint index, jint device) argument 200 android_media_AudioSystem_getStreamVolumeIndex(JNIEnv *env, jobject thiz, jint stream, jint device) argument 216 android_media_AudioSystem_setMasterVolume(JNIEnv *env, jobject thiz, jfloat value) argument 222 android_media_AudioSystem_getMasterVolume(JNIEnv *env, jobject thiz) argument 232 android_media_AudioSystem_setMasterMute(JNIEnv *env, jobject thiz, jboolean mute) argument 238 android_media_AudioSystem_getMasterMute(JNIEnv *env, jobject thiz) argument 248 android_media_AudioSystem_getDevicesForStream(JNIEnv *env, jobject thiz, jint stream) argument [all...] |
H A D | android_media_AudioTrack.cpp | 178 static sp<AudioTrack> getAudioTrack(JNIEnv* env, jobject thiz) argument 182 (AudioTrack*)env->GetIntField(thiz, javaAudioTrackFields.nativeTrackInJavaObj); 186 static sp<AudioTrack> setAudioTrack(JNIEnv* env, jobject thiz, const sp<AudioTrack>& at) argument 190 (AudioTrack*)env->GetIntField(thiz, javaAudioTrackFields.nativeTrackInJavaObj); 192 at->incStrong(thiz); 195 old->decStrong(thiz); 197 env->SetIntField(thiz, javaAudioTrackFields.nativeTrackInJavaObj, (int)at.get()); 203 android_media_AudioTrack_native_setup(JNIEnv *env, jobject thiz, jobject weak_this, argument 276 jclass clazz = env->GetObjectClass(thiz); 371 setAudioTrack(env, thiz, lpTrac 395 android_media_AudioTrack_start(JNIEnv *env, jobject thiz) argument 410 android_media_AudioTrack_stop(JNIEnv *env, jobject thiz) argument 425 android_media_AudioTrack_pause(JNIEnv *env, jobject thiz) argument 440 android_media_AudioTrack_flush(JNIEnv *env, jobject thiz) argument 454 android_media_AudioTrack_set_volume(JNIEnv *env, jobject thiz, jfloat leftVol, jfloat rightVol ) argument 469 android_media_AudioTrack_native_release(JNIEnv *env, jobject thiz) argument 505 android_media_AudioTrack_native_finalize(JNIEnv *env, jobject thiz) argument 550 android_media_AudioTrack_native_write_byte(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes, jint javaAudioFormat) argument 591 android_media_AudioTrack_native_write_short(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts, jint javaAudioFormat) argument 604 android_media_AudioTrack_get_native_frame_count(JNIEnv *env, jobject thiz) argument 617 android_media_AudioTrack_set_playback_rate(JNIEnv *env, jobject thiz, jint sampleRateInHz) argument 630 android_media_AudioTrack_get_playback_rate(JNIEnv *env, jobject thiz) argument 642 android_media_AudioTrack_set_marker_pos(JNIEnv *env, jobject thiz, jint markerPos) argument 655 android_media_AudioTrack_get_marker_pos(JNIEnv *env, jobject thiz) argument 670 android_media_AudioTrack_set_pos_update_period(JNIEnv *env, jobject thiz, jint period) argument 683 android_media_AudioTrack_get_pos_update_period(JNIEnv *env, jobject thiz) argument 698 android_media_AudioTrack_set_position(JNIEnv *env, jobject thiz, jint position) argument 711 android_media_AudioTrack_get_position(JNIEnv *env, jobject thiz) argument 726 android_media_AudioTrack_set_loop(JNIEnv *env, jobject thiz, jint loopStart, jint loopEnd, jint loopCount) argument 739 android_media_AudioTrack_reload(JNIEnv *env, jobject thiz) argument 751 android_media_AudioTrack_get_output_sample_rate(JNIEnv *env, jobject thiz, jint javaStreamType) argument 786 android_media_AudioTrack_get_min_buff_size(JNIEnv *env, jobject thiz, jint sampleRateInHertz, jint nbChannels, jint audioFormat) argument 799 android_media_AudioTrack_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level ) argument 812 android_media_AudioTrack_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) 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_ToneGenerator.cpp | 41 static jboolean android_media_ToneGenerator_startTone(JNIEnv *env, jobject thiz, jint toneType, jint durationMs) { argument 42 ALOGV("android_media_ToneGenerator_startTone: %x", (int)thiz); 44 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 54 static void android_media_ToneGenerator_stopTone(JNIEnv *env, jobject thiz) { argument 55 ALOGV("android_media_ToneGenerator_stopTone: %x", (int)thiz); 57 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 68 static jint android_media_ToneGenerator_getAudioSessionId(JNIEnv *env, jobject thiz) { argument 69 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 78 static void android_media_ToneGenerator_release(JNIEnv *env, jobject thiz) { argument 79 ToneGenerator *lpToneGen = (ToneGenerator *)env->GetIntField(thiz, 88 android_media_ToneGenerator_native_setup(JNIEnv *env, jobject thiz, jint streamType, jint volume) argument 115 android_media_ToneGenerator_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
/frameworks/base/drm/jni/ |
H A D | android_drm_DrmManagerClient.cpp | 137 JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 148 JNIOnInfoListener::JNIOnInfoListener(JNIEnv* env, jobject thiz, jobject weak_thiz) { argument 149 jclass clazz = env->GetObjectClass(thiz); 182 JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) { 187 sp<DrmManagerClientImpl> old = (DrmManagerClientImpl*)env->GetIntField(thiz, fieldId); 189 client->incStrong(thiz); 192 old->decStrong(thiz); 194 env->SetIntField(thiz, fieldId, (int)client.get()); 198 static sp<DrmManagerClientImpl> getDrmManagerClientImpl(JNIEnv* env, jobject thiz) { argument 203 DrmManagerClientImpl* const client = (DrmManagerClientImpl*)env->GetIntField(thiz, fieldI 181 setDrmManagerClientImpl( JNIEnv* env, jobject thiz, const sp<DrmManagerClientImpl>& client) argument 207 android_drm_DrmManagerClient_initialize( JNIEnv* env, jobject thiz) argument 220 android_drm_DrmManagerClient_setListeners( JNIEnv* env, jobject thiz, jint uniqueId, jobject weak_thiz) argument 231 android_drm_DrmManagerClient_release( JNIEnv* env, jobject thiz, jint uniqueId) argument 245 android_drm_DrmManagerClient_getConstraintsFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath, jint usage) argument 294 android_drm_DrmManagerClient_getMetadataFromContent( JNIEnv* env, jobject thiz, jint uniqueId, jstring jpath) argument 334 android_drm_DrmManagerClient_getAllSupportInfo( JNIEnv* env, jobject thiz, jint uniqueId) argument 381 android_drm_DrmManagerClient_installDrmEngine( JNIEnv* env, jobject thiz, jint uniqueId, jstring engineFilePath) argument 389 android_drm_DrmManagerClient_saveRights( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmRights, jstring rightsPath, jstring contentPath) argument 412 android_drm_DrmManagerClient_canHandle( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 423 android_drm_DrmManagerClient_processDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoObject) argument 506 android_drm_DrmManagerClient_acquireDrmInfo( JNIEnv* env, jobject thiz, jint uniqueId, jobject drmInfoRequest) argument 578 android_drm_DrmManagerClient_getDrmObjectType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jstring mimeType) argument 589 android_drm_DrmManagerClient_getOriginalMimeType( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, jobject fileDescriptor) argument 605 android_drm_DrmManagerClient_checkRightsStatus( JNIEnv* env, jobject thiz, jint uniqueId, jstring path, int action) argument 615 android_drm_DrmManagerClient_removeRights( JNIEnv* env, jobject thiz, jint uniqueId, jstring path) argument 622 android_drm_DrmManagerClient_removeAllRights( JNIEnv* env, jobject thiz, jint uniqueId) argument 628 android_drm_DrmManagerClient_openConvertSession( JNIEnv* env, jobject thiz, jint uniqueId, jstring mimeType) argument 669 android_drm_DrmManagerClient_convertData( JNIEnv* env, jobject thiz, jint uniqueId, jint convertId, jbyteArray inputData) argument 688 android_drm_DrmManagerClient_closeConvertSession( JNIEnv* env, jobject thiz, int uniqueId, jint convertId) argument [all...] |
/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);
|
/frameworks/base/media/jni/ |
H A D | android_media_MediaCodec.cpp | 69 JNIEnv *env, jobject thiz, 73 jclass clazz = env->GetObjectClass(thiz); 77 mObject = env->NewWeakGlobalRef(thiz); 280 JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) { 281 sp<JMediaCodec> old = (JMediaCodec *)env->GetIntField(thiz, gFields.context); 283 codec->incStrong(thiz); 286 old->decStrong(thiz); 288 env->SetIntField(thiz, gFields.context, (int)codec.get()); 293 static sp<JMediaCodec> getMediaCodec(JNIEnv *env, jobject thiz) { argument 294 return (JMediaCodec *)env->GetIntField(thiz, gField 68 JMediaCodec( JNIEnv *env, jobject thiz, const char *name, bool nameIsType, bool encoder) argument 279 setMediaCodec( JNIEnv *env, jobject thiz, const sp<JMediaCodec> &codec) argument 297 android_media_MediaCodec_release(JNIEnv *env, jobject thiz) argument 349 android_media_MediaCodec_native_configure( JNIEnv *env, jobject thiz, jobjectArray keys, jobjectArray values, jobject jsurface, jobject jcrypto, jint flags) argument 395 android_media_MediaCodec_start(JNIEnv *env, jobject thiz) argument 410 android_media_MediaCodec_stop(JNIEnv *env, jobject thiz) argument 425 android_media_MediaCodec_flush(JNIEnv *env, jobject thiz) argument 440 android_media_MediaCodec_queueInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jint size, jlong timestampUs, jint flags) argument 466 android_media_MediaCodec_queueSecureInputBuffer( JNIEnv *env, jobject thiz, jint index, jint offset, jobject cryptoInfoObj, jlong timestampUs, jint flags) argument 604 android_media_MediaCodec_dequeueInputBuffer( JNIEnv *env, jobject thiz, jlong timeoutUs) argument 625 android_media_MediaCodec_dequeueOutputBuffer( JNIEnv *env, jobject thiz, jobject bufferInfo, jlong timeoutUs) argument 647 android_media_MediaCodec_releaseOutputBuffer( JNIEnv *env, jobject thiz, jint index, jboolean render) argument 663 android_media_MediaCodec_getOutputFormatNative( JNIEnv *env, jobject thiz) argument 686 android_media_MediaCodec_getBuffers( JNIEnv *env, jobject thiz, jboolean input) argument 709 android_media_MediaCodec_setVideoScalingMode( JNIEnv *env, jobject thiz, jint mode) argument 759 android_media_MediaCodec_native_setup( JNIEnv *env, jobject thiz, jstring name, jboolean nameIsType, jboolean encoder) argument 791 android_media_MediaCodec_native_finalize( JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_MediaCodec.h | 39 JNIEnv *env, jobject thiz,
|
H A D | android_media_MediaCodecList.cpp | 31 JNIEnv *env, jobject thiz) { 36 JNIEnv *env, jobject thiz, jint index) { 48 JNIEnv *env, jobject thiz, jint index) { 53 JNIEnv *env, jobject thiz, jint index) { 79 JNIEnv *env, jobject thiz, jint index, jstring type) { 30 android_media_MediaCodecList_getCodecCount( JNIEnv *env, jobject thiz) argument 35 android_media_MediaCodecList_getCodecName( JNIEnv *env, jobject thiz, jint index) argument 47 android_media_MediaCodecList_isEncoder( JNIEnv *env, jobject thiz, jint index) argument 52 android_media_MediaCodecList_getSupportedTypes( JNIEnv *env, jobject thiz, jint index) argument 78 android_media_MediaCodecList_getCodecCapabilities( JNIEnv *env, jobject thiz, jint index, jstring type) argument
|
H A D | android_media_MediaCrypto.cpp | 40 static sp<JCrypto> getCrypto(JNIEnv *env, jobject thiz) { argument 41 return (JCrypto *)env->GetIntField(thiz, gFields.context); 45 JNIEnv *env, jobject thiz, 47 mObject = env->NewWeakGlobalRef(thiz); 148 JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) { 149 sp<JCrypto> old = (JCrypto *)env->GetIntField(thiz, gFields.context); 151 crypto->incStrong(thiz); 154 old->decStrong(thiz); 156 env->SetIntField(thiz, gFields.context, (int)crypto.get()); 161 static void android_media_MediaCrypto_release(JNIEnv *env, jobject thiz) { argument 44 JCrypto( JNIEnv *env, jobject thiz, const uint8_t uuid[16], const void *initData, size_t initSize) argument 147 setCrypto( JNIEnv *env, jobject thiz, const sp<JCrypto> &crypto) argument 173 android_media_MediaCrypto_native_setup( JNIEnv *env, jobject thiz, jbyteArray uuidObj, jbyteArray initDataObj) argument 221 android_media_MediaCrypto_native_finalize( JNIEnv *env, jobject thiz) argument 226 android_media_MediaCrypto_isCryptoSchemeSupportedNative( JNIEnv *env, jobject thiz, jbyteArray uuidObj) argument 249 android_media_MediaCrypto_requiresSecureDecoderComponent( JNIEnv *env, jobject thiz, jstring mimeObj) argument [all...] |
H A D | android_media_MediaCrypto.h | 33 JCrypto(JNIEnv *env, jobject thiz,
|
H A D | android_media_MediaExtractor.cpp | 115 JMediaExtractor::JMediaExtractor(JNIEnv *env, jobject thiz) argument 118 jclass clazz = env->GetObjectClass(thiz); 122 mObject = env->NewWeakGlobalRef(thiz); 287 JNIEnv *env, jobject thiz, const sp<JMediaExtractor> &extractor) { 289 (JMediaExtractor *)env->GetIntField(thiz, gFields.context); 292 extractor->incStrong(thiz); 295 old->decStrong(thiz); 297 env->SetIntField(thiz, gFields.context, (int)extractor.get()); 302 static sp<JMediaExtractor> getMediaExtractor(JNIEnv *env, jobject thiz) { argument 303 return (JMediaExtractor *)env->GetIntField(thiz, gField 286 setMediaExtractor( JNIEnv *env, jobject thiz, const sp<JMediaExtractor> &extractor) argument 306 android_media_MediaExtractor_release(JNIEnv *env, jobject thiz) argument 310 android_media_MediaExtractor_getTrackCount( JNIEnv *env, jobject thiz) argument 322 android_media_MediaExtractor_getTrackFormatNative( JNIEnv *env, jobject thiz, jint index) argument 342 android_media_MediaExtractor_selectTrack( JNIEnv *env, jobject thiz, jint index) argument 359 android_media_MediaExtractor_unselectTrack( JNIEnv *env, jobject thiz, jint index) argument 376 android_media_MediaExtractor_seekTo( JNIEnv *env, jobject thiz, jlong timeUs, jint mode) argument 394 android_media_MediaExtractor_advance( JNIEnv *env, jobject thiz) argument 415 android_media_MediaExtractor_readSampleData( JNIEnv *env, jobject thiz, jobject byteBuf, jint offset) argument 437 android_media_MediaExtractor_getSampleTrackIndex( JNIEnv *env, jobject thiz) argument 459 android_media_MediaExtractor_getSampleTime( JNIEnv *env, jobject thiz) argument 481 android_media_MediaExtractor_getSampleFlags( JNIEnv *env, jobject thiz) argument 503 android_media_MediaExtractor_getSampleCryptoInfo( JNIEnv *env, jobject thiz, jobject cryptoInfoObj) argument 623 android_media_MediaExtractor_native_setup( JNIEnv *env, jobject thiz) argument 629 android_media_MediaExtractor_setDataSource( JNIEnv *env, jobject thiz, jstring pathObj, jobjectArray keysArray, jobjectArray valuesArray) argument 670 android_media_MediaExtractor_setDataSourceFd( JNIEnv *env, jobject thiz, jobject fileDescObj, jlong offset, jlong length) argument 698 android_media_MediaExtractor_setDataSourceCallback( JNIEnv *env, jobject thiz, jobject callbackObj) argument 725 android_media_MediaExtractor_getCachedDurationUs( JNIEnv *env, jobject thiz) argument 743 android_media_MediaExtractor_hasCacheReachedEOS( JNIEnv *env, jobject thiz) argument 761 android_media_MediaExtractor_native_finalize( JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_MediaExtractor.h | 36 JMediaExtractor(JNIEnv *env, jobject thiz);
|
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); 134 static void android_media_MediaMetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 137 MediaMetadataRetriever* retriever = getRetriever(env, thiz); 218 static jobject android_media_MediaMetadataRetriever_getFrameAtTime(JNIEnv *env, jobject thiz, jlon argument 82 android_media_MediaMetadataRetriever_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument 299 android_media_MediaMetadataRetriever_getEmbeddedPicture( JNIEnv *env, jobject thiz, jint pictureType) argument 339 android_media_MediaMetadataRetriever_extractMetadata(JNIEnv *env, jobject thiz, jint keyCode) argument 356 android_media_MediaMetadataRetriever_release(JNIEnv *env, jobject thiz) argument 365 android_media_MediaMetadataRetriever_native_finalize(JNIEnv *env, jobject thiz) argument 430 android_media_MediaMetadataRetriever_native_setup(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_media_MediaPlayer.cpp | 68 JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz); 77 JNIMediaPlayerListener::JNIMediaPlayerListener(JNIEnv* env, jobject thiz, jobject weak_thiz) argument 82 jclass clazz = env->GetObjectClass(thiz); 127 static sp<MediaPlayer> getMediaPlayer(JNIEnv* env, jobject thiz) argument 130 MediaPlayer* const p = (MediaPlayer*)env->GetIntField(thiz, fields.context); 134 static sp<MediaPlayer> setMediaPlayer(JNIEnv* env, jobject thiz, const sp<MediaPlayer>& player) argument 137 sp<MediaPlayer> old = (MediaPlayer*)env->GetIntField(thiz, fields.context); 139 player->incStrong(thiz); 142 old->decStrong(thiz); 144 env->SetIntField(thiz, field 152 process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument 179 android_media_MediaPlayer_setDataSourceAndHeaders( JNIEnv *env, jobject thiz, jstring path, jobjectArray keys, jobjectArray values) argument 222 android_media_MediaPlayer_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length) argument 240 getVideoSurfaceTexture(JNIEnv* env, jobject thiz) argument 246 decVideoSurfaceRef(JNIEnv *env, jobject thiz) argument 260 setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface, jboolean mediaPlayerMustBeAlive) argument 300 android_media_MediaPlayer_setVideoSurface(JNIEnv *env, jobject thiz, jobject jsurface) argument 306 android_media_MediaPlayer_prepare(JNIEnv *env, jobject thiz) argument 323 android_media_MediaPlayer_prepareAsync(JNIEnv *env, jobject thiz) argument 340 android_media_MediaPlayer_start(JNIEnv *env, jobject thiz) argument 352 android_media_MediaPlayer_stop(JNIEnv *env, jobject thiz) argument 364 android_media_MediaPlayer_pause(JNIEnv *env, jobject thiz) argument 376 android_media_MediaPlayer_isPlaying(JNIEnv *env, jobject thiz) argument 390 android_media_MediaPlayer_seekTo(JNIEnv *env, jobject thiz, int msec) argument 402 android_media_MediaPlayer_getVideoWidth(JNIEnv *env, jobject thiz) argument 419 android_media_MediaPlayer_getVideoHeight(JNIEnv *env, jobject thiz) argument 437 android_media_MediaPlayer_getCurrentPosition(JNIEnv *env, jobject thiz) argument 451 android_media_MediaPlayer_getDuration(JNIEnv *env, jobject thiz) argument 465 android_media_MediaPlayer_reset(JNIEnv *env, jobject thiz) argument 477 android_media_MediaPlayer_setAudioStreamType(JNIEnv *env, jobject thiz, int streamtype) argument 489 android_media_MediaPlayer_setLooping(JNIEnv *env, jobject thiz, jboolean looping) argument 501 android_media_MediaPlayer_isLooping(JNIEnv *env, jobject thiz) argument 513 android_media_MediaPlayer_setVolume(JNIEnv *env, jobject thiz, float leftVolume, float rightVolume) argument 526 android_media_MediaPlayer_getFrameAt(JNIEnv *env, jobject thiz, jint msec) argument 535 android_media_MediaPlayer_invoke(JNIEnv *env, jobject thiz, jobject java_request, jobject java_reply) argument 554 android_media_MediaPlayer_setMetadataFilter(JNIEnv *env, jobject thiz, jobject request) argument 573 android_media_MediaPlayer_getMetadata(JNIEnv *env, jobject thiz, jboolean update_only, jboolean apply_filter, jobject reply) argument 628 android_media_MediaPlayer_native_setup(JNIEnv *env, jobject thiz, jobject weak_this) argument 646 android_media_MediaPlayer_release(JNIEnv *env, jobject thiz) argument 659 android_media_MediaPlayer_native_finalize(JNIEnv *env, jobject thiz) argument 669 android_media_MediaPlayer_set_audio_session_id(JNIEnv *env, jobject thiz, jint sessionId) argument 679 android_media_MediaPlayer_get_audio_session_id(JNIEnv *env, jobject thiz) argument 691 android_media_MediaPlayer_setAuxEffectSendLevel(JNIEnv *env, jobject thiz, jfloat level) argument 702 android_media_MediaPlayer_attachAuxEffect(JNIEnv *env, jobject thiz, jint effectId) argument 713 android_media_MediaPlayer_pullBatteryData(JNIEnv *env, jobject thiz, jobject java_reply) argument 728 android_media_MediaPlayer_setRetransmitEndpoint(JNIEnv *env, jobject thiz, jstring addrString, jint port) argument 767 android_media_MediaPlayer_setParameter(JNIEnv *env, jobject thiz, jint key, jobject java_request) argument 786 android_media_MediaPlayer_getParameter(JNIEnv *env, jobject thiz, jint key, jobject java_reply) argument 800 android_media_MediaPlayer_setNextMediaPlayer(JNIEnv *env, jobject thiz, jobject java_player) argument [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...] |
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_MediaScanner.cpp | 183 static MediaScanner *getNativeScanner_l(JNIEnv* env, jobject thiz) argument 185 return (MediaScanner *) env->GetIntField(thiz, fields.context); 188 static void setNativeScanner_l(JNIEnv* env, jobject thiz, MediaScanner *s) argument 190 env->SetIntField(thiz, fields.context, (int)s); 195 JNIEnv *env, jobject thiz, jstring path, jobject client) 198 MediaScanner *mp = getNativeScanner_l(env, thiz); 224 JNIEnv *env, jobject thiz, jstring path, 230 MediaScanner *mp = getNativeScanner_l(env, thiz); 267 JNIEnv *env, jobject thiz, jstring locale) 270 MediaScanner *mp = getNativeScanner_l(env, thiz); 194 android_media_MediaScanner_processDirectory( JNIEnv *env, jobject thiz, jstring path, jobject client) argument 223 android_media_MediaScanner_processFile( JNIEnv *env, jobject thiz, jstring path, jstring mimeType, jobject client) argument 266 android_media_MediaScanner_setLocale( JNIEnv *env, jobject thiz, jstring locale) argument 290 android_media_MediaScanner_extractAlbumArt( JNIEnv *env, jobject thiz, jobject fileDescriptor) argument 347 android_media_MediaScanner_native_setup(JNIEnv *env, jobject thiz) argument 361 android_media_MediaScanner_native_finalize(JNIEnv *env, jobject thiz) argument [all...] |
H A D | android_mtp_MtpDatabase.cpp | 1073 android_mtp_MtpDatabase_setup(JNIEnv *env, jobject thiz) argument 1075 MyMtpDatabase* database = new MyMtpDatabase(env, thiz); 1076 env->SetIntField(thiz, field_context, (int)database); 1081 android_mtp_MtpDatabase_finalize(JNIEnv *env, jobject thiz) argument 1083 MyMtpDatabase* database = (MyMtpDatabase *)env->GetIntField(thiz, field_context); 1086 env->SetIntField(thiz, field_context, 0); 1091 android_mtp_MtpPropertyGroup_format_date_time(JNIEnv *env, jobject thiz, jlong seconds) argument
|