Home
last modified time | relevance | path

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

1234567

/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java53 public class ParcelFileDescriptor implements Parcelable, Closeable { class
68 private final ParcelFileDescriptor mWrapped;
157 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
167 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
172 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
197 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
201 return new ParcelFileDescriptor(fd); in open()
222 public static ParcelFileDescriptor open( in open()
235 final ParcelFileDescriptor pfd = new ParcelFileDescriptor(fd, comm[0]); in open()
261 public static ParcelFileDescriptor dup(FileDescriptor orig) throws IOException { in dup()
[all …]
/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, int appVersionCode, in doRestore()
80 in ParcelFileDescriptor newState, int token, IBackupManager callbackBinder); in doRestore()
99 void doFullBackup(in ParcelFileDescriptor data, int token, IBackupManager callbackBinder); in doFullBackup()
116 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
DIWallpaperManager.aidl20 import android.os.ParcelFileDescriptor;
31 ParcelFileDescriptor setWallpaper(String name); in setWallpaper()
41 ParcelFileDescriptor getWallpaper(IWallpaperManagerCallback cb, in getWallpaper()
/frameworks/base/core/java/android/printservice/
DPrintDocument.java19 import android.os.ParcelFileDescriptor;
72 public ParcelFileDescriptor getData() { in getData()
74 ParcelFileDescriptor source = null; in getData()
75 ParcelFileDescriptor sink = null; in getData()
77 ParcelFileDescriptor[] fds = ParcelFileDescriptor.createPipe(); in getData()
/frameworks/base/core/java/android/app/backup/
DBackupHelper.java19 import android.os.ParcelFileDescriptor;
69 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup()
70 ParcelFileDescriptor newState); in performBackup()
103 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()
80 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in doOneBackup()
81 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup()
106 ParcelFileDescriptor newState) in performRestore()
DBackupAgent.java29 import android.os.ParcelFileDescriptor;
208 public abstract void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup()
209 ParcelFileDescriptor newState) throws IOException; in onBackup()
243 ParcelFileDescriptor newState) in onRestore()
468 public void onRestoreFile(ParcelFileDescriptor data, long size, in onRestoreFile()
479 protected void onRestoreFile(ParcelFileDescriptor data, long size, in onRestoreFile()
556 public void doBackup(ParcelFileDescriptor oldState, in doBackup()
557 ParcelFileDescriptor data, in doBackup()
558 ParcelFileDescriptor newState, in doBackup()
590 public void doRestore(ParcelFileDescriptor data, int appVersionCode, in doRestore()
[all …]
DAbsoluteFileBackupHelper.java20 import android.os.ParcelFileDescriptor;
57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup()
58 ParcelFileDescriptor newState) { in performBackup()
DFileBackupHelperBase.java20 import android.os.ParcelFileDescriptor;
53 static void performBackup_checked(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup_checked()
54 ParcelFileDescriptor newState, String[] files, String[] keys) { in performBackup_checked()
104 public void writeNewStateDescription(ParcelFileDescriptor fd) { in writeNewStateDescription()
/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;
517 public ParcelFileDescriptor openFile(Uri uri, String mode) throws FileNotFoundException { in openFile()
521 return ParcelFileDescriptor.open(file, fileMode); in openFile()
730 modeBits = ParcelFileDescriptor.MODE_READ_ONLY; in modeToMode()
732 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in modeToMode()
733 | ParcelFileDescriptor.MODE_CREATE in modeToMode()
734 | ParcelFileDescriptor.MODE_TRUNCATE; in modeToMode()
736 modeBits = ParcelFileDescriptor.MODE_WRITE_ONLY in modeToMode()
737 | ParcelFileDescriptor.MODE_CREATE in modeToMode()
738 | ParcelFileDescriptor.MODE_APPEND; in modeToMode()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DIProcessStats.aidl20 import android.os.ParcelFileDescriptor;
24 byte[] getCurrentStats(out List<ParcelFileDescriptor> historic); in getCurrentStats()
25 ParcelFileDescriptor getStatsOverTime(long minTime); in getStatsOverTime()
/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/core/java/com/android/internal/backup/
DIObbBackupService.aidl20 import android.os.ParcelFileDescriptor;
36 void backupObbs(in String packageName, in ParcelFileDescriptor data, in backupObbs()
42 void restoreObbFile(in String pkgName, in ParcelFileDescriptor data, in restoreObbFile()
DIBackupTransport.aidl22 import android.os.ParcelFileDescriptor;
115 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd); in performBackup()
183 int getRestoreData(in ParcelFileDescriptor outFd); in getRestoreData()
/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/cmds/bu/src/com/android/commands/bu/
DBackup.java20 import android.os.ParcelFileDescriptor;
113 ParcelFileDescriptor fd = null; in doFullBackup()
115 fd = ParcelFileDescriptor.adoptFd(socketFd); in doFullBackup()
132 ParcelFileDescriptor fd = null; in doFullRestore()
134 fd = ParcelFileDescriptor.adoptFd(socketFd); in doFullRestore()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapFactoryTest.java19 import android.os.ParcelFileDescriptor;
37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); in testBitmapParcelFileDescriptor()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/
DRemotePrintDocumentAdapter.java21 import android.os.ParcelFileDescriptor;
89 ParcelFileDescriptor source = null; in write()
90 ParcelFileDescriptor sink = null; in write()
92 ParcelFileDescriptor[] pipe = ParcelFileDescriptor.createPipe(); in write()
/frameworks/base/docs/html/guide/topics/data/
Dbackup.jd131 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
133 android.app.backup.BackupAgent#onRestore(BackupDataInput,int,ParcelFileDescriptor)
142 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
144 android.app.backup.BackupAgent#onRestore(BackupDataInput,int,ParcelFileDescriptor)
276 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
284 android.app.backup.BackupAgent#onRestore(BackupDataInput,int,ParcelFileDescriptor)
299 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
304 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
310 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
319 android.app.backup.BackupAgent#onBackup(ParcelFileDescriptor,BackupDataOutput,ParcelFileDescriptor)
[all …]
/frameworks/base/tests/AccessoryDisplay/source/src/com/android/accessorydisplay/source/
DUsbAccessoryStreamTransport.java23 import android.os.ParcelFileDescriptor;
33 private ParcelFileDescriptor mFd;
37 public UsbAccessoryStreamTransport(Logger logger, ParcelFileDescriptor fd) { in UsbAccessoryStreamTransport()
/frameworks/base/services/java/com/android/server/
DSystemBackupAgent.java28 import android.os.ParcelFileDescriptor;
63 public void onBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in onBackup()
64 ParcelFileDescriptor newState) throws IOException { in onBackup()
99 public void onRestore(BackupDataInput data, int appVersionCode, ParcelFileDescriptor newState) in onRestore()
125 public void onRestoreFile(ParcelFileDescriptor data, long size, in onRestoreFile()

1234567