/foundation/multimedia/camera_framework/frameworks/native/ndk/impl/ |
H A D | preview_output_impl.cpp | 136 newProfile->size.width = previewOutputProfile->GetSize().width; in GetActiveProfile() 137 newProfile->size.height = previewOutputProfile->GetSize().height; in GetActiveProfile() 143 Camera_ErrorCode Camera_PreviewOutput::GetSupportedFrameRates(Camera_FrameRateRange** frameRateRange, uint32_t* size) in GetSupportedFrameRates() argument 146 if (frameRate.size() == 0) { in GetSupportedFrameRates() 147 *size = 0; in GetSupportedFrameRates() 151 Camera_FrameRateRange* newframeRateRange = new Camera_FrameRateRange[frameRate.size()]; in GetSupportedFrameRates() 155 for (size_t index = 0; index < frameRate.size(); ++index) { in GetSupportedFrameRates() 156 if (frameRate[index].size() <= 1) { in GetSupportedFrameRates() 157 MEDIA_ERR_LOG("invalid frameRate size!"); in GetSupportedFrameRates() 167 *size in GetSupportedFrameRates() [all...] |
/foundation/communication/netstack/interfaces/innerkits/rust/ylong_http_client/src/reqwest_impl/async_impl/uploader/ |
H A D | multipart.rs | 101 let mut size = 0u64; in total_bytes() variables 103 size += part.length?; in total_bytes() 106 size += 2 + self.boundary.len() as u64 + 2; in total_bytes() 109 size += 30; in total_bytes() 113 size += 9 + name.len() as u64; in total_bytes() 118 size += 13 + name.len() as u64; in total_bytes() 122 size += 2; in total_bytes() 126 size += 16 + mime.len() as u64; in total_bytes() 130 size += 2 + 2; in total_bytes() 133 size in total_bytes() [all...] |
/third_party/curl/tests/http/clients/ |
H A D | h2-upgrade-extreme.c | 60 char *data, size_t size, in debug_cb() 87 if(size > 0) { in debug_cb() 90 for(i = 0; i < size - 1; i++) { in debug_cb() 104 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 111 (void)fwrite(data, size, 1, output); in debug_cb() 112 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 122 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb() 136 static size_t write_cb(char *ptr, size_t size, size_ argument 59 debug_cb(CURL *handle, curl_infotype type, char *data, size_t size, void *userdata) debug_cb() argument [all...] |
H A D | tls-session-reuse.c | 61 char *data, size_t size, in debug_cb() 88 if(size > 0) { in debug_cb() 91 for(i = 0; i < size - 1; i++) { in debug_cb() 105 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 112 (void)fwrite(data, size, 1, output); in debug_cb() 113 newl = (size && (data[size - 1] != '\n')) ? 1 : 0; in debug_cb() 123 fprintf(output, "[%ld bytes data]\n", (long)size); in debug_cb() 137 static size_t write_cb(char *ptr, size_t size, size_ argument 60 debug_cb(CURL *handle, curl_infotype type, char *data, size_t size, void *userdata) debug_cb() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | rtpdec_qcelp.c | 30 int size; member 43 /* The maximum packet size, 10 frames of 35 bytes each, and one 69 av_log(ctx, AV_LOG_ERROR, "Invalid interleave size %d\n", in store_packet() 80 /* First packet, or changed interleave size */ in store_packet() 84 data->group[i].size = 0; in store_packet() 98 data->group[data->interleave_index].size = 0; in store_packet() 115 data->group[data->interleave_index].size = 0; in store_packet() 134 ip->size = len - 1 - frame_size; in store_packet() 136 memcpy(ip->data, &buf[1 + frame_size], ip->size); in store_packet() 140 data->group_finished = ip->size in store_packet() [all...] |
H A D | segafilmenc.c | 50 int encoded_buf_size, size = pkt->size; in film_write_packet() local 57 * then adjust the cvid header to accommodate for the extra size */ in film_write_packet() 61 if (encoded_buf_size != pkt->size && (pkt->size % encoded_buf_size) != 0) { in film_write_packet() 62 avio_write(pb, pkt->data, pkt->size); in film_write_packet() 64 /* In Sega Cinepak, the reported size in the Cinepak header is in film_write_packet() 65 * 8 bytes too short. However, the size in the STAB section of the header in film_write_packet() 67 AV_WB24(&pkt->data[1], pkt->size - 8 + 2); in film_write_packet() 68 size in film_write_packet() [all...] |
/third_party/gn/src/gn/ |
H A D | command_check.cc | 183 if (args.size() != 1 && args.size() != 2) { in RunCheck() 205 if (args.size() > 1) { in RunCheck() 217 if (target_matches.size() == 0) { in RunCheck() 229 filtered_by_build_config = targets_to_check.size() != all_targets.size(); in RunCheck() 233 filtered_by_build_config = targets_to_check.size() != all_targets.size(); in RunCheck() 256 static_cast<int>(targets_to_check.size()), in RunCheck() 257 static_cast<int>(all_targets.size()))); in RunCheck() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/util/ |
H A D | TestUtilities.java | 32 int size = 1000; in TestCollectionUtilitySpeed() 36 for (int i = 0; i < size; ++i) { in TestCollectionUtilitySpeed() 111 checkContainment(a.size() == 0 && b.size() == 0, a, relation, b); in TestCollectionUtilities() 114 checkContainment(a.size() == 0 && b.size() != 0, a, relation, b); in TestCollectionUtilities() 117 checkContainment(a.equals(b) && a.size() != 0, a, relation, b); in TestCollectionUtilities() 120 checkContainment(a.size() != 0 && b.size() == 0, a, relation, b); in TestCollectionUtilities() 126 checkContainment(!CollectionUtilities.containsSome(a, b) && a.size() ! in TestCollectionUtilities() [all...] |
/third_party/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/util/ |
H A D | TestUtilities.java | 29 int size = 1000; in TestCollectionUtilitySpeed() 33 for (int i = 0; i < size; ++i) { in TestCollectionUtilitySpeed() 108 checkContainment(a.size() == 0 && b.size() == 0, a, relation, b); in TestCollectionUtilities() 111 checkContainment(a.size() == 0 && b.size() != 0, a, relation, b); in TestCollectionUtilities() 114 checkContainment(a.equals(b) && a.size() != 0, a, relation, b); in TestCollectionUtilities() 117 checkContainment(a.size() != 0 && b.size() == 0, a, relation, b); in TestCollectionUtilities() 123 checkContainment(!CollectionUtilities.containsSome(a, b) && a.size() ! in TestCollectionUtilities() [all...] |
/third_party/libuv/src/ |
H A D | inet.c | 29 static int inet_ntop4(const unsigned char *src, char *dst, size_t size); 30 static int inet_ntop6(const unsigned char *src, char *dst, size_t size); 35 int uv_inet_ntop(int af, const void* src, char* dst, size_t size) { in uv_inet_ntop() argument 38 return (inet_ntop4(src, dst, size)); in uv_inet_ntop() 40 return (inet_ntop6(src, dst, size)); in uv_inet_ntop() 48 static int inet_ntop4(const unsigned char *src, char *dst, size_t size) { in inet_ntop4() argument 54 if (l <= 0 || (size_t) l >= size) { in inet_ntop4() 57 uv__strscpy(dst, tmp, size); in inet_ntop4() 62 static int inet_ntop6(const unsigned char *src, char *dst, size_t size) { in inet_ntop6() argument 65 * to contain a value of the specified size in inet_ntop6() [all...] |
/third_party/json/tests/thirdparty/Fuzzer/ |
H A D | FuzzerCorpus.h | 49 size_t size() const { return Inputs.size(); } in size() function in fuzzer::InputCorpus 53 Res += II->U.size(); in SizeInBytes() 68 Printf("ADD_TO_CORPUS %zd NF %zd\n", Inputs.size(), NumFeatures); in AddToCorpus() 69 ComputeSHA1(U.data(), U.size(), Hash); in AddToCorpus() 94 assert(Idx < Inputs.size()); in ChooseUnitIdxToMutate() 99 for (size_t i = 0; i < Inputs.size(); i++) { 102 Sha1ToString(II.Sha1).c_str(), II.U.size(), 113 for (size_t i = 0; i < Inputs.size(); i++) 143 SmallestElementPerFeature[Idx] = Inputs.size(); [all...] |
/third_party/mesa3d/src/intel/dev/ |
H A D | intel_dev_info.c | 54 if (devinfo->mem.sram.mappable.size > 0 || in print_regions_info() 55 devinfo->mem.sram.unmappable.size > 0) { in print_regions_info() 62 devinfo->mem.sram.mappable.size); in print_regions_info() 65 if (devinfo->mem.sram.unmappable.size > 0) { in print_regions_info() 67 devinfo->mem.sram.unmappable.size); in print_regions_info() 73 if (devinfo->mem.vram.mappable.size > 0 || in print_regions_info() 74 devinfo->mem.vram.unmappable.size > 0) { in print_regions_info() 81 devinfo->mem.vram.mappable.size); in print_regions_info() 84 if (devinfo->mem.vram.unmappable.size > 0) { in print_regions_info() 86 devinfo->mem.vram.unmappable.size); in print_regions_info() [all...] |
/third_party/ltp/testcases/kernel/mem/hugetlb/hugemmap/ |
H A D | hugemmap05.c | 63 static long size = NR_HPAGES, length = (NR_HPAGES + NR_HPAGES/2) * 2; variable 94 length / 2 - size)) in test_overcommit() 107 "HugePages_Surp", length / 2 - size)) in test_overcommit() 129 length / 2 - size)) in test_overcommit() 142 "HugePages_Surp", length / 2 - size)) in test_overcommit() 200 size = atoi(opt_alloc); in setup() 201 length = (size + size * 0.5) * 2; in setup() 214 SAFE_FILE_PRINTF(path, "%ld", size); in setup() 216 if (hpages != size) in setup() [all...] |
/third_party/mesa3d/src/glx/ |
H A D | indirect_vertex_program.c | 65 get_parameter(unsigned opcode, unsigned size, GLenum target, GLuint index, in get_parameter() argument 81 (void) __glXReadReply(dpy, size, params, GL_FALSE); in get_parameter() 206 if (reply.size != 0) { in __indirect_glGetVertexAttribiv() 214 if (reply.size == 1) { in __indirect_glGetVertexAttribiv() 218 _XRead(dpy, (void *) params, 4 * reply.size); in __indirect_glGetVertexAttribiv() 240 if (reply.size != 0) { in __indirect_glGetVertexAttribfv() 248 if (reply.size == 1) { in __indirect_glGetVertexAttribfv() 252 _XRead(dpy, (void *) params, 4 * reply.size); in __indirect_glGetVertexAttribfv() 274 if (reply.size != 0) { in __indirect_glGetVertexAttribdv() 282 if (reply.size in __indirect_glGetVertexAttribdv() [all...] |
/third_party/node/deps/openssl/openssl/crypto/asn1/ |
H A D | x_int64.c | 24 * We abuse the ASN1_ITEM fields |size| as a flags field 60 if ((it->size & INTxx_FLAG_ZERO_DEFAULT) == INTxx_FLAG_ZERO_DEFAULT in uint64_i2c() 63 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_i2c() 96 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i() 100 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_c2i() 117 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED) in uint64_print() 155 if ((it->size & INTxx_FLAG_ZERO_DEFAULT) == INTxx_FLAG_ZERO_DEFAULT in uint32_i2c() 158 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint32_i2c() 199 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint32_c2i() 210 if (((it->size in uint32_c2i() [all...] |
/third_party/node/deps/uv/src/ |
H A D | inet.c | 34 static int inet_ntop4(const unsigned char *src, char *dst, size_t size); 35 static int inet_ntop6(const unsigned char *src, char *dst, size_t size); 40 int uv_inet_ntop(int af, const void* src, char* dst, size_t size) { in uv_inet_ntop() argument 43 return (inet_ntop4(src, dst, size)); in uv_inet_ntop() 45 return (inet_ntop6(src, dst, size)); in uv_inet_ntop() 53 static int inet_ntop4(const unsigned char *src, char *dst, size_t size) { in inet_ntop4() argument 59 if (l <= 0 || (size_t) l >= size) { in inet_ntop4() 62 uv__strscpy(dst, tmp, size); in inet_ntop4() 67 static int inet_ntop6(const unsigned char *src, char *dst, size_t size) { in inet_ntop6() argument 70 * to contain a value of the specified size in inet_ntop6() [all...] |
/third_party/openssl/crypto/asn1/ |
H A D | x_int64.c | 24 * We abuse the ASN1_ITEM fields |size| as a flags field 60 if ((it->size & INTxx_FLAG_ZERO_DEFAULT) == INTxx_FLAG_ZERO_DEFAULT in uint64_i2c() 63 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_i2c() 96 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint64_c2i() 100 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint64_c2i() 117 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED) in uint64_print() 155 if ((it->size & INTxx_FLAG_ZERO_DEFAULT) == INTxx_FLAG_ZERO_DEFAULT in uint32_i2c() 158 if ((it->size & INTxx_FLAG_SIGNED) == INTxx_FLAG_SIGNED in uint32_i2c() 199 if ((it->size & INTxx_FLAG_SIGNED) == 0 && neg) { in uint32_c2i() 210 if (((it->size in uint32_c2i() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DebugLocStream.h | 60 size_t getNumLists() const { return Lists.size(); } in getNumLists() 81 size_t LI = Lists.size(); in startList() 82 Lists.emplace_back(CU, Entries.size()); in startList() 99 Entries.push_back({BeginSym, EndSym, DWARFBytes.size(), Comments.size()}); in startEntry() 139 if (LI + 1 == Lists.size()) in getNumEntries() 140 return Entries.size() - Lists[LI].EntryOffset; in getNumEntries() 144 if (EI + 1 == Entries.size()) in getNumBytes() 145 return DWARFBytes.size() - Entries[EI].ByteOffset; in getNumBytes() 149 if (EI + 1 == Entries.size()) in getNumComments() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | MemoryObjectVk.cpp | 111 GLuint64 size, in importFd() 120 return importOpaqueFd(contextVk, size, fd); in importFd() 129 GLuint64 size, in importZirconHandle() 138 return importZirconVmo(contextVk, size, handle); in importZirconHandle() 146 angle::Result MemoryObjectVk::importOpaqueFd(ContextVk *contextVk, GLuint64 size, GLint fd) in importOpaqueFd() argument 153 mSize = size; in importOpaqueFd() 157 angle::Result MemoryObjectVk::importZirconVmo(ContextVk *contextVk, GLuint64 size, GLuint handle) in importZirconVmo() argument 164 mSize = size; in importZirconVmo() 172 const gl::Extents &size, in createImage() 198 gl_vk::GetExtentsAndLayerCount(type, size, in createImage() 110 importFd(gl::Context *context, GLuint64 size, gl::HandleType handleType, GLint fd) importFd() argument 128 importZirconHandle(gl::Context *context, GLuint64 size, gl::HandleType handleType, GLuint handle) importZirconHandle() argument 168 createImage(ContextVk *contextVk, gl::TextureType type, size_t levels, GLenum internalFormat, const gl::Extents &size, GLuint64 offset, vk::ImageHelper *image, GLbitfield createFlags, GLbitfield usageFlags, const void *imageCreateInfoPNext) createImage() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/src/Vulkan/ |
H A D | VkDescriptorPool.cpp | 47 size_t size = pCreateInfo->maxSets * sw::align(sizeof(DescriptorSetHeader), 16); in ComputeRequiredAllocationSize() local 51 size += pCreateInfo->pPoolSizes[i].descriptorCount * in ComputeRequiredAllocationSize() 55 return size; in ComputeRequiredAllocationSize() 79 uint8_t *DescriptorPool::findAvailableMemory(size_t size) in findAvailableMemory() argument 89 ptrdiff_t nextItemStart = itemStart + itLast->size; in findAvailableMemory() 91 if(freeSpace >= size) in findAvailableMemory() 99 if(freeSpace >= size) in findAvailableMemory() 110 uint8_t *freeSpaceStart = it->set + it->size; in findAvailableMemory() 112 if(freeSpace >= size) in findAvailableMemory() 208 totalFreeSize += poolSize - ((itLast->set - pool) + itLast->size); in computeTotalFreeSize() [all...] |
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/bitmap/ |
H A D | IndexSubTableFormat1.java | 59 Offset.indexSubTable1_offsetArray.offset + loca * FontData.DataSize.ULONG.size()); in loca() 84 * FontData.DataSize.ULONG.size(); in dataLength() 101 return this.getOffsetArray().size() - 1; in numGlyphs() 141 Offset.indexSubTable1_offsetArray.offset + i * FontData.DataSize.ULONG.size())); in initialize() 212 return Offset.indexSubHeaderLength.offset + this.offsetArray.size() in subDataSizeToSerialize() 213 * FontData.DataSize.ULONG.size(); in subDataSizeToSerialize() 226 int size = super.serializeIndexSubHeader(newData); in subSerialize() 228 size += this.internalReadData().slice(Offset.indexSubTable1_offsetArray.offset).copyTo( in subSerialize() 232 size += newData.writeULong(size, loc in subSerialize() [all...] |
/third_party/skia/third_party/externals/dawn/src/dawn_node/binding/ |
H A D | GPUCommandEncoder.cpp | 64 interop::GPUSize64 size) { in copyBufferToBuffer() 74 enc_.CopyBufferToBuffer(src, sourceOffset, dst, destinationOffset, size); in copyBufferToBuffer() 85 wgpu::Extent3D size{}; in copyBufferToTexture() 88 !conv(size, copySize)) { in copyBufferToTexture() 92 enc_.CopyBufferToTexture(&src, &dst, &size); in copyBufferToTexture() 103 wgpu::Extent3D size{}; in copyTextureToBuffer() 106 !conv(size, copySize)) { in copyTextureToBuffer() 110 enc_.CopyTextureToBuffer(&src, &dst, &size); in copyTextureToBuffer() 121 wgpu::Extent3D size{}; in copyTextureToTexture() 124 !conv(size, copySiz in copyTextureToTexture() 59 copyBufferToBuffer(Napi::Env env, interop::Interface<interop::GPUBuffer> source, interop::GPUSize64 sourceOffset, interop::Interface<interop::GPUBuffer> destination, interop::GPUSize64 destinationOffset, interop::GPUSize64 size) copyBufferToBuffer() argument [all...] |
/third_party/skia/third_party/externals/sfntly/cpp/src/sfntly/table/truetype/ |
H A D | loca_table.cc | 157 return GetLocaList()->size(); in NumLocas() 180 return loca_.size() * DataSize::kULONG; in SubDataSizeToSerialize() 182 return loca_.size() * DataSize::kUSHORT; in SubDataSizeToSerialize() 190 int32_t size = 0; in SubSerialize() local 194 size += new_data->WriteULong(size, *l); in SubSerialize() 196 size += new_data->WriteUShort(size, *l / 2); in SubSerialize() 199 num_glyphs_ = loca_.size() - 1; in SubSerialize() 200 return size; in SubSerialize() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/bloat/ |
H A D | webtreemap.js | 115 var size = node.data['$area']; 116 if (size < rmin) 117 rmin = size; 118 if (size > rmax) 119 rmax = size; 120 rsum += size; 129 rsum -= size; // Undo size addition from just above. 187 var size = child.data['$area']; 188 var frac = size / rsu [all...] |
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/src/ |
H A D | bundle_util.cpp | 54 static void *CJsonBmsMalloc(size_t size) in CJsonBmsMalloc() argument 56 return OhosMalloc(MEM_TYPE_CJSON_LSRAM, size); in CJsonBmsMalloc() 250 HILOG_ERROR(HILOG_MODULE_AAFWK, "[BMS] After get folder size, list is still not empty"); in GetFileFolderSize() 363 int32_t size = strlen(str[i]); in Strscat() local 364 if (memcpy_s(pos, strSize + 1 - count, str[i], size) != EOK) { in Strscat() 368 count += size; in Strscat() 369 pos += size; in Strscat() 378 int32_t size = 0; in GetJsonStream() local 387 if (stat(path, &fileInfo) != 0 || (size = fileInfo.st_size) <= 0) { in GetJsonStream() 398 if (size > MAX_JSON_SIZ in GetJsonStream() 658 cJSON *size = cJSON_CreateNumber(0); ObtainUidAndGidJson() local 676 AddUidAndGidInfo(const InstallRecord &installRecord, cJSON *size, cJSON *uids) AddUidAndGidInfo() argument 710 cJSON *size = cJSON_GetObjectItemCaseSensitive(object, PROFILE_KEY_UID_SIZE); ConvertUidAndGidToJson() local 739 DeleteInnerUidInfoFromUidArray(const char *bundleName, cJSON *size, cJSON *uids) DeleteInnerUidInfoFromUidArray() argument 771 cJSON *size = cJSON_GetObjectItemCaseSensitive(object, PROFILE_KEY_UID_SIZE); DeleteUidInfoFromJson() local [all...] |