Home
last modified time | relevance | path

Searched refs:getFD (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/benchmarks/src/android/os/
DFileUtilsBenchmark.java57 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularUserspace()
66 copyInternalSendfile(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timeRegularSendfile()
75 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceUserspace()
84 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSourceSplice()
93 copyInternalUserspace(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkUserspace()
102 copyInternalSplice(in.getFD(), out.getFD(), Long.MAX_VALUE, null, null, null); in timePipeSinkSplice()
/frameworks/base/services/core/java/com/android/server/pm/
DResilientAtomicFile.java65 FileUtils.setPermissions(str.getFD(), mFileMode, -1, -1); in finalizeOutStream()
149 try (ParcelFileDescriptor mainPfd = ParcelFileDescriptor.dup(mainInStream.getFD()); in finishWrite()
150 ParcelFileDescriptor copyPfd = ParcelFileDescriptor.dup(reserveInStream.getFD())) { in finishWrite()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java173 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_FileToPipe()
193 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_PipeToFile()
211 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_PipeToPipe()
233 FileUtils.copy(in.getFD(), out.getFD(), size, null, null, null); in testCopy_ShortPipeToFile()
298 … FileUtils.copy(srvConnFd, fileOutputStream.getFD(), rcvFileSize, null, null, null); in testCopy_SocketToFile_FileToSocket$noRavenwood()
327 FileUtils.copy(fileInputStream.getFD(), clientFd, src.length(), null, null, null); in testCopy_SocketToFile_FileToSocket$noRavenwood()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java111 BackupDataInput reader = new BackupDataInput(inputStream.getFD()); in sortKeyValueData()
112 BackupDataOutput writer = new BackupDataOutput(outputStream.getFD()); in sortKeyValueData()
/frameworks/base/core/java/android/util/apk/
DVerityBuilder.java278 DataSource.create(file.getFD(), 0, file.length()), in generateFsVerityDigestAtLeafLevel()
299 DataSource.create(apk.getFD(), 0, signatureInfo.apkSigningBlockOffset), in generateApkVerityDigestAtLeafLevel()
307 DataSource.create(apk.getFD(), signatureInfo.centralDirOffset, in generateApkVerityDigestAtLeafLevel()
322 DataSource.create(apk.getFD(), offsetAfterEocdCdOffsetField, in generateApkVerityDigestAtLeafLevel()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java144 BackupDataOutput data = new BackupDataOutput(dataFile.getFD());
160 BackupDataInput data = new BackupDataInput(dataFile.getFD());
/frameworks/base/services/tests/powerstatstests/src/com/android/server/powerstats/
DPowerStatsServiceTest.java349 mPowerStatsLogger.writeMeterDataToFile(fos.getFD()); in testWrittenMeterDataMatchesReadIncidentReportData()
395 mPowerStatsLogger.writeModelDataToFile(fos.getFD()); in testWrittenModelDataMatchesReadIncidentReportData()
442 mPowerStatsLogger.writeResidencyDataToFile(fos.getFD()); in testWrittenResidencyDataMatchesReadIncidentReportData()
502 mPowerStatsLogger.writeMeterDataToFile(incidentReportFos.getFD()); in testCorruptOnDeviceMeterStorage()
545 mPowerStatsLogger.writeModelDataToFile(incidentReportFos.getFD()); in testCorruptOnDeviceModelStorage()
586 mPowerStatsLogger.writeResidencyDataToFile(incidentReportFos.getFD()); in testCorruptOnDeviceResidencyStorage()
636 mPowerStatsLogger.writeMeterDataToFile(incidentReportFos.getFD()); in testNotEnoughBytesAfterMeterLengthField()
680 mPowerStatsLogger.writeModelDataToFile(incidentReportFos.getFD()); in testNotEnoughBytesAfterModelLengthField()
722 mPowerStatsLogger.writeResidencyDataToFile(incidentReportFos.getFD()); in testNotEnoughBytesAfterResidencyLengthField()
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/
DDecoderTest.java126 FileDescriptor fileDescriptor = fileInput.getFD(); in testDecoder()
200 FileDescriptor fileDescriptor = fileInput.getFD(); in testNativeDecoder()
DExtractorTest.java96 FileDescriptor fileDescriptor = fileInput.getFD(); in testExtractor()
DMuxerTest.java116 FileDescriptor fileDescriptor = fileInput.getFD(); in testMuxer()
DEncoderTest.java173 FileDescriptor fileDescriptor = fileInput.getFD(); in decodeFile()
/frameworks/base/services/tests/RemoteProvisioningServiceTests/src/com/android/server/security/rkp/
DRemoteProvisioningShellCommandTest.java121 new FileInputStream(in).getFD(), in exec()
122 new FileOutputStream(out).getFD(), in exec()
123 new FileOutputStream(err).getFD(), in exec()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcelFileDescriptor_host.java89 final FileDescriptor fd = raf.getFD(); in native_open$ravenwood()
/frameworks/base/ravenwood/runtime-test/test/com/android/ravenwood/runtimetest/
DOsTest.java47 var fd = raf.getFD(); in withTestFile()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaTestUtil.java62 Debug.dumpNativeHeap(o.getFD()); in getNativeHeapDump()
/frameworks/base/media/java/android/media/
DMediaRecorder.java1278 _setNextOutputFile(f.getFD()); in setNextOutputFile()
1304 _setOutputFile(file.getFD()); in prepare()
1313 _setOutputFile(file.getFD()); in prepare()
DMediaMuxer.java356 FileDescriptor fd = file.getFD(); in MediaMuxer()
/frameworks/base/services/core/java/com/android/server/updates/
DConfigUpdateInstallReceiver.java207 out.getFD().sync(); in writeUpdate()
/frameworks/base/core/java/android/os/
DFileUtils.java278 stream.getFD().sync(); in sync()
404 return copy(((FileInputStream) in).getFD(), ((FileOutputStream) out).getFD(), in copy()
1732 public FileDescriptor getFD() { in getFD() method in FileUtils.MemoryPipe
1764 IoUtils.closeQuietly(getFD()); in close()
DBinder.java1259 in = new FileInputStream("/dev/null").getFD(); in onShellCommand()
1262 out = new FileOutputStream("/dev/null").getFD(); in onShellCommand()
/frameworks/base/core/java/android/util/
DXml.java225 Os.pread(((FileInputStream) in).getFD(), magic, 0, magic.length, 0); in resolvePullParser()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java415 fos.getFD().sync(); in writeFile()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java429 int res = Os.pread(getFD(), buffer, offset, count, mFileOffset + mOffset); in read()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexMetadataHelperTest.java416 ParseTypeImpl.forDefaultParsing().reset(), is.getFD(), in testPackageSizeWithPartialPackageLite()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DBrailleDisplayConnection.java489 return readFn.apply(stream.getFD().getInt$()); in getDefaultNativeScanner()

12