Home
last modified time | relevance | path

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

12345678910>>...16

/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) : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
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 {
57 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) : mFd(std::move(other.mFd)) { } in ParcelFileDescriptor() function
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 {
57 inline bool operator>(const ParcelFileDescriptor& rhs) const {
[all …]
/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java74 public class ParcelFileDescriptor implements Parcelable, Closeable { class
90 private final ParcelFileDescriptor mWrapped;
179 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
190 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
195 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
230 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
234 return new ParcelFileDescriptor(fd); in open()
262 public static ParcelFileDescriptor open(File file, int mode, Handler handler, in open()
289 public static @NonNull ParcelFileDescriptor wrap(@NonNull ParcelFileDescriptor pfd, in wrap()
297 public static ParcelFileDescriptor fromFd(FileDescriptor fd, Handler handler, in fromFd()
[all …]
/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;
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()
96 void doRestoreWithExcludedKeys(in ParcelFileDescriptor data, in doRestoreWithExcludedKeys()
97 long appVersionCode, in ParcelFileDescriptor newState, in doRestoreWithExcludedKeys()
121 void doFullBackup(in ParcelFileDescriptor data, long quotaBytes, int token, in doFullBackup()
173 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
DIApplicationThread.aidl42 import android.os.ParcelFileDescriptor;
89 void dumpService(in ParcelFileDescriptor fd, IBinder servicetoken, in dumpService()
106 in ParcelFileDescriptor fd, in RemoteCallback finishCallback); in dumpHeap()
107 void dumpActivity(in ParcelFileDescriptor fd, IBinder servicetoken, in String prefix, in dumpActivity()
115 void dumpMemInfo(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem, boolean checkin, in dumpMemInfo()
118 void dumpMemInfoProto(in ParcelFileDescriptor fd, in Debug.MemoryInfo mem, in dumpMemInfoProto()
121 void dumpGfxInfo(in ParcelFileDescriptor fd, in String[] args); in dumpGfxInfo()
122 void dumpCacheInfo(in ParcelFileDescriptor fd, in String[] args); in dumpCacheInfo()
123 void dumpProvider(in ParcelFileDescriptor fd, IBinder servicetoken, in dumpProvider()
125 void dumpDbInfo(in ParcelFileDescriptor fd, in String[] args); in dumpDbInfo()
[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()); 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/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/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/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()
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()
/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/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/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/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/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>>...16