Home
last modified time | relevance | path

Searched refs:getFD (Results 1 – 25 of 33) 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/tests/net/common/java/android/net/
DNetworkTest.java68 assertTrue(null != fis.getFD()); in testBindSocketOfNonSocketFdThrows()
69 assertTrue(fis.getFD().valid()); in testBindSocketOfNonSocketFdThrows()
72 mNetwork.bindSocket(fis.getFD()); in testBindSocketOfNonSocketFdThrows()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakDetectorTest.java110 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); in testDump()
126 mLeakDetector.dump(fos.getFD(), new PrintWriter(fos), new String[0]); in testDisabled()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java161 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_FileToPipe()
180 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_PipeToFile()
197 FileUtils.copy(in.getFD(), out.getFD()); in testCopy_PipeToPipe()
218 FileUtils.copy(in.getFD(), out.getFD(), size, null, null, null); in testCopy_ShortPipeToFile()
DFileBridgeTest.java50 bridge.setTargetFile(fileOs.getFD()); in setUp()
/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.java292 new MemoryMappedFileDataSource(file.getFD(), 0, file.length()), in generateFsVerityDigestAtLeafLevel()
313 new MemoryMappedFileDataSource(apk.getFD(), 0, signatureInfo.apkSigningBlockOffset), in generateApkVerityDigestAtLeafLevel()
321 new MemoryMappedFileDataSource(apk.getFD(), signatureInfo.centralDirOffset, in generateApkVerityDigestAtLeafLevel()
336 new MemoryMappedFileDataSource(apk.getFD(), offsetAfterEocdCdOffsetField, in generateApkVerityDigestAtLeafLevel()
DApkSigningBlockUtils.java108 verifyIntegrityFor1MbChunkBasedAlgorithm(expected1MbChunkDigests, apk.getFD(), in verifyIntegrity()
/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/core/java/android/os/
DFileUtils.java245 stream.getFD().sync(); in sync()
306 Os.fsync(out.getFD()); in copyToFileOrThrow()
375 return copy(((FileInputStream) in).getFD(), ((FileOutputStream) out).getFD(), in copy()
1441 public FileDescriptor getFD() { in getFD() method in FileUtils.MemoryPipe
1473 IoUtils.closeQuietly(getFD()); in close()
DGraphicsEnvironment.java477 final FileDescriptor rulesFd = stream.getFD(); in setupAngleWithTempRulesFile()
/frameworks/base/media/java/android/media/
DMediaRecorder.java1022 _setNextOutputFile(f.getFD()); in setNextOutputFile()
1048 _setOutputFile(file.getFD()); in prepare()
1057 _setOutputFile(file.getFD()); in prepare()
DMediaMuxer.java344 FileDescriptor fd = file.getFD(); in MediaMuxer()
DMediaMetadataRetriever.java74 FileDescriptor fd = is.getFD(); in setDataSource()
DExifInterface.java1439 && isSeekableFD(((FileInputStream) inputStream).getFD())) { in ExifInterface()
1441 mSeekableFileDescriptor = ((FileInputStream) inputStream).getFD(); in ExifInterface()
2292 if (isSeekableFD(in.getFD())) { in initForFilename()
2293 mSeekableFileDescriptor = in.getFD(); in initForFilename()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaTestUtil.java62 Debug.dumpNativeHeap(o.getFD()); in getNativeHeapDump()
/frameworks/base/cmds/statsd/tools/loadtest/src/com/android/statsd/loadtest/
DPerfDataRecorder.java68 if (!Debug.dumpService(cmd, fo.getFD(), args)) { in runDumpsysStats()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/leak/
DLeakReporter.java89 mLeakDetector.dump(fos.getFD(), w, new String[0]); in dumpLeak()
/frameworks/base/services/core/java/com/android/server/updates/
DConfigUpdateInstallReceiver.java197 out.getFD().sync(); in writeUpdate()
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/
DDexMetadataHelperTest.java226 ApkLite baseApk = PackageParser.parseApkLite(is.getFD(), base.getAbsolutePath(), 0); in testPackageSizeWithPartialPackageLite()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/fullbackup/
DAppMetadataBackupWriterTest.java402 BackupDataInput input = new BackupDataInput(new FileInputStream(file).getFD()); in getWrittenBytes()
/frameworks/base/drm/java/android/drm/
DDrmManagerClient.java622 fd = is.getFD(); in getOriginalMimeType()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
DKeyValueBackupTaskTest.java1299 BackupDataInput backupData = new BackupDataInput(inputStream.getFD()); in testRunTask_whenAgentWritesData_callsTransportPerformBackupWithAgentData()
1331 BackupDataInput backupData = new BackupDataInput(inputStream.getFD()); in testRunTask_whenPmAgentWritesData_callsTransportPerformBackupWithAgentData()
1852 BackupDataInput backupData = new BackupDataInput(inputStream.getFD()); in testRunTask_whenIncrementalAndTransportRequestsNonIncremental()
1857 BackupDataInput backupData = new BackupDataInput(inputStream.getFD()); in testRunTask_whenIncrementalAndTransportRequestsNonIncremental()
/frameworks/base/services/tests/servicestests/src/com/android/server/timezone/
DRulesManagerServiceTest.java896 FileDescriptor fd = fos.getFD(); in doDumpCallAndCapture()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java883 FileUtils.copy(source.getFD(), targetFd); in copyFile()

12