Home
last modified time | relevance | path

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

12345678910>>...22

/frameworks/native/libs/binder/rust/src/parcel/
Dfile_descriptor.rs29 pub struct ParcelFileDescriptor(OwnedFd); struct
31 impl ParcelFileDescriptor { implementation
38 impl AsRef<OwnedFd> for ParcelFileDescriptor { implementation
44 impl From<ParcelFileDescriptor> for OwnedFd {
45 fn from(fd: ParcelFileDescriptor) -> OwnedFd { in from()
50 impl AsRawFd for ParcelFileDescriptor { implementation
56 impl IntoRawFd for ParcelFileDescriptor { implementation
62 impl PartialEq for ParcelFileDescriptor { implementation
70 impl Eq for ParcelFileDescriptor {} implementation
72 impl Serialize for ParcelFileDescriptor { implementation
[all …]
/frameworks/native/libs/binder/include/binder/
DParcelFileDescriptor.h30 class LIBBINDER_EXPORTED ParcelFileDescriptor : public android::Parcelable {
32 ParcelFileDescriptor();
33 explicit ParcelFileDescriptor(binder::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;
47 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
50 inline bool operator<(const ParcelFileDescriptor& rhs) const {
53 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
56 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/native/include/binder/
DParcelFileDescriptor.h30 class LIBBINDER_EXPORTED ParcelFileDescriptor : public android::Parcelable {
32 ParcelFileDescriptor();
33 explicit ParcelFileDescriptor(binder::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;
47 inline bool operator!=(const ParcelFileDescriptor& rhs) const {
50 inline bool operator<(const ParcelFileDescriptor& rhs) const {
53 inline bool operator<=(const ParcelFileDescriptor& rhs) const {
56 inline bool operator==(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/native/libs/binder/
DParcelFileDescriptor.cpp24 ParcelFileDescriptor::ParcelFileDescriptor() = default;
26 ParcelFileDescriptor::ParcelFileDescriptor(unique_fd fd) : mFd(std::move(fd)) {} in ParcelFileDescriptor() function in android::os::ParcelFileDescriptor
28 ParcelFileDescriptor::~ParcelFileDescriptor() = default;
30 status_t ParcelFileDescriptor::writeToParcel(Parcel* parcel) const { in writeToParcel()
34 status_t ParcelFileDescriptor::readFromParcel(const Parcel* parcel) { in readFromParcel()
/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/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(), android.os.Parcel… in ParcelableRttCall()
50 …mReceiveStream = in.readParcelable(ParcelFileDescriptor.class.getClassLoader(), android.os.ParcelF… 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/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java31 import android.os.ParcelFileDescriptor;
78 ParcelFileDescriptor[] fakeAudioStreamPipe = ParcelFileDescriptor.createPipe(); in testDefaultCopyBufferLength()
94 ParcelFileDescriptor readFd = in testDefaultCopyBufferLength()
96 ParcelFileDescriptor writeFd = fakeAudioStreamPipe[1]; in testDefaultCopyBufferLength()
105 List<ParcelFileDescriptor[]> fakeAudioStreamPipes = new ArrayList<>(); in testCustomCopyBufferLength()
120 ParcelFileDescriptor[] fakeAudioStreamPipe = ParcelFileDescriptor.createPipe(); in testCustomCopyBufferLength()
137 ParcelFileDescriptor readFd = in testCustomCopyBufferLength()
139 ParcelFileDescriptor writeFd = fakeAudioStreamPipes.get(i)[1]; in testCustomCopyBufferLength()
143 for (ParcelFileDescriptor[] fakeAudioStreamPipe : fakeAudioStreamPipes) { in testCustomCopyBufferLength()
151 ParcelFileDescriptor[] fakeAudioStreamPipe = ParcelFileDescriptor.createPipe(); in testInvalidCopyBufferLength_NonPositive()
[all …]
/frameworks/base/core/java/android/app/
DIBackupAgent.aidl22 import android.os.ParcelFileDescriptor;
54 void doBackup(in ParcelFileDescriptor oldState, in doBackup()
55 in ParcelFileDescriptor data, in doBackup()
56 in ParcelFileDescriptor newState, in doBackup()
82 void doRestore(in ParcelFileDescriptor data, in doRestore()
83 long appVersionCode, in ParcelFileDescriptor newState, in doRestore()
95 void doRestoreWithExcludedKeys(in ParcelFileDescriptor data, in doRestoreWithExcludedKeys()
96 long appVersionCode, in ParcelFileDescriptor newState, in doRestoreWithExcludedKeys()
120 void doFullBackup(in ParcelFileDescriptor data, long quotaBytes, int token, in doFullBackup()
172 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java82 public class ParcelFileDescriptor implements Parcelable, Closeable { class
98 private final ParcelFileDescriptor mWrapped;
187 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
198 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
203 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
238 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
242 return new ParcelFileDescriptor(fd); in open()
270 public static ParcelFileDescriptor open(File file, int mode, Handler handler, in open()
298 public static @NonNull ParcelFileDescriptor wrap(@NonNull ParcelFileDescriptor pfd, in wrap()
307 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
[all …]
/frameworks/base/services/tests/mockingservicestests/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;
19 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/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcelFileDescriptor_host.java19 import static android.os.ParcelFileDescriptor.MODE_APPEND;
20 import static android.os.ParcelFileDescriptor.MODE_CREATE;
21 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
22 import static android.os.ParcelFileDescriptor.MODE_READ_WRITE;
23 import static android.os.ParcelFileDescriptor.MODE_TRUNCATE;
24 import static android.os.ParcelFileDescriptor.MODE_WORLD_READABLE;
25 import static android.os.ParcelFileDescriptor.MODE_WORLD_WRITEABLE;
26 import static android.os.ParcelFileDescriptor.MODE_WRITE_ONLY;
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DPackageManagerBackupAgentTest.java33 import android.os.ParcelFileDescriptor;
114 try (ParcelFileDescriptor oldStateDescriptor = openForWriting(mOldState)) { in onBackup_recentState_backsUpNothing()
129 try (ParcelFileDescriptor oldStateDescriptor = openForWriting(mOldState)) { in onBackup_oldState_backsUpChanges()
239 try (ParcelFileDescriptor oldStateDescriptor = openForReading(mOldState); in runBackupAgentOnBackup()
240 ParcelFileDescriptor backupDataDescriptor = openForWriting(mBackupData); in runBackupAgentOnBackup()
241 ParcelFileDescriptor newStateDescriptor = openForWriting(mNewState)) { in runBackupAgentOnBackup()
250 try (ParcelFileDescriptor backupDataDescriptor = openForReading(mBackupData); in runBackupAgentOnRestore()
251 ParcelFileDescriptor newStateDescriptor = openForWriting(mNewState)) { in runBackupAgentOnRestore()
261 try (ParcelFileDescriptor inputDescriptor = openForReading(backupData); in deleteKeyFromBackupData()
262 ParcelFileDescriptor outputDescriptor = openForWriting(temporaryBackupData); ) { in deleteKeyFromBackupData()
[all …]
/frameworks/base/core/java/com/android/internal/app/procstats/
DIProcessStats.aidl20 import android.os.ParcelFileDescriptor;
25 byte[] getCurrentStats(out List<ParcelFileDescriptor> historic); in getCurrentStats()
27 ParcelFileDescriptor getStatsOverTime(long minTime); in getStatsOverTime()
38 out List<ParcelFileDescriptor> committedStats); in getCommittedStats()
50 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/os/incremental/
DIncrementalFileSystemControlParcel.aidl25 ParcelFileDescriptor cmd;
26 ParcelFileDescriptor pendingReads;
27 ParcelFileDescriptor log;
28 @nullable ParcelFileDescriptor blocksWritten;
/frameworks/base/services/core/java/com/android/server/resources/
DResourcesManagerService.java26 import android.os.ParcelFileDescriptor;
64 public boolean dumpResources(String process, ParcelFileDescriptor fd,
77 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.dup(fd)) {
86 public int handleShellCommand(@NonNull ParcelFileDescriptor in,
87 @NonNull ParcelFileDescriptor out,
88 @NonNull ParcelFileDescriptor err,
/frameworks/base/services/core/java/com/android/server/security/
DFileIntegrity.java19 import static android.os.ParcelFileDescriptor.MODE_READ_ONLY;
23 import android.os.ParcelFileDescriptor;
49 try (ParcelFileDescriptor pfd = ParcelFileDescriptor.open(file, MODE_READ_ONLY)) { in setUpFsVerity()
64 public static void setUpFsVerity(@NonNull ParcelFileDescriptor parcelFileDescriptor) in setUpFsVerity()
/frameworks/base/core/java/android/app/backup/
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/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()

12345678910>>...22