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 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
59 float f = *src++;
73 void downmix_to_mono_i16_from_stereo_i16(int16_t *dst, const int16_t *src, size_ argument
81 upmix_to_stereo_i16_from_mono_i16(int16_t *dst, const int16_t *src, size_t count) argument
[all...]
/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'
50 * Returns a pointer into the src string, leaving off where the copy
52 * character on src has been reached.
55 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) argument
57 const char* srcend = src + srclen;
61 return src;
65 while (dst < dstend && src < srcend && *src != '\0')
66 *dst++ = *src++;
69 return src;
[all...]
/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/include/utils/
H A DList.h166 List(const List<T>& src) { // copy-constructor argument
168 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.c188 int expand_props(char *dst, const char *src, int dst_size) argument
192 const char *src_ptr = src;
198 if (!src || !dst || dst_size == 0)
201 src_len = strlen(src);
247 src);
250 src);
259 ERROR("prop name too long in '%s'\n", src);
268 ERROR("invalid zero-length prop name in '%s'\n", src);
275 prop, src);
290 ERROR("destination buffer overflow while expanding '%s'\n", 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.cpp163 int BandwidthController::StrncpyAndCheck(char *buffer, const char *src, size_t buffSize) { argument
166 strncpy(buffer, src, buffSize);
/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.c420 * was malloc'ed and needs to freed. *dst will be set to a dup of src.
422 static void qual_overwrite(char **dst, const char *src) argument
430 if (!src || !*src)
433 *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/core/libutils/
H A DUnicode.cpp159 int32_t utf32_from_utf8_at(const char *src, size_t src_len, size_t index, size_t *next_index) argument
169 int32_t ret = utf32_at_internal(src + index, &num_read);
177 ssize_t utf32_to_utf8_length(const char32_t *src, size_t src_len) argument
179 if (src == NULL || src_len == 0) {
184 const char32_t *end = src + src_len;
185 while (src < end) {
186 ret += utf32_codepoint_utf8_length(*src++);
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) {
197 const char32_t *cur_utf32 = src;
240 strcpy16(char16_t *dst, const char16_t *src) argument
262 strncpy16(char16_t *dst, const char16_t *src, size_t n) argument
333 utf16_to_utf8(const char16_t* src, size_t src_len, char* dst) argument
363 utf8_length(const char *src) argument
406 utf16_to_utf8_length(const char16_t *src, size_t src_len) argument
447 utf8_to_utf32_length(const char *src, size_t src_len) argument
472 utf8_to_utf32(const char* src, size_t src_len, char32_t* dst) argument
489 utf8_to_utf32_codepoint(const uint8_t *src, size_t length) argument
576 utf8_to_utf16_n(const uint8_t* src, size_t srcLen, char16_t* dst, size_t dstLen) argument
[all...]
/system/extras/micro_bench/
H A Dmicro_bench.cpp437 uint32_t *src = reinterpret_cast<uint32_t*>(malloc(size)); local
438 if (!src)
440 memset(src, 0xff, size);
446 for (k = 0; k < size/sizeof(uint32_t); k++) foo = src[k]);
/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++ : ' ';
/system/media/camera/src/
H A Dcamera_metadata.c167 const camera_metadata_t *src,
170 if (src == NULL) {
175 memcpy(buffer, src, src_size);
272 const camera_metadata_t *src) {
273 size_t memory_needed = get_camera_metadata_compact_size(src);
279 place_camera_metadata(dst, dst_size, src->entry_count, src->data_count);
281 metadata->flags = src->flags;
282 metadata->entry_count = src->entry_count;
283 metadata->data_count = src
166 allocate_copy_camera_metadata_checked( const camera_metadata_t *src, size_t src_size) argument
271 copy_camera_metadata(void *dst, size_t dst_size, const camera_metadata_t *src) argument
444 append_camera_metadata(camera_metadata_t *dst, const camera_metadata_t *src) argument
479 clone_camera_metadata(const camera_metadata_t *src) argument
577 get_camera_metadata_entry(camera_metadata_t *src, size_t index, camera_metadata_entry_t *entry) argument
598 find_camera_metadata_entry(camera_metadata_t *src, uint32_t tag, camera_metadata_entry_t *entry) argument
631 find_camera_metadata_ro_entry(const camera_metadata_t *src, uint32_t tag, camera_metadata_ro_entry_t *entry) argument
[all...]

Completed in 3493 milliseconds

12