Home
last modified time | relevance | path

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

/ohos5.0/base/update/update_app/common/src/main/ets/util/
H A DFormatUtils.ts42 const ONE_KB = 1024;
46 let index = Math.floor(Math.log(data) / Math.log(ONE_KB));
47 return parseFloat((bytes / Math.pow(ONE_KB, index)).toFixed(point)) + ' ' + sizes[index];
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/aging/
H A Daging_constants.h29 const int64_t ONE_KB = (int64_t)1024; variable
30 const int64_t ONE_MB = (int64_t)1024 * ONE_KB;
/ohos5.0/base/hiviewdfx/hilog/frameworks/libhilog/utils/
H A Dlog_utils.cpp33 constexpr uint32_t ONE_KB = (1UL << 10); variable
53 {'B', 1}, {'K', ONE_KB}, {'M', ONE_MB},
62 case 0 ... ONE_KB - 1: unit = 1; break; in Size2Str()
63 case ONE_KB ... ONE_MB - 1: unit = ONE_KB; break; in Size2Str()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/include/netlink/
H A Dnetlink_manager.h32 static constexpr int32_t ONE_KB = 1024;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/netlink/src/
H A Dnetlink_manager.cpp45 int32_t bufferSize = 256 * ONE_KB; in Start()
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/quota/
H A Dquota_manager.cpp53 const uint64_t ONE_KB = 1; variable
54 const uint64_t ONE_MB = 1024 * ONE_KB;
/ohos5.0/foundation/filemanagement/storage_service/services/storage_daemon/user/src/
H A Dmount_manager.cpp54 constexpr int32_t ONE_KB = 1024; variable
494 char realPath[ONE_KB]; in CheckSymlink()
496 if (res < 0 || res >= ONE_KB) { in CheckSymlink()