Searched defs:dst (Results 1 - 23 of 23) sorted by relevance

/system/core/libcutils/
H A Dmemory.c20 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/libdiskconfig/
H A Ddiskutils.c33 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/libpixelflinger/
H A Dpicker.cpp54 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 Dclear.cpp55 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 Dbuffer.cpp58 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 Draster.cpp108 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 Dpixelflinger.cpp302 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
H A Dscanline.cpp122 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 Dtrap.cpp456 uint8_t* dst = reinterpret_cast<uint8_t*>(cb->data) + local
459 memset(dst, 0xFF, size);
/system/media/audio_utils/
H A Dprimitives.c33 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/vold/tests/
H A DVolumeManager_test.cpp39 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/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h60 bdaddr_t dst; member in struct:rfcomm_dev_req
75 bdaddr_t dst; member in struct:rfcomm_dev_info
/system/core/libpixelflinger/codeflinger/
H A Dload_store.cpp197 void GGLAssembler::expand(integer_t& dst, const integer_t& src, int dbits) argument
203 int d = dst.reg;
205 // be sure to set 'dst' after we read 'src' as they may be identical
206 dst.s = dbits;
207 dst.flags = 0;
/system/core/run-as/
H A Dpackage.c47 /* 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/memtest/
H A Dmemtest.cpp150 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/vold/
H A DVolume.cpp530 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/adb/
H A Dfile_sync_client.c563 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...]
H A Dadb.c409 /* qual_overwrite is used to overwrite a qualifier string. dst is a
410 * pointer to a char pointer. It is assumed that if *dst is non-NULL, it
411 * was malloc'ed and needs to freed. *dst will be set to a dup of src.
413 static void qual_overwrite(char **dst, const char *src) argument
415 if (!dst)
418 free(*dst);
419 *dst = NULL;
424 *dst = strdup(src);
H A Dsysdeps_win32.c1005 bip_buffer_read( BipBuffer bip, void* dst, int len ) argument
1051 memcpy( dst, bip->buff + bip->a_start, avail );
1052 dst += avail;
1068 memcpy( dst, bip->buff, avail );
1089 BIPDUMP( (const unsigned char*)dst - count, count );
/system/core/init/
H A Dinit_parser.c173 static int push_chars(char **dst, int *len, const char *chars, int cnt) argument
178 memcpy(*dst, chars, cnt);
179 *dst += cnt;
185 int expand_props(char *dst, const char *src, int dst_size) argument
188 char *dst_ptr = dst;
195 if (!src || !dst || dst_size == 0)
/system/media/camera/src/
H A Dcamera_metadata.c136 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/libnetutils/
H A Difc_utils.c504 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/private/pixelflinger/
H A Dggl_context.h279 uint32_t dst; member in struct:android::blend_state_t

Completed in 228 milliseconds