Home
last modified time | relevance | path

Searched refs:memSize (Results 1 - 24 of 24) sorted by relevance

/foundation/resourceschedule/memmgr/interface/innerkits/src/
H A Dmem_mgr_client.cpp132 int32_t MemMgrClient::GetAvailableMemory(int32_t &memSize) in GetAvailableMemory() argument
140 return dps->GetAvailableMemory(memSize); in GetAvailableMemory()
143 int32_t MemMgrClient::GetTotalMemory(int32_t &memSize) in GetTotalMemory() argument
151 return dps->GetTotalMemory(memSize); in GetTotalMemory()
156 int32_t memSize = 0; in GetAvailableMemory() local
157 if (GetAvailableMemory(memSize) != 0) { in GetAvailableMemory()
160 return memSize; in GetAvailableMemory()
165 int32_t memSize = 0; in GetTotalMemory() local
166 if (GetTotalMemory(memSize) != 0) { in GetTotalMemory()
169 return memSize; in GetTotalMemory()
193 GetAvailableMemory(int32_t &memSize) GetAvailableMemory() argument
198 GetTotalMemory(int32_t &memSize) GetTotalMemory() argument
[all...]
H A Dmem_mgr_proxy.cpp269 int32_t MemMgrProxy::GetAvailableMemory(int32_t &memSize) in GetAvailableMemory() argument
290 if (!reply.ReadInt32(memSize)) { in GetAvailableMemory()
297 int32_t MemMgrProxy::GetTotalMemory(int32_t &memSize) in GetTotalMemory() argument
318 if (!reply.ReadInt32(memSize)) { in GetTotalMemory()
/foundation/filemanagement/user_file_service/interfaces/kits/js/src/common/
H A Dfile_info_shared_memory.h49 uint64_t memSize {0};
69 if (!parcel.WriteUint64(memSize)) {
91 memSize = parcel.ReadUint64(); in ReadFromParcel()
150 static int CreateSharedMemory(const char *memName, uint64_t memSize, SharedMemoryInfo &memInfo) in CreateSharedMemory() argument
153 memInfo.memSize = memSize; in CreateSharedMemory()
154 memInfo.memFd = AshmemCreate(memInfo.memName, memInfo.memSize); in CreateSharedMemory()
173 uint64_t memSize = 0; in ExpandSharedMemory() local
174 auto alloc = CalculateMemSize(memSize, memInfo); in ExpandSharedMemory()
177 int ret = CreateSharedMemory(memInfo.memName, memSize, memInf in ExpandSharedMemory()
212 CalculateMemSize(uint64_t &memSize, SharedMemoryInfo &memInfo) CalculateMemSize() argument
[all...]
/foundation/filemanagement/user_file_service/test/fuzztest/fileinfosharedmemory_fuzzer/
H A Dfileinfosharedmemory_fuzzer.cpp44 info->memSize = TypeCast<uint64_t>(data + pos); in MarshallingFuzzTest()
65 uint64_t memSize = TypeCast<uint64_t>(data, &pos); in CreateSharedMemoryFuzzTest() local
68 SharedMemoryOperation::CreateSharedMemory(memName.c_str(), memSize, memInfo); in CreateSharedMemoryFuzzTest()
81 uint64_t memSize = TypeCast<uint64_t>(data, &pos); in ExpandSharedMemoryFuzzTest() local
84 SharedMemoryOperation::CreateSharedMemory(memName.c_str(), memSize, memInfo); in ExpandSharedMemoryFuzzTest()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/
H A Dlf_ring.c39 size_t memSize = size * sizeof(void *); in FillpLfRingCalMemSize() local
40 if ((memSize == 0) || (memSize / sizeof(void *) != size)) { in FillpLfRingCalMemSize()
44 memSize = memSize + sizeof(struct FillpLfRing); in FillpLfRingCalMemSize()
45 if (memSize < sizeof(struct FillpLfRing)) { in FillpLfRingCalMemSize()
48 return memSize; in FillpLfRingCalMemSize()
/foundation/resourceschedule/memmgr/services/memmgrservice/src/
H A Dmem_mgr_service.cpp185 int32_t MemMgrService::GetAvailableMemory(int32_t &memSize) in GetAvailableMemory() argument
188 memSize = KernelInterface::GetInstance().GetCurrentBuffer(); in GetAvailableMemory()
189 if (memSize < 0 || memSize >= MAX_BUFFER_KB) { in GetAvailableMemory()
195 int32_t MemMgrService::GetTotalMemory(int32_t &memSize) in GetTotalMemory() argument
198 memSize = KernelInterface::GetInstance().GetTotalBuffer(); in GetTotalMemory()
199 if (memSize < 0 || memSize >= MAX_BUFFER_KB) { in GetTotalMemory()
H A Dmem_mgr_stub.cpp214 int32_t memSize = 0; in HandleGetAvailableMemory() local
215 int32_t ret = GetAvailableMemory(memSize); in HandleGetAvailableMemory()
216 if (!reply.WriteInt32(memSize)) { in HandleGetAvailableMemory()
225 int32_t memSize = 0; in HandleGetTotalMemory() local
226 int32_t ret = GetTotalMemory(memSize); in HandleGetTotalMemory()
227 if (!reply.WriteInt32(memSize)) { in HandleGetTotalMemory()
/foundation/multimedia/media_foundation/src/common/
H A Davsharedmemorypool.cpp47 FALSE_RETURN_V_MSG_E(option.memSize < MAX_MEM_SIZE, -1, "memSize is larger than MAX_MEM_SIZE."); in Init()
53 MEDIA_LOG_I("name: %{public}s, init option: preAllocMemCnt = %{public}u, memSize = %{public}d, " in Init()
55 name_.c_str(), option_.preAllocMemCnt, option_.memSize, option_.maxMemCnt, in Init()
58 auto memory = AllocMemory(option_.memSize); in Init()
162 if (size > option_.memSize) { in CheckSize()
183 size = option_.memSize; in AcquireMemory()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_common_def.cpp86 size_t memSize = (size + sizeof(BlockHead)); in Alloc() local
88 char* block = static_cast<char*>(malloc(memSize * sizeStep_)); in Alloc()
94 cachePtr->push_back(block + (i * memSize)); in Alloc()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/include/
H A Dqueue.h70 size_t memSize = tmpSize + sizeof(FillpQueue); in FillpQueueCalMemSize() local
72 if ((tmpSize == 0) || (memSize < sizeof(FillpQueue))) { in FillpQueueCalMemSize()
76 return memSize; in FillpQueueCalMemSize()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/utils/
H A Dwifi_global_func.h98 * @param memSize - Character array's memory size.[in]
102 int Vec2Char(const std::vector<T> &vec, T *pChar, int& len, int memSize) in Vec2Char() argument
110 if (vecSize > memSize) { in Vec2Char()
152 * @param memSize - Character array's memory size.
156 int Val2HexChar(const std::vector<T> &vec, char *pHexChar, unsigned memSize) in Val2HexChar() argument
160 if (doubleSize >= memSize) { in Val2HexChar()
/foundation/resourceschedule/memmgr/interface/innerkits/include/
H A Dmem_mgr_client.h41 int32_t GetAvailableMemory(int32_t &memSize);
42 int32_t GetTotalMemory(int32_t &memSize);
H A Di_mem_mgr.h53 virtual int32_t GetAvailableMemory(int32_t &memSize) = 0;
55 virtual int32_t GetTotalMemory(int32_t &memSize) = 0;
H A Dmem_mgr_proxy.h35 int32_t GetAvailableMemory(int32_t &memSize) override;
36 int32_t GetTotalMemory(int32_t &memSize) override;
/foundation/resourceschedule/memmgr/services/memmgrservice/include/
H A Dmem_mgr_service.h40 virtual int32_t GetAvailableMemory(int32_t &memSize) override;
41 virtual int32_t GetTotalMemory(int32_t &memSize) override;
/foundation/multimedia/media_foundation/interface/inner_api/common/
H A Davsharedmemorypool.h34 * @memSize: the size of the preallocated memory blocks.
37 * @enableFixedSize: if true, the pool will allocate all memory block using the memSize. If the acquired
38 * size is larger than the memSize, the acquire will failed. If false, the pool will
53 int32_t memSize = 0; member
/foundation/filemanagement/user_file_service/interfaces/inner_api/file_access/src/
H A Dfile_access_ext_stub_impl.cpp153 memInfo.memSize > DEFAULT_CAPACITY_200KB ? FILEFILTER_MAX_COUNTS : FILEFILTER_DEFAULT_COUNTS; in ListFile()
163 if (memInfo.memSize == DEFAULT_CAPACITY_200KB) { in ListFile()
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/
H A Dext_encoder.cpp869 size_t memSize = properties.size(); in FillLitePropertyItem() local
870 if (offset > memSize) { in FillLitePropertyItem()
871 IMAGE_LOGE("FillLitePropertyItem failed, offset[%{public}ld] over memSize[%{public}ld]", offset, memSize); in FillLitePropertyItem()
875 bool res = memcpy_s(memData + offset, memSize - offset, &type, typeSize) == EOK && in FillLitePropertyItem()
876 memcpy_s(memData + offset + typeSize, memSize - offset - typeSize, payloadData, payloadSize) == EOK; in FillLitePropertyItem()
1608 size_t memSize = mem->data.size; in FillImagePropertyItem() local
1609 IMAGE_LOGD("FileImagePropertyItem memSize is %{public}ld, payloadSize is %{public}ld", memSize, payloadSize); in FillImagePropertyItem()
1619 bool res = (memcpy_s(memData + offset, memSize in FillImagePropertyItem()
2001 size_t memSize = propertyAshmem->data.size; AssembleExifMetaItem() local
[all...]
/foundation/multimedia/player_framework/frameworks/native/avmetadatahelper/
H A Davmetadatahelper_impl.cpp138 int64_t memSize = static_cast<int64_t>(minStride) * frame.height_; in CreatePixelMapData() local
139 CHECK_AND_RETURN_RET_LOG(memSize <= maxAllowedSize, nullptr, "alloc heap size too large"); in CreatePixelMapData()
141 uint8_t *heap = new (std::nothrow) uint8_t[memSize]; in CreatePixelMapData()
151 errno_t rc = memcpy_s(currDstPos, static_cast<size_t>(memSize), currSrcPos, static_cast<size_t>(minStride)); in CreatePixelMapData()
156 memSize -= minStride; in CreatePixelMapData()
/foundation/multimedia/media_library/frameworks/js/src/
H A Dthumbnail_manager.cpp354 auto memSize = static_cast<int32_t>(mmapFd.GetFdSize()); in CreateThumbnailByAshmem() local
358 pixel->SetPixelsAddr(mmapFd.GetFdPtr(), fdPtr, memSize, Media::AllocatorType::SHARE_MEM_ALLOC, nullptr); in CreateThumbnailByAshmem()
/foundation/communication/dsoftbus/components/nstackx/fillp/src/app_lib/src/
H A Dsocket_app.c249 FILLP_ULLONG memSize = 0; in SocketMsgGetLen() local
266 memSize = (FILLP_ULLONG)(memSize + (FILLP_ULLONG)(iov[index].iov_len)); in SocketMsgGetLen()
267 if ((memSize >= (FILLP_ULLONG)FILLP_MAX_INT_VALUE) || (iov[index].iov_len >= FILLP_MAX_INT_VALUE)) { in SocketMsgGetLen()
274 return (int)((FILLP_LLONG)memSize); in SocketMsgGetLen()
/foundation/ability/ability_runtime/frameworks/js/napi/app/js_app_manager/
H A Djs_app_manager.cpp1195 int32_t memSize = 0; in OnGetProcessMemoryByPid()
1196 int32_t ret = appManager->GetProcessMemoryByPid(pid, memSize); in OnGetProcessMemoryByPid()
1198 task->ResolveWithNoError(env, CreateJsValue(env, memSize)); in OnGetProcessMemoryByPid()
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_utils.cpp450 int32_t memSize = static_cast<int32_t>(width) * destByteSize; in FillAreaWithSoftWare() local
457 NeonMemcpy(dest, dstMaxSize, memStart, memSize); in FillAreaWithSoftWare()
462 if (memcpy_s(dest, dstMaxSize, memStart, memSize) != EOK) { in FillAreaWithSoftWare()
/foundation/ability/ability_runtime/services/appmgr/src/
H A Dapp_mgr_service_inner.cpp6341 uint64_t memSize = OHOS::MemInfo::GetPssByPid(pid); in NotifyAppFaultBySA() local
6342 memorySize = static_cast<int32_t>(memSize); in NotifyAppFaultBySA()

Completed in 34 milliseconds