/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 LOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, offset); 50 if ((dst_fd = open(dst, O_RDWR)) < 0) { 51 LOGE("Could not open '%s' for read/write (errno=%d).", dst, errno); 56 LOGE("Could not seek to offset %lld in %s.", offset, dst); 87 LOGE("Error (%d) while writing to '%s'", errno, dst); 104 LOGI("Wrote %llu bytes to %s @ %lld", total, dst, offset);
|
/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/debuggerd/ |
H A D | utility.c | 37 void get_remote_struct(int pid, void *src, void *dst, size_t size) argument 42 *(int *)((char *)dst+i) = ptrace(PTRACE_PEEKTEXT, pid, (char *)src+i, NULL); 51 ((unsigned char *)dst)[i] = val & 0xff;
|
H A D | utility.h | 49 extern void get_remote_struct(int pid, void *src, void *dst, size_t size);
|
/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 | 114 extern "C" void scanline_t32cb16_arm(uint16_t *dst, uint32_t *src, size_t ct); 115 extern "C" void scanline_col32cb16blend_neon(uint16_t *dst, uint32_t *col, size_t ct); 116 extern "C" void scanline_col32cb16blend_arm(uint16_t *dst, uint32_t col, size_t ct); 184 "565 fb, 8888 tx, blend dst:ONE_MINUS_SRCA src:SRCA", scanline_t32cb16blend_srca, init_y_noop }, 427 const pixel_t* src, const pixel_t* dst); 461 blend_factor(c, &df, c->state.blend.dst, fragment, fb); 505 uint32_t factor, const pixel_t* src, const pixel_t* dst) 521 r->c[1] = blendfactor(dst->c[1], dst->s[1]); 522 r->c[2] = blendfactor(dst 504 blend_factor(context_t* c, pixel_t* r, uint32_t factor, const pixel_t* src, const pixel_t* dst) argument 1132 write(uint32_t s, uint16_t* dst) argument 1154 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1189 write(uint32_t s, uint16_t* dst) argument 1233 write(uint32_t s, uint16_t* dst) argument 1263 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1305 write(uint32_t s, uint16_t* dst) argument 1327 write(uint32_t s, uint16_t* dst, ditherer& di) argument 1360 write(uint16_t s16, uint16_t* dst) argument 1402 uint16_t* dst; member in struct:android::dst_iterator16 2056 uint16_t* dst; member in union:android::__anon405 2095 uint16_t* dst; member in union:android::__anon406 2144 uint16_t* dst = reinterpret_cast<uint16_t*>(cb->data) + (x+(cb->stride*y)); local 2207 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2226 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + (x+(cb->stride*y)); local 2237 uint16_t* dst = reinterpret_cast<uint16_t*>(cb->data) + (x+(cb->stride*y)); local 2248 uint32_t* dst = reinterpret_cast<uint32_t*>(cb->data) + (x+(cb->stride*y)); local 2260 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2273 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local 2298 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...] |
H A D | pixelflinger.cpp | 302 static void ggl_blendFunc(void* con, GGLenum src, GGLenum dst) argument 307 c->state.blend.dst = dst; 308 c->state.blend.dst_alpha = dst; 316 GGLenum src, GGLenum dst, 322 c->state.blend.dst = dst; 795 c->state.blend.dst = GGL_ZERO; 315 ggl_blendFuncSeparate(void* con, GGLenum src, GGLenum dst, GGLenum srcAlpha, GGLenum dstAplha) argument
|
/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/run-as/ |
H A D | package.c | 49 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen' 54 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) argument 57 const char* dstend = dst + dstlen; 64 while (dst < dstend && src < srcend && *src != '\0') 65 *dst++ = *src++; 67 *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 | 505 int ifc_act_on_ipv4_route(int action, const char *ifname, struct in_addr dst, int prefix_length, argument 519 init_sockaddr_in(&rt.rt_dst, dst.s_addr); 563 int ifc_add_host_route(const char *name, in_addr_t dst) argument 567 in_dst.s_addr = dst; 825 int ifc_act_on_ipv6_route(int action, const char *ifname, struct in6_addr dst, int prefix_length, argument 841 rtmsg.rtmsg_dst = dst; 872 int ifc_act_on_route(int action, const char *ifname, const char *dst, int prefix_length, argument 884 ret = getaddrinfo(dst, NULL, &hints, &addr_ai); 887 printerr("getaddrinfo failed: invalid address %s\n", dst); 914 printerr("ifc_add_route: different address families: %s and %s\n", dst, g 944 ifc_add_ipv4_route(const char *ifname, struct in_addr dst, int prefix_length, struct in_addr gw) argument 955 ifc_add_ipv6_route(const char *ifname, struct in6_addr dst, int prefix_length, struct in6_addr gw) argument 961 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 | 60 extern int ifc_remove_route(const char *ifname, const char *dst,
|
/system/vold/ |
H A D | Volume.h | 100 int doMoveMount(const char *src, const char *dst, bool force);
|
H A D | Volume.cpp | 526 int Volume::doMoveMount(const char *src, const char *dst, bool force) { argument 531 if (!mount(src, dst, "", flags, NULL)) { 533 SLOGD("Moved mount %s -> %s sucessfully", src, dst); 537 SLOGE("Failed to move mount %s -> %s (%s)", src, dst, strerror(errno)); 550 src, dst, strerror(errno), retries, action); 556 SLOGE("Giving up on move %s -> %s (%s)", src, dst, strerror(errno));
|
/system/core/include/diskconfig/ |
H A D | diskconfig.h | 119 int write_raw_image(const char *dst, const char *src, loff_t offset, int test);
|
/system/core/adb/ |
H A D | file_sync_client.c | 563 const char *dst; member in struct:copyinfo 592 ci->dst = ci->src + ssize; 594 snprintf((char*) ci->dst, dsize, isdir ? "%s%s/" : "%s%s", dpath, name); 596 // fprintf(stderr,"mkcopyinfo('%s','%s')\n", ci->src, ci->dst); 666 local_build_list(filelist, ci->src, ci->dst); 703 if(sync_start_readtime(fd, ci->dst)) { 722 fprintf(stderr,"%spush: %s -> %s\n", listonly ? "would " : "", ci->src, ci->dst); 724 sync_send(fd, ci->src, ci->dst, ci->time, ci->mode, 0 /* no verify APK */)){ 861 if (remote_build_list(syncfd, filelist, dirlist->src, dirlist->dst)) { 905 if (sync_start_readtime(fd, ci->dst)) { [all...] |
/system/core/libpixelflinger/codeflinger/ |
H A D | blending.cpp | 85 // fb: extracted dst 636 const integer_t& dst, const integer_t& src) 639 const int shift = src.size() - dst.size(); 641 ADD(AL, 0, d.reg, src.reg, dst.reg); 643 ADD(AL, 0, d.reg, src.reg, reg_imm(dst.reg, LSL, shift));
|
H A D | load_store.cpp | 193 void GGLAssembler::expand(integer_t& dst, const integer_t& src, int dbits) argument 199 int d = dst.reg; 201 // be sure to set 'dst' after we read 'src' as they may be identical 202 dst.s = dbits; 203 dst.flags = 0;
|