Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/
Dandroid_os_MemoryFile.cpp46 static jlong 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()
64 static void android_os_MemoryFile_close(JNIEnv* env, jobject clazz, jobject fileDescriptor) in android_os_MemoryFile_close() argument
66 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_close()
68 jniSetFileDescriptorOfFD(env, fileDescriptor, -1); in android_os_MemoryFile_close()
74 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_read() argument
77 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_read()
93 jobject fileDescriptor, jlong address, jbyteArray buffer, jint srcOffset, jint destOffset, in android_os_MemoryFile_write() argument
96 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_write()
111 static void android_os_MemoryFile_pin(JNIEnv* env, jobject clazz, jobject fileDescriptor, jboolean … in android_os_MemoryFile_pin() argument
[all …]
Dandroid_net_LocalSocketImpl.cpp53 jobject fileDescriptor, jstring name, jint namespaceId) in socket_connect_local() argument
58 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_connect_local()
85 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_bind_local() argument
96 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_bind_local()
114 socket_listen (JNIEnv *env, jobject object, jobject fileDescriptor, jint backlog) in socket_listen() argument
119 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_listen()
138 socket_accept (JNIEnv *env, jobject object, jobject fileDescriptor, jobject s) in socket_accept() argument
155 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_accept()
179 socket_shutdown (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_shutdown() argument
185 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_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_BackupDataInput.cpp33 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument
35 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in ctor_native()
Dandroid_backup_FileBackupHelperBase.cpp97 writeSnapshot_native(JNIEnv* env, jobject clazz, jlong 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_media_JetPlayer.cpp166 jobject fileDescriptor, jlong offset, jlong length) in android_media_JetPlayer_loadFromFileD() argument
180 EAS_RESULT result = lpJet->loadFromFD(jniGetFDFromFileDescriptor(env, fileDescriptor), in android_media_JetPlayer_loadFromFileD()
Dandroid_os_Debug.cpp854 jobject fileDescriptor) in android_os_Debug_dumpNativeHeap() argument
856 if (fileDescriptor == NULL) { in android_os_Debug_dumpNativeHeap()
860 int origFd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_Debug_dumpNativeHeap()
/frameworks/base/services/core/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.cpp95 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); in android_server_UsbDeviceManager_openAccessory() local
96 if (fileDescriptor == NULL) { in android_server_UsbDeviceManager_openAccessory()
100 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_UsbDeviceManager_openAccessory()
Dcom_android_server_UsbHostManager.cpp179 jobject fileDescriptor = jniCreateFileDescriptor(env, newFD); in android_server_UsbHostManager_openDevice() local
180 if (fileDescriptor == NULL) { in android_server_UsbHostManager_openDevice()
184 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/support/v4/kitkat/android/support/v4/print/
DPrintHelperKitkat.java206 public void onWrite(PageRange[] pageRanges, ParcelFileDescriptor fileDescriptor, in printBitmap()
228 fileDescriptor.getFileDescriptor())); in printBitmap()
241 if (fileDescriptor != null) { in printBitmap()
243 fileDescriptor.close(); in printBitmap()
404 public void onWrite(PageRange[] pageRanges, ParcelFileDescriptor fileDescriptor, in printBitmap()
427 fileDescriptor.getFileDescriptor())); in printBitmap()
440 if (fileDescriptor != null) { in printBitmap()
442 fileDescriptor.close(); in printBitmap()
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp118 jobject fileDescriptor, jboolean isShareable) { in nativeNewInstanceFromFileDescriptor() argument
119 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
121 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
DBitmapFactory.cpp476 static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, in nativeDecodeFileDescriptor() argument
479 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeDecodeFileDescriptor()
481 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeDecodeFileDescriptor()
533 static jboolean nativeIsSeekable(JNIEnv* env, jobject, jobject fileDescriptor) { in nativeIsSeekable() argument
534 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeIsSeekable()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp336 JNIEnv *env, jobject thiz, jobject fileDescriptor) in android_media_MediaScanner_extractAlbumArt() argument
345 if (fileDescriptor == NULL) { in android_media_MediaScanner_extractAlbumArt()
350 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaScanner_extractAlbumArt()
Dandroid_media_MediaMuxer.cpp136 JNIEnv *env, jclass clazz, jobject fileDescriptor, in android_media_MediaMuxer_native_setup() argument
138 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaMuxer_native_setup()
Dandroid_media_MediaMetadataRetriever.cpp146 …MetadataRetriever_setDataSourceFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset,… in android_media_MediaMetadataRetriever_setDataSourceFD() argument
154 if (!fileDescriptor) { in android_media_MediaMetadataRetriever_setDataSourceFD()
158 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaMetadataRetriever_setDataSourceFD()
Dandroid_media_MediaRecorder.cpp254 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlon… in android_media_MediaRecorder_setOutputFileFD() argument
257 if (fileDescriptor == NULL) { in android_media_MediaRecorder_setOutputFileFD()
261 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaRecorder_setOutputFileFD()
/frameworks/base/core/java/android/speech/tts/
DITextToSpeechService.aidl57 in ParcelFileDescriptor fileDescriptor, in Bundle params, String utteranceId); in synthesizeToFileDescriptor() argument
DTextToSpeech.java1786 ParcelFileDescriptor fileDescriptor;
1793 fileDescriptor = ParcelFileDescriptor.open(file,
1798 fileDescriptor, getParams(params), utteranceId);
1799 fileDescriptor.close();
/frameworks/base/media/jni/soundpool/
Dandroid_media_SoundPool_SoundPoolImpl.cpp64 android_media_SoundPool_SoundPoolImpl_load_FD(JNIEnv *env, jobject thiz, jobject fileDescriptor, in android_media_SoundPool_SoundPoolImpl_load_FD() argument
70 return (jint) ap->load(jniGetFDFromFileDescriptor(env, fileDescriptor), in android_media_SoundPool_SoundPoolImpl_load_FD()

12