/third_party/skia/third_party/externals/dawn/src/tests/unittests/validation/ |
H A D | InternalUsageValidationTests.cpp | 24 textureDesc.size = {1, 1}; in TEST_F() 57 textureDesc.size = {1, 1}; in TEST_F() 81 textureDesc.size = {1, 1}; in TEST_F() 95 textureDesc.size = {1, 1}; in TEST_F() 121 textureDesc.size = {1, 1}; in TEST_F()
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
H A D | java_context.cc | 129 std::vector<bool> is_conflict(fields.size()); in InitializeFieldGeneratorInfoForFields() 130 std::vector<std::string> conflict_reason(fields.size()); in InitializeFieldGeneratorInfoForFields() 131 for (int i = 0; i < fields.size(); ++i) { in InitializeFieldGeneratorInfoForFields() 134 for (int j = i + 1; j < fields.size(); ++j) { in InitializeFieldGeneratorInfoForFields() 153 for (int i = 0; i < fields.size(); ++i) { in InitializeFieldGeneratorInfoForFields()
|
/third_party/protobuf/java/core/src/test/java/com/google/protobuf/ |
H A D | AbstractProto2SchemaTest.java | 173 int size = unknowns.getSerializedSize(); in unknownEnum() 174 byte[] output = new byte[size]; in unknownEnum() 187 assertEquals(1, singularEnum.size()); in unknownEnum() 196 assertEquals(1, repeatedEnum.size()); in unknownEnum() 205 assertEquals(1, packedRepeatedEnum.size()); in unknownEnum()
|
/third_party/protobuf/php/src/Google/Protobuf/Internal/ |
H A D | CodedInputStream.php | 99 // buffer size accordingly. 295 public function readRaw($size, &$buffer) 298 if ($this->bufferSize() < $size) { 302 if ($size === 0) { 305 $buffer = substr($this->buffer, $this->current, $size); 306 $this->advance($size);
|
/third_party/pulseaudio/src/tests/ |
H A D | hashmap-test.c | 56 ck_abort_msg("Hashmap reported wrong size; got %u, want 1", size_ret); in START_TEST() 68 ck_abort_msg("Hashmap reported wrong size; got %u, want 1", size_ret); in START_TEST() 76 ck_abort_msg("Hashmap reported wrong size; got %u, want 1", size_ret); in START_TEST() 89 unsigned size; in START_TEST() local 102 if ((size = pa_hashmap_size(map)) != 1000) { in START_TEST() 103 ck_abort_msg("Hashmap has wrong size; got %u, want 1000", size); in START_TEST() 108 if ((size = pa_hashmap_size(map)) != 0) { in START_TEST() 109 ck_abort_msg("Hashmap has wrong size; got %u, want 0", size); in START_TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/hash/internal/ |
H A D | spy_hash_state.h | 149 size_t size) { in combine_contiguous() 151 if (size > large_chunk_stride) { in combine_contiguous() 155 while (size >= large_chunk_stride) { in combine_contiguous() 159 size -= large_chunk_stride; in combine_contiguous() 164 reinterpret_cast<const char*>(begin), size); in combine_contiguous() local 147 combine_contiguous(SpyHashStateImpl hash_state, const unsigned char* begin, size_t size) combine_contiguous() argument
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | cord_ring_reader_test.cc | 45 CordRepRing* ring = CordRepRing::Create(MakeFlat(flats[0]), flats.size() - 1); in FromFlats() 46 for (int i = 1; i < flats.size(); ++i) { in FromFlats() 102 for (int i = 1; i < flats.size(); ++i) { in TEST() 130 for (int i = 0; i < flats.size(); ++i) { in TEST() 157 for (int i = flats.size() - 1; i >= 0; --i) { in TEST()
|
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/str_format/ |
H A D | bind.h | 51 : data_(s.data()), size_(s.size()) {} in UntypedFormatSpecImpl() 150 if (args.size() <= ABSL_ARRAYSIZE(few_args_)) { in Streamable() 151 for (size_t i = 0; i < args.size(); ++i) { in Streamable() 154 args_ = absl::MakeSpan(few_args_, args.size()); in Streamable() 170 // if args_.size() is 4 or less: 173 // if args_.size() is more than 4: 195 int SnprintF(char* output, size_t size, UntypedFormatSpecImpl format,
|
/third_party/skia/gm/ |
H A D | variedtext.cpp | 62 SkISize size = this->getISize(); variable 63 SkScalar w = SkIntToScalar(size.fWidth); 64 SkScalar h = SkIntToScalar(size.fHeight); 97 fFont.measureText(fStrings[i].c_str(), fStrings[i].size(), SkTextEncoding::kUTF8, &r); 126 canvas->drawSimpleText(fStrings[i].c_str(), fStrings[i].size(), SkTextEncoding::kUTF8,
|
/third_party/skia/modules/sksg/src/ |
H A D | SkSGColorFilter.cpp | 86 return (child && colors.size() > 1) in Make() 157 SkASSERT(colors.size() > 2); in MakeNColorGradient() 158 const auto span_count = colors.size() - 1; in MakeNColorGradient() 216 SkASSERT(fColors.size() > 1); in onRevalidateFilter() 217 auto gradientCF = (fColors.size() > 2) ? MakeNColorGradient(fColors) in onRevalidateFilter()
|
/third_party/skia/modules/skottie/src/layers/shapelayer/ |
H A D | FillStroke.cpp | 97 SkASSERT(jdash.size() > 1); in DashAdapter() 101 const auto interval_count = jdash.size() - 1; in DashAdapter() 104 for (size_t i = 0; i < jdash.size(); ++i) { in DashAdapter() 174 if (jdash && jdash->size() > 1) { in AdjustStrokeGeometry() 175 for (size_t i = 0; i < geos.size(); ++i) { in AdjustStrokeGeometry()
|
/third_party/selinux/libselinux/src/ |
H A D | procattr.c | 118 size_t size; in getprocattrcon_raw() local 163 size = selinux_page_size; in getprocattrcon_raw() 164 buf = malloc(size); in getprocattrcon_raw() 169 memset(buf, 0, size); in getprocattrcon_raw() 172 ret = read(fd, buf, size - 1); in getprocattrcon_raw()
|
/third_party/spirv-tools/source/fuzz/ |
H A D | fuzzer_pass_add_opphi_synonyms.cpp | 60 size_t num_preds = GetIRContext()->cfg()->preds(block.id()).size(); in Apply() 105 if (suitable_ids.size() > 1 && !pred_with_alternatives) { in Apply() 126 ids_chosen.size() == 1) { in Apply() 252 if (suitable_ids_found.size() >= distinct_ids_required) { in EquivalenceClassIsSuitableForBlock() 269 suitable_ids_found.size() >= distinct_ids_required; in EquivalenceClassIsSuitableForBlock()
|
/third_party/spirv-tools/test/reduce/ |
H A D | merge_blocks_test.cpp | 70 ASSERT_EQ(5, ops.size()); in TEST() 360 ASSERT_EQ(11, ops.size()); in TEST() 478 ASSERT_EQ(1, ops.size()); in TEST() 562 ASSERT_EQ(opportunities.size(), 2); in MergeBlocksReductionPassTest_LoopReturn_Helper() 680 ASSERT_EQ(1, ops.size()); in TEST()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ycbcr/ |
H A D | vktYCbCrImageOffsetTests.cpp | 70 const UVec2& size) in createImage() 79 vk::makeExtent3D(size.x(), size.y(), 1u), in createImage() 114 const VkDeviceSize offset = deAlign64(reqs.size, reqs.alignment); in imageOffsetTest() 115 reqs.size *= 2; in imageOffsetTest() 67 createImage(const vk::DeviceInterface& vkd, vk::VkDevice device, vk::VkFormat format, const UVec2& size) createImage() argument
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuFormatUtil.hpp | 193 int size; member in tcu::Format::ArrayPointer 195 ArrayPointer (const T* arr_, int size_) : arr(arr_), size(size_) {} in ArrayPointer() 216 return str << Array<const T*>(fmt.arr, fmt.arr+fmt.size); in operator <<() 281 inline Format::ArrayPointer<T> formatArray (const T* arr, int size) in formatArray() argument 283 return Format::ArrayPointer<T>(arr, size); in formatArray()
|
/third_party/vk-gl-cts/framework/egl/ |
H A D | egluCallLogWrapper.cpp | 55 deUint32 size; member in eglu::PointerFmt 57 PointerFmt (const T* arr_, deUint32 size_) : arr(arr_), size(size_) {} in PointerFmt() 66 for (deUint32 ndx = 0; ndx < fmt.size; ndx++) in operator <<() 80 inline PointerFmt<T> getPointerStr (const T* arr, deUint32 size) in getPointerStr() argument 82 return PointerFmt<T>(arr, size); in getPointerStr()
|
/third_party/skia/third_party/externals/angle2/src/libANGLE/capture/ |
H A D | trace_fixture.h | 76 if (mIDs.size() <= static_cast<size_t>(index)) in operator []() 147 void UpdateClientArrayPointer(int arrayIndex, const void *data, uint64_t size); 150 void UpdateClientBufferData(GLuint bufferID, const void *source, GLsizei size); 151 void UpdateClientBufferData2(GLuint bufferID, const void *source, GLsizei size); 154 GLsizei size,
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/ |
H A D | gltf2_exporter.cpp | 253 return static_cast<uint32_t>(handles.size() - 1); in FindOrAddIndex() 272 if ((bufferViewIndex + 1) > usedBufferViews_.size()) { in StoreBufferView() 277 auto const pad = buffer_.data.size() % dataAlignment; in StoreBufferView() 279 usedBufferViews_[bufferViewIndex]->byteOffset = buffer_.data.size(); in StoreBufferView() 299 if ((accessorIndex + 1) > usedAccessors_.size()) { in StoreAccessor() 343 if ((textureIndex + 1) >= usedTextures_.size()) { in GetTextureIndex() 369 samplerArray.reserve(usedSamplers_.size()); in GenerateGltfSamplers() 387 imageArray.reserve(usedImages_.size()); in GenerateGltfImages() 410 textureArray.reserve(usedTextures_.size()); in GenerateGltfTextures() 413 if (samplerImage.first < samplers.size()) { in GenerateGltfTextures() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/shaderexecutor/ |
H A D | vktShaderExecutor.cpp | 316 for (int outNdx = 0; outNdx < (int)shaderSpec.outputs.size(); ++outNdx) in generateFragShaderOutputDecl() 641 for (int inputNdx = 0; inputNdx < (int)m_shaderSpec.inputs.size(); inputNdx++) in FragmentOutExecutor() 755 const deUint32 binding = (deUint32)m_vertexBindingDescriptions.size(); in addAttribute() 787 inputSize, // VkDeviceSize size; in addAttribute() 809 for (int inputNdx = 0; inputNdx < (int)m_shaderSpec.inputs.size(); inputNdx++) in bindAttributes() 843 addAttribute((deUint32)m_vertexBindingDescriptions.size(), format, elementSize * vecSize, numValues, ptr); in bindAttributes() 949 addAttribute(0u, VK_FORMAT_R32G32_SFLOAT, sizeof(tcu::Vec2), (deUint32)positions.size(), &positions[0]); in execute() 969 for (int outNdx = 0; outNdx < (int)m_outputLayout.locationSymbols.size(); ++outNdx) in execute() 1031 (deUint32) (colorImages.size() - 1), // deUint32 attachment; in execute() 1121 (deUint32)colorImages.size(), // deUint3 in execute() 1643 const deUint32 size = (deUint32)glu::getDataTypeScalarSize(basicType) * (isDataTypeDoubleType(basicType) ? (int)(sizeof(deUint64)) : (isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); computeVarLayout() local 1784 const int size = (glu::isDataTypeDoubleType(basicType) ? (int)sizeof(deUint64) : (glu::isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); copyToBuffer() local 1830 const int size = (glu::isDataTypeDoubleType(basicType) ? (int)sizeof(deUint64) : (glu::isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); copyFromBuffer() local [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/shaderexecutor/ |
H A D | vktShaderExecutor.cpp | 316 for (int outNdx = 0; outNdx < (int)shaderSpec.outputs.size(); ++outNdx) in generateFragShaderOutputDecl() 641 for (int inputNdx = 0; inputNdx < (int)m_shaderSpec.inputs.size(); inputNdx++) in FragmentOutExecutor() 755 const deUint32 binding = (deUint32)m_vertexBindingDescriptions.size(); in addAttribute() 787 inputSize, // VkDeviceSize size; in addAttribute() 809 for (int inputNdx = 0; inputNdx < (int)m_shaderSpec.inputs.size(); inputNdx++) in bindAttributes() 843 addAttribute((deUint32)m_vertexBindingDescriptions.size(), format, elementSize * vecSize, numValues, ptr); in bindAttributes() 949 addAttribute(0u, VK_FORMAT_R32G32_SFLOAT, sizeof(tcu::Vec2), (deUint32)positions.size(), &positions[0]); in execute() 969 for (int outNdx = 0; outNdx < (int)m_outputLayout.locationSymbols.size(); ++outNdx) in execute() 1031 (deUint32) (colorImages.size() - 1), // deUint32 attachment; in execute() 1121 (deUint32)colorImages.size(), // deUint3 in execute() 1643 const deUint32 size = (deUint32)glu::getDataTypeScalarSize(basicType) * (isDataTypeDoubleType(basicType) ? (int)(sizeof(deUint64)) : (isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); computeVarLayout() local 1784 const int size = (glu::isDataTypeDoubleType(basicType) ? (int)sizeof(deUint64) : (glu::isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); copyToBuffer() local 1830 const int size = (glu::isDataTypeDoubleType(basicType) ? (int)sizeof(deUint64) : (glu::isDataTypeFloat16OrVec(basicType) ? (int)sizeof(deUint16) : (int)sizeof(deUint32))); copyFromBuffer() local [all...] |
/third_party/glslang/glslang/HLSL/ |
H A D | hlslParseHelper.cpp | 346 for (int comp=0; comp<int(seq.size()); ++comp) in handleLvalue() 529 if (tokens.size() == 0) in handlePragma() 539 if (tokens.size() == 4 && lowerTokens[0] == "pack_matrix" && tokens[1] == "(" && tokens[3] == ")") { in handlePragma() 580 for (size_t c = 0; c < compString.size(); ++c) { in parseMatrixSwizzleSelector() 586 if (c > compString.size() - 3 || in parseMatrixSwizzleSelector() 587 ((compString[c+1] == 'm' || compString[c+1] == 'M') && c > compString.size() - 4)) { in parseMatrixSwizzleSelector() 630 if (selector.size() != rows) in getMatrixComponentsColumn() 958 if (selectors.size() == 1) in handleDotDereference() 961 TType type(base->getBasicType(), EvqTemporary, selectors.size()); in handleDotDereference() 967 if (selectors.size() in handleDotDereference() 1332 const int size = type.getOuterArraySize(); flattenArray() local 3557 int size = 0; decomposeStructBufferMethods() local 3628 int size = 0; decomposeStructBufferMethods() local 3708 int size; decomposeStructBufferMethods() local 6615 int size = 0; constructorError() local 8395 lengthenList(const TSourceLoc& loc, TIntermSequence& list, int size, TIntermTyped* scalarInit) lengthenList() argument [all...] |
/foundation/multimedia/image_framework/plugins/common/libs/image/libextplugin/src/ |
H A D | ext_decoder.cpp | 267 IMAGE_LOGD("ExtDecoder::DmaMemAlloc sb stride is %{public}d, height is %{public}d, size is %{public}d",
in DmaMemAlloc() 328 IMAGE_LOGI("ExtDecoder::HeifYUVMemAlloc sb stride is %{public}d, height is %{public}d, size is %{public}d",
in HeapMemAlloc() 433 // calculate sample size and dst size for hardware decode
in HeapMemAlloc() 494 uint32_t ExtDecoder::GetImageSize(uint32_t index, Size &size)
in HeapMemAlloc() argument 507 size.width = static_cast<uint32_t>(info_.width());
in HeapMemAlloc() 508 size.height = static_cast<uint32_t>(info_.height());
in HeapMemAlloc() 512 static inline bool IsLowDownScale(const Size &size, SkImageInfo &info)
in HeapMemAlloc() argument 514 return size.width < info.width() &&
in HeapMemAlloc() 515 size in HeapMemAlloc() 1450 uint8_t size[SIZE_4]; HeapMemAlloc() member 1468 MatchColorSpaceName(const uint8_t* buf, uint32_t size, OHOS::ColorManager::ColorSpaceName &name) HeapMemAlloc() argument 1508 auto size = u8ToU32(tags[i].size); HeapMemAlloc() local 1799 ModifyImageProperty(uint32_t index, const std::string &key, const std::string &value, uint8_t *data, uint32_t size) HeapMemAlloc() argument [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | motion_est.c | 52 int size, int h); 107 const int size, const int h, int ref_index, int src_index, in cmp_direct_inline() 179 const int size, const int h, int ref_index, int src_index, in cmp_inline() 194 if (h << size == 16) { in cmp_inline() 195 c->qpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride); //FIXME prototype (add h) in cmp_inline() 196 } else if (size == 0 && h == 8) { in cmp_inline() 210 c->hpel_put[size][dxy](c->temp, ref[0] + x + y*stride, stride, h); in cmp_inline() 222 c->hpel_put[size+1][uvdxy](uvtemp , ref[1] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); in cmp_inline() 223 c->hpel_put[size+1][uvdxy](uvtemp+8, ref[2] + (x>>1) + (y>>1)*uvstride, uvstride, h>>1); in cmp_inline() 237 const int size, cons in cmp_fpel_internal() 106 cmp_direct_inline(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, int qpel) cmp_direct_inline() argument 178 cmp_inline(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, int qpel, int chroma) cmp_inline() argument 236 cmp_fpel_internal(MpegEncContext *s, const int x, const int y, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags) cmp_fpel_internal() argument 246 cmp_internal(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags) cmp_internal() argument 259 cmp(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags) cmp() argument 274 cmp_hpel(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags) cmp_hpel() argument 284 cmp_qpel(MpegEncContext *s, const int x, const int y, const int subx, const int suby, const int size, const int h, int ref_index, int src_index, me_cmp_func cmp_func, me_cmp_func chroma_cmp_func, const int flags) cmp_qpel() argument 394 sad_hpel_motion_search(MpegEncContext * s, int *mx_ptr, int *my_ptr, int dmin, int src_index, int ref_index, int size, int h) sad_hpel_motion_search() argument 576 const int size= 1; h263_mv4_search() local 744 const int size=0; interlaced_search() local 1178 check_bidir_mv(MpegEncContext * s, int motion_fx, int motion_fy, int motion_bx, int motion_by, int pred_fx, int pred_fy, int pred_bx, int pred_by, int size, int h) check_bidir_mv() argument [all...] |
/third_party/curl/lib/vssh/ |
H A D | libssh.c | 1241 curl_off_t size = attrs->size; in myssh_statemach_act() local 1242 if(size < 0) { in myssh_statemach_act() 1243 failf(data, "Bad file size (%" CURL_FORMAT_CURL_OFF_T ")", size); in myssh_statemach_act() 1247 data->state.resume_from = attrs->size; in myssh_statemach_act() 1334 /* now, decrease the size of the read */ in myssh_statemach_act() 1337 data->req.size = data->state.infilesize; in myssh_statemach_act() 1348 data->req.size = data->state.infilesize; in myssh_statemach_act() 1605 curl_off_t size; in myssh_statemach_act() local [all...] |