/system/media/audio_utils/include/audio_utils/ |
H A D | string.h | 24 inline size_t audio_utils_strlcpy_zerofill(char *dst, const char *src, size_t dst_size) { argument 25 const size_t srclen = strlcpy(dst, src, dst_size); 38 inline size_t audio_utils_strlcpy_zerofill(char (&dst)[size], const char *src) { argument 39 return audio_utils_strlcpy_zerofill(dst, src, size); 44 inline size_t audio_utils_strlcpy(char (&dst)[size], const char *src) { argument 45 return strlcpy(dst, src, size);
|
H A D | primitives.h | 31 * The memcpy_* conversion routines are designed to work in-place on same dst as src 62 * \param src Source buffer 68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count); 74 * \param src Source buffer 80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 86 * \param src Source buffer 93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 99 * \param src Source buffer 106 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count); 112 * \param src Sourc [all...] |
/system/media/audio_utils/ |
H A D | primitives.c | 30 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count) argument 33 *dst++ = clamp16(*src++ >> 12); 37 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) argument 40 src += count; 42 *--dst = (int16_t)(*--src - 0x80) << 8; 46 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument 49 *dst++ = (*src++ >> 8) + 0x80; 53 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) argument 56 *dst++ = clamp8_from_float(*src++); 60 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_ argument 67 memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) argument 74 memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count) argument 81 memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count) argument 90 memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count) argument 99 memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count) argument 109 memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count) argument 121 memcpy_to_i32_from_p24(int32_t *dst, const uint8_t *src, size_t count) argument 135 memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument 154 memcpy_to_p24_from_float(uint8_t *dst, const float *src, size_t count) argument 171 memcpy_to_p24_from_q8_23(uint8_t *dst, const int32_t *src, size_t count) argument 188 memcpy_to_p24_from_i32(uint8_t *dst, const int32_t *src, size_t count) argument 205 memcpy_to_q8_23_from_i16(int32_t *dst, const int16_t *src, size_t count) argument 214 memcpy_to_q8_23_from_float_with_clamp(int32_t *dst, const float *src, size_t count) argument 221 memcpy_to_q8_23_from_p24(int32_t *dst, const uint8_t *src, size_t count) argument 235 memcpy_to_q4_27_from_float(int32_t *dst, const float *src, size_t count) argument 242 memcpy_to_i16_from_q8_23(int16_t *dst, const int32_t *src, size_t count) argument 249 memcpy_to_float_from_q8_23(float *dst, const int32_t *src, size_t count) argument 256 memcpy_to_i32_from_i16(int32_t *dst, const int16_t *src, size_t count) argument 265 memcpy_to_i32_from_float(int32_t *dst, const float *src, size_t count) argument 272 memcpy_to_float_from_i32(float *dst, const int32_t *src, size_t count) argument 279 memcpy_to_float_from_float_with_clamping(float *dst, const float *src, size_t count, float absMax) argument 291 downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) argument 299 upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument 311 downmix_to_mono_float_from_stereo_float(float *dst, const float *src, size_t frames) argument 319 upmix_to_stereo_float_from_mono_float(float *dst, const float *src, size_t frames) argument 390 memcpy_by_channel_mask(void *dst, uint32_t dst_mask, const void *src, uint32_t src_mask, size_t sample_size, size_t count) argument 457 memcpy_by_index_array(void *dst, uint32_t dst_channels, const void *src, uint32_t src_channels, const int8_t *idxary, size_t sample_size, size_t count) argument 556 accumulate_i16(int16_t *dst, const int16_t *src, size_t count) argument 563 accumulate_u8(uint8_t *dst, const uint8_t *src, size_t count) argument 573 accumulate_p24(uint8_t *dst, const uint8_t *src, size_t count) argument 591 accumulate_q8_23(int32_t *dst, const int32_t *src, size_t count) argument 598 accumulate_i32(int32_t *dst, const int32_t *src, size_t count) argument 605 accumulate_float(float *dst, const float *src, size_t count) argument [all...] |
H A D | format.c | 26 const void *src, audio_format_t src_format, size_t count) 37 if (dst != src) { 39 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); 50 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); 53 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); 56 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); 59 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); 62 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); 71 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); 74 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, coun 25 memcpy_by_audio_format(void *dst, audio_format_t dst_format, const void *src, audio_format_t src_format, size_t count) argument [all...] |
/system/bt/osi/src/ |
H A D | compat.cc | 60 * Copy src to string dst of size siz. At most siz-1 characters 62 * Returns strlen(src); if retval >= siz, truncation occurred. 64 size_t strlcpy(char* dst, const char* src, size_t siz) { argument 66 const char* s = src; 76 /* Not enough room in dst, add NUL and traverse rest of src */ 83 return (s - src - 1); /* count does not include NUL */ 89 * Appends src to string dst of size siz (unlike strncat, siz is the 92 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 95 size_t strlcat(char* dst, const char* src, size_t siz) { argument 97 const char* s = src; [all...] |
/system/core/libcutils/ |
H A D | strlcpy.c | 28 * Copy src to string dst of size siz. At most siz-1 characters 30 * Returns strlen(src); if retval >= siz, truncation occurred. 33 strlcpy(char *dst, const char *src, size_t siz) argument 36 const char *s = src; 47 /* Not enough room in dst, add NUL and traverse rest of src */ 55 return(s - src - 1); /* count does not include NUL */
|
/system/bt/osi/include/ |
H A D | compat.h | 31 /* Copy src to string dst of size siz. */ 32 size_t strlcpy(char* dst, const char* src, size_t siz); 34 /* Appends src to string dst of size siz. */ 35 size_t strlcat(char* dst, const char* src, size_t siz);
|
/system/extras/memcpy-perf/ |
H A D | test-funcs.cpp | 3 void __attribute__((noinline)) memcpy_noinline(void *dst, void *src, size_t size) argument 5 memcpy(dst,src,size); 13 uint64_t __attribute__((noinline)) sum(volatile void *src, size_t size) argument 15 uint64_t *src_ptr = (uint64_t*)src;
|
/system/core/include/utils/ |
H A D | Unicode.h | 54 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len); 57 * Stores a UTF-8 string converted from "src" in "dst", if "dst_length" is not 58 * large enough to store the string, the part of the "src" string is stored 65 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 74 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 84 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 93 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len); 102 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index); 106 * Returns the UTF-8 length of UTF-16 string "src". 108 ssize_t utf16_to_utf8_length(const char16_t *src, size_ [all...] |
/system/core/libutils/include/utils/ |
H A D | Unicode.h | 54 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len); 57 * Stores a UTF-8 string converted from "src" in "dst", if "dst_length" is not 58 * large enough to store the string, the part of the "src" string is stored 65 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 74 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 84 * "src" == \u3042\u3044 (\xE3\x81\x82\xE3\x81\x84) 93 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len); 102 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index); 106 * Returns the UTF-8 length of UTF-16 string "src". 108 ssize_t utf16_to_utf8_length(const char16_t *src, size_ [all...] |
/system/media/audio_utils/tests/ |
H A D | primitives_benchmark.cpp | 30 std::vector<float> src(count); 34 // Initialize src buffer with deterministic pseudo-random values 38 src[i] = dis(gen); 39 expected[i] = fmin(absMax, fmax(-absMax, src[i])); 44 benchmark::DoNotOptimize(src.data()); 46 memcpy_to_float_from_float_with_clamping(dst.data(), src.data(), count, 1.413); 61 std::vector<float> src(count); 64 // Initialize src buffer with deterministic pseudo-random values 68 src[i] = dis(gen); 73 benchmark::DoNotOptimize(src [all...] |
/system/chre/external/ |
H A D | external.mk | 22 GOOGLE_X86_GOOGLETEST_SRCS += $(GOOGLETEST_PATH)/src/gtest-all.cc 23 GOOGLE_X86_GOOGLETEST_SRCS += $(GOOGLETEST_PATH)/src/gtest_main.cc 27 GOOGLE_X86_GOOGLETEST_SRCS += $(GOOGLEMOCK_PATH)/src/gmock-all.cc
|
/system/core/libunwindstack/tests/ |
H A D | MemoryRangeTest.cpp | 32 std::vector<uint8_t> src(1024); 33 memset(src.data(), 0x4c, 1024); 36 memory_fake->SetMemory(9001, src); 38 MemoryRange range(process_memory, 9001, src.size(), 0); 41 ASSERT_TRUE(range.ReadFully(0, dst.data(), src.size())); 48 std::vector<uint8_t> src(4096); 49 memset(src.data(), 0x4c, 4096); 52 memory_fake->SetMemory(1000, src); 80 std::vector<uint8_t> src(4096); 81 memset(src [all...] |
H A D | MemoryFake.cpp | 27 const uint8_t* src = reinterpret_cast<const uint8_t*>(memory); local 31 value->second = src[i]; 33 data_.insert({ addr, src[i] });
|
/system/chre/apps/chqts/src/shared/ |
H A D | nano_string.h | 27 void memcpy(void *dst, const void *src, size_t bytes); 31 char *strncpy(char *dest, const char *src, size_t len);
|
H A D | nano_string.cc | 44 const uint8_t *src = static_cast<const uint8_t*>(s); local 46 dst[i] = src[i]; 56 char *strncpy(char *dest, const char *src, size_t len) { argument 58 for (i = 0; (i < len) && (src[i] != '\0'); i++) { 59 dest[i] = src[i];
|
/system/core/libutils/ |
H A D | Unicode.cpp | 156 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index) argument 166 int32_t ret = utf32_at_internal(src + index, &num_read); 174 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len) argument 176 if (src == NULL || src_len == 0) { 181 const char32_t *end = src + src_len; 182 while (src < end) { 183 size_t char_len = utf32_codepoint_utf8_length(*src++); 196 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len) argument 198 if (src == NULL || src_len == 0 || dst == NULL) { 202 const char32_t *cur_utf32 = src; [all...] |
/system/core/libdiskconfig/ |
H A D | diskutils.c | 34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument 44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); 45 if ((src_fd = open(src, O_RDONLY)) < 0) { 46 ALOGE("Could not open %s for reading (errno=%d).", src, errno); 67 ALOGE("Error (%d) while reading from '%s'", errno, src);
|
/system/tools/aidl/ |
H A D | Android.mk | 39 tests/java_app/src/android/aidl/tests/NullableTests.java \ 40 tests/java_app/src/android/aidl/tests/SimpleParcelable.java \ 41 tests/java_app/src/android/aidl/tests/TestFailException.java \ 42 tests/java_app/src/android/aidl/tests/TestLogger.java \ 43 tests/java_app/src/android/aidl/tests/TestServiceClient.java
|
/system/netd/libnetdutils/include/netdutils/ |
H A D | MemBlock.h | 38 // Allocate memory of size src.size() and copy src into this MemBlock. 39 MemBlock(Slice src) : MemBlock(src.size()) { argument 40 copy(get(), src); local
|
/system/core/storaged/ |
H A D | storaged_diskstats.cpp | 110 void convert_hal_disk_stats(struct disk_stats* dst, const DiskStats& src) { argument 111 dst->read_ios = src.reads; 112 dst->read_merges = src.readMerges; 113 dst->read_sectors = src.readSectors; 114 dst->read_ticks = src.readTicks; 115 dst->write_ios = src.writes; 116 dst->write_merges = src.writeMerges; 117 dst->write_sectors = src.writeSectors; 118 dst->write_ticks = src.writeTicks; 119 dst->io_in_flight = src 195 add_disk_stats(struct disk_stats* src, struct disk_stats* dst) argument [all...] |
/system/bt/bta/include/ |
H A D | bta_pan_ci.h | 94 extern void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& src, 111 extern BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src,
|
/system/update_engine/payload_generator/ |
H A D | graph_utils.h | 36 // These add a read-before dependency from graph[src] -> graph[dst]. If the dep 38 void AddReadBeforeDep(Vertex* src, 41 void AddReadBeforeDepExtents(Vertex* src,
|
/system/bt/bta/pan/ |
H A D | bta_pan_ci.cc | 124 const RawAddress& src, uint16_t protocol, 131 ((tBTA_PAN_DATA_PARAMS*)p_buf)->src = src; 161 const RawAddress& src, uint16_t protocol, 164 ((tBTA_PAN_DATA_PARAMS*)p_buf)->src = src; 184 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, argument 193 src = ((tBTA_PAN_DATA_PARAMS*)p_buf)->src; 242 UNUSED_ATTR const RawAddress& src, 123 bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, const RawAddress& src, uint16_t protocol, uint8_t* p_data, uint16_t len, bool ext) argument 160 bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst, const RawAddress& src, uint16_t protocol, BT_HDR* p_buf, bool ext) argument 241 bta_pan_ci_rx_writebuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR const RawAddress& src, UNUSED_ATTR const RawAddress& dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) argument 247 bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR RawAddress& src, UNUSED_ATTR RawAddress& dst, UNUSED_ATTR uint16_t* p_protocol, UNUSED_ATTR bool* p_ext, UNUSED_ATTR bool* p_forward) argument [all...] |
/system/core/include/cutils/ |
H A D | memory.h | 35 size_t strlcpy(char *dst, const char *src, size_t size);
|