Home
last modified time | relevance | path

Searched refs:size (Results 19651 - 19675 of 53573) sorted by relevance

1...<<781782783784785786787788789790>>...2143

/foundation/communication/netstack/frameworks/js/napi/fetch/fetch_exec/src/
H A Dfetch_exec.cpp290 NETSTACK_CURL_EASY_SET_OPTION(curl, CURLOPT_POSTFIELDSIZE, context->request.GetBody().size(), context); in SetOption()
296 size_t FetchExec::OnWritingMemoryBody(const void *data, size_t size, size_t memBytes, void *userData) in OnWritingMemoryBody() argument
299 context->response.AppendData(data, size * memBytes); in OnWritingMemoryBody()
300 return size * memBytes; in OnWritingMemoryBody()
303 size_t FetchExec::OnWritingMemoryHeader(const void *data, size_t size, size_t memBytes, void *userData) in OnWritingMemoryHeader() argument
306 context->response.AppendRawHeader(data, size * memBytes); in OnWritingMemoryHeader()
307 return size * memBytes; in OnWritingMemoryHeader()
/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_scan_proxy.cpp96 data.WriteInt32(info.scanForbidList.size()); in SetScanControlInfo()
104 data.WriteInt32(info.scanIntervalList.size()); in SetScanControlInfo()
185 data.WriteInt32(params.freqs.size()); in AdvanceScan()
186 for (std::size_t i = 0; i < params.freqs.size(); i++) { in AdvanceScan()
296 for (size_t i = 0; i < allSize.size(); i++) {
350 uint32_t retSize = allSize.size();
352 WIFI_LOGE("Scan info size exceeds maximum allowed size: %{public}d", retSize);
388 int eventNum = static_cast<int>(event.size()); in RegisterCallBack()
/foundation/communication/wifi/wifi/frameworks/cj/src/
H A Dwifi_callback.cpp306 WIFI_LOGI("received p2p peers changed event, devices count: %{public}d", static_cast<int>(devices.size()));
311 int64_t size = static_cast<int64_t>(devices.size()); variable
312 if (size <= 0) {
315 CWifiP2pDevice cdevices[size];
316 WifiP2pDeviceArr arr{.head = cdevices, .size = size};
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_nb_unpublish_test.cpp248 EXPECT_EQ(g_localObserver->GetEntriesInserted().size(), 1UL); in HWTEST_F()
274 EXPECT_EQ(g_localObserver->GetEntriesInserted().size(), 1UL); in HWTEST_F()
275 EXPECT_EQ(g_syncObserver->GetEntriesDeleted().size(), 1UL); in HWTEST_F()
339 EXPECT_EQ(g_localObserver->GetEntriesUpdated().size(), 1UL); in HWTEST_F()
356 EXPECT_EQ(g_localObserver->GetEntriesUpdated().size(), 1UL); in HWTEST_F()
463 EXPECT_EQ(g_localObserver->GetEntriesDeleted().size(), 1UL); in HWTEST_F()
479 EXPECT_EQ(g_localObserver->GetEntriesDeleted().size(), 1UL); in HWTEST_F()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/kv/
H A Dsqlite_local_kvdb_connection.cpp43 if (key.empty() || key.size() > DBConstant::MAX_KEY_SIZE) { in Get()
165 if (keyPrefix.size() > DBConstant::MAX_KEY_SIZE) { in GetEntries()
186 if (entries.empty() || entries.size() > DBConstant::MAX_BATCH_SIZE) { in PutBatch()
228 if (keys.empty() || keys.size() > DBConstant::MAX_BATCH_SIZE) { in DeleteBatch()
229 LOGE("[Local]DeleteBatch size[%zu]!", keys.size()); in DeleteBatch()
233 if (item.empty() || item.size() > DBConstant::MAX_KEY_SIZE) { in DeleteBatch()
343 if (snapshots_.size() != 0) { in PreClose()
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/storage/
H A Ddistributeddb_relational_encrypted_db_test.cpp119 g_correctPasswd.SetValue(reinterpret_cast<const uint8_t *>(CORRECT_KEY.data()), CORRECT_KEY.size()); in SetUpTestCase()
120 g_rekeyPasswd.SetValue(reinterpret_cast<const uint8_t *>(REKEY_KEY.data()), REKEY_KEY.size()); in SetUpTestCase()
121 g_incorrectPasswd.SetValue(reinterpret_cast<const uint8_t *>(INCORRECT_KEY.data()), INCORRECT_KEY.size()); in SetUpTestCase()
266 EXPECT_EQ(entries.size(), 3u); in HWTEST_F()
368 EXPECT_EQ(entries.size(), 3u); in HWTEST_F()
410 EXPECT_EQ(sqlite3_rekey(db, REKEY_KEY.data(), REKEY_KEY.size()), SQLITE_OK); in HWTEST_F()
558 EXPECT_EQ(sqlite3_rekey(db, REKEY_KEY.data(), REKEY_KEY.size()), SQLITE_OK); in HWTEST_F()
H A Ddistributeddb_file_package_test.cpp86 ASSERT_EQ(files1.size(), files2.size()); in ComparePath()
139 file1.write(FILE_CONTENT_1.c_str(), FILE_CONTENT_1.size()); in SetUpTestCase()
240 file1.write(FILE_CONTENT_1.c_str(), FILE_CONTENT_1.size()); in HWTEST_F()
295 file.write(REPLACE_FILE_HEADER.c_str(), REPLACE_FILE_HEADER.size()); in HWTEST_F()
323 fileIn.read(buffer.data(), buffer.size()); in HWTEST_F()
327 fileOut.write(buffer.data(), buffer.size()); in HWTEST_F()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/system_storage/src/
H A Dnapi_system_storage.cpp129 len = ctx->val.size(); in Complete()
141 len = message.size(); in Complete()
231 if (context->key.size() > MAX_KEY_LENGTH) { in NapiGet()
236 if (context->def.size() > MAX_VALUE_LENGTH) { in NapiGet()
250 if (context->key.size() > MAX_KEY_LENGTH) { in NapiSet()
254 if (context->val.size() > MAX_VALUE_LENGTH) { in NapiSet()
272 if (context->key.size() > MAX_KEY_LENGTH) { in NapiDelete()
/foundation/distributedhardware/distributed_camera/test/distributedcameraclienttest/
H A Ddcamera_client_demo.cpp252 DHLOGI("Distributed Camera Demo: get %{public}d exposure compensation range", biasRange.size()); in ConfigFocusFlashAndExposure()
344 DHLOGI("size: %{public}d", previewProfiles.size()); in GetPreviewProfiles()
355 bool IsValid(const CameraStandard::Size& size) in IsValid() argument
357 return (size.width >= RESOLUTION_MIN_WIDTH) && (size.height >= RESOLUTION_MIN_HEIGHT) && in IsValid()
358 (size.width <= RESOLUTION_MAX_WIDTH_CONTINUOUS) && (size.height <= RESOLUTION_MAX_HEIGHT_CONTINUOUS); in IsValid()
/foundation/distributeddatamgr/pasteboard/framework/test/src/
H A Dpasteboard_client_test.cpp187 EXPECT_TRUE(result.size() == 3); in HWTEST_F()
194 EXPECT_TRUE(result.size() == 4); in HWTEST_F()
213 EXPECT_TRUE(result.size() == 3); in HWTEST_F()
218 EXPECT_TRUE(result.size() == 1); in HWTEST_F()
237 EXPECT_TRUE(result.size() == 3); in HWTEST_F()
243 EXPECT_TRUE(result.size() == 3); in HWTEST_F()
246 EXPECT_TRUE(result.size() == 2); in HWTEST_F()
/foundation/distributeddatamgr/preferences/frameworks/js/napi/common/src/
H A Djs_common_utils.cpp246 size_t size = value.size(); in Convert2JSValue() local
249 napi_status ret = napi_create_arraybuffer(env, size, &data, &buffer); in Convert2JSValue()
254 if (size != 0) { in Convert2JSValue()
258 ret = napi_create_typedarray(env, napi_uint8_array, size, buffer, 0, &napiValue); in Convert2JSValue()
278 if (napi_create_string_utf8(env, value.c_str(), value.size(), &jsValue) != napi_ok) { in Convert2JSValue()
288 napi_status status = napi_create_bigint_words(env, value.sign_, value.words_.size(), value.words_.data(), &bigint); in Convert2JSValue()
/foundation/distributeddatamgr/relational_store/frameworks/native/cloud_data/src/
H A Dcloud_service_proxy.cpp60 LOG_ERROR("status:0x%{public}x id:%{public}.6s size:%{public}zu", status, id.c_str(), switches.size()); in EnableCloud()
91 LOG_ERROR("status:0x%{public}x id:%{public}.6s size:%{public}zu", status, id.c_str(), actions.size()); in Clean()
111 LOG_ERROR("status:0x%{public}x strategy:%{public}d values size:%{public}zu", status, in SetGlobalCloudStrategy()
112 static_cast<uint32_t>(strategy), values.size()); in SetGlobalCloudStrategy()
163 status, sharingRes.c_str(), participants.size()); in Share()
176 status, sharingRes.c_str(), participants.size()); in Unshare()
200 status, sharingRes.c_str(), participants.size()); in ChangePrivilege()
258 LOG_ERROR("status:0x%{public}x strategy:%{public}d values size in SetCloudStrategy()
[all...]
/foundation/distributeddatamgr/pasteboard/interfaces/kits/napi/src/
H A Dpasteboard_common.cpp135 napi_status status = napi_create_array_with_length(env, in.size(), &result); in SetValue()
197 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS, in CheckArgs()
243 !CheckExpression(env, mimeType.size() <= MIMETYPE_MAX_SIZE, JSErrorCode::INVALID_PARAMETERS, in CheckArgsMimeType()
345 return napi_create_string_utf8(env, str.c_str(), str.size(), result); in ConvertEntryValue()
351 return napi_create_string_utf8(env, str->c_str(), str->size(), result); in ConvertEntryValue()
357 return napi_create_string_utf8(env, str->c_str(), str->size(), result); in ConvertEntryValue()
386 size_t len = dataArray.size(); in ConvertEntryValue()
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/
H A Drd_utils.cpp465 for (size_t i = 0; i < encryptedKey.size(); i++) { in GetEncryptKey()
484 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' in RdDbBackup()
487 info.hexPassword = (encryptedKey.size() > 0) ? GetEncryptKey(encryptedKey, key, keySize) : nullptr; in RdDbBackup()
491 LOG_ERROR("can not memset 0, size %{public}zu", keySize); in RdDbBackup()
505 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' in RdDbRestore()
508 info.hexPassword = (encryptedKey.size() > 0) ? GetEncryptKey(encryptedKey, key, keySize) : nullptr; in RdDbRestore()
512 LOG_ERROR("can not memset 0, size %{public}zu", keySize); in RdDbRestore()
526 const size_t keySize = encryptedKey.size() * 2 + 1; // 2 hex number can represent a uint8_t, 1 is for '/0' in RdDbRekey()
529 info.hexPassword = (encryptedKey.size() > 0) ? GetEncryptKey(encryptedKey, key, keySize) : nullptr; in RdDbRekey()
533 LOG_ERROR("can not memset 0, size in RdDbRekey()
[all...]
/foundation/distributedhardware/distributed_input/utils/src/
H A Ddinput_utils_tool.cpp127 dhidStr = dhidStr.substr(pos + 1, dhidStr.size()); in SetAnonyId()
257 SHA256_Update(&ctx, in.data(), in.size()); in Sha256()
297 strTmp = strTmp.substr(pos + 1, strTmp.size()); in SplitStringToVector()
442 if (vec.size() < 1) { in GetString()
443 DHLOGE("vec size error."); in GetString()
446 for (uint32_t i = 0; i < vec.size(); i++) { in GetString()
447 if (i != (vec.size() - 1)) { in GetString()
467 if (dhids.size() == 0) { in JointDhIds()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/render_context/
H A Drender_context.cpp298 auto size = glesVersion ? strlen(glesVersion) : 0; in SetUpGpuContext() local
299 mHandler_->ConfigureContext(&options, glesVersion, size, cacheDir_, isUniRenderMode_); in SetUpGpuContext()
450 size_t size = rects.size(); in DamageFrame() local
451 if (size == 0) { in DamageFrame()
452 LOGD("invalid rects size"); in DamageFrame()
456 EGLint eglRect[size * 4]; // 4 is size of RectI. in DamageFrame()
459 eglRect[index * 4] = rect.left_; // 4 is size of RectI. in DamageFrame()
460 eglRect[index * 4 + 1] = rect.top_; // 4 is size o in DamageFrame()
[all...]
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/src/
H A Dcolor_picker.cpp57 options.size.width = 100; // 100 represents scaled pixelMap's width in CreateScaledPixelMap()
58 options.size.height = 100; // 100 represents scaled pixelMap's height in CreateScaledPixelMap()
106 options.size.width = 1; in GetScaledPixelMap()
107 options.size.height = 1; in GetScaledPixelMap()
156 for (size_t i = 0; i < featureColors_.size(); i++) { in GetHighestSaturationColor()
182 for (size_t i = 0; i < featureColors_.size(); i++) { in GetAverageColor()
216 uint32_t num = std::min(static_cast<uint32_t>(featureColors_.size()), colorsNum); in GetTopProportionColors()
/foundation/window/window_manager/window_scene/session/container/src/
H A Dwindow_event_channel.cpp188 if (pressedKeys.size() == SIZE_TWO && keyCode == MMI::KeyEvent::KEYCODE_TAB && in IsUIExtensionKeyEventBlocked()
193 } else if (pressedKeys.size() >= SIZE_TWO) { in IsUIExtensionKeyEventBlocked()
194 TLOGE(WmsLogTag::WMS_EVENT, "Invalid size of PressedKeys due to Constrained embedded UIExtension."); in IsUIExtensionKeyEventBlocked()
238 MMI::KeyEvent::ActionToString(event->GetKeyAction()), eventItems.size()); in PrintKeyEvent()
267 event->GetPointerId(), pointerIds.size(), event->GetId(), buffer.size(), str.c_str()); in PrintPointerEvent()
304 event->GetPointerId(), pointerIds.size(), event->GetId(), buffer.size(), str.c_str()); in PrintInfoPointerEvent()
/kernel/linux/linux-5.10/arch/x86/kvm/mmu/
H A Dmmutrace.h101 TP_PROTO(unsigned long table_gfn, unsigned index, unsigned size),
103 TP_ARGS(table_gfn, index, size),
111 + index * size;
120 TP_PROTO(unsigned long table_gfn, unsigned index, unsigned size),
122 TP_ARGS(table_gfn, index, size)
128 TP_PROTO(unsigned long table_gfn, unsigned index, unsigned size),
130 TP_ARGS(table_gfn, index, size)
/kernel/linux/linux-5.10/drivers/base/firmware_loader/
H A Dfallback.c40 * ready for completing firmware loading now. The maximum size of firmware in
275 fw_priv->size, in firmware_loading_store()
352 if (offset > fw_priv->size) { in firmware_data_read()
356 if (count > fw_priv->size - offset) in firmware_data_read()
357 count = fw_priv->size - offset; in firmware_data_read()
389 * @count: buffer size
429 fw_priv->size = max_t(size_t, offset + count, fw_priv->size); in firmware_data_write()
437 .size = 0,
/kernel/linux/linux-5.10/arch/loongarch/mm/
H A Dinit.c96 int arch_add_memory(int nid, u64 start, u64 size, struct mhp_params *params) in arch_add_memory() argument
99 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory()
112 u64 size, struct vmem_altmap *altmap) in arch_remove_memory()
115 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_remove_memory()
145 void * __meminit arch_vmemmap_alloc_block_zero(unsigned long size, int node) in arch_vmemmap_alloc_block_zero() argument
147 void *p = vmemmap_alloc_block(size, node); in arch_vmemmap_alloc_block_zero()
151 memset(p, 0, size); in arch_vmemmap_alloc_block_zero()
381 * __aligned(64K), its size would get rounded up to the alignment
382 * size, and waste space. So we place it in its own section and align
111 arch_remove_memory(int nid, u64 start, u64 size, struct vmem_altmap *altmap) arch_remove_memory() argument
/kernel/linux/linux-5.10/arch/arm/mach-pxa/
H A Dcm-x300.c408 .size = SZ_256K,
414 .size = SZ_256K,
420 .size = SZ_256K,
425 .size = SZ_256K + SZ_1M,
431 .size = SZ_4M,
436 .size = MTDPART_SIZ_FULL,
863 for (; tags->hdr.size; tags = tag_next(tags)) in cm_x300_fixup()
/kernel/linux/linux-5.10/arch/mips/txx9/generic/
H A Dsetup_tx4938.c209 unsigned long base, size; in tx4938_setup() local
213 size = (((unsigned long)(cr >> 33) & 0x7fff) + 1) << 21; in tx4938_setup()
217 tx4938_sdram_resource[i].end = base + size - 1; in tx4938_setup()
225 unsigned int size = TX4938_SRAM_SIZE; in tx4938_setup() local
229 & ~(size - 1); in tx4938_setup()
326 unsigned long size = txx9_ce_res[ch].end - start + 1; in tx4938_mtd_init() local
330 txx9_physmap_flash_init(ch, start, size, &pdata); in tx4938_mtd_init()
/kernel/linux/linux-5.10/arch/powerpc/mm/
H A Dhugetlbpage.c385 * Increment next by the size of the huge mapping since in hugetlb_free_pmd_range()
435 * Increment next by the size of the huge mapping since in hugetlb_free_pud_range()
505 * Increment next by the size of the huge mapping since in hugetlb_free_pgd_range()
585 bool __init arch_hugetlb_valid_size(unsigned long size) in arch_hugetlb_valid_size() argument
587 int shift = __ffs(size); in arch_hugetlb_valid_size()
590 /* Check that it is a page size supported by the hardware and in arch_hugetlb_valid_size()
592 if (size <= PAGE_SIZE || !is_power_of_2(size)) in arch_hugetlb_valid_size()
604 static int __init add_huge_page_size(unsigned long long size) in add_huge_page_size() argument
606 int shift = __ffs(size); in add_huge_page_size()
[all...]
/kernel/linux/linux-5.10/arch/alpha/kernel/
H A Dcore_mcpcia.c197 int size, u32 *value) in mcpcia_read_config()
206 addr |= (size - 1) * 8; in mcpcia_read_config()
208 switch (size) { in mcpcia_read_config()
224 int size, u32 value) in mcpcia_write_config()
233 addr |= (size - 1) * 8; in mcpcia_write_config()
379 *(vuip)MCPCIA_W0_MASK(mid) = (hose->sg_isa->size - 1) & 0xfff00000; in mcpcia_startup_hose()
383 *(vuip)MCPCIA_W1_MASK(mid) = (hose->sg_pci->size - 1) & 0xfff00000; in mcpcia_startup_hose()
196 mcpcia_read_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 *value) mcpcia_read_config() argument
223 mcpcia_write_config(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 value) mcpcia_write_config() argument

Completed in 36 milliseconds

1...<<781782783784785786787788789790>>...2143