Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/android/app/backup/
DBackupDataTest.java83 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testSingle()
90 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testSingle()
102 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testMultiple()
111 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testMultiple()
123 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testDelete()
132 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testDelete()
145 BackupDataOutput bdo = new BackupDataOutput(mDataFile.getFileDescriptor()); in testMixed()
156 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testMixed()
174 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testReadMockData()
203 BackupDataInput bdi = new BackupDataInput(mDataFile.getFileDescriptor()); in testReadRealData()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpFileWriter.java60 Os.lseek(mCacheFd.getFileDescriptor(), offset, OsConstants.SEEK_SET); in write()
61 return Os.write(mCacheFd.getFileDescriptor(), bytes, 0, size); in write()
80 final long size = Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_END); in flush()
85 Os.lseek(mCacheFd.getFileDescriptor(), 0, OsConstants.SEEK_SET); in flush()
/frameworks/base/core/java/android/app/backup/
DFileBackupHelperBase.java70 FileDescriptor oldStateFd = oldState != null ? oldState.getFileDescriptor() : null; in performBackup_checked()
71 FileDescriptor newStateFd = newState.getFileDescriptor(); in performBackup_checked()
105 int result = writeSnapshot_native(mPtr, fd.getFileDescriptor()); in writeNewStateDescription()
DBackupHelperDispatcher.java55 oldStateFD = oldState.getFileDescriptor(); in performBackup()
83 FileDescriptor newStateFD = newState.getFileDescriptor(); in doOneBackup()
DFullBackupDataOutput.java23 mData = new BackupDataOutput(fd.getFileDescriptor()); in FullBackupDataOutput()
/frameworks/base/core/java/android/net/
DLocalServerSocket.java100 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalServerSocket
101 return impl.getFileDescriptor(); in getFileDescriptor()
DLocalSocket.java322 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in LocalSocket
323 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/support/v4/ics/android/support/v4/net/
DTrafficStatsCompatIcs.java60 TrafficStats.tagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor())); in tagDatagramSocket()
70 TrafficStats.untagSocket(new DatagramSocketWrapper(socket, pfd.getFileDescriptor())); in untagDatagramSocket()
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkTest.java84 assertTrue(mLocalClient.getFileDescriptor().valid()); in testBindSocketOfLocalSocketThrows()
87 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
96 mNetwork.bindSocket(mLocalClient.getFileDescriptor()); in testBindSocketOfLocalSocketThrows()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java311 return dup(getFileDescriptor()); in dup()
367 FileDescriptor fd = socket.getFileDescriptor$(); in fromSocket()
381 FileDescriptor fd = datagramSocket.getFileDescriptor$(); in fromDatagramSocket()
511 FileDescriptor fd = file.getFileDescriptor(); in fromData()
553 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in ParcelFileDescriptor
555 return mWrapped.getFileDescriptor(); in getFileDescriptor()
855 super(pfd.getFileDescriptor()); in AutoCloseInputStream()
906 super(pfd.getFileDescriptor()); in AutoCloseOutputStream()
DBinder.java347 dump(fd.getFileDescriptor(), args); in onTransact()
367 shellCommand(in != null ? in.getFileDescriptor() : null, in onTransact()
368 out.getFileDescriptor(), in onTransact()
369 err != null ? err.getFileDescriptor() : out.getFileDescriptor(), in onTransact()
DTransactionTracker.java62 PrintWriter pw = new FastPrintWriter(new FileOutputStream(fd.getFileDescriptor())); in writeTracesToFile()
/frameworks/base/core/java/com/android/internal/backup/
DLocalTransport.java162 StructStat ss = Os.fstat(data.getFileDescriptor()); in performBackup()
178 BackupDataInput changeSet = new BackupDataInput(data.getFileDescriptor()); in performBackup()
205 long cur = Os.lseek(data.getFileDescriptor(), 0, SEEK_CUR); in performBackup()
348 mSocket = ParcelFileDescriptor.dup(socket.getFileDescriptor()); in performFullBackup()
349 mSocketInputStream = new FileInputStream(mSocket.getFileDescriptor()); in performFullBackup()
541 BackupDataOutput out = new BackupDataOutput(outFd.getFileDescriptor()); in getRestoreData()
657 mFullRestoreSocketStream = new FileOutputStream(socket.getFileDescriptor()); in getNextFullRestoreDataChunk()
/frameworks/base/media/java/android/media/
DMediaExtractor.java116 setDataSource(fd.getFileDescriptor()); in setDataSource()
119 fd.getFileDescriptor(), in setDataSource()
207 setDataSource(afd.getFileDescriptor()); in setDataSource()
209 setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getDeclaredLength()); in setDataSource()
DSoundPool.java222 id = _load(fd.getFileDescriptor(), 0, f.length(), priority); in load()
250 id = _load(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength(), priority); in load()
274 return _load(afd.getFileDescriptor(), afd.getStartOffset(), len, priority); in load()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java91 caller.go(iface, tp.getWriteFd().getFileDescriptor(), prefix, args); in go()
116 binder.dumpAsync(tp.getWriteFd().getFileDescriptor(), args); in goDump()
195 fis = new FileInputStream(readFd.getFileDescriptor()); in run()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java46 return native_open(name, pfd.getFileDescriptor()); in open()
66 public int getFileDescriptor() { in getFileDescriptor() method in UsbDeviceConnection
/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/graphics/java/android/graphics/pdf/
DPdfRenderer.java150 Libcore.os.lseek(input.getFileDescriptor(), 0, OsConstants.SEEK_SET); in PdfRenderer()
151 size = Libcore.os.fstat(input.getFileDescriptor()).st_size; in PdfRenderer()
DPdfEditor.java75 Libcore.os.lseek(input.getFileDescriptor(), 0, OsConstants.SEEK_SET); in PdfEditor()
76 size = Libcore.os.fstat(input.getFileDescriptor()).st_size; in PdfEditor()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java101 public FileDescriptor getFileDescriptor() { in getFileDescriptor() method in AssetFileDescriptor
102 return mFd.getFileDescriptor(); in getFileDescriptor()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapFactoryTest.java38 FileDescriptor fd = pfd.getFileDescriptor(); in testBitmapParcelFileDescriptor()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DMtpDocumentsProviderTest.java495 assertEquals(6, Os.lseek(fd.getFileDescriptor(), 6, OsConstants.SEEK_SET)); in testOpenDocument()
496 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
499 assertEquals(0, Os.lseek(fd.getFileDescriptor(), 0, OsConstants.SEEK_SET)); in testOpenDocument()
500 assertEquals(5, Os.read(fd.getFileDescriptor(), readBytes, 0, 5)); in testOpenDocument()
533 assertEquals(11, Os.read(fd.getFileDescriptor(), readBytes, 0, readBytes.length)); in testOpenDocument_shortBytes()
/frameworks/opt/bitmap/src/com/android/bitmap/
DDecodeTask.java213 BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); in decode()
313 .newInstance(fd.getFileDescriptor(), true /* shareable */); in decode()
491 result = BitmapFactory.decodeFileDescriptor(fd.getFileDescriptor(), null, mOpts); in decode()

1234