Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/tests/coretests/src/android/os/
DRedactingFileDescriptorTest.java67 new long[] { 10, 11 }, new long[] {}).getFileDescriptor(); in testSingleByte()
83 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testRanges()
105 new long[] { 0, 5_000_000 }, new long[] {}).getFileDescriptor(); in testEntireFile()
118 new long[] { 100, 200, 300, 400 }, new long[] {}).getFileDescriptor(); in testReadWrite()
175 new long[] { 1, 10 }, new long[] {1}).getFileDescriptor(); in testFreeAtStart()
187 new long[] { 1, 10 }, new long[] {3}).getFileDescriptor(); in testFreeAtOffset()
199 new long[] { 1, 10 }, new long[] {0}).getFileDescriptor(); in testFreeAcrossRedactionStart()
211 new long[] { 1, 3 }, new long[] {2}).getFileDescriptor(); in testFreeAcrossRedactionEnd()
223 new long[] { 1, 8 }, new long[] { 8 }).getFileDescriptor(); in testFreeOutsideRedaction()
235 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/servicestests/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/core/java/android/os/
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.java200 return fileDescriptorToHidlMemory(shmem.getFileDescriptor(), shmem.getSize()); in sharedMemoryToHidlMemory()
231 final long address = Os.mmap(0, size, PROT_READ, MAP_SHARED, handle.getFileDescriptor(), in getBuffer()
233 return new DirectByteBuffer(size, address, handle.getFileDescriptor(), () -> { in getBuffer()
DParcelFileDescriptor.java375 return dup(getFileDescriptor()); in dup()
449 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket()
482 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket()
618 FileDescriptor fd = file.getFileDescriptor(); in fromData()
664 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in ParcelFileDescriptor
666 return mWrapped.getFileDescriptor(); in getFileDescriptor()
971 super(pfd.getFileDescriptor()); in AutoCloseInputStream()
1022 super(pfd.getFileDescriptor()); in AutoCloseOutputStream()
DBinder.java792 dump(fd.getFileDescriptor(), args); in onTransact()
813 shellCommand(in != null ? in.getFileDescriptor() : null, in onTransact()
814 out.getFileDescriptor(), in onTransact()
815 err != null ? err.getFileDescriptor() : out.getFileDescriptor(), in onTransact()
1013 FileOutputStream ferr = new FileOutputStream(err.getFileDescriptor()); in handleShellCommand()
/frameworks/base/core/java/android/content/res/loader/
DResourcesProvider.java101 return new ResourcesProvider(ApkAssets.loadFromFd(fileDescriptor.getFileDescriptor(), in loadFromApk()
130 return new ResourcesProvider(ApkAssets.loadFromFd(fileDescriptor.getFileDescriptor(), in loadFromApk()
156 ApkAssets.loadTableFromFd(fileDescriptor.getFileDescriptor(), in loadFromTable()
187 ApkAssets.loadTableFromFd(fileDescriptor.getFileDescriptor(), in loadFromTable()
/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.java57 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, 0); in FullBackupDataOutput()
64 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.java101 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalServerSocket
102 return impl.getFileDescriptor(); in getFileDescriptor()
DIpSecManager.java364 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform()
398 applyTransportModeTransform(socket.getFileDescriptor$(), direction, transform); in applyTransportModeTransform()
473 removeTransportModeTransforms(socket.getFileDescriptor$()); in removeTransportModeTransforms()
490 removeTransportModeTransforms(socket.getFileDescriptor$()); in removeTransportModeTransforms()
578 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in IpSecManager.UdpEncapsulationSocket
582 return mPfd.getFileDescriptor(); in getFileDescriptor()
DLocalSocket.java339 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalSocket
340 return impl.getFileDescriptor(); in getFileDescriptor()
/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.java240 FileDescriptor fd = mZygoteSocket.getFileDescriptor(); in closeServerSocket()
262 return mZygoteSocket.getFileDescriptor(); in getZygoteSocketFileDescriptor()
407 return fillUsapPool(new int[]{ sessionSocket.getFileDescriptor().getInt$() }, false); in setUsapPoolStatus()
428 socketFDs.add(mZygoteSocket.getFileDescriptor()); in runSelectLoop()
539 socketFDs.add(newPeer.getFileDescriptor()); in runSelectLoop()
/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/tests/net/common/java/android/net/
DNetworkTest.java90 assertTrue(mLocalClient.getFileDescriptor().valid()); in testBindSocketOfLocalSocketThrows()
93 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
102 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
/frameworks/base/tests/net/java/android/net/
DIpSecManagerTest.java192 assertNotNull(encapSocket.getFileDescriptor()); in testOpenEncapsulationSocket()
212 assertNotNull(socket.getFileDescriptor$()); in testApplyTransportModeTransformEnsuresSocketCreation()
224 assertNotNull(socket.getFileDescriptor$()); in testRemoveTransportModeTransformsForcesSocketCreation()
242 assertNotNull(encapSocket.getFileDescriptor()); in testOpenEncapsulationSocketOnRandomPort()
/frameworks/base/media/java/android/media/
DSoundPool.java191 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); in load()
219 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
243 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
DMediaExtractor.java128 setDataSource(fd.getFileDescriptor()); in setDataSource()
131 fd.getFileDescriptor(), in setDataSource()
226 setDataSource(afd.getFileDescriptor()); in setDataSource()
228 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
/frameworks/av/services/oboeservice/
DSharedMemoryProxy.h39 int getFileDescriptor() const { in getFileDescriptor() function
/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()
/frameworks/base/packages/LocalTransport/src/com/android/localtransport/
DLocalTransport.java233 StructStat ss = Os.fstat(data.getFileDescriptor()); in performBackupInternal()
348 BackupDataInput changeSet = new BackupDataInput(data.getFileDescriptor()); in parseBackupStream()
511 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in performFullBackup()
512 mSocketInputStream = new FileInputStream(mSocket.getFileDescriptor()); in performFullBackup()
711 BackupDataOutput out = new BackupDataOutput(outFd.getFileDescriptor()); in getRestoreData()
829 FileOutputStream stream = new FileOutputStream(socket.getFileDescriptor()); in getNextFullRestoreDataChunk()

1234567