Home
last modified time | relevance | path

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

12345678910>>...19

/frameworks/native/libs/binder/include/binder/
DParcelFileDescriptor.h29 class ParcelFileDescriptor : public android::Parcelable {
31 ParcelFileDescriptor();
32 explicit ParcelFileDescriptor(android::base::unique_fd fd);
33 ParcelFileDescriptor(ParcelFileDescriptor&& other) noexcept : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
34 ParcelFileDescriptor& operator=(ParcelFileDescriptor&& other) noexcept = default;
35 ~ParcelFileDescriptor() override;
45 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
48 inline bool operator<(const ParcelFileDescriptor& rhs) const {
51 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
54 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/native/include/binder/
DParcelFileDescriptor.h29 class ParcelFileDescriptor : public android::Parcelable {
31 ParcelFileDescriptor();
32 explicit ParcelFileDescriptor(android::base::unique_fd fd);
33 ParcelFileDescriptor(ParcelFileDescriptor&& other) noexcept : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
34 ParcelFileDescriptor& operator=(ParcelFileDescriptor&& other) noexcept = default;
35 ~ParcelFileDescriptor() override;
45 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
48 inline bool operator<(const ParcelFileDescriptor& rhs) const {
51 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
54 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/native/libs/binder/rust/src/parcel/
Dfile_descriptor.rs30 pub struct ParcelFileDescriptor(File); struct
32 impl ParcelFileDescriptor { implementation
39 impl AsRef<File> for ParcelFileDescriptor { implementation
45 impl From<ParcelFileDescriptor> for File {
46 fn from(file: ParcelFileDescriptor) -> File { in from()
51 impl Serialize for ParcelFileDescriptor { implementation
66 impl SerializeArray for ParcelFileDescriptor {} implementation
68 impl SerializeOption for ParcelFileDescriptor { implementation
85 impl SerializeArray for Option<ParcelFileDescriptor> {}
87 impl DeserializeOption for ParcelFileDescriptor { implementation
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java72 public class ParcelFileDescriptor implements Parcelable, Closeable { class
88 private final ParcelFileDescriptor mWrapped;
177 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
188 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
193 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
228 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
232 return new ParcelFileDescriptor(fd); in open()
260 public static ParcelFileDescriptor open(File file, int mode, Handler handler, in open()
287 public static @NonNull ParcelFileDescriptor wrap(@NonNull ParcelFileDescriptor pfd, in wrap()
295 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
[all …]
DFileBridge.java62 private ParcelFileDescriptor mTarget;
64 private ParcelFileDescriptor mServer;
65 private ParcelFileDescriptor mClient;
71 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createSocketPair(SOCK_STREAM); in FileBridge()
89 public void setTargetFile(ParcelFileDescriptor target) { in setTargetFile()
93 public ParcelFileDescriptor getClientSocket() { in getClientSocket()
142 private final ParcelFileDescriptor mClientPfd;
149 public FileBridgeOutputStream(ParcelFileDescriptor clientPfd) { in FileBridgeOutputStream()
/frameworks/base/core/java/com/android/internal/infra/
DRemoteStream.java22 import android.os.ParcelFileDescriptor;
84 private volatile ParcelFileDescriptor mLocalPipe;
97 ThrowingConsumer<ParcelFileDescriptor> ipc, ThrowingFunction<InputStream, R> read) { in receiveBytes()
101 protected InputStream createStream(ParcelFileDescriptor fd) { in receiveBytes()
102 return new ParcelFileDescriptor.AutoCloseInputStream(fd); in receiveBytes()
114 public static AndroidFuture<byte[]> receiveBytes(ThrowingConsumer<ParcelFileDescriptor> ipc) {
148 ThrowingConsumer<ParcelFileDescriptor> ipc, ThrowingFunction<OutputStream, R> write) {
152 protected OutputStream createStream(ParcelFileDescriptor fd) {
153 return new ParcelFileDescriptor.AutoCloseOutputStream(fd);
163 ThrowingConsumer<ParcelFileDescriptor> ipc, ThrowingConsumer<OutputStream> write) {
[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/core/java/android/app/
DIBackupAgent.aidl21 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 long appVersionCode, in ParcelFileDescriptor newState, in doRestore()
92 void doRestoreWithExcludedKeys(in ParcelFileDescriptor data, in doRestoreWithExcludedKeys()
93 long appVersionCode, in ParcelFileDescriptor newState, in doRestoreWithExcludedKeys()
117 void doFullBackup(in ParcelFileDescriptor data, long quotaBytes, int token, in doFullBackup()
169 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
DIUiAutomationConnection.aidl26 import android.os.ParcelFileDescriptor;
51 void executeShellCommand(String command, in ParcelFileDescriptor sink, in executeShellCommand()
52 in ParcelFileDescriptor source); in executeShellCommand()
59 void executeShellCommandWithStderr(String command, in ParcelFileDescriptor sink, in executeShellCommandWithStderr()
60 in ParcelFileDescriptor source, in ParcelFileDescriptor stderrSink); in executeShellCommandWithStderr()
/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.java27 import android.os.ParcelFileDescriptor;
51 private ParcelFileDescriptor mRttPipeToInCall;
52 private ParcelFileDescriptor mRttPipeFromInCall;
142 @NonNull ParcelFileDescriptor rttPipeFromInCall) { in setRttPipeFromInCall()
152 public @NonNull Builder setRttPipeToInCall(@NonNull ParcelFileDescriptor rttPipeToInCall) { in setRttPipeToInCall()
182 private final ParcelFileDescriptor mRttPipeToInCall;
183 private final ParcelFileDescriptor mRttPipeFromInCall;
245 ParcelFileDescriptor rttPipeFromInCall, in ConnectionRequest()
246 ParcelFileDescriptor rttPipeToInCall) { in ConnectionRequest()
258 ParcelFileDescriptor rttPipeFromInCall, in ConnectionRequest()
[all …]
/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/apct-tests/perftests/core/src/android/mtp_perf/
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/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;
20 import android.os.ParcelFileDescriptor;
65 private ParcelFileDescriptor mSavedState;
66 private ParcelFileDescriptor mBackupData;
67 private ParcelFileDescriptor mNewState;
133 mSavedState = ParcelFileDescriptor.open(mBlankStateName, in prepareBackupFiles()
136 mBackupData = ParcelFileDescriptor.open(mBackupDataName, in prepareBackupFiles()
[all …]
/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()
47 out List<ParcelFileDescriptor> committedStats, out ProcessStats mergedStats); in getCommittedStatsMerged()
/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/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;
325 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) { in performBackup()
333 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup()
419 public int getRestoreData(ParcelFileDescriptor outFd) { in getRestoreData()
489 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket, in performFullBackup()
498 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup()
623 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk()
702 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd, int flags) in performBackup()
738 public int getRestoreData(ParcelFileDescriptor outFd) throws RemoteException { in getRestoreData()
753 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/os/incremental/
DIncrementalFileSystemControlParcel.aidl25 ParcelFileDescriptor cmd;
26 ParcelFileDescriptor pendingReads;
27 ParcelFileDescriptor log;
28 @nullable ParcelFileDescriptor blocksWritten;
/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/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()

12345678910>>...19