Home
last modified time | relevance | path

Searched refs:memorySize_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/src/
H A Dimage_data_statistics.cpp28 ImageDataStatistics::ImageDataStatistics(const std::string &title) : title_(title), memorySize_(0) in ImageDataStatistics()
33 ImageDataStatistics::ImageDataStatistics(const char *fmt, ...) : memorySize_(0) in ImageDataStatistics()
60 if ((memorySize_ != 0) && (memorySize_ > MEMORY_THRESHOLD_BYTE)) { in ~ImageDataStatistics()
62 …title_.c_str(), static_cast<unsigned long>(memorySize_), static_cast<unsigned long>(MEMORY_THRESHO… in ~ImageDataStatistics()
76 memorySize_ = size; in SetRequestMemory()
/ohos5.0/commonlibrary/c_utils/base/src/
H A Dashmem.cpp148 Ashmem::Ashmem(int fd, int32_t size) : memoryFd_(fd), memorySize_(size), flag_(0), startAddr_(nullp… in Ashmem()
200 memorySize_ = 0; in CloseAshmem()
211 void *startAddr = ::mmap(nullptr, memorySize_, mapType, MAP_SHARED, memoryFd_, 0); in MapAshmem()
248 ::munmap(startAddr_, memorySize_); in UnmapAshmem()
270 …int ret = memcpy_s(tmpData + offset, memorySize_ - offset, reinterpret_cast<const char *>(data), s… in WriteToAshmem()
298 if ((size < 0) || (size > memorySize_) || (offset < 0) || (offset > memorySize_)) { in CheckValid()
300 __func__, size, memorySize_, offset); in CheckValid()
303 if (offset + size > memorySize_) { in CheckValid()
305 __func__, size, memorySize_, offset); in CheckValid()
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dashmem.h230 mutable int32_t memorySize_; // Size of the Ashmem region. variable
235 int32_t memorySize_; // Size of the Ashmem region.
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/utils/include/
H A Dimage_data_statistics.h35 uint32_t memorySize_; variable
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/platform/utils/
H A Dashmem.h199 int32_t memorySize_; // size of ashmem. variable