Home
last modified time | relevance | path

Searched refs:fileDescriptor (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/jni/
Dandroid_os_MemoryFile.cpp46 static jint android_os_MemoryFile_mmap(JNIEnv* env, jobject clazz, jobject fileDescriptor, in android_os_MemoryFile_mmap() argument
49 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_mmap()
63 static void android_os_MemoryFile_close(JNIEnv* env, jobject clazz, jobject fileDescriptor) in android_os_MemoryFile_close() argument
65 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_close()
67 jniSetFileDescriptorOfFD(env, fileDescriptor, -1); in android_os_MemoryFile_close()
73 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_read() argument
76 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_read()
92 jobject fileDescriptor, jint address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_write() argument
95 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_write()
110 static void android_os_MemoryFile_pin(JNIEnv* env, jobject clazz, jobject fileDescriptor, jboolean … in android_os_MemoryFile_pin() argument
[all …]
Dandroid_net_LocalSocketImpl.cpp72 jobject fileDescriptor, jstring name, jint namespaceId) in socket_connect_local() argument
80 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_connect_local()
107 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_bind_local() argument
119 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_bind_local()
139 socket_listen (JNIEnv *env, jobject object, jobject fileDescriptor, int backlog) in socket_listen() argument
144 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_listen()
163 socket_accept (JNIEnv *env, jobject object, jobject fileDescriptor, jobject s) in socket_accept() argument
180 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_accept()
204 socket_shutdown (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_shutdown() argument
210 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_shutdown()
[all …]
Dandroid_server_NetworkManagementSocketTagger.cpp34 jobject fileDescriptor, in QTagUid_tagSocketFd() argument
36 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); in QTagUid_tagSocketFd()
51 jobject fileDescriptor) { in QTagUid_untagSocketFd() argument
52 int userFd = jniGetFDFromFileDescriptor(env, fileDescriptor); in QTagUid_untagSocketFd()
Dandroid_backup_BackupDataOutput.cpp29 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument
31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in ctor_native()
Dandroid_backup_BackupDataInput.cpp33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument
35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in ctor_native()
Dandroid_os_SELinux.cpp88 static jstring getPeerCon(JNIEnv *env, jobject, jobject fileDescriptor) { in getPeerCon() argument
93 if (fileDescriptor == NULL) { in getPeerCon()
99 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in getPeerCon()
101 ALOGE("getPeerCon => getFD for %p failed", fileDescriptor); in getPeerCon()
Dandroid_backup_FileBackupHelperBase.cpp97 writeSnapshot_native(JNIEnv* env, jobject clazz, jint ptr, jobject fileDescriptor) in writeSnapshot_native() argument
102 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in writeSnapshot_native()
Dandroid_hardware_SerialPort.cpp36 android_hardware_SerialPort_open(JNIEnv *env, jobject thiz, jobject fileDescriptor, jint speed) in android_hardware_SerialPort_open() argument
135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_hardware_SerialPort_open()
Dandroid_hardware_UsbDeviceConnection.cpp43 jobject fileDescriptor) in android_hardware_UsbDeviceConnection_open() argument
45 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_hardware_UsbDeviceConnection_open()
Dandroid_os_Debug.cpp513 jobject fileDescriptor) in android_os_Debug_dumpNativeHeap() argument
515 if (fileDescriptor == NULL) { in android_os_Debug_dumpNativeHeap()
519 int origFd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_Debug_dumpNativeHeap()
/frameworks/base/services/jni/
Dcom_android_server_SerialService.cpp49 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); in android_server_SerialService_open() local
50 if (fileDescriptor == NULL) { in android_server_SerialService_open()
54 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_SerialService_open()
Dcom_android_server_UsbDeviceManager.cpp94 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); in android_server_UsbDeviceManager_openAccessory() local
95 if (fileDescriptor == NULL) { in android_server_UsbDeviceManager_openAccessory()
99 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_UsbDeviceManager_openAccessory()
Dcom_android_server_UsbHostManager.cpp160 jobject fileDescriptor = jniCreateFileDescriptor(env, newFD); in android_server_UsbHostManager_openDevice() local
161 if (fileDescriptor == NULL) { in android_server_UsbHostManager_openDevice()
165 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_UsbHostManager_openDevice()
/frameworks/ex/variablespeed/src/com/android/ex/variablespeed/
DVariableSpeedNative.java44 FileDescriptor fileDescriptor = afd.getFileDescriptor(); in playFromContext() local
45 Field descriptorField = fileDescriptor.getClass().getDeclaredField("descriptor"); in playFromContext()
47 int fd = descriptorField.getInt(fileDescriptor); in playFromContext()
/frameworks/av/libvideoeditor/osal/inc/
DLVOSA_FileReader_optim.h62 M4OSA_Void* fileDescriptor,
66 M4OSA_Void* fileDescriptor,
DM4OSA_FileReader.h77 M4OSA_Void* fileDescriptor,
105 M4OSA_Void* fileDescriptor,
DM4OSA_FileWriter.h73 M4OSA_Void* fileDescriptor,
101 M4OSA_Void* fileDescriptor,
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp110 jobject fileDescriptor, jboolean isShareable) { in nativeNewInstanceFromFileDescriptor() argument
111 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
113 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
DBitmapFactory.cpp434 static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, in nativeDecodeFileDescriptor() argument
437 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeDecodeFileDescriptor()
439 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeDecodeFileDescriptor()
545 static jboolean nativeIsSeekable(JNIEnv* env, jobject, jobject fileDescriptor) { in nativeIsSeekable() argument
546 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeIsSeekable()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp334 JNIEnv *env, jobject thiz, jobject fileDescriptor) in android_media_MediaScanner_extractAlbumArt() argument
343 if (fileDescriptor == NULL) { in android_media_MediaScanner_extractAlbumArt()
348 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaScanner_extractAlbumArt()
Dandroid_media_MediaMuxer.cpp137 JNIEnv *env, jclass clazz, jobject fileDescriptor, in android_media_MediaMuxer_native_setup() argument
139 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaMuxer_native_setup()
Dandroid_media_MediaMetadataRetriever.cpp134 …MetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset,… in android_media_MediaMetadataRetriever_setDataSourceFD() argument
142 if (!fileDescriptor) { in android_media_MediaMetadataRetriever_setDataSourceFD()
146 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaMetadataRetriever_setDataSourceFD()
Dandroid_media_MediaRecorder.cpp248 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlon… in android_media_MediaRecorder_setOutputFileFD() argument
251 if (fileDescriptor == NULL) { in android_media_MediaRecorder_setOutputFileFD()
255 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaRecorder_setOutputFileFD()
/frameworks/base/core/java/android/speech/tts/
DITextToSpeechService.aidl53 in ParcelFileDescriptor fileDescriptor, in Bundle params); in synthesizeToFileDescriptor() argument
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool.cpp57 android_media_SoundPool_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, in android_media_SoundPool_load_FD() argument
63 return ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor), in android_media_SoundPool_load_FD()

12