/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/common/memory/cache/test/unittest/common/ |
H A D | cache_manager_tdd_test.cpp | 41 const size_t totalSize = 20 * 1024; // 20KB variable 50 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); 75 const size_t totalSize = 20 * 1024; // 40KB variable 92 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); 118 const size_t totalSize = 2 * 1024; // 2KB variable 128 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); 149 const size_t totalSize = 20 * 1024; // 20KB variable 159 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); 182 const size_t totalSize = 20 * 1024; // 20KB variable 192 CacheManager::GetInstance().SetupCacheMemInfo(startAddr, totalSize); [all …]
|
/ohos5.0/foundation/systemabilitymgr/samgr_lite/samgr/adapter/posix/ |
H A D | lock_free_queue.c | 38 queue->totalSize = total; in LFQUE_Create() 45 if (nextWrite >= queue->totalSize) { in LFQUE_IsFull() 66 uint32 copyLen = (queue->totalSize - queue->write < queue->itemSize) ? in LFQUE_Push() 67 (queue->totalSize - queue->write) : queue->itemSize; in LFQUE_Push() 81 if (write >= queue->totalSize) { in LFQUE_Push() 82 write = write - queue->totalSize; in LFQUE_Push() 98 uint32 copyLen = (queue->totalSize - queue->read < queue->itemSize) ? in LFQUE_Pop() 99 (queue->totalSize - queue->read) : queue->itemSize; in LFQUE_Pop() 113 if (read >= queue->totalSize) { in LFQUE_Pop() 114 read = read - queue->totalSize; in LFQUE_Pop()
|
/ohos5.0/foundation/deviceprofile/device_info_manager/old/services/core/src/contentsensor/ |
H A D | storage_info_collector.cpp | 40 int64_t totalSize = GetTotalSize(); in ConvertToProfileData() local 41 if (totalSize == 0) { in ConvertToProfileData() 44 jsonData[CAPACITY] = totalSize; in ConvertToProfileData() 51 int64_t totalSize = 0; in GetTotalSize() local 56 return totalSize; in GetTotalSize() 58 totalSize = (int64_t)diskInfo.f_bsize * (int64_t)diskInfo.f_blocks / KILOBYTE; in GetTotalSize() 59 return totalSize; in GetTotalSize()
|
/ohos5.0/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
H A D | hks_crypto_ed25519.c | 57 uint32_t totalSize = sizeof(struct KeyMaterial25519) + pubKey->size + priKey->size; in SaveEd25519KeyMaterial() local 58 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in SaveEd25519KeyMaterial() 69 if (memcpy_s(buffer + offset, totalSize - offset, pubKey->data, pubKey->size) != EOK) { in SaveEd25519KeyMaterial() 71 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveEd25519KeyMaterial() 79 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveEd25519KeyMaterial() 85 keyOut->size = totalSize; in SaveEd25519KeyMaterial() 124 uint32_t totalSize = sizeof(struct KeyMaterial25519); in CheckEd25519Material() local 125 if (key->size < totalSize) { in CheckEd25519Material() 131 if (((key->size - totalSize) < km->pubKeySize) || in CheckEd25519Material() 132 ((key->size - totalSize) < km->priKeySize) || in CheckEd25519Material() [all …]
|
/ohos5.0/drivers/peripheral/codec/test/fuzztest/image_fuzzer/common/src/ |
H A D | encode_buffer_helper.cpp | 131 uint8_t totalSize = *data; in CreateSharedBuffer() local 132 data += sizeof(totalSize); in CreateSharedBuffer() 133 int fd = AshmemCreate("ForMetaData", (size_t)totalSize); in CreateSharedBuffer() 135 void *addr = mmap(nullptr, (size_t)totalSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in CreateSharedBuffer() 141 if (dataEnd < data + totalSize) { in CreateSharedBuffer() 145 ret = memcpy_s(reinterpret_cast<char*>(addr), totalSize, data, totalSize); in CreateSharedBuffer() 149 data += totalSize; in CreateSharedBuffer() 150 if (munmap(addr, totalSize) != 0) { in CreateSharedBuffer() 154 buffer.filledLen = static_cast<uint32_t>(totalSize); in CreateSharedBuffer()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/storage/src/ |
H A D | storage_total_status_service.cpp | 47 int64_t totalSize = 0; in GetSystemSize() local 48 ret = GetSizeOfPath(PATH_DATA, SizeType::TOTAL, totalSize); in GetSystemSize() 54 systemSize = roundSize - totalSize; in GetSystemSize() 57 …static_cast<long long>(roundSize), static_cast<long long>(totalSize), static_cast<long long>(syste… in GetSystemSize() 61 int32_t StorageTotalStatusService::GetTotalSize(int64_t &totalSize) in GetTotalSize() argument 79 totalSize = GetRoundSize(dataSize + rootSize); in GetTotalSize() 82 …static_cast<long long>(totalSize), static_cast<long long>(dataSize), static_cast<long long>(rootSi… in GetTotalSize()
|
H A D | storage_monitor_service.cpp | 122 int64_t totalSize; in MonitorAndManageStorage() local 124 if ((err != E_OK) || (totalSize <= 0)) { in MonitorAndManageStorage() 135 if (freeSize < (totalSize * STORAGE_LEFT_SIZE_THRESHOLD) / CONST_NUM_ONE_HUNDRED) { in MonitorAndManageStorage() 136 CheckAndEventNotify(freeSize, totalSize); in MonitorAndManageStorage() 137 CheckAndCleanCache(freeSize, totalSize); in MonitorAndManageStorage() 141 void StorageMonitorService::CheckAndCleanCache(int64_t freeSize, int64_t totalSize) in CheckAndCleanCache() argument 143 int64_t lowThreshold = GetLowerThreshold(totalSize); in CheckAndCleanCache() 157 if (freeSize > (totalSize * STORAGE_THRESHOLD_PERCENTAGE) / CONST_NUM_ONE_HUNDRED) { in CheckAndCleanCache() 199 int64_t StorageMonitorService::GetLowerThreshold(int64_t totalSize) in GetLowerThreshold() argument 201 int64_t lowBytes = (totalSize * STORAGE_THRESHOLD_PERCENTAGE) / CONST_NUM_ONE_HUNDRED; in GetLowerThreshold() [all …]
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_4.0.10.2/ |
H A D | changelogs-netstack.md | 24 - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 25 - off(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 31 - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 32 …- off(type: 'dataProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>): void; 38 …- on(type: "dataReceiveProgress", callback: Callback<{ receiveSize: number, totalSize: number }>):… 39 …- off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>…
|
/ohos5.0/base/security/huks/utils/crypto_adapter/ |
H A D | hks_client_service_adapter_common.c | 59 uint32_t totalSize = sizeof(struct HksPubKeyInfo) + key->size; in TranslateToInnerCurve25519Format() local 60 uint8_t *buffer = (uint8_t *)HksMalloc(totalSize); in TranslateToInnerCurve25519Format() 61 …KS_IF_NULL_LOGE_RETURN(buffer, HKS_ERROR_MALLOC_FAIL, "malloc failed! %" LOG_PUBLIC "u", totalSize) in TranslateToInnerCurve25519Format() 62 (void)memset_s(buffer, totalSize, 0, totalSize); in TranslateToInnerCurve25519Format() 70 (void)memcpy_s(buffer + offset, totalSize - offset, key->data, key->size); in TranslateToInnerCurve25519Format() 72 publicKey->size = totalSize; in TranslateToInnerCurve25519Format()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/test/ |
H A D | storage_stats_test.cpp | 45 int64_t totalSize = 1001; variable 51 StorageStats res(totalSize, audioSize, videoSize, imageSize, fileSize, appSize); 54 EXPECT_EQ(parcel.ReadInt64(), totalSize); 75 int64_t totalSize = 2001; variable 82 parcel.WriteInt64(totalSize); 90 EXPECT_EQ(res.total_, totalSize);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/select_popup/ |
H A D | render_select_popup.cpp | 319 Size totalSize; in PerformLayout() local 323 totalSize = renderTitleBox_->GetLayoutSize(); in PerformLayout() 325 totalSize.SetWidth(totalSize.Width() + NormalizeToPx(8.0_vp)); in PerformLayout() 326 fixHeight = totalSize.Height(); in PerformLayout() 346 totalSize.AddHeight(option->GetLayoutSize().Height()); in PerformLayout() 349 totalSize.Width() < NormalizeToPx(minWidth_)) { in PerformLayout() 350 totalSize.SetWidth(NormalizeToPx(minWidth_)); in PerformLayout() 352 totalSize.AddHeight(2.0 * outPadding); in PerformLayout() 353 totalSize.AddWidth(2.0 * outPadding); in PerformLayout() 355 AdjustChildLayout(totalSize); in PerformLayout() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | spunge_mem.c | 30 FILLP_UINT32 totalSize = (FILLP_UINT32)(blockSize * blockNum); in SpungeAlloc() local 31 if ((totalSize == 0) || (blockNum != totalSize / blockSize)) { in SpungeAlloc() 35 return FILLP_MALLOC((FILLP_UINT32)totalSize); in SpungeAlloc()
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/collector/device_client/ |
H A D | process_cpu_data.cpp | 30 unsigned int totalSize = sizeof(struct ucollection_process_cpu_entry) in Init() local 32 entry_ = (struct ucollection_process_cpu_entry *)malloc(totalSize); in Init() 36 memset_s(entry_, totalSize, 0, totalSize); in Init()
|
H A D | thread_cpu_data.cpp | 33 auto totalSize = sizeof(struct ucollection_thread_cpu_entry) in Init() local 35 entry_ = (struct ucollection_thread_cpu_entry *)malloc(totalSize); in Init() 39 memset_s(entry_, totalSize, 0, totalSize); in Init()
|
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.0.10.2/ |
H A D | changelogs-netstack.md | 24 - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 25 - off(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 31 - on(type: "dataProgress", callback: Callback<{ receiveSize: number, totalSize: number }>): void; 32 …- off(type: 'dataProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>): void; 38 …- on(type: "dataReceiveProgress", callback: Callback<{ receiveSize: number, totalSize: number }>):… 39 …- off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>…
|
/ohos5.0/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | appevent_packageholder_impl.cpp | 90 size_t totalSize = 0; in TakeNext() local 93 if (static_cast<int>(totalSize + eventStr.size()) > takeSize_) { in TakeNext() 94 …GI("stop to take data, totalSize=%{public}zu, takeSize=%{public}" PRIi64 "", totalSize, takeSize_); in TakeNext() 97 totalSize += eventStr.size(); in TakeNext() 111 package.size = static_cast<int>(totalSize); in TakeNext()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/ |
H A D | menu_layout_algorithm.h | 196 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight); 198 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize); 200 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize); 202 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight); 204 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize); 206 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize); 211 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize, float menuItemTotalHeight); 213 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize); 215 const RefPtr<GeometryNode>& menuGeometryNode, SizeF& totalSize);
|
/ohos5.0/base/update/updater/services/applypatch/ |
H A D | transfer_manager.cpp | 67 size_t totalSize = transferParams_->blockCount; in CommandsParser() local 98 if (totalSize != 0 && (transferParams_->written - initBlock) > 0) { in CommandsParser() 99 UpdateProgress(initBlock, totalSize); in CommandsParser() 108 void TransferManager::UpdateProgress(size_t &initBlock, size_t totalSize) in UpdateProgress() argument 110 float p = static_cast<float>(transferParams_->written - initBlock) / totalSize\ in UpdateProgress()
|
/ohos5.0/base/security/certificate_manager/services/cert_manager_standard/cert_manager_engine/main/core/src/ |
H A D | cert_manager_app_cert_process.c | 193 uint32_t totalSize = sizeof(struct HksKeyMaterial25519) + (CURVE25519_KEY_LEN_BYTES << 1); in SaveKeyMaterialCurve25519() local 194 uint8_t *buffer = (uint8_t *)CMMalloc(totalSize); in SaveKeyMaterialCurve25519() 196 CM_LOG_E("malloc size %u failed", totalSize); in SaveKeyMaterialCurve25519() 199 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519() 207 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519() 216 (void)memset_s(buffer, totalSize, 0, totalSize); in SaveKeyMaterialCurve25519() 229 keyOut->size = totalSize; in SaveKeyMaterialCurve25519()
|
/ohos5.0/foundation/filemanagement/file_api/interfaces/test/unittest/napi_test/ |
H A D | FsCopyTest.js | 366 …gressListener in, progressSize: " + progress.processedSize + ", totalSize: " + progress.totalSize + 367 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 414 …gressListener in, progressSize: " + progress.processedSize + ", totalSize: " + progress.totalSize + 415 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 457 …gressListener in, progressSize: " + progress.processedSize + ", totalSize: " + progress.totalSize + 458 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 504 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 766 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 842 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); 879 " progress: " + (progress.processedSize / progress.totalSize * 100).toFixed(2) + "%"); [all …]
|
/ohos5.0/foundation/communication/netstack/interfaces/kits/js/ |
H A D | @ohos.net.http.d.ts | 1205 …on(type: 'dataReceiveProgress', callback: Callback<{ receiveSize: number, totalSize: number }>): v… 1214 …off(type: 'dataReceiveProgress', callback?: Callback<{ receiveSize: number, totalSize: number }>):… 1223 on(type: 'dataSendProgress', callback: Callback<{ sendSize: number, totalSize: number }>): void 1232 … off(type: 'dataSendProgress', callback?: Callback<{ sendSize: number, totalSize: number }>): void
|
/ohos5.0/base/update/updater/utils/ |
H A D | utils_fs.cpp | 80 int64_t totalSize = 0; in GetFilesFromDirectory() local 90 totalSize += GetFilesFromDirectory(fileName, files, isRecursive); in GetFilesFromDirectory() 93 totalSize += st.st_size; in GetFilesFromDirectory() 97 return totalSize; in GetFilesFromDirectory()
|
/ohos5.0/foundation/filemanagement/storage_service/services/storage_manager/include/storage/ |
H A D | storage_monitor_service.h | 41 int64_t GetLowerThreshold(int64_t totalSize); 42 void CheckAndCleanCache(int64_t freeSize, int64_t totalSize); 43 void CheckAndEventNotify(int64_t freeSize, int64_t totalSize);
|
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/media_library_helper/src/ |
H A D | moving_photo_file_utils.cpp | 479 off_t totalSize = statSrc.st_size; in SendLivePhoto() local 526 int64_t totalSize = st.st_size; in GetExtraDataSize() local 527 CHECK_AND_RETURN_RET_LOG(totalSize > MIN_STANDARD_SIZE, E_INVALID_LIVE_PHOTO, in GetExtraDataSize() 528 "Failed to check live photo, total size is %{public}" PRId64, totalSize); in GetExtraDataSize() 592 int64_t totalSize = st.st_size; in ConvertToMovingPhoto() local 593 CHECK_AND_RETURN_RET_LOG(totalSize > MIN_STANDARD_SIZE, E_INVALID_LIVE_PHOTO, in ConvertToMovingPhoto() 594 "Failed to check live photo, total size is %{public}" PRId64, totalSize); in ConvertToMovingPhoto() 603 int64_t imageSize = totalSize - liveSize - LIVE_TAG_LEN - PLAY_INFO_LEN; in ConvertToMovingPhoto() 608 int64_t videoSize = totalSize - imageSize - extraDataSize; in ConvertToMovingPhoto() 722 int64_t totalSize = st.st_size; in GetVersionAndFrameNum() local [all …]
|
/ohos5.0/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/ |
H A D | jpg_yuv_test.cpp | 865 const size_t totalSize = ySize * NUM_4; in RGBA1010102Crop() local 869 const uint32_t dataLength = totalSize; in RGBA1010102Crop() 905 const size_t totalSize = ySize * NUM_4; in RGBA1010102Rotate() local 909 const uint32_t dataLength = totalSize; in RGBA1010102Rotate() 943 const size_t totalSize = ySize * NUM_4; in RGBA1010102Scale() local 947 const uint32_t dataLength = totalSize; in RGBA1010102Scale() 981 const size_t totalSize = ySize * NUM_4; in RGBA1010102Resize() local 985 const uint32_t dataLength = totalSize; in RGBA1010102Resize() 1018 const size_t totalSize = ySize * NUM_4; in RGBA1010102Flip() local 1022 const uint32_t dataLength = totalSize; in RGBA1010102Flip() [all …]
|