/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/ |
H A D | grid_scroll_layout_algorithm.cpp | 50 // Step1: Decide size of Grid in Measure() 55 TAG_LOGW(AceLogTag::ACE_GRID, "size of main axis value is 0, please check"); in Measure() 207 auto size = layoutWrapper->GetGeometryNode()->GetFrameSize(); in Layout() local 209 MinusPaddingToSize(padding, size); in Layout() 278 offset.SetX(size.Width() - offset.GetX() - childSize.Width()); in Layout() 346 if (crossCount_ != crossLens.size()) { in InitialItemsCrossSize() 347 crossCount_ = crossLens.size(); in InitialItemsCrossSize() 532 if (startLine->second.size() < crossCount_ && gridLayoutInfo_.startIndex_ > 0) { in FillOneLineForwardWithoutUpdatingStartIndex() 558 // use original size in order to add end spacing in ModifyCurrentOffsetWhenReachEnd() 614 if (mainIter != gridLayoutInfo_.gridMatrix_.end() && mainIter->second.size() < crossCount in FillBlankAtEnd() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/form/ |
H A D | form_pattern_test.cpp | 357 EXPECT_EQ(pattern->formChildrenNodeMap_.size(), 2); in HWTEST_F() 359 EXPECT_EQ(pattern->formChildrenNodeMap_.size(), 0); in HWTEST_F() 370 EXPECT_EQ(pattern->formChildrenNodeMap_.size(), 2); in HWTEST_F() 536 EXPECT_EQ(pattern->formManagerBridge_->pointerEventCache_.size(), 0); in HWTEST_F() 637 int32_t num = renderContext->GetHost()->GetChildren().size(); in HWTEST_F() 658 EXPECT_EQ(renderContext->GetHost()->GetChildren().size(), 1); in HWTEST_F() 723 auto size = layoutConstraint->selfIdealSize; in HWTEST_F() local 727 host->layoutProperty_->calcLayoutConstraint_->selfIdealSize = size; in HWTEST_F() 729 auto sizeWidth = size->Width(); in HWTEST_F() 751 auto size in HWTEST_F() local [all...] |
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessible_ability_manager_service.cpp | 540 if (callBack->elementInfosResult_.size() <= 0) { in FindFocusedElement() 668 HILOG_DEBUG("the size of caption property callbacks is %{public}zu", in RegisterCaptionObserver() 669 accountData->GetCaptionPropertyCallbacks().size()); in RegisterCaptionObserver() 747 HILOG_DEBUG("abilityes count is %{public}zu", abilities.size()); in GetAbilityList() 754 HILOG_DEBUG("infos count is %{public}zu", infos.size()); in GetAbilityList() 1443 while (ret != ERR_OK || accountIds.size() == 0) { in Init() 1454 if (accountIds.size() > 0) { in Init() 1936 HILOG_DEBUG("Get parent element success, size %{public}zu", infos.size()); in GetParentElementRecursively() 1955 if (GetParentElementRecursively(event.GetWindowId(), elementId, infos) == false || infos.size() in FindInnerWindowId() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/waterflow/ |
H A D | water_flow_sw_layout_test.cpp | 50 EXPECT_EQ(info_->lanes_[0][0].items_.size(), 2); in HWTEST_F() 184 EXPECT_EQ(info_->lanes_[0][0].items_.size(), 1); in HWTEST_F() 186 EXPECT_EQ(info_->lanes_[0][1].items_.size(), 2); in HWTEST_F() 189 EXPECT_EQ(info_->lanes_[0][2].items_.size(), 2); in HWTEST_F() 816 EXPECT_EQ(info_->segmentTails_.size(), 1); in HWTEST_F() 817 EXPECT_EQ(info_->margins_.size(), 1); in HWTEST_F() 1808 auto sectionLength = secObj->GetSectionInfo().size(); in HWTEST_F() 1827 EXPECT_EQ(info_->lanes_.size(), 7); in HWTEST_F() 1828 EXPECT_EQ(info_->idxToLane_.size(), 8); in HWTEST_F() 1829 EXPECT_EQ(info_->segmentTails_.size(), in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | text_testtwo_ng.cpp | 403 * @tc.expected: The imageNodeList_ size is equal to 1. in HWTEST_F() 406 EXPECT_EQ(textPattern->imageNodeList_.size(), 1); in HWTEST_F() 439 * @tc.expected: The imageNodeList_ size is equal to 10. in HWTEST_F() 442 EXPECT_EQ(textPattern->imageNodeList_.size(), 10); in HWTEST_F() 475 * @tc.expected: The imageNodeList_ size is equal to 100. in HWTEST_F() 478 EXPECT_EQ(textPattern->imageNodeList_.size(), 100); in HWTEST_F() 498 * @tc.expected: The imageNodeList_ size is equal to 0. in HWTEST_F() 500 EXPECT_EQ(textPattern->imageNodeList_.size(), 0); in HWTEST_F() 526 * @tc.expected: The imageNodeList_ size is equal to 1. in HWTEST_F() 529 EXPECT_EQ(textPattern->imageNodeList_.size(), in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/classic/ |
H A D | classic_adapter.cpp | 1389 while ((value.size() - offset) > 1) { in Parser16BitUuidFromEir() 1391 if (unitLen <= (value.size() - offset)) { in Parser16BitUuidFromEir() 1414 while ((value.size() - offset) > 1) { in Parser32BitUuidFromEir() 1416 if (unitLen <= (value.size() - offset)) { in Parser32BitUuidFromEir() 1439 while ((value.size() - offset) > 1) { in Parser128BitUuidFromEir() 1440 if (UUID128_BYTES_TYPE <= (value.size() - offset)) { in Parser128BitUuidFromEir() 1476 if (uuids1.size() != uuids2.size()) { in IsUuidsEqual() 2151 if (memcpy_s(key, linkKey.size(), &linkKey[0], linkKey.size()) ! in SetLinkKey() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/interrupt/ |
H A D | audio_interrupt_service.cpp | 118 AUDIO_DEBUG_LOG("configuration loaded. mapSize: %{public}zu", focusCfgMap_.size()); in Init() 1215 if ((incomingConcurrentSources.size() > 0 && existSourceType >= 0 && find(incomingConcurrentSources.begin(), in IsAudioSourceConcurrency() 1217 (existConcurrentSources.size() > 0 && incomingSourceType >= 0 && find(existConcurrentSources.begin(), in IsAudioSourceConcurrency() 1284 if (audioInterrupt.currencySources.sourcesTypes.size() == 1 && in IsLowestPriorityRecording() 1303 if (IsRecordingInterruption(incomingInterrupt) && incomingConcurrentSources.size() != 0 && in CheckIncommingFoucsValidity() 1718 if (audioInterruptZone != nullptr && pids.size() == audioInterruptZone->pids.size()) { in HitZoneIdHaveTheSamePidsZone() 1943 zonesMap_.size()); in AudioInterruptZoneDump() 1949 AppendFormat(dumpString, " - Pids size: %zu\n", audioInterruptZoneDump->pids.size()); in AudioInterruptZoneDump() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service/unittest/pipeline/ |
H A D | rs_uni_render_util_test.cpp | 435 * @tc.desc: Test ClearSurfaceIfNeed when oldChildren.size > 0 655 ASSERT_EQ(0, mainThreadNodes.size()); in HWTEST_F() 658 ASSERT_EQ(1, mainThreadNodes.size()); in HWTEST_F() 670 ASSERT_EQ(0, mainThreadNodes.size()); in HWTEST_F() 674 ASSERT_EQ(1, mainThreadNodes.size()); in HWTEST_F() 687 ASSERT_EQ(0, subThreadNodes.size()); in HWTEST_F() 690 ASSERT_EQ(1, subThreadNodes.size()); in HWTEST_F() 705 ASSERT_EQ(1, subThreadNodes.size()); in HWTEST_F() 1289 EXPECT_EQ(subThreadNodes.size(), 4); in HWTEST_F() 1322 EXPECT_EQ(oldSubThreadNodes.size(), in HWTEST_F() [all...] |
/foundation/multimodalinput/input/frameworks/native/input/ |
H A D | oh_input_manager.cpp | 1781 void OH_Input_SetPreKeys(Input_Hotkey *hotkey, int32_t *preKeys, int32_t size) in OH_Input_SetPreKeys() argument 1786 if (size <= 0) { in OH_Input_SetPreKeys() 1791 for (int32_t i = 0; i < size; ++i) { in OH_Input_SetPreKeys() 1888 if (preKeys.size() > PRE_KEYS_SIZE) { in MakeHotkeyInfo() 1889 MMI_HILOGE("PreKeys size invalid"); in MakeHotkeyInfo() 1961 if (items.size() > KEYS_SIZE || keyEvent->GetKeyAction() != OHOS::MMI::KeyEvent::KEY_ACTION_DOWN) { in CheckHotkey() 2032 MMI_HILOGD("Callback list size:%{public}zu", list.size()); in HandleKeyEvent() 2106 MMI_HILOGD("Callback has been deleted, size:%{public}zu", infos.size()); in DelHotkeyMonitor() [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_session_manager_stub_test.cpp | 1418 int32_t size = 10; in HWTEST_F() local 1419 data.WriteInt32(size); in HWTEST_F() 1420 for (int32_t i = 0; i < size; i++) { in HWTEST_F() 1662 data.WriteUint32(uniqueScreenIds.size()); in HWTEST_F() 2115 int32_t size = 200; in HWTEST_F() local 2116 data.WriteInt32(size); in HWTEST_F() 2117 for (int32_t i = 0; i < size; i++) { in HWTEST_F() 2258 uint32_t size = 50; in HWTEST_F() local 2260 for (uint32_t i = 0; i < size; i++) { in HWTEST_F() 2263 data.WriteUint32(size); in HWTEST_F() 2284 uint32_t size = 0; HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/ata/ |
H A D | libahci.c | 49 size_t size); 51 ssize_t size); 98 const char *buf, size_t size); 322 "EM read buffer size too large: " in ahci_read_em_buffer() 323 "buffer size %u, page size %lu\n", in ahci_read_em_buffer() 344 const char *buf, size_t size) in ahci_store_em_buffer() 356 /* check size validity */ in ahci_store_em_buffer() 359 size % 4 || size > hpri in ahci_store_em_buffer() 342 ahci_store_em_buffer(struct device *dev, struct device_attribute *attr, const char *buf, size_t size) ahci_store_em_buffer() argument 1052 ahci_transmit_led_message(struct ata_port *ap, u32 state, ssize_t size) ahci_transmit_led_message() argument 1128 ahci_led_store(struct ata_port *ap, const char *buf, size_t size) ahci_led_store() argument [all...] |
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | atmel-sha.c | 364 u64 size[2]; in atmel_sha_fill_padding() local 366 size[0] = ctx->digcnt[0]; in atmel_sha_fill_padding() 367 size[1] = ctx->digcnt[1]; in atmel_sha_fill_padding() 369 size[0] += ctx->bufcnt; in atmel_sha_fill_padding() 370 if (size[0] < ctx->bufcnt) in atmel_sha_fill_padding() 371 size[1]++; in atmel_sha_fill_padding() 373 size[0] += length; in atmel_sha_fill_padding() 374 if (size[0] < length) in atmel_sha_fill_padding() 375 size[1]++; in atmel_sha_fill_padding() 377 bits[1] = cpu_to_be64(size[ in atmel_sha_fill_padding() [all...] |
H A D | sa2ul.c | 63 /* size of SCCTL structure in bytes */ 66 /* Max Authentication tag size */ 79 * @iv_size: Initialization Vector size 101 * @iv_out_size: iv out size 167 * @enc_iv_size: Initialisation vector size 183 * @size: total data to the xmitted via DMA 188 * @auth_size: size of the authentication data 198 * @mdata_size: metadata size passed to DMA 202 u16 size; member 450 /* work around to get the right inverse for AES_KEYSIZE_192 size key in sa_aes_inv_key() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/axis/ |
H A D | artpec6_crypto.c | 234 size_t size; member 602 size_t size, in artpec6_crypto_dma_map_page() 616 dma_addr = dma_map_page(dev, page, offset, size, dir); in artpec6_crypto_dma_map_page() 621 map->size = size; in artpec6_crypto_dma_map_page() 632 void *ptr, size_t size, in artpec6_crypto_dma_map_single() 639 return artpec6_crypto_dma_map_page(common, page, offset, size, dir, in artpec6_crypto_dma_map_single() 685 dma_unmap_page(dev, map->dma_addr, map->size, map->dir); in artpec6_crypto_dma_unmap_all() 797 struct artpec6_crypto_walk *walk, size_t size) in setup_bounce_buffer_in() 806 bbuf->length = size; in setup_bounce_buffer_in() 600 artpec6_crypto_dma_map_page(struct artpec6_crypto_req_common *common, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, dma_addr_t *dma_addr_out) artpec6_crypto_dma_map_page() argument 631 artpec6_crypto_dma_map_single(struct artpec6_crypto_req_common *common, void *ptr, size_t size, enum dma_data_direction dir, dma_addr_t *dma_addr_out) artpec6_crypto_dma_map_single() argument 796 setup_bounce_buffer_in(struct artpec6_crypto_req_common *common, struct artpec6_crypto_walk *walk, size_t size) setup_bounce_buffer_in() argument [all...] |
/kernel/linux/linux-5.10/drivers/md/ |
H A D | raid5-cache.c | 21 * metadata/data stored in disk with 4k size unit (a block) regardless 22 * underneath hardware sector size. only works with PAGE_SIZE == 4096 28 * log->max_free_space is min(1/4 disk size, 10G reclaimable space). 87 sector_t device_size; /* log device size, round to 90 * this size */ 238 struct bio_list flush_barriers; /* size == 0 flush bios */ 273 static bool r5l_has_free_space(struct r5l_log *log, sector_t size) in r5l_has_free_space() argument 280 return log->device_size > used_size + size; in r5l_has_free_space() 361 * or a full stripe (chunk size / 4k stripes). in r5c_check_cached_full_stripe() 756 * Note: for this to work properly the log size need in r5_reserve_log_entry() [all...] |
/kernel/linux/linux-5.10/drivers/md/bcache/ |
H A D | super.c | 79 pr_err("Bucket size (1 << %u) overflows\n", in get_bucket_size() 116 err = "Bad block size (not power of 2)"; in read_super_common() 120 err = "Bad block size (larger than page size)"; in read_super_common() 124 err = "Bad bucket size (not power of 2)"; in read_super_common() 128 err = "Bad bucket size (smaller than page size)"; in read_super_common() 196 pr_debug("read sb version %llu, flags %llu, seq %llu, journal size %u\n", in read_super() 217 err = "Superblock block size smaller than device block size"; in read_super() 506 unsigned int size; __uuid_write() local 1608 bch_flash_dev_create(struct cache_set *c, uint64_t size) bch_flash_dev_create() argument 2553 register_bcache(struct kobject *k, struct kobj_attribute *attr, const char *buffer, size_t size) register_bcache() argument 2693 bch_pending_bdevs_cleanup(struct kobject *k, struct kobj_attribute *attr, const char *buffer, size_t size) bch_pending_bdevs_cleanup() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 928 if (likely(ring->clean_index < ring->size - 1)) in __bcm_sysport_tx_reclaim() 1366 if (ring->curr_desc == ring->size) in bcm_sysport_xmit() 1500 size_t size; in bcm_sysport_init_tx_ring() local 1504 size = 256; in bcm_sysport_init_tx_ring() 1506 ring->cbs = kcalloc(size, sizeof(struct bcm_sysport_cb), GFP_KERNEL); in bcm_sysport_init_tx_ring() 1517 ring->size = size; in bcm_sysport_init_tx_ring() 1519 ring->alloc_size = ring->size; in bcm_sysport_init_tx_ring() 1520 ring->desc_count = ring->size; in bcm_sysport_init_tx_ring() 1540 /* Adjust the packet size calculation in bcm_sysport_init_tx_ring() [all...] |
H A D | b44.c | 1187 int size; in b44_alloc_consistent() local 1189 size = B44_RX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent() 1190 bp->rx_buffers = kzalloc(size, gfp); in b44_alloc_consistent() 1194 size = B44_TX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent() 1195 bp->tx_buffers = kzalloc(size, gfp); in b44_alloc_consistent() 1199 size = DMA_TABLE_BYTES; in b44_alloc_consistent() 1200 bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size, in b44_alloc_consistent() 1209 rx_ring = kzalloc(size, gfp); in b44_alloc_consistent() 1218 rx_ring_dma + size > DMA_BIT_MASK(30)) { in b44_alloc_consistent() 1228 bp->tx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size, in b44_alloc_consistent() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | dpt_i2o.c | 563 seq_printf(m, "\tpost fifo size = %d\n\treply fifo size = %d\n\tsg table size = %d\n\n", in adpt_show_info() 963 " %d at %p size=%x irq=%d%s\n", in adpt_install_hba() 971 printk(KERN_INFO" BAR0 %p - size= %x\n",base_addr_virt,hba_map0_area_size); in adpt_install_hba() 972 printk(KERN_INFO" BAR1 %p - size= %x\n",msg_addr_virt,hba_map1_area_size); in adpt_install_hba() 2530 writel(4096, &msg[4]); /* Host page frame size */ in adpt_i2o_init_outbound_q() 2531 writel((REPLY_FRAME_SIZE)<<16|0x80, &msg[5]); /* Outbound msg frame size and Initcode */ in adpt_i2o_init_outbound_q() 2673 // Calculate the Scatter Gather list size in adpt_i2o_status_get() 2968 int ret, size in adpt_i2o_hrt_get() local 3015 int size; adpt_i2o_query_scalar() local [all...] |
/kernel/linux/linux-5.10/drivers/tty/ |
H A D | n_gsm.c | 71 * Semi-arbitrary buffer size limits. 0710 is normally run with 32-64 byte 608 * Expand a buffer by bytestuffing it. The worst case size change 666 /* Stuffing may double the size worst case */ in gsm_send() 914 int h, len, size; in gsm_dlci_data_output() local 927 size = len + h; in gsm_dlci_data_output() 929 msg = gsm_data_alloc(gsm, dlci->addr, size, gsm->ftype); in gsm_dlci_data_output() 958 return size; in gsm_dlci_data_output() 978 int len, size; in gsm_dlci_data_output_framed() local 1007 size = len + overhead; in gsm_dlci_data_output_framed() 1008 msg = gsm_data_alloc(gsm, dlci->addr, size, gs in gsm_dlci_data_output_framed() 2910 gsm_mux_rx_netchar(struct gsm_dlci *dlci, const unsigned char *in_buf, int size) gsm_mux_rx_netchar() argument [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | block-group.c | 398 * a free extent of a given size, but this is a good start. 464 u64 extent_start, extent_end, size, total_added = 0; in add_new_free_space() local 478 size = extent_start - start; in add_new_free_space() 479 total_added += size; in add_new_free_space() 481 start, size); in add_new_free_space() 490 size = end - start; in add_new_free_space() 491 total_added += size; in add_new_free_space() 493 size); in add_new_free_space() 1658 * @stripe_len: size of IO stripe for the given block group 2155 u64 type, u64 chunk_offset, u64 size) in btrfs_make_block_group() 2154 btrfs_make_block_group(struct btrfs_trans_handle *trans, u64 bytes_used, u64 type, u64 chunk_offset, u64 size) btrfs_make_block_group() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/usb/uvc/ |
H A D | uvc_driver.c | 704 * value to 1.1x the actual frame size to hardwiring the in uvc_parse_format() 706 * memory usage as well as a wrong image size information. For in uvc_parse_format() 708 * value from the frame size. in uvc_parse_format() 786 unsigned int size, i, n, p; in uvc_parse_streaming() local 849 size = 9; in uvc_parse_streaming() 854 size = 13; in uvc_parse_streaming() 865 n = buflen >= size ? buffer[size-1] : 0; in uvc_parse_streaming() 867 if (buflen < size + p*n) { in uvc_parse_streaming() 887 streaming->header.bmaControls = kmemdup(&buffer[size], in uvc_parse_streaming() 1027 unsigned int size; uvc_alloc_entity() local [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/tidss/ |
H A D | tidss_dispc.c | 2008 /* For YUV422 format we use the macropixel size for pixel inc */ in dispc_plane_setup() 2108 u32 size = dispc_vid_get_fifo_size(dispc, hw_plane); in dispc_k2g_plane_init() local 2113 thr_high = size - 1; in dispc_k2g_plane_init() 2114 thr_low = size / 2; in dispc_k2g_plane_init() 2116 mflag_high = size * 2 / 3; in dispc_k2g_plane_init() 2117 mflag_low = size / 3; in dispc_k2g_plane_init() 2124 size, in dispc_k2g_plane_init() 2163 u32 size = dispc_vid_get_fifo_size(dispc, hw_plane); in dispc_k3_plane_init() local 2168 thr_high = size - 1; in dispc_k3_plane_init() 2169 thr_low = size / in dispc_k3_plane_init() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 944 if (likely(ring->clean_index < ring->size - 1)) in __bcm_sysport_tx_reclaim() 1382 if (ring->curr_desc == ring->size) in bcm_sysport_xmit() 1516 size_t size; in bcm_sysport_init_tx_ring() local 1520 size = 256; in bcm_sysport_init_tx_ring() 1522 ring->cbs = kcalloc(size, sizeof(struct bcm_sysport_cb), GFP_KERNEL); in bcm_sysport_init_tx_ring() 1533 ring->size = size; in bcm_sysport_init_tx_ring() 1535 ring->alloc_size = ring->size; in bcm_sysport_init_tx_ring() 1536 ring->desc_count = ring->size; in bcm_sysport_init_tx_ring() 1556 /* Adjust the packet size calculation in bcm_sysport_init_tx_ring() [all...] |
H A D | b44.c | 1166 int size; in b44_alloc_consistent() local 1168 size = B44_RX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent() 1169 bp->rx_buffers = kzalloc(size, gfp); in b44_alloc_consistent() 1173 size = B44_TX_RING_SIZE * sizeof(struct ring_info); in b44_alloc_consistent() 1174 bp->tx_buffers = kzalloc(size, gfp); in b44_alloc_consistent() 1178 size = DMA_TABLE_BYTES; in b44_alloc_consistent() 1179 bp->rx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size, in b44_alloc_consistent() 1188 rx_ring = kzalloc(size, gfp); in b44_alloc_consistent() 1197 rx_ring_dma + size > DMA_BIT_MASK(30)) { in b44_alloc_consistent() 1207 bp->tx_ring = dma_alloc_coherent(bp->sdev->dma_dev, size, in b44_alloc_consistent() [all...] |