Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/java/android/os/
DParcelFileDescriptor.java54 public class ParcelFileDescriptor implements Parcelable, Closeable { class
69 private final ParcelFileDescriptor mWrapped;
158 public ParcelFileDescriptor(ParcelFileDescriptor wrapped) { in ParcelFileDescriptor() method in ParcelFileDescriptor
168 public ParcelFileDescriptor(FileDescriptor fd) { in ParcelFileDescriptor() method in ParcelFileDescriptor
173 public ParcelFileDescriptor(FileDescriptor fd, FileDescriptor commChannel) { in ParcelFileDescriptor() method in ParcelFileDescriptor
198 public static ParcelFileDescriptor open(File file, int mode) throws FileNotFoundException { in open()
202 return new ParcelFileDescriptor(fd); in open()
223 public static ParcelFileDescriptor open( in open()
236 final ParcelFileDescriptor pfd = new ParcelFileDescriptor(fd, comm[0]); in open()
262 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, in doRestore()
80 int appVersionCode, in ParcelFileDescriptor newState, in doRestore()
100 void doFullBackup(in ParcelFileDescriptor data, int token, IBackupManager callbackBinder); in doFullBackup()
123 void doRestoreFile(in ParcelFileDescriptor data, long size, in doRestoreFile()
DProfilerInfo.java21 import android.os.ParcelFileDescriptor;
34 public ParcelFileDescriptor profileFd;
42 public ProfilerInfo(String filename, ParcelFileDescriptor fd, int interval, boolean autoStop) { in ProfilerInfo()
82 profileFd = in.readInt() != 0 ? ParcelFileDescriptor.CREATOR.createFromParcel(in) : null; in ProfilerInfo()
DIWallpaperManager.aidl21 import android.os.ParcelFileDescriptor;
32 ParcelFileDescriptor setWallpaper(String name); in setWallpaper()
42 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/
DBackupTransport.java23 import android.os.ParcelFileDescriptor;
236 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) { in performBackup()
322 public int getRestoreData(ParcelFileDescriptor outFd) { in getRestoreData()
391 public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) { in performFullBackup()
465 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk()
535 public int performBackup(PackageInfo packageInfo, ParcelFileDescriptor inFd) in performBackup()
571 public int getRestoreData(ParcelFileDescriptor outFd) throws RemoteException { in getRestoreData()
586 …public int performFullBackup(PackageInfo targetPackage, ParcelFileDescriptor socket) throws Remote… in performFullBackup()
601 public int getNextFullRestoreDataChunk(ParcelFileDescriptor socket) { in getNextFullRestoreDataChunk()
DBackupHelper.java19 import android.os.ParcelFileDescriptor;
68 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in performBackup()
69 ParcelFileDescriptor newState); in performBackup()
102 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()
79 private void doOneBackup(ParcelFileDescriptor oldState, BackupDataOutput data, in doOneBackup()
80 ParcelFileDescriptor newState, Header header, BackupHelper helper) in doOneBackup()
105 ParcelFileDescriptor newState) in performRestore()
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/com/android/internal/backup/
DIBackupTransport.aidl23 import android.os.ParcelFileDescriptor;
148 int performBackup(in PackageInfo packageInfo, in ParcelFileDescriptor inFd); in performBackup()
229 int getRestoreData(in ParcelFileDescriptor outFd); in getRestoreData()
240 int performFullBackup(in PackageInfo targetPackage, in ParcelFileDescriptor socket); in performFullBackup()
275 int getNextFullRestoreDataChunk(in ParcelFileDescriptor socket); in getNextFullRestoreDataChunk()
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()
/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/packages/PrintSpooler/src/com/android/printspooler/renderer/
DIPdfEditor.aidl19 import android.os.ParcelFileDescriptor;
27 int openDocument(in ParcelFileDescriptor source); in openDocument()
30 void write(in ParcelFileDescriptor destination); in write()
DIPdfRenderer.aidl20 import android.os.ParcelFileDescriptor;
28 int openDocument(in ParcelFileDescriptor source); in openDocument()
30 in PrintAttributes attributes, in ParcelFileDescriptor destination); in renderPage()
/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/android/content/pm/
DIPackageInstallerSession.aidl21 import android.os.ParcelFileDescriptor;
29 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes); in openWrite()
30 ParcelFileDescriptor openRead(String name); in openRead()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DBitmapSerializeUtils.java20 import android.os.ParcelFileDescriptor;
43 public static void readBitmapPixels(Bitmap bitmap, ParcelFileDescriptor source) { in readBitmapPixels()
53 public static void writeBitmapPixels(Bitmap bitmap, ParcelFileDescriptor destination) { in writeBitmapPixels()
/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;
122 ParcelFileDescriptor fd = null; in doFullBackup()
124 fd = ParcelFileDescriptor.adoptFd(socketFd); in doFullBackup()
141 ParcelFileDescriptor fd = null; in doFullRestore()
143 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()

12345678