Home
last modified time | relevance | path

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

/aosp12/frameworks/base/tests/AccessoryDisplay/common/src/com/android/accessorydisplay/common/
H A 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
317 contentSize = buffer.getInt(4); in loop()
318 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
322 length += contentSize; in loop()
336 contentSize = -1; in loop()
339 contentSize = buffer.getInt(next + 4); in loop()
340 if (contentSize < 0 || contentSize > Protocol.MAX_CONTENT_SIZE) { in loop()
[all …]
/aosp12/frameworks/base/core/java/com/android/internal/security/
H A 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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/folder/
H A DFolderGridOrganizer.java64 public FolderGridOrganizer setContentSize(int contentSize) { in setContentSize() argument
65 if (contentSize != mNumItemsInFolder) { in setContentSize()
66 calculateGridSize(contentSize); in setContentSize()
68 mDisplayingUpperLeftQuadrant = contentSize > MAX_NUM_ITEMS_IN_PREVIEW; in setContentSize()
69 mNumItemsInFolder = contentSize; in setContentSize()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/data/
H A DDownloadEntry.java43 public long contentSize; field in DownloadEntry
65 .append("_size").append(contentSize).append(", ") in toString()
/aosp12/hardware/interfaces/identity/aidl/default/common/
H A DWritableIdentityCredential.cpp283 size_t contentSize = content.size(); in addEntryValue() local
285 if (contentSize > IdentityCredentialStore::kGcmChunkSize) { in addEntryValue()
290 if (contentSize > entryRemainingBytes_) { in addEntryValue()
297 entryRemainingBytes_ -= contentSize; in addEntryValue()
299 if (contentSize != IdentityCredentialStore::kGcmChunkSize) { in addEntryValue()
/aosp12/hardware/interfaces/identity/aidl/default/libeic/
H A DEicProvisioning.c275 const char* name, const uint8_t* content, size_t contentSize, in eicProvisioningAddEntryValue() argument
294 eicCborAppend(&ctx->cbor, content, contentSize); in eicProvisioningAddEntryValue()
300 if (!eicOpsEncryptAes128Gcm(ctx->storageKey, nonce, content, contentSize, additionalDataCbor, in eicProvisioningAddEntryValue()
306 ctx->curEntryNumBytesReceived += contentSize; in eicProvisioningAddEntryValue()
H A DEicProvisioning.h102 const char* name, const uint8_t* content, size_t contentSize,
/aosp12/frameworks/base/services/backup/java/com/android/server/backup/utils/
H A 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()
/aosp12/frameworks/native/cmds/installd/
H A DInstalldNativeService.cpp2707 android::base::unique_fd verityInputAshmem, int32_t contentSize) { in installApkVerity() argument
2749 if (contentSize < 0) { in installApkVerity()
2750 return error("Invalid content size: " + std::to_string(contentSize)); in installApkVerity()
2752 if (contentSize > shmSize) { in installApkVerity()
2753 return error("Content size overflow: " + std::to_string(contentSize) + " > " + in installApkVerity()
2757 mmap(nullptr, contentSize, PROT_READ, MAP_SHARED, verityInputAshmem.get(), 0), in installApkVerity()
2758 [contentSize] (void* ptr) { in installApkVerity()
2760 munmap(ptr, contentSize); in installApkVerity()
2768 int remaining = contentSize; in installApkVerity()
2773 + "/" + std::to_string(contentSize) + ")"); in installApkVerity()
H A DInstalldNativeService.h155 android::base::unique_fd verityInput, int32_t contentSize);
/aosp12/frameworks/native/cmds/installd/binder/android/os/
H A DIInstalld.aidl97 int contentSize); in installApkVerity() argument
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DInstaller.java684 public void installApkVerity(String filePath, FileDescriptor verityInput, int contentSize) in installApkVerity() argument
689 mInstalld.installApkVerity(filePath, verityInput, contentSize); in installApkVerity()
/aosp12/frameworks/base/core/java/com/android/internal/widget/
H A DGridLayoutManager.java737 final int contentSize = Math.round(maxSizeInOther * mSpanCount); in guessMeasurement() local
739 calculateItemBorders(Math.max(contentSize, currentOtherDirSize)); in guessMeasurement()
/aosp12/hardware/interfaces/identity/support/src/
H A DIdentityCredentialSupport.cpp2156 size_t contentSize = content.size(); in chunkVector() local
2157 if (contentSize <= maxChunkSize) { in chunkVector()
2162 size_t numChunks = (contentSize + maxChunkSize - 1) / maxChunkSize; in chunkVector()
2166 size_t size = contentSize - pos; in chunkVector()