/system/media/audio_utils/tests/ |
H A D | string_tests.cpp | 54 char dst[STRING_SIZE]; member in union:__anon2055 57 char over[sizeof(dst) + 5]; 58 char under[sizeof(dst) - 5]; 68 // union should overlay dst and dst_mirror. 69 dst[sizeof(dst) - 1] = 0; 70 check(dst, DST_START, sizeof(dst)); 71 EXPECT_EQ(sizeof(dst) + DST_START, dst_mirror[sizeof(dst)]); [all...] |
H A D | primitives_benchmark.cpp | 31 std::vector<float> dst(count); 45 benchmark::DoNotOptimize(dst.data()); 46 memcpy_to_float_from_float_with_clamping(dst.data(), src.data(), count, 1.413); 50 if (expected != dst) { 62 std::vector<float> dst(count); 74 benchmark::DoNotOptimize(dst.data()); 75 memcpy(dst.data(), src.data(), count * sizeof(float)); 79 if (src != dst) { 91 std::vector<float> dst(count); 103 benchmark::DoNotOptimize(dst [all...] |
/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); 29 memset(dst + srclen_with_zero, 0 /* value */, num_zeroes); /* clear remaining buffer */ 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 61 * \param dst Destination buffer 68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count); 73 * \param dst Destination buffer 80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 85 * \param dst Destination buffer 93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 98 * \param dst Destination buffer 106 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count); 111 * \param dst Destinatio [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 39 dst += 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, cons 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 | 25 void memcpy_by_audio_format(void *dst, audio_format_t dst_format, argument 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_ [all...] |
/system/core/include/cutils/ |
H A D | memory.h | 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libcutils/include/cutils/ |
H A D | memory.h | 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libcutils/include_vndk/cutils/ |
H A D | memory.h | 28 void android_memset16(uint16_t* dst, uint16_t value, size_t size); 31 void android_memset32(uint32_t* dst, uint32_t value, size_t size); 35 size_t strlcpy(char *dst, const char *src, size_t size);
|
/system/core/libcutils/arch-mips/ |
H A D | android_memset.c | 36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument 41 *dst++ = value; 45 if (((uintptr_t)dst & 2) && size) { 47 *dst++ = value; 50 /* dst is now 32-bit-aligned */ 53 android_memset32((uint32_t*) dst, value32, size<<1); 55 dst[size-1] = value; /* fill unpaired last elem */ 63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument 68 *dst++ = value; 72 if (((uintptr_t)dst [all...] |
/system/core/libcutils/arch-arm64/ |
H A D | android_memset.S | 41 #define dst x0 define 88 add dst, dst, tmp1 92 stp A_l, A_l, [dst, #-48] 94 stp A_l, A_l, [dst, #-32] 96 stp A_l, A_l, [dst, #-16] 100 add dst, dst, count 101 stp A_l, A_l, [dst, #-16] /* Repeat some/all of last store. */ 108 str A_l, [dst], # [all...] |
/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); 8 void __attribute__((noinline)) memset_noinline(void *dst, int value, size_t size) argument 10 memset(dst, value, size);
|
/system/bt/osi/src/ |
H A D | compat.cc | 60 * Copy src to string dst of size siz. At most siz-1 characters 64 size_t strlcpy(char* dst, const char* src, size_t siz) { argument 65 char* d = dst; 76 /* Not enough room in dst, add NUL and traverse rest of src */ 78 if (siz != 0) *d = '\0'; /* NUL-terminate dst */ 89 * Appends src to string dst of size siz (unlike strncat, siz is the 90 * full size of dst, not space left). At most siz-1 characters 91 * will be copied. Always NUL terminates (unless siz <= strlen(dst)). 92 * Returns strlen(src) + MIN(siz, strlen(initial dst)). 95 size_t strlcat(char* dst, cons argument [all...] |
/system/core/libunwindstack/tests/ |
H A D | MemoryLocalTest.cpp | 35 std::vector<uint8_t> dst(1024); 36 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 37 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); 39 ASSERT_EQ(0x4cU, dst[i]); 43 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 44 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); 46 ASSERT_EQ(0x23U, dst[i]); 49 ASSERT_EQ(0x4cU, dst[i]); 56 std::vector<uint8_t> dst(100); 57 ASSERT_FALSE(local.ReadFully(0, dst [all...] |
H A D | MemoryRangeTest.cpp | 40 std::vector<uint8_t> dst(1024); 41 ASSERT_TRUE(range.ReadFully(0, dst.data(), src.size())); 43 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 56 std::vector<uint8_t> dst(1024); 57 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); 59 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 63 ASSERT_FALSE(range.ReadFully(1020, dst.data(), 5)); 64 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1)); 65 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1024)); 68 ASSERT_TRUE(range.ReadFully(1020, dst [all...] |
H A D | MemoryRemoteTest.cpp | 73 std::vector<uint8_t> dst(1024); 74 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 76 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 102 std::vector<uint8_t> dst(kTotalPages * getpagesize()); 103 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), src.size())); 105 ASSERT_EQ(i / getpagesize(), dst[i]) << "Failed at byte " << i; 135 std::vector<uint8_t> dst(4096); 137 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096); 141 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 146 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst [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); 51 if ((dst_fd = open(dst, O_RDWR)) < 0) { 52 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); 57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst); 88 ALOGE("Error (%d) while writing to '%s'", errno, dst); 105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset);
|
/system/core/libcutils/ |
H A D | strlcpy.c | 28 * Copy src to string dst of size siz. At most siz-1 characters 33 strlcpy(char *dst, const char *src, size_t siz) argument 35 char *d = dst; 47 /* Not enough room in dst, add NUL and traverse rest of src */ 50 *d = '\0'; /* NUL-terminate dst */
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 266 camera_metadata_t *place_camera_metadata(void *dst, argument 270 if (dst == NULL) return NULL; 276 camera_metadata_t *metadata = (camera_metadata_t*)dst; 341 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, argument 345 if (dst == NULL) return NULL; 349 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); 574 int append_camera_metadata(camera_metadata_t *dst, argument 576 if (dst == NULL || src == NULL ) return ERROR; 579 if (src->entry_count + dst->entry_count < src->entry_count) return ERROR; 580 if (src->data_count + dst 644 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument 681 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument 707 sort_camera_metadata(camera_metadata_t *dst) argument 789 delete_camera_metadata_entry(camera_metadata_t *dst, size_t index) argument 828 update_camera_metadata_entry(camera_metadata_t *dst, size_t index, const void *data, size_t data_count, camera_metadata_entry_t *updated_entry) argument [all...] |
/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 195 add_disk_stats(struct disk_stats* src, struct disk_stats* dst) argument [all...] |
/system/core/base/ |
H A D | stringprintf.cpp | 26 void StringAppendV(std::string* dst, const char* format, va_list ap) { argument 41 dst->append(space, result); 63 dst->append(buf, result); 77 void StringAppendF(std::string* dst, const char* format, ...) { argument 80 StringAppendV(dst, format, ap);
|
/system/bt/bta/include/ |
H A D | bta_pan_ci.h | 95 const RawAddress& dst, uint16_t protocol, 112 RawAddress& dst, uint16_t* p_protocol,
|
/system/core/base/include/android-base/ |
H A D | stringprintf.h | 43 // Appends a printf-like formatting of the arguments to 'dst'. 44 void StringAppendF(std::string* dst, const char* fmt, ...) 47 // Appends a printf-like formatting of the arguments to 'dst'. 48 void StringAppendV(std::string* dst, const char* format, va_list ap)
|
/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 39 Vertex::Index dst, 42 Vertex::Index dst,
|