Searched defs:src (Results 1 - 25 of 29) sorted by relevance

12

/system/core/libcutils/
H A Dmemory.c62 * Copy src to string dst of size siz. At most siz-1 characters
64 * Returns strlen(src); if retval >= siz, truncation occurred.
67 strlcpy(char *dst, const char *src, size_t siz) argument
70 const char *s = src;
81 /* Not enough room in dst, add NUL and traverse rest of src */
89 return(s - src - 1); /* count does not include NUL */
/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);
44 if ((src_fd = open(src, O_RDONLY)) < 0) {
45 ALOGE("Could not open %s for reading (errno=%d).", src, errno);
66 ALOGE("Error (%d) while reading from '%s'", errno, src);
/system/core/libpixelflinger/
H A Dpicker.cpp53 uint32_t src = c->state.blend.src; local
59 if ((src == GGL_ONE_MINUS_DST_ALPHA) ||
60 (src == GGL_DST_ALPHA)) {
61 src = GGL_ONE;
77 src = ggl_blendfactor_to_needs(src);
82 n |= GGL_BUILD_NEEDS( src, BLEND_SRC );
88 n |= GGL_BUILD_NEEDS( src, BLEND_SRCA );
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;
324 int sh, int sl, // src
H A Draster.cpp106 uint8_t* src = reinterpret_cast<uint8_t*>(cb->data) local
116 src += height * bpr;
120 src -= bpr;
121 memcpy(dst, src, rowsize);
127 memmove(dst, src, rowsize);
129 src += bpr;
134 memcpy(dst, src, rowsize);
136 src += bpr;
H A Dpixelflinger.cpp302 static void ggl_blendFunc(void* con, GGLenum src, GGLenum dst) argument
305 c->state.blend.src = src;
306 c->state.blend.src_alpha = src;
316 GGLenum src, GGLenum dst,
320 c->state.blend.src = src;
794 c->state.blend.src = GGL_ONE;
315 ggl_blendFuncSeparate(void* con, GGLenum src, GGLenum dst, GGLenum srcAlpha, GGLenum dstAplha) argument
/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
36 src += 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);
46 src += 2;
50 void upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument
53 int32_t temp = *src++;
/system/bluetooth/bluez-clean-headers/bluetooth/
H A Drfcomm.h59 bdaddr_t src; member in struct:rfcomm_dev_req
74 bdaddr_t src; 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
199 assert(src.size());
201 int sbits = src.size();
202 int s = src.reg;
205 // be sure to set 'dst' after we read 'src' as they may be identical
/system/core/libnl_2/
H A Dattr.c231 int nla_memcpy(void *dest, struct nlattr *src, int count) argument
233 if (!src || !dest)
235 if (count > nla_len(src))
236 count = nla_len(src);
237 memcpy(dest, nla_data(src), count);
/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
54 const char* srcend = src + srclen;
62 while (dst < dstend && src < srcend && *src != '\0')
63 *dst++ = *src++;
/system/core/toolbox/cp/
H A Dcp.c111 char *target, **src; local
294 * make "cp -rp src/ dst" behave like "cp -rp src dst" not
295 * like "cp -rp src/. dst"
297 for (src = argv; *src; src++) {
298 size_t len = strlen(*src);
299 while (len-- > 1 && (*src)[len] == '/')
300 (*src)[le
[all...]
/system/extras/tests/bionic/libc/other/
H A Dtest_jpeg.c59 SourceMgr src = (SourceMgr) cinfo->src; local
61 src->jpeg_mgr.next_input_byte = (unsigned char*)src->base,
62 src->jpeg_mgr.bytes_in_buffer = src->end - src->base;
68 SourceMgr src = (SourceMgr) cinfo->src; local
77 SourceMgr src local
90 SourceMgr src = (SourceMgr) cinfo->src; local
104 _source_init( SourceMgr src, char* base, long size ) argument
[all...]
/system/core/include/sysutils/
H A DList.h167 List(const List<T>& src) { // copy-constructor argument
169 insert(begin(), src.begin(), src.end());
/system/core/init/
H A Dbootchart.c94 file_buff_write( FileBuff buff, const void* src, int len ) argument
101 memcpy( buff->data + buff->count, src, avail );
103 src = (char*)src + avail;
H A Dinit_parser.c185 int expand_props(char *dst, const char *src, int dst_size) argument
189 const char *src_ptr = src;
195 if (!src || !dst || dst_size == 0)
198 src_len = strlen(src);
243 src);
246 src);
255 ERROR("prop name too long in '%s'\n", src);
264 ERROR("invalid zero-length prop name in '%s'\n", src);
271 prop, src);
286 ERROR("destination buffer overflow while expanding '%s'\n", src);
[all...]
/system/extras/tests/memtest/
H A Dmemtest.cpp149 char* src = (char*)malloc(MAX_SIZE+4+8+32); local
151 memset(src, 0, MAX_SIZE+4+8+32);
163 result_t* results = (result_t*)src;
189 char* sss = (char*)((long(src+31)&~31) + 28);
192 memcpy(dst, src, size); // just make sure to load the caches I/D
213 char* curr = (char*)src;
218 char* s = src + 1024;
234 free(src);
415 char* src = (char*)malloc(MAX_SIZE+4+8+32); local
427 result_t* results = (result_t*)src;
[all...]
/system/netd/
H A DList.h167 List(const List<T>& src) { // copy-constructor argument
169 insert(begin(), src.begin(), src.end());
H A DBandwidthController.cpp160 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { argument
163 strncpy(buffer, src, buffSize);
/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);
555 Process::killProcessesWithOpenFiles(src, action);
560 SLOGE("Giving up on move %s -> %s (%s)", src, dst, strerror(errno));
/system/core/adb/
H A Dfile_sync_client.c562 const char *src; member in struct:copyinfo
591 ci->src = (const char*)(ci + 1);
592 ci->dst = ci->src + ssize;
593 snprintf((char*) ci->src, ssize, isdir ? "%s%s/" : "%s%s", spath, name);
596 // fprintf(stderr,"mkcopyinfo('%s','%s')\n", ci->src, ci->dst);
643 if(lstat(ci->src, &st)) {
644 fprintf(stderr,"cannot stat '%s': %s\n", ci->src, strerror(errno));
650 fprintf(stderr, "skipping special file '%s'\n", ci->src);
666 local_build_list(filelist, ci->src, ci->dst);
722 fprintf(stderr,"%spush: %s -> %s\n", listonly ? "would " : "", ci->src, c
[all...]
H A Dadb.c411 * 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
421 if (!src || !*src)
424 *dst = strdup(src);
/system/core/liblog/
H A Dlogprint.c412 static inline uint32_t get4LE(const uint8_t* src) argument
414 return src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24);
420 static inline uint64_t get8LE(const uint8_t* src) argument
424 low = src[0] | (src[1] << 8) | (src[2] << 16) | (src[
[all...]
/system/media/camera/src/
H A Dcamera_metadata.c212 const camera_metadata_t *src) {
213 size_t memory_needed = get_camera_metadata_compact_size(src);
220 ptrdiff_t reserved_size = src->size -
221 calculate_camera_metadata_size(src->entry_capacity,
222 src->data_capacity);
226 metadata->flags = src->flags;
227 metadata->entry_count = src->entry_count;
228 metadata->entry_capacity = src->entry_count;
231 metadata->data_count = src->data_count;
232 metadata->data_capacity = src
211 copy_camera_metadata(void *dst, size_t dst_size, const camera_metadata_t *src) argument
248 append_camera_metadata(camera_metadata_t *dst, const camera_metadata_t *src) argument
285 clone_camera_metadata(const camera_metadata_t *src) argument
378 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument
399 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument
431 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument
[all...]
/system/core/toolbox/
H A Dnewfs_msdos.c30 "$FreeBSD: src/sbin/newfs_msdos/newfs_msdos.c,v 1.33 2009/04/11 14:56:29 ed Exp $";
1017 oklabel(const char *src) argument
1022 c = (u_char)*src++;
1033 mklabel(u_int8_t *dest, const char *src) argument
1038 c = *src ? toupper(*src++) : ' ';
1047 setstr(u_int8_t *dest, const char *src, size_t len) argument
1050 *dest++ = *src ? *src++ : ' ';

Completed in 183 milliseconds

12