Home
last modified time | relevance | path

Searched refs:ParcelFileDescriptor (Results 1 – 25 of 257) sorted by relevance

1234567891011

/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java55 public class ParcelFileDescriptor implements Parcelable, Closeable { class
70 private final ParcelFileDescriptor mWrapped;
159 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
169 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
174 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
199 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
203 return new ParcelFileDescriptor(fd); in open()
224 public static ParcelFileDescriptor open(File file, int mode, Handler handler, in open()
240 public static ParcelFileDescriptor fromFd( in fromFd()
250 final ParcelFileDescriptor pfd = new ParcelFileDescriptor(fd, comm[0]); in fromFd()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DAppFuseTest.java19 import android.os.ParcelFileDescriptor;
61 final ParcelFileDescriptor fd = appFuse.openFile( in testOpenFile()
62 INODE, ParcelFileDescriptor.MODE_READ_ONLY); in testOpenFile()
73 appFuse.openFile(INODE, ParcelFileDescriptor.MODE_READ_ONLY); in testOpenFile_fileNotFound()
85 appFuse.openFile(INODE, ParcelFileDescriptor.MODE_READ_WRITE); in testOpenFile_illegalMode()
121 final ParcelFileDescriptor fd = appFuse.openFile( in testReadFile()
122 fileInode, ParcelFileDescriptor.MODE_READ_ONLY); in testReadFile()
123 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in testReadFile()
124 new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in testReadFile()
157 final ParcelFileDescriptor fd = appFuse.openFile( in testWriteFile()
[all …]
DPipeManagerTest.java19 import android.os.ParcelFileDescriptor;
53 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_basic()
60 final ParcelFileDescriptor descriptor = mPipeManager.readDocument( in testReadDocument_error()
68 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_basic()
75 final ParcelFileDescriptor descriptor = mPipeManager.readThumbnail( in testReadThumbnail_error()
81 private void assertDescriptor(ParcelFileDescriptor descriptor, byte[] expectedBytes) in assertDescriptor()
85 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in assertDescriptor()
86 new ParcelFileDescriptor.AutoCloseInputStream(descriptor)) { in assertDescriptor()
95 private void assertDescriptorError(ParcelFileDescriptor descriptor) in assertDescriptorError()
/frameworks/base/core/java/android/app/
DIBackupAgent.aidl20 import android.os.ParcelFileDescriptor;
51 void doBackup(in ParcelFileDescriptor oldState, in doBackup()
52 in ParcelFileDescriptor data, in doBackup()
53 in ParcelFileDescriptor newState, in doBackup()
79 void doRestore(in ParcelFileDescriptor data, in doRestore()
80 int appVersionCode, in ParcelFileDescriptor newState, in doRestore()
100 void doFullBackup(in ParcelFileDescriptor data, int token, IBackupManager callbackBinder); in doFullBackup()
149 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
DProfilerInfo.java21 import android.os.ParcelFileDescriptor;
34 public ParcelFileDescriptor profileFd;
42 public ProfilerInfo(String filename, ParcelFileDescriptor fd, int interval, boolean autoStop) { in ProfilerInfo()
82 profileFd = in.readInt() != 0 ? ParcelFileDescriptor.CREATOR.createFromParcel(in) : null; in ProfilerInfo()
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java23 import android.os.ParcelFileDescriptor;
247 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup()
255 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup()
341 public int getRestoreData(ParcelFileDescriptor outFd) { in getRestoreData()
411 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup()
420 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup()
545 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk()
615 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup()
651 public int getRestoreData(ParcelFileDescriptor outFd) throws RemoteException { in getRestoreData()
666 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup()
[all …]
DBackupHelper.java19 import android.os.ParcelFileDescriptor;
72 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup()
73 ParcelFileDescriptor newState); in performBackup()
106 public void writeNewStateDescription(ParcelFileDescriptor newState); in writeNewStateDescription()
DFullBackupAgent.java19 import android.os.ParcelFileDescriptor;
31 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup()
32 ParcelFileDescriptor newState) throws IOException { in onBackup()
37 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore()
DBackupAgentHelper.java19 import android.os.ParcelFileDescriptor;
64 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup()
65 ParcelFileDescriptor newState) throws IOException { in onBackup()
73 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore()
DBackupHelperDispatcher.java19 import android.os.ParcelFileDescriptor;
45 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup()
46 ParcelFileDescriptor newState) throws IOException { in performBackup()
79 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in doOneBackup()
80 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup()
105 ParcelFileDescriptor newState) in performRestore()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DPipeManager.java19 import android.os.ParcelFileDescriptor;
45 ParcelFileDescriptor readDocument(MtpManager model, Identifier identifier) throws IOException { in readDocument()
51 ParcelFileDescriptor readThumbnail(MtpManager model, Identifier identifier) throws IOException { in readThumbnail()
60 protected final ParcelFileDescriptor[] mDescriptors;
65 mDescriptors = ParcelFileDescriptor.createReliablePipe(); in Task()
68 ParcelFileDescriptor getReadingFileDescriptor() { in getReadingFileDescriptor()
102 try (final ParcelFileDescriptor.AutoCloseOutputStream stream = in run()
103 new ParcelFileDescriptor.AutoCloseOutputStream(mDescriptors[1])) { in run()
DMtpFileWriter.java21 import android.os.ParcelFileDescriptor;
32 final ParcelFileDescriptor mCacheFd;
40 mCacheFd = ParcelFileDescriptor.open( in MtpFileWriter()
42 ParcelFileDescriptor.MODE_READ_WRITE | in MtpFileWriter()
43 ParcelFileDescriptor.MODE_TRUNCATE | in MtpFileWriter()
44 ParcelFileDescriptor.MODE_CREATE); in MtpFileWriter()
DAppFuse.java20 import android.os.ParcelFileDescriptor;
60 private ParcelFileDescriptor mDeviceFd;
97 public ParcelFileDescriptor openFile(int i, int mode) throws FileNotFoundException { in openFile()
99 mode == ParcelFileDescriptor.MODE_READ_ONLY || in openFile()
100 mode == (ParcelFileDescriptor.MODE_WRITE_ONLY | in openFile()
101 ParcelFileDescriptor.MODE_TRUNCATE)); in openFile()
102 return ParcelFileDescriptor.open(new File( in openFile()
/frameworks/base/core/java/android/printservice/
DPrintDocument.java21 import android.os.ParcelFileDescriptor;
74 public @Nullable ParcelFileDescriptor getData() { in getData()
76 ParcelFileDescriptor source = null; in getData()
77 ParcelFileDescriptor sink = null; in getData()
79 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in getData()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java21 import android.os.ParcelFileDescriptor;
43 private final ParcelFileDescriptor mFd;
57 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
73 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
93 public ParcelFileDescriptor getParcelFileDescriptor() { in getParcelFileDescriptor()
169 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream()
184 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream()
201 extends ParcelFileDescriptor.AutoCloseInputStream {
288 extends ParcelFileDescriptor.AutoCloseOutputStream {
359 mFd = ParcelFileDescriptor.CREATOR.createFromParcel(src); in AssetFileDescriptor()
/frameworks/base/tests/backup/src/com/android/backuptest/
DBackupTestActivity.java29 import android.os.ParcelFileDescriptor;
137 ParcelFileDescriptor state = ParcelFileDescriptor.open(
139 ParcelFileDescriptor.MODE_READ_WRITE|ParcelFileDescriptor.MODE_CREATE|
140 ParcelFileDescriptor.MODE_TRUNCATE);
161 ParcelFileDescriptor state = ParcelFileDescriptor.open(
163 ParcelFileDescriptor.MODE_READ_WRITE|ParcelFileDescriptor.MODE_CREATE|
164 ParcelFileDescriptor.MODE_TRUNCATE);
/frameworks/support/v4/java/android/support/v4/content/
DFileProvider.java33 import android.os.ParcelFileDescriptor;
518 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
522 return ParcelFileDescriptor.open(file, fileMode); in openFile()
731 modeBits = ParcelFileDescriptor.MODE_READ_ONLY; in modeToMode()
733 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in modeToMode()
734 | ParcelFileDescriptor.MODE_CREATE in modeToMode()
735 | ParcelFileDescriptor.MODE_TRUNCATE; in modeToMode()
737 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in modeToMode()
738 | ParcelFileDescriptor.MODE_CREATE in modeToMode()
739 | ParcelFileDescriptor.MODE_APPEND; in modeToMode()
[all …]
/frameworks/base/core/java/com/android/internal/backup/
DIBackupTransport.aidl23 import android.os.ParcelFileDescriptor;
145 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd, int flags); in performBackup()
226 int getRestoreData(in ParcelFileDescriptor outFd); in getRestoreData()
237 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket, int flags); in performFullBackup()
293 int getNextFullRestoreDataChunk(in ParcelFileDescriptor socket); in getNextFullRestoreDataChunk()
/frameworks/support/v4/ics/android/support/v4/net/
DTrafficStatsCompatIcs.java20 import android.os.ParcelFileDescriptor;
59 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket); in tagDatagramSocket()
69 final ParcelFileDescriptor pfd = ParcelFileDescriptor.fromDatagramSocket(socket); in untagDatagramSocket()
/frameworks/base/media/java/android/media/midi/
DIMidiDeviceServer.aidl20 import android.os.ParcelFileDescriptor;
25 ParcelFileDescriptor openInputPort(IBinder token, int portNumber); in openInputPort()
26 ParcelFileDescriptor openOutputPort(IBinder token, int portNumber); in openOutputPort()
32 int connectPorts(IBinder token, in ParcelFileDescriptor pfd, int outputPortNumber); in connectPorts()
DMidiInputPort.java20 import android.os.ParcelFileDescriptor;
41 private ParcelFileDescriptor mParcelFileDescriptor;
51 ParcelFileDescriptor pfd, int portNumber) { in MidiInputPort()
62 /* package */ MidiInputPort(ParcelFileDescriptor pfd, int portNumber) { in MidiInputPort()
105 /* package */ ParcelFileDescriptor claimFileDescriptor() { in claimFileDescriptor()
107 ParcelFileDescriptor pfd; in claimFileDescriptor()
/frameworks/support/documents-archive/tests/src/android/support/provider/
DTestUtils.java20 import android.os.ParcelFileDescriptor;
41 new ParcelFileDescriptor.AutoCloseOutputStream( in createFileFromResource()
42 ParcelFileDescriptor.open( in createFileFromResource()
43 file, ParcelFileDescriptor.MODE_WRITE_ONLY)); in createFileFromResource()
/frameworks/base/core/tests/coretests/src/android/content/
DMemoryFileProvider.java24 import android.os.ParcelFileDescriptor;
132 public ParcelFileDescriptor openFile(Uri url, String mode) throws FileNotFoundException { in openFile()
140 return ParcelFileDescriptor.fromData(TEST_BLOB, null); in openFile()
146 return ParcelFileDescriptor.open(file, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
152 private ParcelFileDescriptor getBlobColumnAsFile(Uri url, String mode, String sql) in getBlobColumnAsFile()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeAgent.java22 import android.os.ParcelFileDescriptor;
87 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup()
88 ParcelFileDescriptor newState) throws IOException { in onBackup()
157 boolean compareStateFile(ParcelFileDescriptor oldState) { in compareStateFile()
193 void writeStateFile(ParcelFileDescriptor stateFile) throws IOException { in writeStateFile()
221 ParcelFileDescriptor newState) throws IOException { in onRestore()
/frameworks/base/core/java/com/android/internal/app/procstats/
DIProcessStats.aidl20 import android.os.ParcelFileDescriptor;
24 byte[] getCurrentStats(out List<ParcelFileDescriptor> historic); in getCurrentStats()
25 ParcelFileDescriptor getStatsOverTime(long minTime); in getStatsOverTime()

1234567891011