Home
last modified time | relevance | path

Searched refs:allocationSize (Results 1 – 7 of 7) sorted by relevance

/frameworks/native/libs/ui/
DGralloc4.cpp979 uint64_t allocationSize; in bufferDumpHelper() local
1036 gralloc4::decodeAllocationSize, &allocationSize); in bufferDumpHelper()
1067 *outAllocationSize = allocationSize; in bufferDumpHelper()
1069 double allocationSizeKiB = static_cast<double>(allocationSize) / 1024; in bufferDumpHelper()
1180 uint64_t allocationSize = 0; in dumpBuffers() local
1181 status_t err = bufferDumpHelper(bufferDump, &stream, &allocationSize, less); in dumpBuffers()
1186 totalAllocationSize += allocationSize; in dumpBuffers()
/frameworks/base/libs/hwui/jni/
DBitmap.cpp816 size_t allocationSize = 0; in Bitmap_createFromParcel() local
821 if (!Bitmap::computeAllocationSize(rowBytes, height, &allocationSize)) { in Bitmap_createFromParcel()
832 if (allocationSize > size) { in Bitmap_createFromParcel()
836 nativeBitmap = Bitmap::allocateHeapBitmap(allocationSize, imageInfo, rowBytes); in Bitmap_createFromParcel()
838 memcpy(nativeBitmap->pixels(), buffer.get(), allocationSize); in Bitmap_createFromParcel()
845 if (allocationSize > size) { in Bitmap_createFromParcel()
/frameworks/native/libs/gralloc/types/
DGralloc4.cpp1024 status_t encodeAllocationSize(uint64_t allocationSize, hidl_vec<uint8_t>* outAllocationSize) { in encodeAllocationSize() argument
1025 …return encodeMetadata(MetadataType_AllocationSize, allocationSize, outAllocationSize, encodeIntege… in encodeAllocationSize()
1028 status_t decodeAllocationSize(const hidl_vec<uint8_t>& allocationSize, uint64_t* outAllocationSize)… in decodeAllocationSize() argument
1029 …return decodeMetadata(MetadataType_AllocationSize, allocationSize, outAllocationSize, decodeIntege… in decodeAllocationSize()
/frameworks/native/libs/gralloc/types/include/gralloctypes/
DGralloc4.h290 status_t encodeAllocationSize(uint64_t allocationSize, android::hardware::hidl_vec<uint8_t>* outAll…
291 status_t decodeAllocationSize(const android::hardware::hidl_vec<uint8_t>& allocationSize, uint64_t*…
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp552 uint64_t bufferId, width, height, layerCount, pixelFormatModifier, usage, allocationSize, in TEST_F() local
574 ASSERT_NE(NO_ERROR, gralloc4::decodeAllocationSize(vec, &allocationSize)); in TEST_F()
/frameworks/native/libs/binder/
DParcel.cpp1570 int32_t allocationSize; in readOutVectorSizeWithCheck() local
1571 if (__builtin_smul_overflow(elmSize, *size, &allocationSize)) return NO_MEMORY; in readOutVectorSizeWithCheck()
1577 if (allocationSize >= kMaxAllocationSize) { in readOutVectorSizeWithCheck()
/frameworks/native/vulkan/nulldrv/
Dnull_driver.cpp787 if (SIZE_MAX - sizeof(DeviceMemory) <= alloc_info->allocationSize) in DEFINE_OBJECT_HANDLE_CONVERSION()
792 size_t size = sizeof(DeviceMemory) + size_t(alloc_info->allocationSize); in DEFINE_OBJECT_HANDLE_CONVERSION()