/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 40 src += 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 …]
|
D | format.c | 22 const void *src, audio_format_t src_format, size_t count) 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/code_coverage/ |
D | Android.bp | 12 src: "empty_policy/code_coverage.arm.policy", 15 src: "seccomp_policy/code_coverage.arm.policy", 20 src: "empty_policy/code_coverage.arm64.policy", 23 src: "seccomp_policy/code_coverage.arm64.policy", 28 src: "empty_policy/code_coverage.riscv64.policy", 31 src: "seccomp_policy/code_coverage.riscv64.policy", 36 src: "empty_policy/code_coverage.x86.policy", 39 src: "seccomp_policy/code_coverage.x86.policy", 44 src: "empty_policy/code_coverage.x86_64.policy", 47 src: "seccomp_policy/code_coverage.x86_64.policy", [all …]
|
/system/core/libutils/ |
D | Unicode.cpp | 128 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index) in utf32_from_utf8_at() argument 138 int32_t ret = utf32_at_internal(src + index, &num_read); in utf32_from_utf8_at() 146 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len) in utf32_to_utf8_length() argument 148 if (src == nullptr || src_len == 0) { in utf32_to_utf8_length() 153 const char32_t *end = src + src_len; in utf32_to_utf8_length() 154 while (src < end) { in utf32_to_utf8_length() 155 size_t char_len = utf32_codepoint_utf8_length(*src++); in utf32_to_utf8_length() 168 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len) in utf32_to_utf8() argument 170 if (src == nullptr || src_len == 0 || dst == nullptr) { in utf32_to_utf8() 174 const char32_t *cur_utf32 = src; in utf32_to_utf8() [all …]
|
/system/apex/shim/ |
D | Android.bp | 27 src: "prebuilts/arm/com.android.apex.cts.shim.v1.apex", 30 src: "prebuilts/arm/com.android.apex.cts.shim.v1.apex", 33 src: "prebuilts/riscv64/com.android.apex.cts.shim.v1.apex", 36 src: "prebuilts/x86/com.android.apex.cts.shim.v1.apex", 39 src: "prebuilts/x86/com.android.apex.cts.shim.v1.apex", 51 src: "prebuilts/arm/com.android.apex.cts.shim.v2.apex", 54 src: "prebuilts/arm/com.android.apex.cts.shim.v2.apex", 57 src: "prebuilts/riscv64/com.android.apex.cts.shim.v2.apex", 60 src: "prebuilts/x86/com.android.apex.cts.shim.v2.apex", 63 src: "prebuilts/x86/com.android.apex.cts.shim.v2.apex", [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_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 …]
|
D | string.h | 27 inline size_t audio_utils_strlcpy_zerofill(char *dst, const char *src, size_t dst_size) { in audio_utils_strlcpy_zerofill() argument 28 const size_t srclen = strlcpy(dst, src, dst_size); in audio_utils_strlcpy_zerofill() 41 inline size_t audio_utils_strlcpy_zerofill(char (&dst)[size], const char *src) { in audio_utils_strlcpy_zerofill() argument 42 return audio_utils_strlcpy_zerofill(dst, src, size); in audio_utils_strlcpy_zerofill() 47 inline size_t audio_utils_strlcpy(char (&dst)[size], const char *src) { in audio_utils_strlcpy() argument 48 return strlcpy(dst, src, size); in audio_utils_strlcpy()
|
D | ChannelMix.h | 27 bool sparseChannelMatrixMultiply(const float *src, float *dst, size_t frameCount); 471 const float *src, float *dst, size_t frameCount, bool accumulate) const = 0; 485 virtual bool process(const float *src, float *dst, size_t frameCount, bool accumulate, 536 bool process(const float *src, float *dst, size_t frameCount, in process() argument 538 return accumulate ? processSwitch<true>(src, dst, frameCount) in process() 539 : processSwitch<false>(src, dst, frameCount); in process() 542 bool process(const float *src, float *dst, size_t frameCount, in process() argument 544 return setInputChannelMask(inputChannelMask) && process(src, dst, frameCount, accumulate); in process() 579 bool processSwitch(const float *src, float *dst, size_t frameCount) const { in processSwitch() argument 587 OUTPUT_CHANNEL_MASK, ACCUMULATE>(src, dst, frameCount); in processSwitch() [all …]
|
/system/apex/tests/testdata/sharedlibs/prebuilts/ |
D | Android.bp | 27 src: "arm/com.android.apex.test.bar_stripped.v1.libvX.apex", 30 src: "arm64/com.android.apex.test.bar_stripped.v1.libvX.apex", 33 src: "x86/com.android.apex.test.bar_stripped.v1.libvX.apex", 36 src: "x86_64/com.android.apex.test.bar_stripped.v1.libvX.apex", 47 src: "arm/com.android.apex.test.bar_stripped.v2.libvY.apex", 50 src: "arm64/com.android.apex.test.bar_stripped.v2.libvY.apex", 53 src: "x86/com.android.apex.test.bar_stripped.v2.libvY.apex", 56 src: "x86_64/com.android.apex.test.bar_stripped.v2.libvY.apex", 67 src: "arm/com.android.apex.test.bar.v1.libvX.apex", 70 src: "arm64/com.android.apex.test.bar.v1.libvX.apex", [all …]
|
/system/media/audio_utils/benchmarks/ |
D | primitives_benchmark.cpp | 30 std::vector<float> src(count); in BM_MemcpyToFloatFromFloatWithClamping() local 38 src[i] = dis(gen); in BM_MemcpyToFloatFromFloatWithClamping() 39 expected[i] = fmin(absMax, fmax(-absMax, src[i])); in BM_MemcpyToFloatFromFloatWithClamping() 44 benchmark::DoNotOptimize(src.data()); in BM_MemcpyToFloatFromFloatWithClamping() 46 memcpy_to_float_from_float_with_clamping(dst.data(), src.data(), count, 1.413); in BM_MemcpyToFloatFromFloatWithClamping() 61 std::vector<float> src(count); in BM_MemcpyFloat() local 68 src[i] = dis(gen); in BM_MemcpyFloat() 73 benchmark::DoNotOptimize(src.data()); in BM_MemcpyFloat() 75 memcpy(dst.data(), src.data(), count * sizeof(float)); in BM_MemcpyFloat() 79 if (src != dst) { in BM_MemcpyFloat() [all …]
|
/system/teeui/libteeui/ |
D | Android.bp | 10 "src/button.cpp", 11 "src/font_rendering.cpp", 12 "src/label.cpp", 13 "src/utils.cpp", 30 "src/evdev.cpp", 31 "src/generic_messages.cpp", 32 "src/msg_formatting.cpp", 33 "src/utils.cpp", 34 "src/weak_secure_input_device.cpp",
|
/system/core/libsysutils/ |
D | Android.bp | 13 "src/SocketListener.cpp", 14 "src/FrameworkListener.cpp", 15 "src/NetlinkListener.cpp", 16 "src/NetlinkEvent.cpp", 17 "src/FrameworkCommand.cpp", 18 "src/SocketClient.cpp", 19 "src/ServiceManager.cpp", 57 "src/SocketListener_test.cpp",
|
/system/chre/pal/ |
D | pal.mk | 14 GOOGLETEST_SRCS += $(CHRE_PREFIX)/pal/tests/src/version_test.cc 15 GOOGLETEST_SRCS += $(CHRE_PREFIX)/pal/tests/src/wwan_test.cc 17 GOOGLETEST_PAL_IMPL_SRCS += $(CHRE_PREFIX)/pal/tests/src/audio_pal_impl_test.cc 18 GOOGLETEST_PAL_IMPL_SRCS += $(CHRE_PREFIX)/pal/tests/src/ble_pal_impl_test.cc 19 GOOGLETEST_PAL_IMPL_SRCS += $(CHRE_PREFIX)/pal/tests/src/gnss_pal_impl_test.cc 20 GOOGLETEST_PAL_IMPL_SRCS += $(CHRE_PREFIX)/pal/tests/src/sensor_pal_impl_test.cc 21 GOOGLETEST_PAL_IMPL_SRCS += $(CHRE_PREFIX)/pal/tests/src/wifi_pal_impl_test.cc
|
/system/core/libutils/include/utils/ |
D | Unicode.h | 45 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len); 84 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst, size_t dst_len); 93 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index); 99 ssize_t utf16_to_utf8_length(const char16_t *src, size_t src_len); 106 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst, size_t dst_len); 114 ssize_t utf8_to_utf16_length(const uint8_t* src, size_t srcLen, bool overreadIsFatal = false); 124 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen); 135 const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen);
|
/system/core/storaged/ |
D | storaged_diskstats.cpp | 107 void convert_hal_disk_stats(struct disk_stats* dst, const DiskStats& src) { in convert_hal_disk_stats() argument 108 dst->read_ios = src.reads; in convert_hal_disk_stats() 109 dst->read_merges = src.readMerges; in convert_hal_disk_stats() 110 dst->read_sectors = src.readSectors; in convert_hal_disk_stats() 111 dst->read_ticks = src.readTicks; in convert_hal_disk_stats() 112 dst->write_ios = src.writes; in convert_hal_disk_stats() 113 dst->write_merges = src.writeMerges; in convert_hal_disk_stats() 114 dst->write_sectors = src.writeSectors; in convert_hal_disk_stats() 115 dst->write_ticks = src.writeTicks; in convert_hal_disk_stats() 116 dst->io_in_flight = src.ioInFlight; in convert_hal_disk_stats() [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 224 const camera_metadata_t *src, in allocate_copy_camera_metadata_checked() argument 227 if (src == NULL) { in allocate_copy_camera_metadata_checked() 238 memcpy(buffer, src, src_size); in allocate_copy_camera_metadata_checked() 346 const camera_metadata_t *src) { in copy_camera_metadata() argument 347 size_t memory_needed = get_camera_metadata_compact_size(src); in copy_camera_metadata() 357 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata() 359 metadata->flags = src->flags; in copy_camera_metadata() 360 metadata->entry_count = src->entry_count; in copy_camera_metadata() 361 metadata->data_count = src->data_count; in copy_camera_metadata() 362 metadata->vendor_id = src->vendor_id; in copy_camera_metadata() [all …]
|
/system/core/fastboot/ |
D | bootimg_utils.cpp | 51 const std::vector<char>& ramdisk, const boot_img_hdr_v2& src, in mkbootimg_v3_and_above() argument 66 hdr->os_version = src.os_version; in mkbootimg_v3_and_above() 68 hdr->header_version = src.header_version; in mkbootimg_v3_and_above() 70 if (src.header_version >= 4) { in mkbootimg_v3_and_above() 81 const boot_img_hdr_v2& src, std::vector<char>* out) { in mkbootimg() argument 82 if (src.header_version >= 3) { in mkbootimg() 85 src.header_version); in mkbootimg() 87 mkbootimg_v3_and_above(kernel, ramdisk, src, out); in mkbootimg() 90 const size_t page_mask = src.page_size - 1; in mkbootimg() 104 *hdr = src; in mkbootimg()
|
/system/core/libprocessgroup/profiles/ |
D | Android.bp | 21 src: "cgroups.json", 33 src: "cgroups.recovery.json", 38 src: "cgroups_28.json", 44 src: "cgroups_29.json", 50 src: "cgroups_30.json", 56 src: "task_profiles.json", 66 src: "task_profiles_28.json", 72 src: "task_profiles_29.json", 78 src: "task_profiles_30.json",
|
/system/chre/apps/test/chqts/src/shared/ |
D | nano_string.cc | 42 const uint8_t *src = static_cast<const uint8_t *>(s); in memcpy() local 44 dst[i] = src[i]; in memcpy() 55 char *strncpy(char *dest, const char *src, size_t len) { in strncpy() argument 57 for (i = 0; (i < len) && (src[i] != '\0'); i++) { in strncpy() 58 dest[i] = src[i]; in strncpy()
|
/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() 45 if ((src_fd = open(src, O_RDONLY)) < 0) { in write_raw_image() 46 ALOGE("Could not open %s for reading (errno=%d).", src, errno); in write_raw_image() 67 ALOGE("Error (%d) while reading from '%s'", errno, src); in write_raw_image()
|
/system/unwinding/libunwindstack/tests/ |
D | MemoryLocalTest.cpp | 30 std::vector<uint8_t> src(1024); in TEST() local 31 memset(src.data(), 0x4c, 1024); in TEST() 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() 42 memset(src.data(), 0x23, 512); 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()
|
D | MemoryRemoteTest.cpp | 42 std::vector<uint8_t> src(1024); in TEST() local 43 memset(src.data(), 0x4c, 1024); in TEST() 58 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), 1024)); in TEST() 68 std::vector<uint8_t> src(kTotalPages * getpagesize()); in TEST() local 70 memset(&src[i * getpagesize()], i, getpagesize()); in TEST() 87 ASSERT_TRUE(remote.ReadFully(reinterpret_cast<uint64_t>(src.data()), dst.data(), src.size())); in TEST() 141 void* src = mmap(nullptr, pagesize * 2, PROT_READ | PROT_WRITE, MAP_ANON | MAP_PRIVATE,-1, 0); in TEST() local 142 memset(src, 0x4c, pagesize * 2); in TEST() 143 ASSERT_NE(MAP_FAILED, src); in TEST() 145 ASSERT_EQ(0, munmap(reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(src) + pagesize), in TEST() [all …]
|
/system/extras/cpu_loads/ |
D | memcpy-16kb.cpp | 22 void* src = malloc(BUFFER_SIZE); in main() local 24 ((char*)src)[i] = (char)i; in main() 28 memcpy(dst, src, BUFFER_SIZE); in main()
|
D | memcpy-2048kb.cpp | 22 void* src = malloc(BUFFER_SIZE); in main() local 24 ((char*)src)[i] = (char)i; in main() 28 memcpy(dst, src, BUFFER_SIZE); in main()
|
D | memcpy.cpp | 22 void* src = malloc(BUFFER_SIZE); in main() local 24 ((char*)src)[i] = (char)i; in main() 28 memcpy(dst, src, BUFFER_SIZE); in main()
|