Home
last modified time | relevance | path

Searched refs:getFileDescriptor (Results 1 – 25 of 161) sorted by relevance

1234567

/frameworks/base/core/java/android/os/
DFileBridge.java102 while (IoBridge.read(mServer.getFileDescriptor(), temp, in run()
109 int n = IoBridge.read(mServer.getFileDescriptor(), temp, 0, in run()
115 IoBridge.write(mTarget.getFileDescriptor(), temp, 0, n); in run()
121 Os.fsync(mTarget.getFileDescriptor()); in run()
122 IoBridge.write(mServer.getFileDescriptor(), temp, 0, MSG_LENGTH); in run()
126 Os.fsync(mTarget.getFileDescriptor()); in run()
129 IoBridge.write(mServer.getFileDescriptor(), temp, 0, MSG_LENGTH); in run()
151 mClient = clientPfd.getFileDescriptor(); in FileBridgeOutputStream()
DMemoryFile.java102 if (native_pin(mSharedMemory.getFileDescriptor(), true)) { in beginAccess()
110 native_pin(mSharedMemory.getFileDescriptor(), false); in endAccess()
152 native_pin(mSharedMemory.getFileDescriptor(), !allowPurging); in allowPurging()
230 public FileDescriptor getFileDescriptor() throws IOException { in getFileDescriptor() method in MemoryFile
231 return mSharedMemory.getFileDescriptor(); in getFileDescriptor()
DHidlMemoryUtil.java198 return fileDescriptorToHidlMemory(shmem.getFileDescriptor(), shmem.getSize()); in sharedMemoryToHidlMemory()
233 final long address = Os.mmap(0, size, PROT_READ, MAP_SHARED, handle.getFileDescriptor(), in getBuffer()
235 return new DirectByteBuffer(size, address, handle.getFileDescriptor(), () -> { in getBuffer()
DParcelFileDescriptor.java414 return dup(getFileDescriptor()); in dup()
489 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket()
523 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket()
665 FileDescriptor fd = file.getFileDescriptor(); in fromData()
732 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in ParcelFileDescriptor
734 return mWrapped.getFileDescriptor(); in getFileDescriptor()
1040 super(pfd.getFileDescriptor()); in AutoCloseInputStream()
1092 super(pfd.getFileDescriptor()); in AutoCloseOutputStream()
DBugreportManager.java250 bugreportFd.getFileDescriptor(), in startBugreport()
251 screenshotFd.getFileDescriptor(), in startBugreport()
314 bugreportFd.getFileDescriptor(), in retrieveBugreport()
/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java74 new long[] { 10, 11 }, new long[] {}).getFileDescriptor(); in testSingleByte()
90 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testRanges()
112 new long[] { 0, 5_000_000 }, new long[] {}).getFileDescriptor(); in testEntireFile()
125 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testReadWrite()
182 new long[] { 1, 10 }, new long[] {1}).getFileDescriptor(); in testFreeAtStart()
194 new long[] { 1, 10 }, new long[] {3}).getFileDescriptor(); in testFreeAtOffset()
206 new long[] { 1, 10 }, new long[] {0}).getFileDescriptor(); in testFreeAcrossRedactionStart()
218 new long[] { 1, 3 }, new long[] {2}).getFileDescriptor(); in testFreeAcrossRedactionEnd()
230 new long[] { 1, 8 }, new long[] { 8 }).getFileDescriptor(); in testFreeOutsideRedaction()
242 new long[] { 1, 2, 3, 4 }, new long[] { 0 }).getFileDescriptor(); in testFreeMultipleRedactions()
/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java76 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testSingle()
83 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testSingle()
95 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testMultiple()
104 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testMultiple()
116 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testDelete()
125 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testDelete()
138 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testMixed()
149 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testMixed()
167 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testReadMockData()
196 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testReadRealData()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java109 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_emptyInput_throwsEOFException()
130 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
145 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
167 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_notEnoughData_throwsEOFException()
187 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_oneSmallChunk_writesOutputCorrectly()
207 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_oneLargeChunk_writesOutputCorrectly()
232 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_twoSmallChunks_writesOutputCorrectly()
257 assertThat(mTemporaryFileDescriptor.getFileDescriptor().valid()).isTrue(); in routeSocketDataToOutput_twoLargeChunks_writesOutputCorrectly()
/frameworks/base/services/core/java/com/android/server/resources/
DResourcesManagerService.java92 in.getFileDescriptor(),
93 out.getFileDescriptor(),
94 err.getFileDescriptor(),
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java71 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null; in performBackup_checked()
72 FileDescriptor newStateFd = newState.getFileDescriptor(); in performBackup_checked()
107 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor()); in writeNewStateDescription()
DFullBackupDataOutput.java58 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, 0); in FullBackupDataOutput()
65 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, transportFlags); in FullBackupDataOutput()
DBackupHelperDispatcher.java58 oldStateFD = oldState.getFileDescriptor(); in performBackup()
86 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup()
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java55 StructStat stat = Os.fstat(data.getFileDescriptor()); in performBackup()
68 try (InputStream in = new FileInputStream(data.getFileDescriptor())) { in performBackup()
91 try(OutputStream out = new FileOutputStream(outFd.getFileDescriptor())) { in getRestoreData()
/frameworks/base/core/java/android/net/
DLocalServerSocket.java103 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalServerSocket
104 return impl.getFileDescriptor(); in getFileDescriptor()
DLocalSocket.java86 Os.getpeername(impl.getFileDescriptor()); in checkConnected()
355 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalSocket
356 return impl.getFileDescriptor(); in getFileDescriptor()
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java40 mInputStream = new FileInputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
41 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
/frameworks/base/services/core/java/com/android/server/security/rkp/
DRemoteProvisioningService.java124 in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), in handleShellCommand()
/frameworks/base/core/java/android/content/res/loader/
DResourcesProvider.java151 return new ResourcesProvider(ApkAssets.loadFromFd(fileDescriptor.getFileDescriptor(), in loadFromApk()
180 return new ResourcesProvider(ApkAssets.loadFromFd(fileDescriptor.getFileDescriptor(), in loadFromApk()
206 ApkAssets.loadTableFromFd(fileDescriptor.getFileDescriptor(), in loadFromTable()
237 ApkAssets.loadTableFromFd(fileDescriptor.getFileDescriptor(), in loadFromTable()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java106 TransferPipe.dumpAsync(binder, pipe[1].getFileDescriptor(), args); in dumpAsync()
114 try (FileInputStream is = new FileInputStream(pipe[0].getFileDescriptor())) { in dumpAsync()
150 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); in go()
172 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); in goDump()
258 fis = new FileInputStream(readFd.getFileDescriptor()); in run()
DZygoteServer.java220 FileDescriptor fd = mZygoteSocket.getFileDescriptor(); in closeServerSocket()
242 return mZygoteSocket.getFileDescriptor(); in getZygoteSocketFileDescriptor()
376 return fillUsapPool(new int[]{ sessionSocket.getFileDescriptor().getInt$() }, false); in setUsapPoolStatus()
398 socketFDs.add(mZygoteSocket.getFileDescriptor()); in runSelectLoop()
512 socketFDs.add(newPeer.getFileDescriptor()); in runSelectLoop()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DPackageManagerBackupAgentTest.java244 new BackupDataOutput(backupDataDescriptor.getFileDescriptor()), in runBackupAgentOnBackup()
253 new BackupDataInput(backupDataDescriptor.getFileDescriptor()), in runBackupAgentOnRestore()
263 BackupDataInput input = new BackupDataInput(inputDescriptor.getFileDescriptor()); in deleteKeyFromBackupData()
264 BackupDataOutput output = new BackupDataOutput(outputDescriptor.getFileDescriptor()); in deleteKeyFromBackupData()
304 stateFileDescriptor.getFileDescriptor())))) { in writeLegacyStateFile()
341 new BackupDataInput(backupDataDescriptor.getFileDescriptor()); in getKeyValues()
/frameworks/av/services/oboeservice/
DSharedMemoryProxy.h39 int getFileDescriptor() const { in getFileDescriptor() function
/frameworks/base/media/java/android/media/
DMediaExtractor.java125 setDataSource(fd.getFileDescriptor()); in setDataSource()
128 fd.getFileDescriptor(), in setDataSource()
223 setDataSource(afd.getFileDescriptor()); in setDataSource()
225 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
DSoundPool.java202 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); in load()
230 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
254 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java158 FileInputStream instream = new FileInputStream(oldState.getFileDescriptor()); in compareStateFile()
194 FileOutputStream outstream = new FileOutputStream(stateFile.getFileDescriptor()); in writeStateFile()

1234567