Home
last modified time | relevance | path

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

12345678910>>...14

/frameworks/native/include/binder/
DParcelFileDescriptor.h30 class ParcelFileDescriptor : public android::Parcelable {
32 ParcelFileDescriptor();
33 explicit ParcelFileDescriptor(android::base::unique_fd fd);
34 ParcelFileDescriptor(ParcelFileDescriptor&& other) noexcept : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
35 ParcelFileDescriptor& operator=(ParcelFileDescriptor&& other) noexcept = default;
36 ~ParcelFileDescriptor() override;
46 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
49 inline bool operator<(const ParcelFileDescriptor& rhs) const {
52 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
55 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/native/libs/binder/include/binder/
DParcelFileDescriptor.h30 class ParcelFileDescriptor : public android::Parcelable {
32 ParcelFileDescriptor();
33 explicit ParcelFileDescriptor(android::base::unique_fd fd);
34 ParcelFileDescriptor(ParcelFileDescriptor&& other) noexcept : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
35 ParcelFileDescriptor& operator=(ParcelFileDescriptor&& other) noexcept = default;
36 ~ParcelFileDescriptor() override;
46 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
49 inline bool operator<(const ParcelFileDescriptor& rhs) const {
52 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
55 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java68 public class ParcelFileDescriptor implements Parcelable, Closeable { class
83 private final ParcelFileDescriptor mWrapped;
172 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
183 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
188 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
219 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
223 return new ParcelFileDescriptor(fd); in open()
244 public static ParcelFileDescriptor open(File file, int mode, Handler handler, in open()
260 public static ParcelFileDescriptor fromPfd(ParcelFileDescriptor pfd, Handler handler, in fromPfd()
268 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
[all …]
/frameworks/native/libs/binder/
DParcelFileDescriptor.cpp22 ParcelFileDescriptor::ParcelFileDescriptor() = default;
24 ParcelFileDescriptor::ParcelFileDescriptor(android::base::unique_fd fd) : mFd(std::move(fd)) {} in ParcelFileDescriptor() function in android::os::ParcelFileDescriptor
26 ParcelFileDescriptor::~ParcelFileDescriptor() = default;
28 status_t ParcelFileDescriptor::writeToParcel(Parcel* parcel) const { in writeToParcel()
32 status_t ParcelFileDescriptor::readFromParcel(const Parcel* parcel) { in readFromParcel()
/frameworks/base/telecomm/java/android/telecom/
DParcelableRttCall.java20 import android.os.ParcelFileDescriptor;
35 private final ParcelFileDescriptor mTransmitStream;
36 private final ParcelFileDescriptor mReceiveStream;
40 ParcelFileDescriptor transmitStream, in ParcelableRttCall()
41 ParcelFileDescriptor receiveStream) { in ParcelableRttCall()
49 mTransmitStream = in.readParcelable(ParcelFileDescriptor.class.getClassLoader()); in ParcelableRttCall()
50 mReceiveStream = in.readParcelable(ParcelFileDescriptor.class.getClassLoader()); in ParcelableRttCall()
81 public ParcelFileDescriptor getReceiveStream() { in getReceiveStream()
85 public ParcelFileDescriptor getTransmitStream() { in getTransmitStream()
DConnectionRequest.java26 import android.os.ParcelFileDescriptor;
50 private ParcelFileDescriptor mRttPipeToInCall;
51 private ParcelFileDescriptor mRttPipeFromInCall;
140 @NonNull ParcelFileDescriptor rttPipeFromInCall) { in setRttPipeFromInCall()
150 public @NonNull Builder setRttPipeToInCall(@NonNull ParcelFileDescriptor rttPipeToInCall) { in setRttPipeToInCall()
180 private final ParcelFileDescriptor mRttPipeToInCall;
181 private final ParcelFileDescriptor mRttPipeFromInCall;
243 ParcelFileDescriptor rttPipeFromInCall, in ConnectionRequest()
244 ParcelFileDescriptor rttPipeToInCall) { in ConnectionRequest()
256 ParcelFileDescriptor rttPipeFromInCall, in ConnectionRequest()
[all …]
/frameworks/base/core/java/android/app/
DIBackupAgent.aidl21 import android.os.ParcelFileDescriptor;
55 void doBackup(in ParcelFileDescriptor oldState, in doBackup()
56 in ParcelFileDescriptor data, in doBackup()
57 in ParcelFileDescriptor newState, in doBackup()
83 void doRestore(in ParcelFileDescriptor data, in doRestore()
84 long appVersionCode, in ParcelFileDescriptor newState, in doRestore()
108 void doFullBackup(in ParcelFileDescriptor data, long quotaBytes, int token, in doFullBackup()
160 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DFullBackupUtilsTest.java26 import android.os.ParcelFileDescriptor;
51 @Mock private ParcelFileDescriptor mParcelFileDescriptorMock;
55 private ParcelFileDescriptor mTemporaryFileDescriptor;
98 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_emptyInput_throwsEOFException()
99 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_emptyInput_throwsEOFException()
119 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
120 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_incompleteChunkSizeInput_throwsEOFException()
139 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
140 ParcelFileDescriptor.MODE_READ_ONLY); in routeSocketDataToOutput_validEmptyInput_doesNotWriteAnything()
156 mTemporaryFileDescriptor = ParcelFileDescriptor.open(mTemporaryFile, in routeSocketDataToOutput_notEnoughData_throwsEOFException()
[all …]
/frameworks/base/packages/MtpDocumentsProvider/perf_tests/src/com/android/mtp/
DAppFusePerfTest.java22 import android.os.ParcelFileDescriptor;
52 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile()
53 ParcelFileDescriptor.MODE_READ_ONLY, new TestCallback()); in testReadWriteFile()
54 try (final ParcelFileDescriptor.AutoCloseInputStream stream = in testReadWriteFile()
55 new ParcelFileDescriptor.AutoCloseInputStream(fd)) { in testReadWriteFile()
63 final ParcelFileDescriptor fd = storageManager.openProxyFileDescriptor( in testReadWriteFile()
64 ParcelFileDescriptor.MODE_WRITE_ONLY | ParcelFileDescriptor.MODE_TRUNCATE, in testReadWriteFile()
66 try (final ParcelFileDescriptor.AutoCloseOutputStream stream = in testReadWriteFile()
67 new ParcelFileDescriptor.AutoCloseOutputStream(fd)) { in testReadWriteFile()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
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/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java3 import static android.os.ParcelFileDescriptor.MODE_CREATE;
4 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
5 import static android.os.ParcelFileDescriptor.MODE_READ_WRITE;
6 import static android.os.ParcelFileDescriptor.MODE_TRUNCATE;
12 import android.os.ParcelFileDescriptor;
44 private final ParcelFileDescriptor mInFD;
49 File dataDir, FileMetadata info, ParcelFileDescriptor inFD, IBackupAgent agent, in KeyValueAdbRestoreEngine()
70 … private File prepareRestoreData(FileMetadata info, ParcelFileDescriptor inFD) throws IOException { in prepareRestoreData()
87 ParcelFileDescriptor backupData = in invokeAgentForAdbRestore()
88 ParcelFileDescriptor.open(restoreData, MODE_READ_ONLY); in invokeAgentForAdbRestore()
[all …]
DKeyValueAdbBackupEngine.java3 import static android.os.ParcelFileDescriptor.MODE_CREATE;
4 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
5 import static android.os.ParcelFileDescriptor.MODE_READ_WRITE;
6 import static android.os.ParcelFileDescriptor.MODE_TRUNCATE;
19 import android.os.ParcelFileDescriptor;
64 private ParcelFileDescriptor mSavedState;
65 private ParcelFileDescriptor mBackupData;
66 private ParcelFileDescriptor mNewState;
132 mSavedState = ParcelFileDescriptor.open(mBlankStateName, in prepareBackupFiles()
135 mBackupData = ParcelFileDescriptor.open(mBackupDataName, in prepareBackupFiles()
[all …]
/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()
/frameworks/base/services/robotests/backup/src/android/app/backup/
DForwardingBackupAgent.java20 import android.os.ParcelFileDescriptor;
57 ParcelFileDescriptor oldState, BackupDataOutput data, ParcelFileDescriptor newState) in onBackup()
63 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore()
69 public void onRestore(BackupDataInput data, long appVersionCode, ParcelFileDescriptor newState) in onRestore()
86 ParcelFileDescriptor data, long size, File destination, int type, long mode, long mtime) in onRestoreFile()
93 ParcelFileDescriptor data, in onRestoreFile()
/frameworks/base/core/java/android/app/backup/
DBackupTransport.java24 import android.os.ParcelFileDescriptor;
315 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup()
323 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup()
409 public int getRestoreData(ParcelFileDescriptor outFd) { in getRestoreData()
479 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup()
488 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup()
613 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk()
692 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup()
728 public int getRestoreData(ParcelFileDescriptor outFd) throws RemoteException { in getRestoreData()
743 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()
/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/packages/Shell/src/com/android/shell/
DHeapDumpProvider.java25 import android.os.ParcelFileDescriptor;
76 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
81 pMode = ParcelFileDescriptor.MODE_CREATE in openFile()
82 | ParcelFileDescriptor.MODE_TRUNCATE in openFile()
83 | ParcelFileDescriptor.MODE_WRITE_ONLY; in openFile()
85 pMode = ParcelFileDescriptor.MODE_READ_ONLY; in openFile()
89 return ParcelFileDescriptor.open(new File(mRoot, tag), pMode); in openFile()
/frameworks/base/core/java/android/content/res/
DAssetFileDescriptor.java22 import android.os.ParcelFileDescriptor;
45 private final ParcelFileDescriptor mFd;
61 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
77 public AssetFileDescriptor(ParcelFileDescriptor fd, long startOffset, in AssetFileDescriptor()
97 public ParcelFileDescriptor getParcelFileDescriptor() { in getParcelFileDescriptor()
173 return new ParcelFileDescriptor.AutoCloseInputStream(mFd); in createInputStream()
188 return new ParcelFileDescriptor.AutoCloseOutputStream(mFd); in createOutputStream()
205 extends ParcelFileDescriptor.AutoCloseInputStream {
292 extends ParcelFileDescriptor.AutoCloseOutputStream {
363 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/base/core/java/android/net/
DTestNetworkInterface.java20 import android.os.ParcelFileDescriptor;
30 private final ParcelFileDescriptor mFileDescriptor;
44 public TestNetworkInterface(ParcelFileDescriptor pfd, String intf) { in TestNetworkInterface()
50 mFileDescriptor = in.readParcelable(ParcelFileDescriptor.class.getClassLoader()); in TestNetworkInterface()
54 public ParcelFileDescriptor getFileDescriptor() { in getFileDescriptor()
/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/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()
36 out List<ParcelFileDescriptor> committedStats); in getCommittedStats()
/frameworks/base/services/core/java/com/android/server/storage/
DAppFuseBridge.java20 import android.os.ParcelFileDescriptor;
57 public ParcelFileDescriptor addBridge(MountScope mountScope) in addBridge()
79 final ParcelFileDescriptor result = ParcelFileDescriptor.adoptFd(fd); in addBridge()
99 public ParcelFileDescriptor openFile(int mountId, int fileId, int mode)
163 public abstract ParcelFileDescriptor open() throws NativeDaemonConnectorException;
164 public abstract ParcelFileDescriptor openFile(int mountId, int fileId, int flags)

12345678910>>...14