/system/media/audio_utils/ |
H A D | primitives.c | 35 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) argument 37 dst += count; 40 *--dst = (int16_t)(*--src - 0x80) << 8; 44 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument 47 *dst++ = (*src++ >> 8) + 0x80; 51 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) argument 54 *dst++ = clamp8_from_float(*src++); 58 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) argument 61 *dst++ = *src++ >> 16; 65 void memcpy_to_i16_from_float(int16_t *dst, cons argument 72 memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count) argument 79 memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count) argument 86 memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count) argument 93 memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count) argument 101 memcpy_to_i16_from_p24(int16_t *dst, const uint8_t *src, size_t count) argument 113 memcpy_to_i32_from_p24(int32_t *dst, const uint8_t *src, size_t count) argument 125 memcpy_to_p24_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument 140 memcpy_to_p24_from_float(uint8_t *dst, const float *src, size_t count) argument 157 memcpy_to_p24_from_q8_23(uint8_t *dst, const int32_t *src, size_t count) argument 174 memcpy_to_p24_from_i32(uint8_t *dst, const int32_t *src, size_t count) argument 191 memcpy_to_q8_23_from_i16(int32_t *dst, const int16_t *src, size_t count) argument 198 memcpy_to_q8_23_from_float_with_clamp(int32_t *dst, const float *src, size_t count) argument 205 memcpy_to_q8_23_from_p24(int32_t *dst, const uint8_t *src, size_t count) argument 217 memcpy_to_q4_27_from_float(int32_t *dst, const float *src, size_t count) argument 224 memcpy_to_i16_from_q8_23(int16_t *dst, const int32_t *src, size_t count) argument 231 memcpy_to_float_from_q8_23(float *dst, const int32_t *src, size_t count) argument 238 memcpy_to_i32_from_i16(int32_t *dst, const int16_t *src, size_t count) argument 245 memcpy_to_i32_from_float(int32_t *dst, const float *src, size_t count) argument 252 memcpy_to_float_from_i32(float *dst, const int32_t *src, size_t count) argument 259 downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) argument 267 upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument 277 downmix_to_mono_float_from_stereo_float(float *dst, const float *src, size_t frames) argument 285 upmix_to_stereo_float_from_mono_float(float *dst, const float *src, size_t frames) argument 362 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 429 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 [all...] |
H A D | format.c | 25 void memcpy_by_audio_format(void *dst, audio_format_t dst_format, argument 37 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); 47 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); 50 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); 53 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); 56 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); 59 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); 68 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); 71 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count); 74 memcpy_to_float_from_p24((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/vold/tests/ |
H A D | VolumeManager_test.cpp | 39 char* dst = reinterpret_cast<char*>(&buffer); local 46 EXPECT_TRUE(VolumeManager::asecHash(exp1, dst, 0) == NULL && errno == ESPIPE) 48 EXPECT_TRUE(VolumeManager::asecHash((const char*)NULL, dst, sizeof(buffer)) == NULL && errno == ESPIPE) 51 EXPECT_FALSE(VolumeManager::asecHash(src1, dst, sizeof(buffer)) == NULL) 53 EXPECT_STREQ(exp1, dst) 58 EXPECT_FALSE(VolumeManager::asecHash(src2, dst, sizeof(buffer)) == NULL) 60 EXPECT_STREQ(exp2, dst)
|
/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/core/libunwindstack/tests/ |
H A D | MemoryLocalTest.cpp | 32 std::vector<uint8_t> dst(1024); 33 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 34 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); 36 ASSERT_EQ(0x4cU, dst[i]); 40 ASSERT_TRUE(local.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 41 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); 43 ASSERT_EQ(0x23U, dst[i]); 46 ASSERT_EQ(0x4cU, dst[i]); 55 std::vector<uint8_t> dst(1024); 72 std::vector<uint8_t> dst(10 [all...] |
H A D | MemoryRangeTest.cpp | 44 std::vector<uint8_t> dst(1024); 45 ASSERT_TRUE(range.Read(0, dst.data(), src.size())); 47 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 58 std::vector<uint8_t> dst(1024); 59 ASSERT_TRUE(range.Read(1020, dst.data(), 4)); 61 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 65 ASSERT_FALSE(range.Read(1020, dst.data(), 5)); 66 ASSERT_FALSE(range.Read(1024, dst.data(), 1)); 67 ASSERT_FALSE(range.Read(1024, dst.data(), 1024));
|
H A D | MemoryRemoteTest.cpp | 83 std::vector<uint8_t> dst(1024); 84 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); 86 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 114 std::vector<uint8_t> dst(pagesize); 115 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src), dst.data(), pagesize)); 117 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; 120 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize, dst.data(), 1)); 121 ASSERT_TRUE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 1, dst.data(), 1)); 122 ASSERT_FALSE(remote.Read(reinterpret_cast<uint64_t>(src) + pagesize - 4, dst.data(), 8)); 143 std::vector<uint8_t> dst(10 [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/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/audio_utils/include/audio_utils/ |
H A D | primitives.h | 30 * The memcpy_* conversion routines are designed to work in-place on same dst as src 57 * \param dst Destination buffer 64 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 69 * \param dst Destination buffer 77 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 82 * \param dst Destination buffer 90 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count); 95 * \param dst Destination buffer 103 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 110 * \param dst Destinatio [all...] |
/system/media/camera/src/ |
H A D | camera_metadata.c | 260 camera_metadata_t *place_camera_metadata(void *dst, argument 264 if (dst == NULL) return NULL; 270 camera_metadata_t *metadata = (camera_metadata_t*)dst; 335 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, argument 339 if (dst == NULL) return NULL; 343 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); 568 int append_camera_metadata(camera_metadata_t *dst, argument 570 if (dst == NULL || src == NULL ) return ERROR; 573 if (src->entry_count + dst->entry_count < src->entry_count) return ERROR; 574 if (src->data_count + dst 638 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument 675 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument 701 sort_camera_metadata(camera_metadata_t *dst) argument 783 delete_camera_metadata_entry(camera_metadata_t *dst, size_t index) argument 822 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/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/core/libunwindstack/ |
H A D | Memory.h | 34 virtual bool Read(uint64_t addr, void* dst, size_t size) = 0; 41 inline bool Read32(uint64_t addr, uint32_t* dst) { argument 42 return Read(addr, dst, sizeof(uint32_t)); 45 inline bool Read64(uint64_t addr, uint64_t* dst) { argument 46 return Read(addr, dst, sizeof(uint64_t)); 55 bool Read(uint64_t addr, void* dst, size_t size) override; 74 bool Read(uint64_t addr, void* dst, size_t size) override; 91 bool Read(uint64_t addr, void* dst, size_t size) override; 102 bool Read(uint64_t addr, void* dst, size_t size) override; 115 bool Read(uint64_t addr, void* dst, size_ [all...] |
H A D | Memory.cpp | 51 bool MemoryBuffer::Read(uint64_t addr, void* dst, size_t size) { argument 59 memcpy(dst, &raw_[addr], size); 115 bool MemoryFileAtOffset::Read(uint64_t addr, void* dst, size_t size) { argument 119 memcpy(dst, &data_[addr], size); 140 bool MemoryRemote::Read(uint64_t addr, void* dst, size_t bytes) { argument 149 memcpy(dst, reinterpret_cast<uint8_t*>(&data) + align_bytes, copy_bytes); 151 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + copy_bytes); 160 memcpy(dst, &data, sizeof(long)); 161 dst 177 Read(uint64_t addr, void* dst, size_t size) argument 210 Read(uint64_t addr, void* dst, size_t size) argument [all...] |
/system/bt/bta/include/ |
H A D | bta_pan_ci.h | 94 extern void bta_pan_ci_rx_writebuf(uint16_t handle, BD_ADDR src, BD_ADDR dst, 110 extern BT_HDR* bta_pan_ci_readbuf(uint16_t handle, BD_ADDR src, BD_ADDR dst,
|
/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,
|
/system/bt/bta/pan/ |
H A D | bta_pan_ci.cc | 123 void bta_pan_ci_rx_write(uint16_t handle, BD_ADDR dst, BD_ADDR src, argument 132 bdcpy(((tBTA_PAN_DATA_PARAMS*)p_buf)->dst, dst); 160 void bta_pan_ci_rx_writebuf(uint16_t handle, BD_ADDR dst, BD_ADDR src, argument 164 bdcpy(((tBTA_PAN_DATA_PARAMS*)p_buf)->dst, dst); 183 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, BD_ADDR src, BD_ADDR dst, argument 193 bdcpy(dst, ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst); 241 UNUSED_ATTR BD_ADDR src, UNUSED_ATTR BD_ADDR dst, 240 bta_pan_ci_rx_writebuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR BD_ADDR src, UNUSED_ATTR BD_ADDR dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) argument 245 bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR BD_ADDR src, UNUSED_ATTR BD_ADDR dst, UNUSED_ATTR uint16_t* p_protocol, UNUSED_ATTR bool* p_ext, UNUSED_ATTR bool* p_forward) argument [all...] |