Home
last modified time | relevance | path

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

/aosp12/frameworks/base/tests/BlobStoreTestUtils/src/com/android/utils/blob/
H A DFakeBlobData.java154 long offsetBytes, long lengthBytes) throws Exception { in writeToSession() argument
156 Utils.writeToSession(session, in, offsetBytes, lengthBytes, lengthBytes); in writeToSession()
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
199 in.getChannel().position(offsetBytes); in read()
209 long offsetBytes, long lengthBytes) throws Exception { in readFromSessionAndVerifyDigest() argument
213 actualDigest = createSha256Digest(in, offsetBytes, lengthBytes); in readFromSessionAndVerifyDigest()
[all …]
H A 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()
/aosp12/frameworks/base/apex/blobstore/service/java/com/android/server/blob/
H A 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()
/aosp12/frameworks/base/core/java/android/service/dataloader/
H A 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
/aosp12/frameworks/base/core/java/android/content/pm/
H A 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
H A DIPackageInstallerSessionFileSystemConnector.aidl23 void writeData(String name, long offsetBytes, long lengthBytes, in ParcelFileDescriptor fd); in writeData() argument
H A 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()
/aosp12/frameworks/base/core/jni/
H A Dandroid_service_DataLoaderService.cpp62 jlong offsetBytes, in nativeWriteData() argument
66 …return DataLoader_FilesystemConnector_writeData(connector, name, offsetBytes, lengthBytes, incomin… in nativeWriteData()
/aosp12/frameworks/base/apex/blobstore/framework/java/android/app/blob/
H A DIBlobStoreSession.aidl23 ParcelFileDescriptor openWrite(long offsetBytes, long lengthBytes); in openWrite() argument
H A 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()
/aosp12/system/incremental_delivery/libdataloader/include/
H A Ddataloader_ndk.h119 jlong offsetBytes, jlong lengthBytes,
/aosp12/system/incremental_delivery/libdataloader/
H A DDataLoaderConnector.cpp491 void writeData(jstring name, jlong offsetBytes, jlong lengthBytes, jobject incomingFd) const { in writeData() argument
495 env->CallVoidMethod(mCallbackControl, jni.callbackControlWriteData, name, offsetBytes, in writeData()
715 jlong offsetBytes, jlong lengthBytes, in DataLoader_FilesystemConnector_writeData() argument
718 return connector->writeData(name, offsetBytes, lengthBytes, incomingFd); in DataLoader_FilesystemConnector_writeData()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageInstallerSession.java1456 public ParcelFileDescriptor openWrite(String name, long offsetBytes, long lengthBytes) { in openWrite() argument
1459 return doWriteInternal(name, offsetBytes, lengthBytes, null); in openWrite()
1466 public void write(String name, long offsetBytes, long lengthBytes, in write() argument
1470 doWriteInternal(name, offsetBytes, lengthBytes, fd); in write()
1518 private ParcelFileDescriptor doWriteInternal(String name, long offsetBytes, long lengthBytes, in doWriteInternal() argument
1562 if (offsetBytes > 0) { in doWriteInternal()
1563 Os.lseek(targetPfd.getFileDescriptor(), offsetBytes, OsConstants.SEEK_SET); in doWriteInternal() local
1809 public void writeData(String name, long offsetBytes, long lengthBytes, in writeData() argument
1818 doWriteInternal(name, offsetBytes, lengthBytes, incomingFd); in writeData()
/aosp12/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...