/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/ |
D | FakeBlobData.java | 154 long offsetBytes, long lengthBytes) throws Exception { in writeToSession() argument 156 Utils.writeToSession(session, in, offsetBytes, lengthBytes, lengthBytes); in writeToSession() 161 long offsetBytes, long lengthBytes, long allocateBytes) throws Exception { in writeToSession() argument 163 Utils.writeToSession(session, in, offsetBytes, lengthBytes, allocateBytes); in writeToSession() 167 public void writeToFd(FileDescriptor fd, long offsetBytes, long lengthBytes) throws Exception { in writeToFd() argument 169 in.getChannel().position(offsetBytes); in writeToFd() 181 long offsetBytes, int lengthBytes) throws Exception { in readFromSessionAndVerifyBytes() argument 184 read(in, expectedBytes, offsetBytes, lengthBytes); in readFromSessionAndVerifyBytes() 190 read(in, actualBytes, offsetBytes, lengthBytes); in readFromSessionAndVerifyBytes() 198 long offsetBytes, int lengthBytes) throws Exception { in read() argument [all …]
|
D | Utils.java | 78 long offsetBytes, long lengthBytes, long allocateBytes) throws IOException { in writeToSession() argument 79 in.getChannel().position(offsetBytes); in writeToSession() 81 session.openWrite(offsetBytes, allocateBytes))) { in writeToSession()
|
/frameworks/base/apex/blobstore/service/java/com/android/server/blob/ |
D | BlobStoreSession.java | 211 public ParcelFileDescriptor openWrite(@BytesLong long offsetBytes, in openWrite() argument 213 Preconditions.checkArgumentNonnegative(offsetBytes, "offsetBytes must not be negative"); in openWrite() 225 fd = openWriteInternal(offsetBytes, lengthBytes); in openWrite() 243 private FileDescriptor openWriteInternal(@BytesLong long offsetBytes, in openWriteInternal() argument 252 if (offsetBytes > 0) { in openWriteInternal() 253 final long curOffset = Os.lseek(fd, offsetBytes, SEEK_SET); in openWriteInternal() 254 if (curOffset != offsetBytes) { in openWriteInternal() 255 throw new IllegalStateException("Failed to seek " + offsetBytes in openWriteInternal() 256 + "; curOffset=" + offsetBytes); in openWriteInternal()
|
/frameworks/base/core/java/android/content/pm/ |
D | IPackageInstallerSession.aidl | 32 ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes); in openWrite() argument 35 void write(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in write() argument
|
D | IPackageInstallerSessionFileSystemConnector.aidl | 23 void writeData(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in writeData() argument
|
D | PackageInstaller.java | 1022 public @NonNull OutputStream openWrite(@NonNull String name, long offsetBytes, in openWrite() argument 1027 mSession.openWrite(name, offsetBytes, lengthBytes)); in openWrite() 1030 offsetBytes, lengthBytes); in openWrite() 1042 public void write(@NonNull String name, long offsetBytes, long lengthBytes, in write() argument 1045 mSession.write(name, offsetBytes, lengthBytes, fd); in write()
|
/frameworks/base/core/jni/ |
D | android_service_DataLoaderService.cpp | 62 jlong offsetBytes, in nativeWriteData() argument 66 …return DataLoader_FilesystemConnector_writeData(connector, name, offsetBytes, lengthBytes, incomin… in nativeWriteData()
|
/frameworks/base/core/java/android/service/dataloader/ |
D | DataLoaderService.java | 218 public void writeData(@NonNull String name, long offsetBytes, long lengthBytes, in writeData() argument 221 nativeWriteData(mNativeInstance, name, offsetBytes, lengthBytes, incomingFd); in writeData() 246 private static native void nativeWriteData(long nativeInstance, String name, long offsetBytes, in nativeWriteData() argument
|
/frameworks/base/apex/blobstore/framework/java/android/app/blob/ |
D | IBlobStoreSession.aidl | 23 ParcelFileDescriptor openWrite(long offsetBytes, long lengthBytes); in openWrite() argument
|
D | BlobStoreManager.java | 658 public @NonNull ParcelFileDescriptor openWrite(@BytesLong long offsetBytes, in openWrite() argument 661 final ParcelFileDescriptor pfd = mSession.openWrite(offsetBytes, lengthBytes); in openWrite() 662 pfd.seekTo(offsetBytes); in openWrite()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 1455 public ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes) { in openWrite() argument 1458 return doWriteInternal(name, offsetBytes, lengthBytes, null); in openWrite() 1465 public void write(String name, long offsetBytes, long lengthBytes, in write() argument 1469 doWriteInternal(name, offsetBytes, lengthBytes, fd); in write() 1517 private ParcelFileDescriptor doWriteInternal(String name, long offsetBytes, long lengthBytes, in doWriteInternal() argument 1561 if (offsetBytes > 0) { in doWriteInternal() 1562 Os.lseek(targetPfd.getFileDescriptor(), offsetBytes, OsConstants.SEEK_SET); in doWriteInternal() local 1808 public void writeData(String name, long offsetBytes, long lengthBytes, in writeData() argument 1817 doWriteInternal(name, offsetBytes, lengthBytes, incomingFd); in writeData()
|