/frameworks/base/core/java/android/os/ |
D | FileBridge.java | 102 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()
|
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 | 198 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()
|
D | ParcelFileDescriptor.java | 414 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()
|
D | BugreportManager.java | 250 bugreportFd.getFileDescriptor(), in startBugreport() 251 screenshotFd.getFileDescriptor(), in startBugreport() 314 bugreportFd.getFileDescriptor(), in retrieveBugreport()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | RedactingFileDescriptorTest.java | 74 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/ |
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/mockingservicestests/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/services/core/java/com/android/server/resources/ |
D | ResourcesManagerService.java | 92 in.getFileDescriptor(), 93 out.getFileDescriptor(), 94 err.getFileDescriptor(),
|
/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 | 58 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, 0); in FullBackupDataOutput() 65 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 | 103 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalServerSocket 104 return impl.getFileDescriptor(); in getFileDescriptor()
|
D | LocalSocket.java | 86 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/ |
D | UsbAccessoryStreamTransport.java | 40 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/ |
D | RemoteProvisioningService.java | 124 in.getFileDescriptor(), out.getFileDescriptor(), err.getFileDescriptor(), in handleShellCommand()
|
/frameworks/base/core/java/android/content/res/loader/ |
D | ResourcesProvider.java | 151 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/ |
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 | 220 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/ |
D | PackageManagerBackupAgentTest.java | 244 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/ |
D | SharedMemoryProxy.h | 39 int getFileDescriptor() const { in getFileDescriptor() function
|
/frameworks/base/media/java/android/media/ |
D | MediaExtractor.java | 125 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()
|
D | SoundPool.java | 202 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/ |
D | HugeAgent.java | 158 FileInputStream instream = new FileInputStream(oldState.getFileDescriptor()); in compareStateFile() 194 FileOutputStream outstream = new FileOutputStream(stateFile.getFileDescriptor()); in writeStateFile()
|