Home
last modified time | relevance | path

Searched refs:contentSize (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
DTransport.java259 final int contentSize = buffer.getInt(); in handleMessage() local
260 if (contentSize == 0) { in handleMessage()
263 final int end = buffer.position() + contentSize; in handleMessage()
293 int contentSize = -1; in loop() local
316 if (contentSize < 0 && position >= Protocol.HEADER_SIZE) { in loop()
317 contentSize = buffer.getInt(4); in loop()
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
319 mLogger.logError("Encountered invalid content size: " + contentSize); in loop()
322 length += contentSize; in loop()
336 contentSize = -1; in loop()
[all …]
/frameworks/base/core/java/com/android/internal/security/
DVerityUtils.java153 int contentSize = result.second; in generateApkVeritySetupData() local
158 return SetupResult.ok(Os.dup(rfd), contentSize); in generateApkVeritySetupData()
212 int contentSize = shmBufferFactory.getBufferLimit(); in generateFsVerityIntoSharedMemory() local
220 return Pair.create(shm, contentSize); in generateFsVerityIntoSharedMemory()
248 public static SetupResult ok(@NonNull FileDescriptor fileDescriptor, int contentSize) { in ok() argument
249 return new SetupResult(RESULT_OK, fileDescriptor, contentSize); in ok()
264 private SetupResult(int code, FileDescriptor fileDescriptor, int contentSize) { in SetupResult() argument
267 this.mContentSize = contentSize; in SetupResult()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DTarBackupReader.java719 final int contentSize = (int) info.size; in readPaxExtendedHeader() local
724 while (eol < contentSize && data[eol] != ' ') { in readPaxExtendedHeader()
727 if (eol >= contentSize) { in readPaxExtendedHeader()
759 } while (offset < contentSize); in readPaxExtendedHeader()
/frameworks/native/cmds/installd/
DInstalldNativeService.cpp2694 android::base::unique_fd verityInputAshmem, int32_t contentSize) { in installApkVerity() argument
2736 if (contentSize < 0) { in installApkVerity()
2737 return error("Invalid content size: " + std::to_string(contentSize)); in installApkVerity()
2739 if (contentSize > shmSize) { in installApkVerity()
2740 return error("Content size overflow: " + std::to_string(contentSize) + " > " + in installApkVerity()
2744 mmap(nullptr, contentSize, PROT_READ, MAP_SHARED, verityInputAshmem.get(), 0), in installApkVerity()
2745 [contentSize] (void* ptr) { in installApkVerity()
2747 munmap(ptr, contentSize); in installApkVerity()
2755 int remaining = contentSize; in installApkVerity()
2760 + "/" + std::to_string(contentSize) + ")"); in installApkVerity()
DInstalldNativeService.h155 android::base::unique_fd verityInput, int32_t contentSize);
/frameworks/native/cmds/installd/binder/android/os/
DIInstalld.aidl97 int contentSize); in installApkVerity() argument
/frameworks/base/services/core/java/com/android/server/pm/
DInstaller.java684 public void installApkVerity(String filePath, FileDescriptor verityInput, int contentSize) in installApkVerity() argument
689 mInstalld.installApkVerity(filePath, verityInput, contentSize); in installApkVerity()
/frameworks/base/core/java/com/android/internal/widget/
DGridLayoutManager.java737 final int contentSize = Math.round(maxSizeInOther * mSpanCount); in guessMeasurement() local
739 calculateItemBorders(Math.max(contentSize, currentOtherDirSize)); in guessMeasurement()