Home
last modified time | relevance | path

Searched refs:dst_size (Results 1 – 7 of 7) sorted by relevance

/system/media/audio_utils/include/audio_utils/
Dstring.h27 inline size_t audio_utils_strlcpy_zerofill(char *dst, const char *src, size_t dst_size) { in audio_utils_strlcpy_zerofill() argument
28 const size_t srclen = strlcpy(dst, src, dst_size); in audio_utils_strlcpy_zerofill()
30 if (srclen_with_zero < dst_size) { in audio_utils_strlcpy_zerofill()
31 const size_t num_zeroes = dst_size - srclen_with_zero; in audio_utils_strlcpy_zerofill()
/system/core/fs_mgr/libsnapshot/
Dmake_cow_from_ab_ota.cpp535 uint64_t dst_size = 0; in ProcessReplace() local
537 dst_size += extent.num_blocks() * kBlockSize; in ProcessReplace()
541 auto tmp = std::make_unique<char[]>(dst_size); in ProcessReplace()
544 if (dst_size > std::numeric_limits<typeof(actual_size)>::max()) { in ProcessReplace()
545 LOG(ERROR) << "too many bytes to decompress: " << dst_size; in ProcessReplace()
548 actual_size = static_cast<uint32_t>(dst_size); in ProcessReplace()
556 if (actual_size != dst_size) { in ProcessReplace()
557 LOG(ERROR) << "bz2 returned " << actual_size << " bytes, expected " << dst_size; in ProcessReplace()
561 buffer_size = dst_size; in ProcessReplace()
565 if (dst_size > std::numeric_limits<size_t>::max()) { in ProcessReplace()
[all …]
/system/extras/boot_control_copy/
Dboot_control_copy.cpp128 uint64_t src_size, dst_size; in module_setActiveBootSlot() local
160 dst_fd = boot_info_open_partition("boot", &dst_size, O_RDWR); in module_setActiveBootSlot()
167 if (src_size != dst_size) { in module_setActiveBootSlot()
172 src_size, dst_size); in module_setActiveBootSlot()
/system/media/camera/include/system/
Dcamera_metadata.h201 camera_metadata_t *place_camera_metadata(void *dst, size_t dst_size,
278 camera_metadata_t *copy_camera_metadata(void *dst, size_t dst_size,
/system/media/camera/src/
Dcamera_metadata.c267 size_t dst_size, in place_camera_metadata() argument
274 if (memory_needed > dst_size) { in place_camera_metadata()
276 memory_needed, dst_size); in place_camera_metadata()
345 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, in copy_camera_metadata() argument
350 if (dst_size < memory_needed) { in copy_camera_metadata()
352 memory_needed, dst_size); in copy_camera_metadata()
357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata()
/system/bt/stack/sdp/
Dsdp_api.cc779 uint16_t dst_size) { in SDP_AttrStringCopy() argument
783 if (len > dst_size - 1) { in SDP_AttrStringCopy()
784 len = dst_size - 1; in SDP_AttrStringCopy()
/system/media/camera/tests/
Dcamera_metadata_tests.cpp1887 size_t dst_size = m_size + offsetRange; in TEST() local
1888 uint8_t *dst = new uint8_t[dst_size]; in TEST()
1891 memset(dst, 0, dst_size); in TEST()