/system/media/audio_utils/ |
D | primitives.c | 33 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) in memcpy_to_i16_from_u8() argument 35 dst += count; in memcpy_to_i16_from_u8() 38 *--dst = (int16_t)(*--src - 0x80) << 8; in memcpy_to_i16_from_u8() 42 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) in memcpy_to_u8_from_i16() argument 45 *dst++ = (*src++ >> 8) + 0x80; in memcpy_to_u8_from_i16() 49 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) in memcpy_to_i16_from_i32() argument 52 *dst++ = *src++ >> 16; in memcpy_to_i16_from_i32() 56 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) in memcpy_to_i16_from_float() argument 69 *dst++ = i; in memcpy_to_i16_from_float() 73 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) in downmix_to_mono_i16_from_stereo_i16() argument [all …]
|
/system/media/camera/src/ |
D | camera_metadata.c | 198 camera_metadata_t *place_camera_metadata(void *dst, in place_camera_metadata() argument 202 if (dst == NULL) return NULL; in place_camera_metadata() 209 camera_metadata_t *metadata = (camera_metadata_t*)dst; in place_camera_metadata() 271 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, in copy_camera_metadata() argument 275 if (dst == NULL) return NULL; in copy_camera_metadata() 279 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); in copy_camera_metadata() 444 int append_camera_metadata(camera_metadata_t *dst, in append_camera_metadata() argument 446 if (dst == NULL || src == NULL ) return ERROR; in append_camera_metadata() 448 if (dst->entry_capacity < src->entry_count + dst->entry_count) return ERROR; in append_camera_metadata() 449 if (dst->data_capacity < src->data_count + dst->data_count) return ERROR; in append_camera_metadata() [all …]
|
/system/core/libcutils/arch-mips/ |
D | android_memset.c | 20 void _memset16(uint16_t* dst, uint16_t value, size_t size); 21 void _memset32(uint32_t* dst, uint32_t value, size_t size); 23 void android_memset16(uint16_t* dst, uint16_t value, size_t size) in android_memset16() argument 25 _memset16(dst, value, size); in android_memset16() 28 void android_memset32(uint32_t* dst, uint32_t value, size_t size) in android_memset32() argument 30 _memset32(dst, value, size); in android_memset32()
|
/system/vold/tests/ |
D | VolumeManager_test.cpp | 39 char* dst = reinterpret_cast<char*>(&buffer); in TEST_F() local 46 EXPECT_TRUE(VolumeManager::asecHash(exp1, dst, 0) == NULL && errno == ESPIPE) in TEST_F() 48 …EXPECT_TRUE(VolumeManager::asecHash((const char*)NULL, dst, sizeof(buffer)) == NULL && errno == ES… in TEST_F() 51 EXPECT_FALSE(VolumeManager::asecHash(src1, dst, sizeof(buffer)) == NULL) in TEST_F() 53 EXPECT_STREQ(exp1, dst) in TEST_F() 58 EXPECT_FALSE(VolumeManager::asecHash(src2, dst, sizeof(buffer)) == NULL) in TEST_F() 60 EXPECT_STREQ(exp2, dst) in TEST_F()
|
/system/core/libcutils/ |
D | memory.c | 20 void android_memset16(uint16_t* dst, uint16_t value, size_t size) in android_memset16() argument 24 *dst++ = value; in android_memset16() 30 void android_memset32(uint32_t* dst, uint32_t value, size_t size) in android_memset32() argument 34 *dst++ = value; in android_memset32() 67 strlcpy(char *dst, const char *src, size_t siz) in strlcpy() argument 69 char *d = dst; in strlcpy()
|
/system/core/libdiskconfig/ |
D | diskutils.c | 33 write_raw_image(const char *dst, const char *src, loff_t offset, int test) in write_raw_image() argument 43 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, offset); in write_raw_image() 50 if ((dst_fd = open(dst, O_RDWR)) < 0) { in write_raw_image() 51 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); in write_raw_image() 56 ALOGE("Could not seek to offset %lld in %s.", offset, dst); in write_raw_image() 87 ALOGE("Error (%d) while writing to '%s'", errno, dst); in write_raw_image() 104 ALOGI("Wrote %llu bytes to %s @ %lld", total, dst, offset); in write_raw_image()
|
/system/media/camera/include/system/ |
D | camera_metadata.h | 190 camera_metadata_t *place_camera_metadata(void *dst, size_t dst_size, 264 camera_metadata_t *copy_camera_metadata(void *dst, size_t dst_size, 291 int append_camera_metadata(camera_metadata_t *dst, const camera_metadata_t *src); 323 int add_camera_metadata_entry(camera_metadata_t *dst, 334 int sort_camera_metadata(camera_metadata_t *dst); 376 int delete_camera_metadata_entry(camera_metadata_t *dst, 389 int update_camera_metadata_entry(camera_metadata_t *dst, 401 int set_camera_metadata_user_pointer(camera_metadata_t *dst, void* user); 408 int get_camera_metadata_user_pointer(camera_metadata_t *dst, void** user); 516 char *dst,
|
/system/core/include/utils/ |
D | Unicode.h | 93 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst); 115 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst); 145 void utf8_to_utf32(const char* src, size_t src_len, char32_t* dst); 157 char16_t* utf8_to_utf16_no_null_terminator(const uint8_t* src, size_t srcLen, char16_t* dst); 164 void utf8_to_utf16(const uint8_t* src, size_t srcLen, char16_t* dst); 171 char16_t* utf8_to_utf16_n(const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen);
|
/system/core/include/cutils/ |
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/media/audio_utils/include/audio_utils/ |
D | primitives.h | 48 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 59 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 70 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 82 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count); 92 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count); 102 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count);
|
/system/core/libpixelflinger/ |
D | scanline.cpp | 122 extern "C" void scanline_t32cb16_arm(uint16_t *dst, uint32_t *src, size_t ct); 123 extern "C" void scanline_col32cb16blend_neon(uint16_t *dst, uint32_t *col, size_t ct); 124 extern "C" void scanline_col32cb16blend_arm(uint16_t *dst, uint32_t col, size_t ct); 448 const pixel_t* src, const pixel_t* dst); 482 blend_factor(c, &df, c->state.blend.dst, fragment, fb); in blending() 526 uint32_t factor, const pixel_t* src, const pixel_t* dst) in blend_factor() argument 542 r->c[1] = blendfactor(dst->c[1], dst->s[1]); in blend_factor() 543 r->c[2] = blendfactor(dst->c[2], dst->s[2]); in blend_factor() 544 r->c[3] = blendfactor(dst->c[3], dst->s[3]); in blend_factor() 545 r->c[0] = blendfactor(dst->c[0], dst->s[0]); in blend_factor() [all …]
|
D | picker.cpp | 54 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()
|
D | clear.cpp | 55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size; in memset2d() local 67 memset(dst, packed, w); in memset2d() 68 dst += stride; in memset2d() 73 android_memset16((uint16_t*)dst, packed, w); in memset2d() 74 dst += stride; in memset2d() 81 android_memset32((uint32_t*)dst, packed, w); in memset2d() 82 dst += stride; in memset2d()
|
D | raster.cpp | 108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) in ggl_copyPixels() local 117 dst += height * bpr; in ggl_copyPixels() 119 dst -= bpr; in ggl_copyPixels() 121 memcpy(dst, src, rowsize); in ggl_copyPixels() 127 memmove(dst, src, rowsize); in ggl_copyPixels() 128 dst += bpr; in ggl_copyPixels() 134 memcpy(dst, src, rowsize); in ggl_copyPixels() 135 dst += bpr; in ggl_copyPixels()
|
D | buffer.cpp | 58 void ggl_set_surface(context_t* c, surface_t* dst, const GGLSurface* src) in ggl_set_surface() argument 60 dst->width = src->width; in ggl_set_surface() 61 dst->height = src->height; in ggl_set_surface() 62 dst->stride = src->stride; in ggl_set_surface() 63 dst->data = src->data; in ggl_set_surface() 64 dst->format = src->format; in ggl_set_surface() 65 dst->dirty = 1; in ggl_set_surface() 66 if (__builtin_expect(dst->stride < 0, false)) { in ggl_set_surface() 67 const GGLFormat& pixelFormat(c->formats[dst->format]); in ggl_set_surface() 68 const int32_t bpr = -dst->stride * pixelFormat.size; in ggl_set_surface() [all …]
|
D | buffer.h | 28 void ggl_set_surface(context_t* c, surface_t* dst, const GGLSurface* src);
|
/system/core/libutils/ |
D | Unicode.cpp | 191 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst) in utf32_to_utf8() argument 193 if (src == NULL || src_len == 0 || dst == NULL) { in utf32_to_utf8() 199 char *cur = dst; in utf32_to_utf8() 240 char16_t *strcpy16(char16_t *dst, const char16_t *src) in strcpy16() argument 242 char16_t *q = dst; in strcpy16() 250 return dst; in strcpy16() 262 char16_t *strncpy16(char16_t *dst, const char16_t *src, size_t n) in strncpy16() argument 264 char16_t *q = dst; in strncpy16() 277 return dst; in strncpy16() 333 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst) in utf16_to_utf8() argument [all …]
|
/system/extras/libc_test/ |
D | main.cpp | 492 char *dst = allocateString(); in runStrcpyTest() local 493 if (dst == NULL) { in runStrcpyTest() 506 …dst_align = reinterpret_cast<char*>(getAlignedPtr(dst+FENCEPOST_LENGTH, kStringAligns[i][2], kStri… in runStrcpyTest() 509 dst_align = dst; in runStrcpyTest() 514 if (dst_align != dst) { in runStrcpyTest() 536 …if (dst_align != dst && !verifyFencepost(reinterpret_cast<uint8_t*>(&dst_align[-FENCEPOST_LENGTH])… in runStrcpyTest() 560 char *dst = allocateString(); in runStrcatTest() local 561 if (dst == NULL) { in runStrcatTest() 575 …dst_align = reinterpret_cast<char*>(getAlignedPtr(dst+FENCEPOST_LENGTH, kStringAligns[i][2], kStri… in runStrcatTest() 578 dst_align = dst; in runStrcatTest() [all …]
|
/system/core/libnetutils/ |
D | ifc_utils.c | 504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, in ifc_act_on_ipv4_route() argument 518 init_sockaddr_in(&rt.rt_dst, dst.s_addr); in ifc_act_on_ipv4_route() 562 int ifc_add_host_route(const char *name, in_addr_t dst) in ifc_add_host_route() argument 566 in_dst.s_addr = dst; in ifc_add_host_route() 820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, in ifc_act_on_ipv6_route() argument 836 rtmsg.rtmsg_dst = dst; in ifc_act_on_ipv6_route() 867 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, in ifc_act_on_route() argument 879 ret = getaddrinfo(dst, NULL, &hints, &addr_ai); in ifc_act_on_route() 882 printerr("getaddrinfo failed: invalid address %s\n", dst); in ifc_act_on_route() 909 printerr("ifc_add_route: different address families: %s and %s\n", dst, gw); in ifc_act_on_route() [all …]
|
/system/core/libcutils/tests/memset_mips/ |
D | test_memset.c | 174 extern void android_memset32_dumb(uint32_t* dst, uint32_t value, size_t size); 175 extern void android_memset16_dumb(uint32_t* dst, uint16_t value, size_t size); 176 extern void android_memset32_test(uint32_t* dst, uint32_t value, size_t size); 177 extern void android_memset16_test(uint32_t* dst, uint16_t value, size_t size); 178 extern void memset_cmips(void* dst, int value, size_t size); 179 extern void memset_omips(void* dst, int value, size_t size);
|
D | memset_cmips.S | 70 move v0,a0 # memset returns the dst pointer 101 addu a3,a0,a3 # Now a3 is the final dst after 64-byte chunks 116 addu t4,a0,t5 # Now t4 is the dst after 64-byte "safe" chunks
|
/system/core/run-as/ |
D | package.c | 55 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) in string_copy() argument 58 const char* dstend = dst + dstlen; in string_copy() 65 while (dst < dstend && src < srcend && *src != '\0') in string_copy() 66 *dst++ = *src++; in string_copy() 68 *dst = '\0'; /* zero-terminate result */ in string_copy()
|
/system/core/libpixelflinger/arch-mips/ |
D | t32cb16blend.S | 52 ext $t8,\dreg,\shift+6+5,5 # dst[\shift:15..11] 54 ext $t0,\dreg,\shift+5,6 # start green extraction dst[\shift:10..5] 58 ins \fb,$t8,\shift+6+5,5 # dst[\shift:15..11] 62 ext $t0,\dreg,\shift,5 # start blue extraction dst[\shift:4..0] 69 ins \fb,$t8,\shift+5,6 # finish green insertion dst[\shift:10..5]
|
/system/core/init/ |
D | init_parser.h | 34 int expand_props(char *dst, const char *src, int len);
|
/system/media/camera/docs/ |
D | camera_metadata_tag_info.mako | 66 char *dst, 94 strncpy(dst, msg, size - 1); 95 dst[size - 1] = '\0';
|