Home
last modified time | relevance | path

Searched refs:dst (Results 1 – 25 of 144) sorted by relevance

123456

/system/media/audio_utils/
Dprimitives.c30 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_p24(uint8_t *dst, const uint8_t *src, size_t count) in memcpy_to_u8_from_p24() argument
57 *dst++ = src[0] + 0x80; in memcpy_to_u8_from_p24()
59 *dst++ = src[2] + 0x80; in memcpy_to_u8_from_p24()
[all …]
Dformat.c21 void memcpy_by_audio_format(void *dst, audio_format_t dst_format, in memcpy_by_audio_format() argument
33 if (dst != src) { in memcpy_by_audio_format()
35 memcpy(dst, src, count * audio_bytes_per_sample(dst_format)); in memcpy_by_audio_format()
46 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count); in memcpy_by_audio_format()
49 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
52 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
55 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
58 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count); in memcpy_by_audio_format()
67 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count); in memcpy_by_audio_format()
70 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count); in memcpy_by_audio_format()
[all …]
/system/core/libcutils/arch-arm64/
Dandroid_memset.S41 #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/
Dstring_tests.cpp54 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 …]
/system/core/libunwindstack/tests/
DMemoryRangesTest.cpp51 std::vector<uint8_t> dst(2000); in TEST_F() local
52 size_t bytes = ranges_->Read(0, dst.data(), dst.size()); in TEST_F()
55 ASSERT_EQ(0x15U, dst[i]) << "Failed at byte " << i; in TEST_F()
58 bytes = ranges_->Read(2000, dst.data(), dst.size()); in TEST_F()
61 ASSERT_EQ(0x26U, dst[i]) << "Failed at byte " << i; in TEST_F()
64 bytes = ranges_->Read(4000, dst.data(), dst.size()); in TEST_F()
67 ASSERT_EQ(0x37U, dst[i]) << "Failed at byte " << i; in TEST_F()
72 std::vector<uint8_t> dst(4096); in TEST_F() local
73 ASSERT_EQ(0UL, ranges_->Read(1000, dst.data(), dst.size())); in TEST_F()
74 ASSERT_EQ(0UL, ranges_->Read(5000, dst.data(), dst.size())); in TEST_F()
[all …]
DMemoryRangeTest.cpp46 std::vector<uint8_t> dst(1024); in TEST_F() local
47 ASSERT_TRUE(range.ReadFully(0, dst.data(), dst.size())); in TEST_F()
48 for (size_t i = 0; i < dst.size(); i++) { in TEST_F()
49 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F()
58 std::vector<uint8_t> dst(1024); in TEST_F() local
59 ASSERT_TRUE(range.ReadFully(1020, dst.data(), 4)); in TEST_F()
61 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST_F()
65 ASSERT_FALSE(range.ReadFully(1020, dst.data(), 5)); in TEST_F()
66 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1)); in TEST_F()
67 ASSERT_FALSE(range.ReadFully(1024, dst.data(), 1024)); in TEST_F()
[all …]
DMemoryLocalTest.cpp35 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 …]
DMemoryRemoteTest.cpp56 std::vector<uint8_t> dst(1024); in TEST() local
57 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST()
59 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST()
85 std::vector<uint8_t> dst(kTotalPages * getpagesize()); in TEST() local
86 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), src.size())); in TEST()
88 ASSERT_EQ(i / getpagesize(), dst[i]) << "Failed at byte " << i; in TEST()
118 std::vector<uint8_t> dst(4096); in TEST() local
120 remote.Read(reinterpret_cast<uint64_t>(mapping + getpagesize() - 1024), dst.data(), 4096); in TEST()
124 ASSERT_EQ(0x4cU, dst[i]) << "Failed at byte " << i; in TEST()
129 remote.Read(reinterpret_cast<uint64_t>(mapping + 3 * getpagesize() - 1024), dst.data(), 4096); in TEST()
[all …]
/system/media/audio_utils/include/audio_utils/
Dprimitives.h68 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_u8_from_p24(uint8_t *dst, const uint8_t *src, size_t count);
132 void memcpy_to_u8_from_i32(uint8_t *dst, const int32_t *src, size_t count);
145 void memcpy_to_u8_from_q8_23(uint8_t *dst, const int32_t *src, size_t count);
158 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count);
173 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count);
188 void memcpy_to_float_from_q4_27(float *dst, const int32_t *src, size_t count);
[all …]
Dstring.h24 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/
DMemory.cpp46 static size_t ProcessVmRead(pid_t pid, uint64_t remote_src, void* dst, size_t len) { in ProcessVmRead() argument
62 .iov_base = &reinterpret_cast<uint8_t*>(dst)[total_read], .iov_len = len, in ProcessVmRead()
113 static size_t PtraceRead(pid_t pid, uint64_t addr, void* dst, size_t bytes) { in PtraceRead() argument
128 memcpy(dst, reinterpret_cast<uint8_t*>(&data) + align_bytes, copy_bytes); in PtraceRead()
130 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + copy_bytes); in PtraceRead()
139 memcpy(dst, &data, sizeof(long)); in PtraceRead()
140 dst = reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(dst) + sizeof(long)); in PtraceRead()
150 memcpy(dst, &data, left_over); in PtraceRead()
156 bool Memory::ReadFully(uint64_t addr, void* dst, size_t size) { in ReadFully() argument
157 size_t rc = Read(addr, dst, size); in ReadFully()
[all …]
/system/media/camera/src/
Dcamera_metadata.c266 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/media/audio_utils/benchmarks/
Dprimitives_benchmark.cpp31 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/storaged/
Dstoraged_diskstats.cpp110 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/core/libunwindstack/include/unwindstack/
DMemory.h40 virtual bool ReadString(uint64_t addr, std::string* dst, size_t max_read);
46 virtual size_t Read(uint64_t addr, void* dst, size_t size) = 0;
49 bool ReadFully(uint64_t addr, void* dst, size_t size);
51 inline bool Read32(uint64_t addr, uint32_t* dst) { in Read32() argument
52 return ReadFully(addr, dst, sizeof(uint32_t)); in Read32()
55 inline bool Read64(uint64_t addr, uint64_t* dst) { in Read64() argument
56 return ReadFully(addr, dst, sizeof(uint64_t)); in Read64()
/system/core/libdiskconfig/
Ddiskutils.c34 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/
Dbta_pan_ci.cc123 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/
Dcompat.cc64 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/linkerconfig/testdata/
Dprepare_root.sh104 dst=$ROOT_OUT/apex/$name
106 module_path=/$(realpath --relative-to=$ROOT_OUT $dst)
108 cp -r $src $dst
109 conv_apex_manifest proto $dst/apex_manifest.json -o $dst/apex_manifest.pb
110 mkdir $dst/lib
/system/libbase/
Dstringprintf.cpp26 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/
Dscanline.cpp128 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 …]
Dpicker.cpp54 uint32_t dst = c->state.blend.dst; in ggl_pick() local
67 if ((dst == GGL_ONE_MINUS_DST_ALPHA) || in ggl_pick()
68 (dst == GGL_DST_ALPHA)) { in ggl_pick()
69 dst = GGL_ONE; in ggl_pick()
78 dst = ggl_blendfactor_to_needs(dst); in ggl_pick()
83 n |= GGL_BUILD_NEEDS( dst, BLEND_DST ); in ggl_pick()
89 n |= GGL_BUILD_NEEDS( dst, BLEND_DSTA ); in ggl_pick()
/system/core/libcutils/include_vndk/cutils/
Dmemory.h28 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/
Dmemory.h28 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/bt/stack/pan/
Dpan_main.cc383 const RawAddress& dst, uint16_t protocol, uint8_t* p_data, in pan_data_ind_cb() argument
414 if (dst.address[0] & 0x01) { in pan_data_ind_cb()
421 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in pan_data_ind_cb()
426 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, in pan_data_ind_cb()
436 if (pan_cb.pcb[i].rem_bda == dst) { in pan_data_ind_cb()
437 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, ext); in pan_data_ind_cb()
450 (*pan_cb.pan_data_ind_cb)(pcb->handle, src, dst, protocol, p_data, len, ext, in pan_data_ind_cb()
477 const RawAddress& dst, uint16_t protocol, in pan_data_buf_ind_cb() argument
514 if (dst.address[0] & 0x01) { in pan_data_buf_ind_cb()
522 BNEP_Write(pan_cb.pcb[i].handle, dst, p_data, len, protocol, &src, in pan_data_buf_ind_cb()
[all …]

123456