/system/media/audio_utils/ |
D | primitives.c | 30 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_q4_27() argument 33 *dst++ = clamp16(*src++ >> 12); in memcpy_to_i16_from_q4_27() 37 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument 39 dst += count; in memcpy_to_i16_from_u8() 42 *--dst = (int16_t)(*--src - 0x80) << 8; in memcpy_to_i16_from_u8() 46 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument 49 *dst++ = (*src++ >> 8) + 0x80; in memcpy_to_u8_from_i16() 53 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count) in memcpy_to_u8_from_float() argument 56 *dst++ = clamp8_from_float(*src++); in memcpy_to_u8_from_float() 60 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() argument [all …]
|
D | format.c | 25 void memcpy_by_audio_format(void *dst, audio_format_t dst_format, in memcpy_by_audio_format() argument 37 if (dst != src) { in memcpy_by_audio_format() 39 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); in memcpy_by_audio_format() 50 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); in memcpy_by_audio_format() 53 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format() 56 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format() 59 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format() 62 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format() 71 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); in memcpy_by_audio_format() 74 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count); in memcpy_by_audio_format() [all …]
|
/system/core/libcutils/arch-arm64/ |
D | android_memset.S | 41 #define dst x0 macro 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], #8 111 str A_lw, [dst], #4 114 strh A_lw, [dst], #2 [all …]
|
/system/media/audio_utils/tests/ |
D | string_tests.cpp | 54 char dst[STRING_SIZE]; in TEST() member 57 char over[sizeof(dst) + 5]; in TEST() 58 char under[sizeof(dst) - 5]; in TEST() 69 dst[sizeof(dst) - 1] = 0; in TEST() 70 check(dst, DST_START, sizeof(dst)); in TEST() 71 EXPECT_EQ(sizeof(dst) + DST_START, dst_mirror[sizeof(dst)]); in TEST() 74 audio_utils_strlcpy_zerofill(dst, over); in TEST() 75 check(dst, OVER_START, sizeof(dst)); in TEST() 78 EXPECT_EQ(sizeof(dst) + DST_START, dst_mirror[sizeof(dst)]); in TEST() 81 audio_utils_strlcpy_zerofill(dst, under); in TEST() [all …]
|
D | primitives_benchmark.cpp | 31 std::vector<float> dst(count); in BM_MemcpyToFloatFromFloatWithClamping() local 45 benchmark::DoNotOptimize(dst.data()); in BM_MemcpyToFloatFromFloatWithClamping() 46 memcpy_to_float_from_float_with_clamping(dst.data(), src.data(), count, 1.413); in BM_MemcpyToFloatFromFloatWithClamping() 50 if (expected != dst) { in BM_MemcpyToFloatFromFloatWithClamping() 62 std::vector<float> dst(count); in BM_MemcpyFloat() local 74 benchmark::DoNotOptimize(dst.data()); in BM_MemcpyFloat() 75 memcpy(dst.data(), src.data(), count * sizeof(float)); in BM_MemcpyFloat() 79 if (src != dst) { in BM_MemcpyFloat() 91 std::vector<float> dst(count); in BM_MemcpyToFloatFromI16() local 103 benchmark::DoNotOptimize(dst.data()); in BM_MemcpyToFloatFromI16() [all …]
|
/system/core/libunwindstack/tests/ |
D | MemoryRangesTest.cpp | 52 std::vector<uint8_t> dst(2000); in TEST_F() local 53 size_t bytes = ranges_->Read(0, dst.data(), dst.size()); in TEST_F() 56 ASSERT_EQ(0x15U, dst[i]) << "Failed at byte " << i; in TEST_F() 59 bytes = ranges_->Read(2000, dst.data(), dst.size()); in TEST_F() 62 ASSERT_EQ(0x26U, dst[i]) << "Failed at byte " << i; in TEST_F() 65 bytes = ranges_->Read(4000, dst.data(), dst.size()); in TEST_F() 68 ASSERT_EQ(0x37U, dst[i]) << "Failed at byte " << i; in TEST_F() 73 std::vector<uint8_t> dst(4096); in TEST_F() local 74 ASSERT_EQ(0UL, ranges_->Read(1000, dst.data(), dst.size())); in TEST_F() 75 ASSERT_EQ(0UL, ranges_->Read(5000, dst.data(), dst.size())); in TEST_F() [all …]
|
D | MemoryRangeTest.cpp | 47 std::vector<uint8_t> dst(1024); in TEST_F() local 48 ASSERT_TRUE(range.ReadFully(0, dst.data(), dst.size())); in TEST_F() 49 for (size_t i = 0; i < dst.size(); i++) { in TEST_F() 50 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F() 59 std::vector<uint8_t> dst(1024); in TEST_F() local 60 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F() 62 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F() 66 ASSERT_FALSE(range.ReadFully(1020, dst.data(), 5)); in TEST_F() 67 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1)); in TEST_F() 68 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1024)); in TEST_F() [all …]
|
D | MemoryLocalTest.cpp | 35 std::vector<uint8_t> dst(1024); in TEST() local 36 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 37 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); in TEST() 39 ASSERT_EQ(0x4cU, dst[i]); in TEST() 43 ASSERT_TRUE(local.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 44 ASSERT_EQ(0, memcmp(src.data(), dst.data(), 1024)); in TEST() 46 ASSERT_EQ(0x23U, dst[i]); in TEST() 49 ASSERT_EQ(0x4cU, dst[i]); in TEST() 56 std::vector<uint8_t> dst(100); in TEST() local 57 ASSERT_FALSE(local.ReadFully(0, dst.data(), 1)); in TEST() [all …]
|
D | MemoryRemoteTest.cpp | 73 std::vector<uint8_t> dst(1024); in TEST_F() local 74 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST_F() 76 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F() 102 std::vector<uint8_t> dst(kTotalPages * getpagesize()); in TEST_F() local 103 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), src.size())); in TEST_F() 105 ASSERT_EQ(i / getpagesize(), dst[i]) << "Failed at byte " << i; in TEST_F() 135 std::vector<uint8_t> dst(4096); in TEST_F() local 137 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096); in TEST_F() 141 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F() 146 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst.data(), 4096); in TEST_F() [all …]
|
/system/core/libcutils/arch-mips/ |
D | android_memset.c | 36 void android_memset16(uint16_t* dst, uint16_t value, size_t size) in android_memset16() argument 45 if (((uintptr_t)dst & 2) && size) { in android_memset16() 47 *dst++ = value; in android_memset16() 53 android_memset32((uint32_t*) dst, value32, size<<1); in android_memset16() 55 dst[size-1] = value; /* fill unpaired last elem */ in android_memset16() 63 void android_memset32(uint32_t* dst, uint32_t value, size_t size) in android_memset32() argument 72 if (((uintptr_t)dst & 4) && size) { in android_memset32() 74 *dst++ = value; in android_memset32() 80 uint64_t* dst64 = (uint64_t*)dst; in android_memset32() 94 dst = (uint32_t*) dst64; in android_memset32() [all …]
|
/system/media/audio_utils/include/audio_utils/ |
D | primitives.h | 68 void memcpy_to_i16_from_q4_27(int16_t *dst, const int32_t *src, size_t count); 80 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 93 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 106 void memcpy_to_u8_from_float(uint8_t *dst, const float *src, size_t count); 119 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 134 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count); 149 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count); 163 void memcpy_to_float_from_i16(float *dst, const int16_t *src, size_t count); 177 void memcpy_to_float_from_u8(float *dst, const uint8_t *src, size_t count); 192 void memcpy_to_float_from_p24(float *dst, const uint8_t *src, size_t count); [all …]
|
D | string.h | 24 inline size_t audio_utils_strlcpy_zerofill(char *dst, const char *src, size_t dst_size) { in audio_utils_strlcpy_zerofill() argument 25 const size_t srclen = strlcpy(dst, src, dst_size); in audio_utils_strlcpy_zerofill() 29 memset(dst + srclen_with_zero, 0 /* value */, num_zeroes); /* clear remaining buffer */ in audio_utils_strlcpy_zerofill() 38 inline size_t audio_utils_strlcpy_zerofill(char (&dst)[size], const char *src) { in audio_utils_strlcpy_zerofill() 39 return audio_utils_strlcpy_zerofill(dst, src, size); in audio_utils_strlcpy_zerofill() 44 inline size_t audio_utils_strlcpy(char (&dst)[size], const char *src) { in audio_utils_strlcpy() 45 return strlcpy(dst, src, size); in audio_utils_strlcpy()
|
/system/core/libunwindstack/ |
D | Memory.cpp | 38 static size_t ProcessVmRead(pid_t pid, uint64_t remote_src, void* dst, size_t len) { in ProcessVmRead() argument 54 .iov_base = &reinterpret_cast<uint8_t*>(dst)[total_read], .iov_len = len, in ProcessVmRead() 105 static size_t PtraceRead(pid_t pid, uint64_t addr, void* dst, size_t bytes) { in PtraceRead() argument 120 memcpy(dst, reinterpret_cast<uint8_t*>(&data) + align_bytes, copy_bytes); in PtraceRead() 122 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + copy_bytes); in PtraceRead() 131 memcpy(dst, &data, sizeof(long)); in PtraceRead() 132 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + sizeof(long)); in PtraceRead() 142 memcpy(dst, &data, left_over); in PtraceRead() 148 bool Memory::ReadFully(uint64_t addr, void* dst, size_t size) { in ReadFully() argument 149 size_t rc = Read(addr, dst, size); in ReadFully() [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 266 camera_metadata_t *place_camera_metadata(void *dst, in place_camera_metadata() argument 270 if (dst == NULL) return NULL; in place_camera_metadata() 280 camera_metadata_t *metadata = (camera_metadata_t*)dst; in place_camera_metadata() 345 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, in copy_camera_metadata() argument 349 if (dst == NULL) return NULL; in copy_camera_metadata() 357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata() 602 int append_camera_metadata(camera_metadata_t *dst, in append_camera_metadata() argument 604 if (dst == NULL || src == NULL ) return ERROR; in append_camera_metadata() 607 if (src->entry_count + dst->entry_count < src->entry_count) return ERROR; in append_camera_metadata() 608 if (src->data_count + dst->data_count < src->data_count) return ERROR; in append_camera_metadata() [all …]
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 110 void convert_hal_disk_stats(struct disk_stats* dst, const DiskStats& src) { in convert_hal_disk_stats() argument 111 dst->read_ios = src.reads; in convert_hal_disk_stats() 112 dst->read_merges = src.readMerges; in convert_hal_disk_stats() 113 dst->read_sectors = src.readSectors; in convert_hal_disk_stats() 114 dst->read_ticks = src.readTicks; in convert_hal_disk_stats() 115 dst->write_ios = src.writes; in convert_hal_disk_stats() 116 dst->write_merges = src.writeMerges; in convert_hal_disk_stats() 117 dst->write_sectors = src.writeSectors; in convert_hal_disk_stats() 118 dst->write_ticks = src.writeTicks; in convert_hal_disk_stats() 119 dst->io_in_flight = src.ioInFlight; in convert_hal_disk_stats() [all …]
|
/system/netd/resolv/ |
D | hostent.h | 51 #define HENT_ARRAY(dst, anum, ptr, len) do { \ argument 52 size_t _len = (anum + 1) * sizeof(*dst); \ 54 dst = (char**) ptr; \ 59 #define HENT_COPY(dst, src, slen, ptr, len) do { \ argument 62 dst = ptr; \ 67 #define HENT_SCOPY(dst, src, ptr, len) do { \ argument 69 HENT_COPY(dst, src, _len, ptr, len); \
|
D | res_comp.cpp | 91 int dn_expand(const u_char* msg, const u_char* eom, const u_char* src, char* dst, int dstsiz) { in dn_expand() argument 92 int n = ns_name_uncompress(msg, eom, src, dst, (size_t) dstsiz); in dn_expand() 94 if (n > 0 && dst[0] == '.') dst[0] = '\0'; in dn_expand() 103 int dn_comp(const char* src, u_char* dst, int dstsiz, u_char** dnptrs, u_char** lastdnptr) { in dn_comp() argument 104 return (ns_name_compress(src, dst, (size_t) dstsiz, (const u_char**) dnptrs, in dn_comp()
|
/system/core/libunwindstack/include/unwindstack/ |
D | Memory.h | 45 virtual size_t Read(uint64_t addr, void* dst, size_t size) = 0; 47 bool ReadFully(uint64_t addr, void* dst, size_t size); 49 inline bool Read32(uint64_t addr, uint32_t* dst) { in Read32() argument 50 return ReadFully(addr, dst, sizeof(uint32_t)); in Read32() 53 inline bool Read64(uint64_t addr, uint64_t* dst) { in Read64() argument 54 return ReadFully(addr, dst, sizeof(uint64_t)); in Read64() 63 size_t Read(uint64_t addr, void* dst, size_t size) override; 81 size_t Read(uint64_t addr, void* dst, size_t size) override; 100 size_t Read(uint64_t addr, void* dst, size_t size) override; 117 size_t Read(uint64_t addr, void* dst, size_t size) override; [all …]
|
/system/core/libdiskconfig/ |
D | diskutils.c | 34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) in write_raw_image() argument 44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset); in write_raw_image() 51 if ((dst_fd = open(dst, O_RDWR)) < 0) { in write_raw_image() 52 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); in write_raw_image() 57 ALOGE("Could not seek to offset %lld in %s.", (long long)offset, dst); in write_raw_image() 88 ALOGE("Error (%d) while writing to '%s'", errno, dst); in write_raw_image() 105 ALOGI("Wrote %" PRIu64 " bytes to %s @ %lld", total, dst, (long long)offset); in write_raw_image()
|
/system/bt/bta/pan/ |
D | bta_pan_ci.cc | 123 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_write() argument 132 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_write() 160 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_writebuf() argument 165 ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst = dst; in bta_pan_ci_rx_writebuf() 184 BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, in bta_pan_ci_readbuf() argument 194 dst = ((tBTA_PAN_DATA_PARAMS*)p_buf)->dst; in bta_pan_ci_readbuf() 243 UNUSED_ATTR const RawAddress& dst, in bta_pan_ci_rx_writebuf() argument 249 UNUSED_ATTR RawAddress& dst, in bta_pan_ci_readbuf() argument
|
/system/bt/osi/src/ |
D | compat.cc | 64 size_t strlcpy(char* dst, const char* src, size_t siz) { in strlcpy() argument 65 char* d = dst; in strlcpy() 95 size_t strlcat(char* dst, const char* src, size_t siz) { in strlcat() argument 96 char* d = dst; in strlcat() 103 dlen = d - dst; in strlcat()
|
/system/core/base/ |
D | stringprintf.cpp | 26 void StringAppendV(std::string* dst, const char* format, va_list ap) { in StringAppendV() argument 41 dst->append(space, result); in StringAppendV() 63 dst->append(buf, result); in StringAppendV() 77 void StringAppendF(std::string* dst, const char* format, ...) { in StringAppendF() argument 80 StringAppendV(dst, format, ap); in StringAppendF()
|
/system/core/libpixelflinger/ |
D | scanline.cpp | 128 extern "C" void scanline_t32cb16_arm(uint16_t *dst, uint32_t *src, size_t ct); 129 extern "C" void scanline_col32cb16blend_neon(uint16_t *dst, uint32_t *col, size_t ct); 130 extern "C" void scanline_col32cb16blend_arm(uint16_t *dst, uint32_t col, size_t ct); 133 extern "C" void scanline_col32cb16blend_arm64(uint16_t *dst, uint32_t col, size_t ct); 138 extern "C" void scanline_col32cb16blend_mips64(uint16_t *dst, uint32_t col, size_t ct); 466 const pixel_t* src, const pixel_t* dst); 500 blend_factor(c, &df, c->state.blend.dst, fragment, fb); in blending() 544 uint32_t factor, const pixel_t* src, const pixel_t* dst) in blend_factor() argument 560 r->c[1] = blendfactor(dst->c[1], dst->s[1]); in blend_factor() 561 r->c[2] = blendfactor(dst->c[2], dst->s[2]); in blend_factor() [all …]
|
/system/core/libziparchive/ |
D | unzip.cpp | 107 static bool PromptOverwrite(const std::string& dst) { in PromptOverwrite() argument 109 printf("replace %s? [y]es, [n]o, [A]ll, [N]one: ", dst.c_str()); in PromptOverwrite() 159 std::string dst; in ExtractOne() local 161 dst = flag_d; in ExtractOne() 162 if (!android::base::EndsWith(dst, "/")) dst += '/'; in ExtractOne() 164 dst += name; in ExtractOne() 168 error(1, errno, "couldn't create directory hierarchy for %s", dst.c_str()); in ExtractOne() 179 error(1, errno, "couldn't extract directory %s", dst.c_str()); in ExtractOne() 188 if (overwrite_mode == kPrompt && !PromptOverwrite(dst)) return; in ExtractOne() 192 if (fd == -1) error(1, errno, "couldn't create file %s", dst.c_str()); in ExtractOne() [all …]
|
/system/core/libutils/include/utils/ |
D | Unicode.h | 89 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len); 111 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len); 141 void utf8_to_utf32(const char* src, size_t src_len, char32_t* dst); 159 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen); 170 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen);
|