/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_test/ |
H A D | netfirewall_common_test.cpp | 106 int32_t pageSize = 2; in HWTEST_F() local 107 parcel.WriteInt32(pageSize); in HWTEST_F() 117 int32_t pageSize = 2; in HWTEST_F() local 118 parcel.WriteInt32(pageSize); in HWTEST_F() 146 int32_t pageSize = 2; in HWTEST_F() local 147 parcel.WriteInt32(pageSize); in HWTEST_F() 157 int32_t pageSize = 2; in HWTEST_F() local 158 parcel.WriteInt32(pageSize); in HWTEST_F() 170 int32_t pageSize = 2; in HWTEST_F() local 171 parcel.WriteInt32(pageSize); in HWTEST_F() 201 int32_t pageSize = 2; HWTEST_F() local 212 int32_t pageSize = 2; HWTEST_F() local 225 int32_t pageSize = 2; HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/test/netfirewallmanager/unittest/netfirewallmanager_test/ |
H A D | netfirewall_common_test.cpp | 106 int32_t pageSize = 2;
in HWTEST_F() local 107 parcel.WriteInt32(pageSize);
in HWTEST_F() 117 int32_t pageSize = 2;
in HWTEST_F() local 118 parcel.WriteInt32(pageSize);
in HWTEST_F() 146 int32_t pageSize = 2;
in HWTEST_F() local 147 parcel.WriteInt32(pageSize);
in HWTEST_F() 157 int32_t pageSize = 2;
in HWTEST_F() local 158 parcel.WriteInt32(pageSize);
in HWTEST_F() 170 int32_t pageSize = 2;
in HWTEST_F() local 171 parcel.WriteInt32(pageSize);
in HWTEST_F() 201 int32_t pageSize = 2; HWTEST_F() local 212 int32_t pageSize = 2; HWTEST_F() local 225 int32_t pageSize = 2; HWTEST_F() local [all...] |
/foundation/communication/netmanager_ext/frameworks/native/netfirewallclient/src/ |
H A D | netfirewall_common.cpp | 67 this->pageSize << COMMA << NET_FIREWALL_ORDER_FIELD << EQUAL << static_cast<int32_t>(this->orderField) <<
in ToString() 77 if (!parcel.WriteInt32(pageSize)) {
in Marshalling() 99 if (!parcel.ReadInt32(ptr->pageSize)) {
in Unmarshalling() 121 if (!parcel.WriteInt32(pageSize)) {
in Marshalling() 152 if (!parcel.ReadInt32(ptr->pageSize)) {
in Unmarshalling() 183 if (!parcel.WriteInt32(pageSize)) {
in Marshalling() 214 if (!parcel.ReadInt32(ptr->pageSize)) {
in Unmarshalling()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/gaussdb_rd/src/common/src/ |
H A D | db_config.cpp | 79 bool CheckPageSizeConfig(const JsonObject &config, int32_t &pageSize) in CheckPageSizeConfig() argument 85 return CheckAndGetDBConfig(config, DB_CONFIG_PAGESIZE, checkFunction, pageSize); in CheckPageSizeConfig() 96 bool CheckRedoBufSizeConfig(const JsonObject &config, int32_t pageSize, uint32_t &redoBufSize) in CheckRedoBufSizeConfig() argument 98 std::function<bool(uint32_t)> checkFunction = [pageSize](uint32_t val) { in CheckRedoBufSizeConfig() 100 val > static_cast<uint32_t>(pageSize * 63); // 63: pool size should be 63 times larger then pageSize in CheckRedoBufSizeConfig() 113 bool CheckBufferPoolSizeConfig(const JsonObject &config, int32_t pageSize, uint32_t &redoBufSize) in CheckBufferPoolSizeConfig() argument 115 std::function<bool(uint32_t)> checkFunction = [pageSize](uint32_t val) { in CheckBufferPoolSizeConfig() 117 val >= static_cast<uint32_t>(pageSize * 64); // 64: pool size should be 64 times larger then pageSize in CheckBufferPoolSizeConfig() [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_filesystem/ |
H A D | b_file_hash.cpp | 52 const size_t pageSize { getpagesize() }; in ForEachFileSegment() 53 auto buf = make_unique<char[]>(pageSize); in ForEachFileSegment() 56 actLen = fread(buf.get(), 1, pageSize, filp.get()); in ForEachFileSegment() 60 } while (actLen == pageSize); in ForEachFileSegment()
|
/foundation/filemanagement/file_api/interfaces/kits/js/src/common/file_helper/ |
H A D | hash_file.cpp | 54 const size_t pageSize { getpagesize() }; in ForEachFileSegment() 55 auto buf = make_unique<char[]>(pageSize); in ForEachFileSegment() 58 actLen = fread(buf.get(), 1, pageSize, filp.get()); in ForEachFileSegment() 62 } while (actLen == pageSize); in ForEachFileSegment()
|
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_utils.cpp | 303 if ((option.rdconfig.pageSize < SQLITE_PAGE_SIZE_MIN) || in CheckParaOption() 304 (option.rdconfig.pageSize > SQLITE_PAGE_SIZE_MAX)) { in CheckParaOption() 306 LOGE("Invalid config pagesize:%" PRIu32, option.rdconfig.pageSize); in CheckParaOption() 309 if ((option.rdconfig.cacheSize % option.rdconfig.pageSize != 0) || in CheckParaOption() 310 ((option.rdconfig.pageSize & (option.rdconfig.pageSize - 1)) != 0) || in CheckParaOption() 311 (option.rdconfig.cacheSize / SQLITE_CACHE_SIZE_PAGE > option.rdconfig.pageSize)) { in CheckParaOption() 313 LOGE("Invalid config pagesize:%" PRIu32 "and cachesize:%" PRIu32, option.rdconfig.pageSize, in CheckParaOption()
|
H A D | rd_single_ver_natural_store.cpp | 569 uint32_t pageSize = kvDBProp.GetUIntProp(KvDBProperties::PAGE_SIZE, 32u); // one page has 32KB in InitDataBaseOption() local 576 config += R"(, "pageSize":)" + std::to_string(pageSize) + R"(, )"; in InitDataBaseOption() 578 config += R"("redoPubBufSize":)" + std::to_string(pageSize * REDO_BUF_ATOMIC_SIZE) + R"(, )"; in InitDataBaseOption()
|
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/src/restore/ |
H A D | photos_clone.cpp | 81 std::shared_ptr<NativeRdb::ResultSet> PhotosClone::GetPhotosInPhotoMap(int32_t offset, int32_t pageSize)
in GetPhotosInPhotoMap() argument 83 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotosInPhotoMap() 94 std::shared_ptr<NativeRdb::ResultSet> PhotosClone::GetPhotosNotInPhotoMap(int32_t offset, int32_t pageSize)
in GetPhotosNotInPhotoMap() argument 96 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotosNotInPhotoMap() 186 int pageSize = 200;
in FindDuplicateBurstKey() local 188 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in FindDuplicateBurstKey() 206 offset += pageSize;
in FindDuplicateBurstKey()
|
H A D | photo_album_clone.cpp | 57 std::shared_ptr<NativeRdb::ResultSet> PhotoAlbumClone::GetPhotoAlbumInOriginalDb(int32_t offset, int32_t pageSize)
in GetPhotoAlbumInOriginalDb() argument 60 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotoAlbumInOriginalDb()
|
H A D | photo_album_restore.cpp | 38 int pageSize = 200;
in GetGalleryAlbums() local 40 std::vector<NativeRdb::ValueObject> params = {offset, pageSize};
in GetGalleryAlbums() 61 offset += pageSize;
in GetGalleryAlbums()
|
H A D | photos_restore.cpp | 34 int32_t offset, int pageSize, bool shouldIncludeSd, bool hasLowQualityImage)
in GetGalleryMedia() 38 std::vector<NativeRdb::ValueObject> params = {hasLowQualityImageFlag, shouldIncludeSdFlag, offset, pageSize};
in GetGalleryMedia() 280 int pageSize = 200;
in GetDuplicateData() local 282 std::vector<NativeRdb::ValueObject> params = {offset, pageSize};
in GetDuplicateData() 301 offset += pageSize;
in GetDuplicateData() 33 GetGalleryMedia( int32_t offset, int pageSize, bool shouldIncludeSd, bool hasLowQualityImage) GetGalleryMedia() argument
|
H A D | photo_album_dao.cpp | 96 int pageSize = 200;
in GetPhotoAlbums() local 98 std::vector<NativeRdb::ValueObject> bindArgs = {offset, pageSize};
in GetPhotoAlbums() 121 offset += pageSize;
in GetPhotoAlbums()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store_config.cpp | 29 int journalSize, int pageSize) in RdbStoreConfig() 31 pageSize_(pageSize), securityLevel_(securityLevel), storageMode_(storageMode), path_(name), in RdbStoreConfig() 163 void RdbStoreConfig::SetPageSize(int pageSize) in SetPageSize() argument 165 this->pageSize_ = pageSize; in SetPageSize() 629 int32_t pageSize = cryptoPageSize; in IsValid() local 630 if (pageSize < DB_MIN_CRYPTO_PAGE_SIZE || pageSize > DB_MAX_CRYPTO_PAGE_SIZE) { in IsValid() 633 if (!((pageSize != 0) && ((pageSize & (pageSize in IsValid() 26 RdbStoreConfig(const std::string &name, StorageMode storageMode, bool isReadOnly, const std::vector<uint8_t> &encryptKey, const std::string &journalMode, const std::string &syncMode, const std::string &databaseFileType, SecurityLevel securityLevel, bool isCreateNecessary, bool autoCheck, int journalSize, int pageSize) RdbStoreConfig() argument [all...] |
/foundation/communication/netmanager_ext/interfaces/innerkits/netfirewallclient/include/ |
H A D | netfirewall_common.h | 64 const std::string NET_FIREWALL_PAGE_SIZE = "pageSize"; 96 int32_t pageSize; // Page size member 107 int32_t pageSize; // Page size member 117 int32_t pageSize; // Page size member
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/src/ |
H A D | netfirewall_rule_native_helper.cpp | 107 const std::vector<sptr<NetFirewallBaseRule>> &ruleList, uint32_t pageSize) in SetFirewallRulesInner() 109 NETMGR_EXT_LOG_I("SetFirewallRulesInner: type=%{public}d ruleSize=%{public}zu pageSize=%{public}d", type, in SetFirewallRulesInner() 110 ruleList.size(), pageSize); in SetFirewallRulesInner() 106 SetFirewallRulesInner(NetFirewallRuleType type, const std::vector<sptr<NetFirewallBaseRule>> &ruleList, uint32_t pageSize) SetFirewallRulesInner() argument
|
H A D | netfirewall_intercept_recorder.cpp | 61 info->pageSize = requestParam->pageSize; in GetInterceptRecords()
|
H A D | netfirewall_stub.cpp | 244 if (param->page < 1 || param->page > FIREWALL_USER_MAX_RULE || param->pageSize < 1 || in OnGetNetFirewallRules() 245 param->pageSize > static_cast<int32_t>(MAX_PAGE_SIZE)) { in OnGetNetFirewallRules() 246 NETMANAGER_EXT_LOGE("ParsePageParam page or pageSize is error"); in OnGetNetFirewallRules() 300 if (param->page < 1 || param->page > FIREWALL_USER_MAX_RULE || param->pageSize < 1 || in OnGetInterceptRecords() 301 param->pageSize > static_cast<int32_t>(MAX_PAGE_SIZE)) { in OnGetInterceptRecords() 302 NETMANAGER_EXT_LOGE("ParsePageParam page or pageSize is error"); in OnGetInterceptRecords()
|
H A D | netfirewall_db_helper.cpp | 727 info->totalPage = rowCount / requestParam->pageSize;
in QueryFirewallRule() 728 int32_t remainder = rowCount % requestParam->pageSize;
in QueryFirewallRule() 732 NETMGR_EXT_LOG_I("QueryFirewallRule: userId=%{public}d page=%{public}d pageSize=%{public}d total=%{public}d",
in QueryFirewallRule() 733 userId, requestParam->page, requestParam->pageSize, info->totalPage);
in QueryFirewallRule() 745 rdbPredicates.Limit((requestParam->page - 1) * requestParam->pageSize, requestParam->pageSize)->EndWrap();
in QueryFirewallRule() 881 info->totalPage = rowCount / requestParam->pageSize;
in QueryInterceptRecord() 882 int32_t remainder = rowCount % requestParam->pageSize;
in QueryInterceptRecord() 886 NETMGR_EXT_LOG_I("QueryInterceptRecord: userId=%{public}d page=%{public}d pageSize=%{public}d total=%{public}d",
in QueryInterceptRecord() 887 userId, requestParam->page, requestParam->pageSize, inf in QueryInterceptRecord() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_backup_extension/include/restore/ |
H A D | photos_clone.h | 57 std::shared_ptr<NativeRdb::ResultSet> GetPhotosInPhotoMap(int32_t offset, int32_t pageSize);
58 std::shared_ptr<NativeRdb::ResultSet> GetPhotosNotInPhotoMap(int32_t offset, int32_t pageSize);
|
H A D | photo_album_clone.h | 38 std::shared_ptr<NativeRdb::ResultSet> GetPhotoAlbumInOriginalDb(int32_t offset, int32_t pageSize);
|
/foundation/filemanagement/dfs_service/services/distributedfiledaemon/src/network/softbus/ |
H A D | softbus_handler_asset.cpp | 436 const size_t pageSize { getpagesize() }; in CompressFile() 437 auto buf = std::make_unique<char[]>(pageSize); in CompressFile() 440 actLen = fread(buf.get(), 1, pageSize, f); in CompressFile() 444 } while (actLen == pageSize); in CompressFile() 573 const size_t pageSize = { getpagesize() }; in ExtractFile() local 574 auto fileData = std::make_unique<char[]>(pageSize); in ExtractFile() 577 bytesRead = unzReadCurrentFile(unZipFile, (voidp)fileData.get(), pageSize); in ExtractFile()
|
/foundation/communication/netmanager_ext/services/netfirewallmanager/include/ |
H A D | netfirewall_rule_native_helper.h | 83 uint32_t pageSize);
|
/foundation/communication/netmanager_ext/frameworks/js/napi/netfirewall/src/context/ |
H A D | net_firewall_rule_parse.cpp | 239 param->pageSize = NapiUtils::GetInt32Property(env, object, NET_FIREWALL_PAGE_SIZE);
in ParsePageParam() 240 if (param->pageSize < 1 || param->pageSize > MAX_PAGE_SIZE) {
in ParsePageParam() 241 NETMANAGER_EXT_LOGE("ParsePageParam pageSize[%{public}d] is error", param->pageSize);
in ParsePageParam()
|
/foundation/resourceschedule/ffrt/src/core/ |
H A D | task.cpp | 442 int pageSize = getpagesize(); in ffrt_set_worker_stack_size() local 443 if (pageSize < 0) { in ffrt_set_worker_stack_size() 444 FFRT_LOGE("Invalid pagesize : %d", pageSize); in ffrt_set_worker_stack_size() 448 groupCtl[qos].workerStackSize = (stack_size - 1 + static_cast<size_t>(pageSize)) & in ffrt_set_worker_stack_size() 449 -(static_cast<size_t>(pageSize)); in ffrt_set_worker_stack_size()
|