/third_party/skia/tools/viewer/ |
H A D | SlideDir.cpp | 274 const auto size = kLabelSize / std::sqrt(dstXform.getScaleX() * dstXform.getScaleY()); in MakeLabel() local 277 text->setSize(size); in MakeLabel() 279 text->setPosition(pos + SkPoint::Make(0, size)); in MakeLabel() 430 const auto size = this->getDimensions(); in findCell() local 431 if (x < 0 || y < 0 || x >= size.width() || y >= size.height()) { in findCell()
|
/third_party/vixl/src/ |
H A D | pool-manager-impl.h | 60 // does not have a fixed size instruction set. In practice, the pc will be in Emit() 136 // the header size and alignment, as well as the number of bytes we are in ShouldSkipObject() 250 // after the existing pool (with a pessimistic size estimate). in MustEmit() 268 for (int i = static_cast<int>(objects_.size()) - 1; i >= 0; --i) { in MustEmit() 314 // Add the header size and header and footer max alignment to the maximum in RecalculateCheckpoint() 315 // pool size. in RecalculateCheckpoint() 319 int last_object_index = static_cast<int>(objects_.size()) - 1; in RecalculateCheckpoint() 321 // Bring back the checkpoint by the size of the current object, unless in RecalculateCheckpoint() 382 if (objects_.size() != 1) { in AddObjectReference() 517 // Iterate over objects and return their cumulative size in GetPoolSizeForTest() 519 int size = 0; GetPoolSizeForTest() local [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/white_box/ |
H A D | EGLImageWrappingTests.cpp | 129 size_t size) { in CreateEGLImage() 163 descriptor.size = {10, 10, 1}; in EGLImageValidationTests() 253 descriptor.size.depthOrArrayLayers = 2; in TEST_P() 273 descriptor.size.width = 11; in TEST_P() 283 descriptor.size.height = 11; in TEST_P() 310 textureDescriptor.size = {1, 1, 1}; in DoClearTest() 123 CreateEGLImage(uint32_t width, uint32_t height, GLenum internalFormat, GLenum format, GLenum type, void* data, size_t size) CreateEGLImage() argument
|
/third_party/protobuf/src/google/protobuf/io/ |
H A D | tokenizer.cc | 523 content->erase(content->size() - 2); in ConsumeBlockComment() 921 GOOGLE_LOG_IF(DFATAL, end - start != text.size() || *start == '-') in ParseFloat() 1039 const size_t text_size = text.size(); in ParseStringAppend() 1050 const size_t new_len = text_size + output->size(); in ParseStringAppend() 1116 for (int i = 0; i < s.size(); ++i) { in AllInClass() 1124 if (text.size() == 0) return false; in IsIdentifier()
|
/third_party/protobuf/java/core/src/main/java/com/google/protobuf/ |
H A D | MapField.java | 296 public int size() { in size() method in MapField.MutatabilityAwareMap 297 return delegate.size(); in size() 391 public int size() { in size() method in MapField.MutatabilityAwareMap.MutatabilityAwareCollection 392 return delegate.size(); in size() 488 public int size() { in size() method in MapField.MutatabilityAwareMap.MutatabilityAwareSet 489 return delegate.size(); in size()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/ |
H A D | cord_internal.h | 68 // The inlined size to use with absl::InlinedVector. 71 // the same value for their inlined size. The fact that they do is historical. 72 // It may be desirable for each to use a different inlined size optimized for 76 // the inlined vector size (47 exists for backward compatibility). 79 // Prefer copying blocks of at most this size, otherwise reference count. 187 // the current 'size to tag' encoding of 8 / 32 bytes. If a new tag is needed 190 // allocation size. (32 bytes as of now). 212 // that is the smallest supported flat node size. 216 // Otherwise, the node type is CordRepFlat and the tag is the encoded size. 288 : CordRep(RefcountAndFlags::Immortal{}, str.size()), in CordRepExternal() 515 set_inline_size(size_t size) set_inline_size() argument [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/random/ |
H A D | poisson_distribution_test.cc | 413 std::vector<int32_t> counts(cutoffs_.size(), 0); in ChiSquaredTestImpl() 421 std::vector<int32_t> e(expected_.size(), 0); in ChiSquaredTestImpl() 422 for (int i = 0; i < e.size(); i++) { in ChiSquaredTestImpl() 428 const int dof = static_cast<int>(counts.size()) - 1; in ChiSquaredTestImpl() 442 ABSL_INTERNAL_LOG(INFO, absl::StrCat("VALUES buckets=", counts.size(), in ChiSquaredTestImpl() 444 for (size_t i = 0; i < counts.size(); i++) { in ChiSquaredTestImpl()
|
/third_party/skia/modules/skunicode/src/ |
H A D | SkUnicode_icu.cpp | 349 auto str16 = SkUnicode::convertUtf8ToUtf16(str.c_str(), str.size()); 352 const auto upper16len = sk_u_strToUpper(nullptr, 0, (UChar*)(str16.c_str()), str16.size(), 360 sk_u_strToUpper((UChar*)(upper16.get()), SkToS32(upper16.size()), 361 (UChar*)(str16.c_str()), str16.size(), 366 return convertUtf16ToUtf8((char16_t*)upper16.get(), upper16.size()); 380 return SkUnicode_icu::extractWords((uint16_t*)utf16.c_str(), utf16.size(), locale, results);
|
/third_party/selinux/libselinux/src/ |
H A D | regex.c | 169 /* write serialized pattern's size */ in regex_writef() 440 size_t size; in regex_writef() local 443 /* determine the size of the pcre data in bytes */ in regex_writef() 444 rc = pcre_fullinfo(regex->regex, NULL, PCRE_INFO_SIZE, &size); in regex_writef() 449 to_write = size; in regex_writef() 460 /* determine the size of the pcre study info */ in regex_writef() 462 pcre_fullinfo(regex->regex, sd, PCRE_INFO_STUDYSIZE, &size); in regex_writef() 466 size = 0; in regex_writef() 469 to_write = size; in regex_writef()
|
/third_party/spirv-tools/source/opt/ |
H A D | loop_dependence_helpers.cpp | 219 if (loops.size() != 1) { in GetLoopForSubscriptPair() 220 PrintDebug("GetLoopForSubscriptPair found loops.size() != 1."); in GetLoopForSubscriptPair() 233 for (size_t loop_index = 0; loop_index < loops_.size(); ++loop_index) { in GetDistanceEntryForLoop() 343 return static_cast<int64_t>(loops.size()); in CountInductionVariables() 372 return static_cast<int64_t>(loops.size()); in CountInductionVariables() 444 for (size_t i = 0; i < loops_.size(); ++i) { in MarkUnsusedDistanceEntriesAsIrrelevant() 455 if (inductions.size() != 1) { in IsSupportedLoop()
|
H A D | ssa_rewrite_pass.cpp | 74 if (phi_args_.size() > 0) { in PrettyPrint() 166 assert(phi_candidate->phi_args().size() == 0 && in AddPhiOperands() 263 if (predecessors.size() == 1) { in GetReachingDef() 267 } else if (predecessors.size() > 1) { in GetReachingDef() 606 assert(phi_candidate->phi_args().size() > 0 && in FinalizePhiCandidate() 643 while (incomplete_phis_.size() > 0) { in FinalizePhiCandidates()
|
/third_party/spirv-tools/test/opt/loop_optimizations/ |
H A D | nested_loops.cpp | 40 spv_const_binary_t binary = {bin.data(), bin.size()}; in Validate() 204 EXPECT_EQ(expected_ids->size(), 0u); in CheckLoopBlocks() 733 EXPECT_EQ(pred_set.size(), 2u); in TEST_F() 747 EXPECT_EQ(pred_set.size(), 2u); in TEST_F() 764 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id()).size(), 1u); in TEST_F() 775 EXPECT_EQ(pred_set.size(), 2u); in TEST_F()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fShaderMetamorphicTests.cpp | 96 int size = resource->getSize(); in fileContents() local 99 data.resize(size + 1); in fileContents() 100 resource->read(&data[0], size); in fileContents() 101 data[size] = '\0'; in fileContents() 241 for (size_t variantNdx = 0; variantNdx < m_variantFilenames.size(); variantNdx++) in init() 279 for (deUint32 i = 0; i < sanityPixels.size(); i++) in sanityComparePixels()
|
/third_party/vk-gl-cts/modules/gles3/stress/ |
H A D | es3sLongShaderTests.cpp | 110 if (m_scopeIndices.size() < (size_t)m_currentScopeDepth) in beginScope() 248 DE_ASSERT(numVars < m_varNames.size()); 282 DE_ASSERT(varNames.size() > (size_t)numOps); 300 m_source += std::string(m_scopes.size(), '\t'); 336 m_varNames.erase((m_varNames.begin() + (m_varNames.size() - scope.size())), m_varNames.end());
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/robustness/ |
H A D | vktRobustnessIndexAccessTests.cpp | 128 const VkBufferCreateInfo vertexBufferInfo = makeBufferCreateInfo(vertices.size() * sizeof(float), VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT); in iterate() 130 deMemcpy(vertexBuffer.getAllocation().getHostPtr(), vertices.data(), vertices.size() * sizeof(float)); in iterate() 138 const VkBufferCreateInfo indexBufferInfo = makeBufferCreateInfo(index.size() * sizeof(deUint32), VK_BUFFER_USAGE_INDEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT); in iterate() 140 deMemcpy(indexBuffer.getAllocation().getHostPtr(), index.data(), index.size() * sizeof(deUint32)); in iterate() 146 (deUint32)index.size(), // indexCount in iterate() 229 vk.cmdDrawIndexed(*cmdBuffer, (deUint32)index.size(), 1, oobFirstIndex, 0, 0); in iterate()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/subgroups/ |
H A D | vktSubgroupsBallotTests.cpp | 820 TCU_THROW(NotSupportedError, "Device does not support varying subgroup sizes nor required subgroup size"); in supportedCheck() 826 TCU_THROW(NotSupportedError, "Required subgroup size is not supported for shader stage"); in supportedCheck() 908 log << TestLog::Message << "Testing required subgroup size range [" << subgroupSizeControlProperties.minSubgroupSize << ", " in test() 912 for (deUint32 size = subgroupSizeControlProperties.minSubgroupSize; size <= subgroupSizeControlProperties.maxSubgroupSize; size *= 2) in test() 917 result = subgroups::makeComputeTest(context, VK_FORMAT_R32_UINT, &inputData, 1, DE_NULL, checkComputeOrMesh, size); in test() 919 result = subgroups::makeMeshTest(context, VK_FORMAT_R32_UINT, &inputData, 1, DE_NULL, checkComputeOrMesh, size); in test() 923 log << TestLog::Message << "subgroupSize " << size << " failed" << TestLog::EndMessage; in test()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/synchronization/ |
H A D | vktGlobalPriorityQueueUtils.cpp | 154 res.priorityCount = static_cast<deUint32>(m_priorities.size()); 258 extensions.resize(filteredExtensions.size()); in SpecialDevice() 268 deviceCreateInfo.enabledExtensionCount = static_cast<deUint32>(extensions.size()); in SpecialDevice() 373 const VkDeviceSize lastChunkSize = m_requirements.size % m_requirements.alignment; in BufferWithMemory() 374 const uint32_t chunkCount = static_cast<uint32_t>(m_requirements.size / m_requirements.alignment + (lastChunkSize ? 1 : 0)); in BufferWithMemory() 391 binding.size = m_requirements.alignment; in BufferWithMemory()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationCommonEdgeTests.cpp | 319 std::reverse(gridIndices.begin() + (gridIndices.size() - 4), in test() 320 gridIndices.begin() + gridIndices.size()); in test() 326 DE_ASSERT(static_cast<int>(gridPosComps.size()) == totalNumPosComps); in test() 327 DE_ASSERT(static_cast<int>(gridTessParams.size()) == numVertices); in test() 328 DE_ASSERT(static_cast<int>(gridIndices.size()) == numIndices); in test() 422 vk.cmdDrawIndexed(*cmdBuffer, static_cast<deUint32>(gridIndices.size()), 1u, 0u, 0, 0u); in test()
|
/third_party/vk-gl-cts/modules/gles2/performance/ |
H A D | es2pTextureUploadTests.cpp | 148 m_testCtx.setTestResult(QP_TEST_RESULT_NOT_SUPPORTED, "Unsupported texture size"); in init() 243 m_log << TestLog::Message << "Texture size = " << m_texSize << "x" << m_texSize << "." << TestLog::EndMessage; in logResults() 244 m_log << TestLog::Message << "Viewport size = " << VIEWPORT_SIZE << "x" << VIEWPORT_SIZE << "." << TestLog::EndMessage; in logResults() 268 int numFrames = (int)measureState.frameTimes.size(); in logResults() 524 int size; in init() member 529 { 16, new TestCaseGroup(m_context, "16x16", "Texture size 16x16"), new TestCaseGroup(m_context, "16x16", "Texture size 16x16") }, in init() 530 { 256, new TestCaseGroup(m_context, "256x256", "Texture size 256x256"), new TestCaseGroup(m_context, "256x256", "Texture size 256x256") }, in init() 531 { 257, new TestCaseGroup(m_context, "257x257", "Texture size 25 in init() [all...] |
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 80 EXPECT_TRUE(languageSet.size() == 0); in HWTEST_F() 91 EXPECT_TRUE(regionSet.size() == 0); in HWTEST_F() 102 EXPECT_EQ(blockedRegionSet.size(), 0); in HWTEST_F() 143 for (auto i = preferredLanguageList.size() - 1; i > 0; --i) { in HWTEST_F() 160 EXPECT_EQ(list.size(), 2); in HWTEST_F() 171 for (auto i = preferredLanguageList.size() - 1; i > 0; --i) { in HWTEST_F() 215 EXPECT_EQ(indexList.size(), 28); in HWTEST_F() 347 EXPECT_EQ(languageInfos.size(), 4); in HWTEST_F() 350 EXPECT_EQ(countryInfos.size(), 4); in HWTEST_F() 352 EXPECT_TRUE(timezoneCityItemList.size() > in HWTEST_F() 573 size_t size = input.length(); HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/ |
H A D | farch.c | 784 /* For Falcon A1, EVQ_RPTR_KER is documented as having a step size in efx_farch_ev_read_ack() 1738 /* Set TX descriptor cache size. */ in efx_farch_init_common() 1743 /* Set RX descriptor cache size. Set low watermark to size-8, as in efx_farch_init_common() 1871 unsigned size; /* number of entries */ member 1955 if (table->size) { in efx_farch_filter_push_rx_config() 1967 if (table->size) { in efx_farch_filter_push_rx_config() 2015 if (table->size) { in efx_farch_filter_push_tx_limits() 2376 if (state->table[table_id].size != 0) in efx_farch_filter_get_rx_id_limit() 2378 state->table[table_id].size; in efx_farch_filter_get_rx_id_limit() 2705 efx_farch_filter_get_rx_ids(struct efx_nic *efx, enum efx_filter_priority priority, u32 *buf, u32 size) efx_farch_filter_get_rx_ids() argument [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/ath/wil6210/ |
H A D | txrx.c | 42 return ring->size / 8; in wil_ring_wmark_low() 48 return ring->size / 4; in wil_ring_wmark_high() 113 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_alloc() 122 vring->ctx = kcalloc(vring->size, sizeof(vring->ctx[0]), GFP_KERNEL); in wil_vring_alloc() 128 /* vring->va should be aligned on its size rounded up to power of 2 in wil_vring_alloc() 158 for (i = 0; i < vring->size; i++) { in wil_vring_alloc() 165 wil_dbg_misc(wil, "vring[%d] 0x%p:%pad 0x%p\n", vring->size, in wil_vring_alloc() 193 size_t sz = vring->size * sizeof(vring->va[0]); in wil_vring_free() 200 vring_index, vring->size, vring->va, in wil_vring_free() 204 vring->size, vrin in wil_vring_free() 1134 wil_vring_init_tx(struct wil6210_vif *vif, int id, int size, int cid, int tid) wil_vring_init_tx() argument 1319 wil_vring_init_bcast(struct wil6210_vif *vif, int id, int size) wil_vring_init_bcast() argument [all...] |
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
H A D | ebtables.c | 36 /* The size of each set of counters is altered to get cache alignment */ 924 * - the size of the allocated space is right in translate_table() 977 * the check on the size is done later, when we have the lock in do_replace_finish() 980 unsigned long size = repl->num_counters * sizeof(*counterstmp); in do_replace_finish() local 981 counterstmp = vmalloc(size); in do_replace_finish() 1527 unsigned int *size) in compat_match_to_user() 1551 *size -= ebt_compat_entry_padsize() + off; in compat_match_to_user() 1559 unsigned int *size) in compat_target_to_user() 1583 *size -= ebt_compat_entry_padsize() + off; in compat_target_to_user() 1591 unsigned int *size) in compat_watcher_to_user() 1526 compat_match_to_user(struct ebt_entry_match *m, void __user **dstptr, unsigned int *size) compat_match_to_user() argument 1557 compat_target_to_user(struct ebt_entry_target *t, void __user **dstptr, unsigned int *size) compat_target_to_user() argument 1589 compat_watcher_to_user(struct ebt_entry_watcher *w, void __user **dstptr, unsigned int *size) compat_watcher_to_user() argument 1597 compat_copy_entry_to_user(struct ebt_entry *e, void __user **dstptr, unsigned int *size) compat_copy_entry_to_user() argument 1724 unsigned int size = info->entries_size; compat_table_info() local 2041 unsigned int size; size_entry_mwt() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/ |
H A D | qcom_nandc.c | 178 * the largest page size we support is 8K, this will have 16 steps/codewords 252 * for current sgl. It will be used for size calculation 449 * @page_offset: size of the partition where spare data is not protected 483 * @boot_partitions: array of boot partitions where offset and size of the 941 int size, unsigned int flags) in prep_bam_dma_desc_cmd() 951 for (i = 0; i < size; i++) { in prep_bam_dma_desc_cmd() 965 bam_txn->bam_ce_pos += size; in prep_bam_dma_desc_cmd() 996 int size, unsigned int flags) in prep_bam_dma_desc_data() 1003 vaddr, size); in prep_bam_dma_desc_data() 1007 vaddr, size); in prep_bam_dma_desc_data() 939 prep_bam_dma_desc_cmd(struct qcom_nand_controller *nandc, bool read, int reg_off, const void *vaddr, int size, unsigned int flags) prep_bam_dma_desc_cmd() argument 994 prep_bam_dma_desc_data(struct qcom_nand_controller *nandc, bool read, const void *vaddr, int size, unsigned int flags) prep_bam_dma_desc_data() argument 1025 prep_adm_dma_desc(struct qcom_nand_controller *nandc, bool read, int reg_off, const void *vaddr, int size, bool flow_control) prep_adm_dma_desc() argument 1188 read_data_dma(struct qcom_nand_controller *nandc, int reg_off, const u8 *vaddr, int size, unsigned int flags) read_data_dma() argument 1206 write_data_dma(struct qcom_nand_controller *nandc, int reg_off, const u8 *vaddr, int size, unsigned int flags) write_data_dma() argument 1797 int size; copy_last_cw() local [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_cxt.c | 551 /* The segment is active (total size pf 'working' in qed_cxt_cfg_ilt_compute() 555 * 1. The total-size in the corrsponding FL block of in qed_cxt_cfg_ilt_compute() 782 p_t2->dma_mem[i].size, in qed_cxt_src_t2_free() 795 u32 size, i; in qed_cxt_t2_alloc_pages() local 801 size = min_t(u32, total_size, page_size); in qed_cxt_t2_alloc_pages() 805 size, in qed_cxt_t2_alloc_pages() 811 memset(*p_virt, 0, size); in qed_cxt_t2_alloc_pages() 812 p_t2->dma_mem[i].size = size; in qed_cxt_t2_alloc_pages() 813 total_size -= size; in qed_cxt_t2_alloc_pages() 909 u32 size = 0; qed_cxt_ilt_shadow_size() local 965 u32 size; qed_ilt_blk_alloc() local 993 u32 size, i, j, k; qed_ilt_shadow_alloc() local [all...] |