Home
last modified time | relevance | path

Searched refs:offsetBytes (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
DFakeBlobData.java154 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 …]
DUtils.java78 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/
DBlobStoreSession.java211 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/
DIPackageInstallerSession.aidl32 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
DIPackageInstallerSessionFileSystemConnector.aidl23 void writeData(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in writeData() argument
DPackageInstaller.java1022 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/
Dandroid_service_DataLoaderService.cpp62 jlong offsetBytes, in nativeWriteData() argument
66 …return DataLoader_FilesystemConnector_writeData(connector, name, offsetBytes, lengthBytes, incomin… in nativeWriteData()
/frameworks/base/core/java/android/service/dataloader/
DDataLoaderService.java218 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/
DIBlobStoreSession.aidl23 ParcelFileDescriptor openWrite(long offsetBytes, long lengthBytes); in openWrite() argument
DBlobStoreManager.java658 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/
DPackageInstallerSession.java1455 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()