/frameworks/base/core/jni/ |
D | android_net_LocalSocketImpl.cpp | 58 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 …]
|
D | android_os_MemoryFile.cpp | 29 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()
|
D | android_server_NetworkManagementSocketTagger.cpp | 34 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()
|
D | android_os_SELinux.cpp | 124 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()
|
D | android_os_SharedMemory.cpp | 79 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()
|
D | android_backup_BackupDataOutput.cpp | 29 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument 31 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in ctor_native()
|
D | android_backup_BackupDataInput.cpp | 35 ctor_native(JNIEnv* env, jobject clazz, jobject fileDescriptor) in ctor_native() argument 37 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in ctor_native()
|
D | android_backup_FileBackupHelperBase.cpp | 97 writeSnapshot_native(JNIEnv* env, jobject clazz, jlong ptr, jobject fileDescriptor) in writeSnapshot_native() argument 102 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); in writeSnapshot_native()
|
D | android_hardware_SerialPort.cpp | 36 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()
|
D | android_os_Debug.cpp | 660 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/ |
D | IpSecUdpEncapResponse.java | 41 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/ |
D | com_android_server_SerialService.cpp | 49 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()
|
D | com_android_server_UsbHostManager.cpp | 135 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()
|
D | com_android_server_UsbDeviceManager.cpp | 90 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/ |
D | IpSecServiceTest.java | 182 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/ |
D | VerityUtils.java | 220 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/ |
D | DecoderTest.java | 126 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()
|
D | ExtractorTest.java | 96 FileDescriptor fileDescriptor = fileInput.getFD(); in testExtractor() local 98 extractor.setUpExtractor(fileDescriptor); in testExtractor()
|
D | MuxerTest.java | 118 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/ |
D | Extractor.java | 50 public int setUpExtractor(FileDescriptor fileDescriptor) throws IOException { in setUpExtractor() argument 53 mExtractor.setDataSource(fileDescriptor); in setUpExtractor()
|
/frameworks/base/core/jni/android/graphics/ |
D | BitmapRegionDecoder.cpp | 74 jobject fileDescriptor, jboolean isShareable) { in nativeNewInstanceFromFileDescriptor() argument 75 NPE_CHECK_RETURN_ZERO(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor() 77 jint descriptor = jniGetFDFromFileDescriptor(env, fileDescriptor); in nativeNewInstanceFromFileDescriptor()
|
D | BitmapFactory.cpp | 534 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/ |
D | android_media_MediaScanner.cpp | 339 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()
|
D | android_media_MediaRecorder.cpp | 305 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()
|
D | android_media_MediaMuxer.cpp | 139 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()
|