/frameworks/base/core/tests/coretests/src/android/os/ |
D | RedactingFileDescriptorTest.java | 67 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/ |
D | BackupDataTest.java | 76 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/ |
D | FullBackupUtilsTest.java | 109 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/ |
D | MemoryFile.java | 102 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()
|
D | HidlMemoryUtil.java | 200 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()
|
D | ParcelFileDescriptor.java | 375 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()
|
D | Binder.java | 792 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/ |
D | ResourcesProvider.java | 101 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/ |
D | FileBackupHelperBase.java | 71 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()
|
D | FullBackupDataOutput.java | 57 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, 0); in FullBackupDataOutput() 64 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, transportFlags); in FullBackupDataOutput()
|
D | BackupHelperDispatcher.java | 58 oldStateFD = oldState.getFileDescriptor(); in performBackup() 86 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup()
|
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/ |
D | EncryptedLocalTransport.java | 55 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/ |
D | LocalServerSocket.java | 101 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalServerSocket 102 return impl.getFileDescriptor(); in getFileDescriptor()
|
D | IpSecManager.java | 364 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()
|
D | LocalSocket.java | 339 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalSocket 340 return impl.getFileDescriptor(); in getFileDescriptor()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | TransferPipe.java | 106 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()
|
D | ZygoteServer.java | 240 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/ |
D | UsbAccessoryStreamTransport.java | 40 mInputStream = new FileInputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport() 41 mOutputStream = new FileOutputStream(fd.getFileDescriptor()); in UsbAccessoryStreamTransport()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkTest.java | 90 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/ |
D | IpSecManagerTest.java | 192 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/ |
D | SoundPool.java | 191 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()
|
D | MediaExtractor.java | 128 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/ |
D | SharedMemoryProxy.h | 39 int getFileDescriptor() const { in getFileDescriptor() function
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeAgent.java | 158 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/ |
D | LocalTransport.java | 233 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()
|