/system/core/libcutils/arch-mips/ |
H A 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) argument 25 _memset16(dst, value, size); 28 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument 30 _memset32(dst, value, size);
|
/system/media/audio_utils/ |
H A D | primitives.c | 33 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count) argument 35 dst += count; 38 *--dst = (int16_t)(*--src - 0x80) << 8; 42 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count) argument 45 *dst++ = (*src++ >> 8) + 0x80; 49 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count) argument 52 *dst++ = *src++ >> 16; 56 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count) argument 69 *dst++ = i; 73 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, cons argument 81 upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument [all...] |
/system/core/libcutils/ |
H A D | memory.c | 20 void android_memset16(uint16_t* dst, uint16_t value, size_t size) argument 24 *dst++ = value; 30 void android_memset32(uint32_t* dst, uint32_t value, size_t size) argument 34 *dst++ = value; 62 * Copy src to string dst of size siz. At most siz-1 characters 67 strlcpy(char *dst, const char *src, size_t siz) argument 69 char *d = dst; 81 /* Not enough room in dst, add NUL and traverse rest of src */ 84 *d = '\0'; /* NUL-terminate dst */
|
/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/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/libdiskconfig/ |
H A D | diskutils.c | 33 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument 43 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, offset); 50 if ((dst_fd = open(dst, O_RDWR)) < 0) { 51 ALOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); 56 ALOGE("Could not seek to offset %lld in %s.", offset, dst); 87 ALOGE("Error (%d) while writing to '%s'", errno, dst); 104 ALOGI("Wrote %llu bytes to %s @ %lld", total, dst, offset);
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 198 camera_metadata_t *place_camera_metadata(void *dst, argument 202 if (dst == NULL) return NULL; 209 camera_metadata_t *metadata = (camera_metadata_t*)dst; 271 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, argument 275 if (dst == NULL) return NULL; 279 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count); 444 int append_camera_metadata(camera_metadata_t *dst, argument 446 if (dst == NULL || src == NULL ) return ERROR; 448 if (dst->entry_capacity < src->entry_count + dst 503 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument 539 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument 565 sort_camera_metadata(camera_metadata_t *dst) argument 639 delete_camera_metadata_entry(camera_metadata_t *dst, size_t index) argument 677 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 752 set_camera_metadata_user_pointer(camera_metadata_t *dst, void* user) argument 758 get_camera_metadata_user_pointer(camera_metadata_t *dst, void** user) argument [all...] |
/system/core/include/utils/ |
H A D | Unicode.h | 59 * Stores a UTF-8 string converted from "src" in "dst", if "dst_length" is not 61 * into "dst" as much as possible. See the examples for more detail. 63 * dst" is not null-terminated when dst_len is fully used (like strncpy). 71 * "dst" becomes \xE3\x81\x82\xE3\x81\x84\0 72 * (note that "dst" is null-terminated) 80 * "dst" becomes \xE3\x81\x82\0 81 * (note that "dst" is null-terminated, but \u3044 is not stored in "dst" 82 * since "dst" does not have enough size to store the character) 90 * "dst" become [all...] |
/system/core/init/ |
H A D | init_parser.h | 34 int expand_props(char *dst, const char *src, int len);
|
/system/media/camera/include/system/ |
H A D | camera_metadata.h | 190 camera_metadata_t *place_camera_metadata(void *dst, size_t dst_size, 219 * its dst buffer. 257 * the start of dst. 264 camera_metadata_t *copy_camera_metadata(void *dst, size_t dst_size, 285 * Append camera metadata in src to an existing metadata structure in dst. This 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, [all...] |
/system/media/audio_utils/include/audio_utils/ |
H A D | primitives.h | 42 * dst Destination buffer 48 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 52 * dst Destination buffer 59 void memcpy_to_u8_from_i16(uint8_t *dst, const int16_t *src, size_t count); 63 * dst Destination buffer 70 void memcpy_to_i16_from_i32(int16_t *dst, const int32_t *src, size_t count); 75 * dst Destination buffer 82 void memcpy_to_i16_from_float(int16_t *dst, const float *src, size_t count); 86 * dst Destination buffer 92 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, cons [all...] |
/system/core/libutils/ |
H A D | Unicode.cpp | 191 void utf32_to_utf8(const char32_t* src, size_t src_len, char* dst) argument 193 if (src == NULL || src_len == 0 || dst == NULL) { 199 char *cur = dst; 240 char16_t *strcpy16(char16_t *dst, const char16_t *src) argument 242 char16_t *q = dst; 250 return dst; 262 char16_t *strncpy16(char16_t *dst, const char16_t *src, size_t n) argument 264 char16_t *q = dst; 277 return dst; 333 void utf16_to_utf8(const char16_t* src, size_t src_len, char* dst) argument 472 utf8_to_utf32(const char* src, size_t src_len, char32_t* dst) argument 576 utf8_to_utf16_n(const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen) argument [all...] |
/system/core/libpixelflinger/ |
H A D | buffer.h | 28 void ggl_set_surface(context_t* c, surface_t* dst, const GGLSurface* src);
|
H A D | picker.cpp | 54 uint32_t dst = c->state.blend.dst; local 67 if ((dst == GGL_ONE_MINUS_DST_ALPHA) || 68 (dst == GGL_DST_ALPHA)) { 69 dst = GGL_ONE; 78 dst = ggl_blendfactor_to_needs(dst); 83 n |= GGL_BUILD_NEEDS( dst, BLEND_DST ); 89 n |= GGL_BUILD_NEEDS( dst, BLEND_DSTA );
|
H A D | raster.cpp | 108 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) local 117 dst += height * bpr; 119 dst -= bpr; 121 memcpy(dst, src, rowsize); 127 memmove(dst, src, rowsize); 128 dst += bpr; 134 memcpy(dst, src, rowsize); 135 dst += bpr;
|
H A D | clear.cpp | 55 uint8_t* dst = (uint8_t*)s.data + (l + t*s.stride)*size; local 67 memset(dst, packed, w); 68 dst += stride; 73 android_memset16((uint16_t*)dst, packed, w); 74 dst += stride; 81 android_memset32((uint32_t*)dst, packed, w); 82 dst += stride;
|
H A 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); 195 "565 fb, 8888 tx, blend dst:ONE_MINUS_SRCA src:SRCA", scanline_t32cb16blend_srca, init_y_noop }, 448 const pixel_t* src, const pixel_t* dst); 482 blend_factor(c, &df, c->state.blend.dst, fragment, fb); 526 uint32_t factor, const pixel_t* src, const pixel_t* dst) 542 r->c[1] = blendfactor(dst->c[1], dst->s[1]); 543 r->c[2] = blendfactor(dst 525 blend_factor(context_t* c, pixel_t* r, uint32_t factor, const pixel_t* src, const pixel_t* dst) argument 1153 write(uint32_t s, uint16_t* dst) argument 1175 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1210 write(uint32_t s, uint16_t* dst) argument 1254 write(uint32_t s, uint16_t* dst) argument 1284 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1326 write(uint32_t s, uint16_t* dst) argument 1348 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1381 write(uint16_t s16, uint16_t* dst) argument 1423 uint16_t* dst; member in struct:android::dst_iterator16 2077 uint16_t* dst; member in union:android::__anon222 2116 uint16_t* dst; member in union:android::__anon223 2165 uint16_t* dst = reinterpret_cast<uint16_t*>(cb->data) + (x+(cb->stride*y)); local 2232 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2251 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + (x+(cb->stride*y)); local 2262 uint16_t* dst = reinterpret_cast<uint16_t*>(cb->data) + (x+(cb->stride*y)); local 2273 uint32_t* dst = reinterpret_cast<uint32_t*>(cb->data) + (x+(cb->stride*y)); local 2285 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2298 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2323 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local [all...] |
H A D | buffer.cpp | 58 void ggl_set_surface(context_t* c, surface_t* dst, const GGLSurface* src) argument 60 dst->width = src->width; 61 dst->height = src->height; 62 dst->stride = src->stride; 63 dst->data = src->data; 64 dst->format = src->format; 65 dst->dirty = 1; 66 if (__builtin_expect(dst->stride < 0, false)) { 67 const GGLFormat& pixelFormat(c->formats[dst->format]); 68 const int32_t bpr = -dst [all...] |
/system/extras/libc_test/ |
H A D | main.cpp | 492 char *dst = allocateString(); 493 if (dst == NULL) { 506 dst_align = reinterpret_cast<char*>(getAlignedPtr(dst+FENCEPOST_LENGTH, kStringAligns[i][2], kStringAligns[i][3])); 509 dst_align = dst; 514 if (dst_align != dst) { 532 printf("copy_len %u failed to copy properly: src and dst aren't equal\n", copy_len); 536 if (dst_align != dst && !verifyFencepost(reinterpret_cast<uint8_t*>(&dst_align[-FENCEPOST_LENGTH]))) { 537 printf("copy_len %u fencepost before dst was overwritten\n", copy_len); 542 printf("copy_len %u fencepost at end of dst was overwritten\n", copy_len); 560 char *dst [all...] |
/system/core/libcutils/tests/memset_mips/ |
H A 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);
|
H A 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 201 addu a3,a0,a3 # now a3 is the dst address past the 1w chunks
|
/system/core/libpixelflinger/arch-mips/ |
H A 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/run-as/ |
H A D | package.c | 47 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen' 55 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) argument 58 const char* dstend = dst + dstlen; 65 while (dst < dstend && src < srcend && *src != '\0') 66 *dst++ = *src++; 68 *dst = '\0'; /* zero-terminate result */
|
/system/core/libnetutils/ |
H A D | ifc_utils.c | 504 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument 518 init_sockaddr_in(&rt.rt_dst, dst.s_addr); 562 int ifc_add_host_route(const char *name, in_addr_t dst) argument 566 in_dst.s_addr = dst; 820 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument 836 rtmsg.rtmsg_dst = dst; 867 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, argument 879 ret = getaddrinfo(dst, NULL, &hints, &addr_ai); 882 printerr("getaddrinfo failed: invalid address %s\n", dst); 909 printerr("ifc_add_route: different address families: %s and %s\n", dst, g 939 ifc_add_ipv4_route(const char *ifname, struct in_addr dst, int prefix_length, struct in_addr gw) argument 950 ifc_add_ipv6_route(const char *ifname, struct in6_addr dst, int prefix_length, struct in6_addr gw) argument 956 ifc_add_route(const char *ifname, const char *dst, int prefix_length, const char *gw) argument [all...] |
/system/media/camera/docs/ |
H A D | camera_metadata_tag_info.mako | 66 char *dst, 94 strncpy(dst, msg, size - 1); 95 dst[size - 1] = '\0';
|