/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/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 downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count) argument 45 *dst++ = (int16_t)(((int32_t)src[0] + (int32_t)src[1]) >> 1); 50 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument 54 dst[0] = temp; 55 dst[1] = temp; 56 dst += 2;
|
/system/media/camera/src/ |
H A D | camera_metadata.c | 136 camera_metadata_t *place_camera_metadata(void *dst, argument 140 if (dst == NULL) return NULL; 147 camera_metadata_t *metadata = (camera_metadata_t*)dst; 211 camera_metadata_t* copy_camera_metadata(void *dst, size_t dst_size, argument 215 if (dst == NULL) return NULL; 224 camera_metadata_t *metadata = (camera_metadata_t*)dst; 248 int append_camera_metadata(camera_metadata_t *dst, argument 250 if (dst == NULL || src == NULL ) return ERROR; 252 if (dst->entry_capacity < src->entry_count + dst 309 add_camera_metadata_entry_raw(camera_metadata_t *dst, uint32_t tag, uint8_t type, const void *data, size_t data_count) argument 340 add_camera_metadata_entry(camera_metadata_t *dst, uint32_t tag, const void *data, size_t data_count) argument 366 sort_camera_metadata(camera_metadata_t *dst) argument 439 delete_camera_metadata_entry(camera_metadata_t *dst, size_t index) argument 477 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 549 set_camera_metadata_user_pointer(camera_metadata_t *dst, void* user) argument 555 get_camera_metadata_user_pointer(camera_metadata_t *dst, void** user) argument [all...] |
/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/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 | 178 camera_metadata_t *place_camera_metadata(void *dst, size_t dst_size, 207 * its dst buffer. 245 * the start of dst. 252 camera_metadata_t *copy_camera_metadata(void *dst, size_t dst_size, 256 * Append camera metadata in src to an existing metadata structure in dst. This 262 int append_camera_metadata(camera_metadata_t *dst, const camera_metadata_t *src); 294 int add_camera_metadata_entry(camera_metadata_t *dst, 305 int sort_camera_metadata(camera_metadata_t *dst); 347 int delete_camera_metadata_entry(camera_metadata_t *dst, 360 int update_camera_metadata_entry(camera_metadata_t *dst, [all...] |
/system/bluetooth/bluez-clean-headers/bluetooth/ |
H A D | rfcomm.h | 60 bdaddr_t dst; member in struct:rfcomm_dev_req 75 bdaddr_t dst; member in struct:rfcomm_dev_info
|
/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::__anon439 2116 uint16_t* dst; member in union:android::__anon440 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/media/audio_utils/include/audio_utils/ |
H A D | primitives.h | 39 * dst Destination buffer 45 void memcpy_to_i16_from_u8(int16_t *dst, const uint8_t *src, size_t count); 49 * dst Destination buffer 55 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_t count); 60 * dst Destination buffer 65 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count);
|
/system/extras/tests/memtest/ |
H A D | memtest.cpp | 150 char* dst = (char*)malloc(MAX_SIZE+4+8+32); local 152 memset(dst, 0, MAX_SIZE+4+8+32); 188 char* ddd = (char*)((long(dst+31)&~31) + 4); 192 memcpy(dst, src, size); // just make sure to load the caches I/D 219 char* d = dst + 1024; 233 free(dst); 278 char* dst = (char*)malloc(MAX_SIZE+4+8); local 306 if (j==0) preload(dst, DCACHE_SIZE*4); // flush D 307 else preload(dst, size); // load D 311 memset(dst, 416 char* dst = (char*)malloc(MAX_SIZE+4+8+32); local [all...] |
/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' 52 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) argument 55 const char* dstend = dst + dstlen; 62 while (dst < dstend && src < srcend && *src != '\0') 63 *dst++ = *src++; 65 *dst = '\0'; /* zero-terminate result */
|
/system/extras/tests/framebuffer/ |
H A D | mdp_test.c | 223 fprintf(stderr, "Can't parse dst image size\n"); 226 printf("Got dst img sz: w=%d h=%d\n", dst_imgw, dst_imgh); 305 req->dst.width = dst_imgw; 306 req->dst.height = dst_imgh; 307 req->dst.format = dst_fmt; 308 req->dst.offset = 0; 309 req->dst.memory_id = fb_fd;
|
/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/core/include/netutils/ |
H A D | ifc.h | 63 extern int ifc_remove_route(const char *ifname, const char *dst,
|
/system/vold/ |
H A D | Volume.h | 101 int doMoveMount(const char *src, const char *dst, bool force);
|
H A D | Volume.cpp | 530 int Volume::doMoveMount(const char *src, const char *dst, bool force) { argument 535 if (!mount(src, dst, "", flags, NULL)) { 537 SLOGD("Moved mount %s -> %s sucessfully", src, dst); 541 SLOGE("Failed to move mount %s -> %s (%s)", src, dst, strerror(errno)); 554 src, dst, strerror(errno), retries, action); 560 SLOGE("Giving up on move %s -> %s (%s)", src, dst, strerror(errno));
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 120 int write_raw_image(const char *dst, const char *src, loff_t offset, int test);
|