Home
last modified time | relevance | path

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

12

/frameworks/base/core/jni/
Dandroid_net_LocalSocketImpl.cpp58 jobject fileDescriptor, jstring name, jint namespaceId) in socket_connect_local() argument
68 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_connect_local()
95 socket_bind_local (JNIEnv *env, jobject object, jobject fileDescriptor, in socket_bind_local() argument
106 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_bind_local()
239 static jint socket_read (JNIEnv *env, jobject object, jobject fileDescriptor) in socket_read() argument
244 if (fileDescriptor == NULL) { in socket_read()
249 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_read()
273 jbyteArray buffer, jint off, jint len, jobject fileDescriptor) in socket_readba() argument
279 if (fileDescriptor == NULL || buffer == NULL) { in socket_readba()
294 fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in socket_readba()
[all …]
Dandroid_os_MemoryFile.cpp29 static jboolean android_os_MemoryFile_pin(JNIEnv* env, jobject clazz, jobject fileDescriptor, in android_os_MemoryFile_pin() argument
31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_pin()
40 jobject fileDescriptor) { in android_os_MemoryFile_get_size() argument
41 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_os_MemoryFile_get_size()
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_os_SELinux.cpp124 static jstring getFdConInner(JNIEnv *env, jobject fileDescriptor, bool isSocket) { in getFdConInner() argument
129 if (fileDescriptor == NULL) { in getFdConInner()
135 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in getFdConInner()
137 ALOGE("getFdCon => getFD for %p failed", fileDescriptor); in getFdConInner()
167 static jstring getPeerCon(JNIEnv *env, jobject, jobject fileDescriptor) { in getPeerCon() argument
168 return getFdConInner(env, fileDescriptor, true); in getPeerCon()
179 static jstring getFdCon(JNIEnv *env, jobject, jobject fileDescriptor) { in getFdCon() argument
180 return getFdConInner(env, fileDescriptor, false); in getFdCon()
Dandroid_os_SharedMemory.cpp79 jint SharedMemory_nGetSize(JNIEnv* env, jobject, jobject fileDescriptor) { in SharedMemory_nGetSize() argument
80 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in SharedMemory_nGetSize()
88 jint SharedMemory_nSetProt(JNIEnv* env, jobject, jobject fileDescriptor, jint prot) { in SharedMemory_nSetProt() argument
89 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in SharedMemory_nSetProt()
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.cpp35 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument
37 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_os_Debug.cpp660 static bool openFile(JNIEnv* env, jobject fileDescriptor, UniqueFile& fp) in openFile() argument
662 if (fileDescriptor == NULL) { in openFile()
666 int origFd = jniGetFDFromFileDescriptor(env, fileDescriptor); in openFile()
695 jobject fileDescriptor) in android_os_Debug_dumpNativeHeap() argument
698 if (!openFile(env, fileDescriptor, fp)) { in android_os_Debug_dumpNativeHeap()
717 jobject fileDescriptor) in android_os_Debug_dumpNativeMallocInfo() argument
720 if (!openFile(env, fileDescriptor, fp)) { in android_os_Debug_dumpNativeMallocInfo()
/frameworks/base/core/java/android/net/
DIpSecUdpEncapResponse.java41 public final ParcelFileDescriptor fileDescriptor; field in IpSecUdpEncapResponse
47 return (fileDescriptor != null) ? Parcelable.CONTENTS_FILE_DESCRIPTOR : 0; in describeContents()
55 out.writeParcelable(fileDescriptor, Parcelable.PARCELABLE_WRITE_RETURN_VALUE); in writeToParcel()
65 fileDescriptor = null; // yes I know it's redundant, but readability in IpSecUdpEncapResponse()
76 fileDescriptor = (status == IpSecManager.Status.OK) ? ParcelFileDescriptor.dup(inFd) : null; in IpSecUdpEncapResponse()
83 fileDescriptor = in.readParcelable(ParcelFileDescriptor.class.getClassLoader()); in IpSecUdpEncapResponse()
/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()
55 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_SerialService_open()
Dcom_android_server_UsbHostManager.cpp135 jobject fileDescriptor = jniCreateFileDescriptor(env, newFD); in android_server_UsbHostManager_openDevice() local
136 if (fileDescriptor == NULL) { in android_server_UsbHostManager_openDevice()
141 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_UsbHostManager_openDevice()
Dcom_android_server_UsbDeviceManager.cpp90 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); in android_server_UsbDeviceManager_openAccessory() local
91 if (fileDescriptor == NULL) { in android_server_UsbDeviceManager_openAccessory()
96 gParcelFileDescriptorOffsets.mConstructor, fileDescriptor); in android_server_UsbDeviceManager_openAccessory()
/frameworks/base/tests/net/java/com/android/server/
DIpSecServiceTest.java182 udpEncapResp.fileDescriptor.close(); in testOpenAndCloseUdpEncapsulationSocket()
228 udpEncapResp.fileDescriptor.close(); in testOpenUdpEncapsulationSocketAfterClose()
248 udpEncapResp.fileDescriptor.close(); in testUdpEncapPortNotReleased()
268 udpEncapResp.fileDescriptor.close(); in testOpenUdpEncapsulationSocketOnRandomPort()
299 udpEncapResp.fileDescriptor.close(); in testOpenUdpEncapsulationSocketTwice()
495 openUdpEncapSockets.get(0).fileDescriptor.close(); in testSocketResourceTrackerLimitation()
507 openSocket.fileDescriptor.close(); in testSocketResourceTrackerLimitation()
618 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor();
626 udpEncapResp.fileDescriptor.close();
634 FileDescriptor sockFd = udpEncapResp.fileDescriptor.getFileDescriptor(); in testOpenUdpEncapsulationSocketCallsSetEncapSocketOwner()
/frameworks/base/services/core/java/com/android/server/security/
DVerityUtils.java220 public static SetupResult ok(@NonNull FileDescriptor fileDescriptor, int contentSize) { in ok() argument
221 return new SetupResult(RESULT_OK, fileDescriptor, contentSize); in ok()
232 private SetupResult(int code, FileDescriptor fileDescriptor, int contentSize) { in SetupResult() argument
234 this.mFileDescriptor = fileDescriptor; in SetupResult()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java126 FileDescriptor fileDescriptor = fileInput.getFD(); in testDecoder() local
128 int trackCount = extractor.setUpExtractor(fileDescriptor); in testDecoder()
200 FileDescriptor fileDescriptor = fileInput.getFD(); in testNativeDecoder() local
202 int trackCount = extractor.setUpExtractor(fileDescriptor); in testNativeDecoder()
DExtractorTest.java96 FileDescriptor fileDescriptor = fileInput.getFD(); in testExtractor() local
98 extractor.setUpExtractor(fileDescriptor); in testExtractor()
DMuxerTest.java118 FileDescriptor fileDescriptor = fileInput.getFD(); in testMuxer() local
122 int trackCount = extractor.setUpExtractor(fileDescriptor); in testMuxer()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/main/java/com/android/media/benchmark/library/
DExtractor.java50 public int setUpExtractor(FileDescriptor fileDescriptor) throws IOException { in setUpExtractor() argument
53 mExtractor.setDataSource(fileDescriptor); in setUpExtractor()
/frameworks/base/core/jni/android/graphics/
DBitmapRegionDecoder.cpp74 jobject fileDescriptor, jboolean isShareable) { in nativeNewInstanceFromFileDescriptor() argument
75 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
77 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
DBitmapFactory.cpp534 static jobject nativeDecodeFileDescriptor(JNIEnv* env, jobject clazz, jobject fileDescriptor, in nativeDecodeFileDescriptor() argument
537 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeDecodeFileDescriptor()
539 int descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeDecodeFileDescriptor()
603 static jboolean nativeIsSeekable(JNIEnv* env, jobject, jobject fileDescriptor) { in nativeIsSeekable() argument
604 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeIsSeekable()
/frameworks/base/media/jni/
Dandroid_media_MediaScanner.cpp339 JNIEnv *env, jobject thiz, jobject fileDescriptor) in android_media_MediaScanner_extractAlbumArt() argument
348 if (fileDescriptor == NULL) { in android_media_MediaScanner_extractAlbumArt()
353 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaScanner_extractAlbumArt()
Dandroid_media_MediaRecorder.cpp305 android_media_MediaRecorder_setOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor) in android_media_MediaRecorder_setOutputFileFD() argument
308 if (fileDescriptor == NULL) { in android_media_MediaRecorder_setOutputFileFD()
312 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaRecorder_setOutputFileFD()
323 android_media_MediaRecorder_setNextOutputFileFD(JNIEnv *env, jobject thiz, jobject fileDescriptor) in android_media_MediaRecorder_setNextOutputFileFD() argument
326 if (fileDescriptor == NULL) { in android_media_MediaRecorder_setNextOutputFileFD()
330 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaRecorder_setNextOutputFileFD()
Dandroid_media_MediaMuxer.cpp139 JNIEnv *env, jclass clazz, jobject fileDescriptor, in android_media_MediaMuxer_native_setup() argument
141 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in android_media_MediaMuxer_native_setup()

12