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

123

/system/core/libcutils/
H A Dstrlcpy.c28 * Copy src to string dst of size siz. At most siz-1 characters
30 * Returns strlen(src); if retval >= siz, truncation occurred.
33 strlcpy(char *dst, const char *src, size_t siz) argument
36 const char *s = src;
47 /* Not enough room in dst, add NUL and traverse rest of src */
55 return(s - src - 1); /* count does not include NUL */
H A Dfs_config.c55 static inline uint16_t get2LE(const uint8_t* src) argument
57 return src[0] | (src[1] << 8);
60 static inline uint64_t get8LE(const uint8_t* src) argument
64 low = src[0] | (src[1] << 8) | (src[2] << 16) | (src[3] << 24);
65 high = src[4] | (src[
[all...]
/system/bt/osi/src/
H A Dcompat.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 */
95 * Appends src to string dst of size siz (unlike strncat, siz is the
98 * Returns strlen(src) + MIN(siz, strlen(initial dst)).
102 strlcat(char *dst, const char *src, size_t siz) argument
105 const char *s = src;
[all...]
/system/core/libdiskconfig/
H A Ddiskutils.c34 write_raw_image(const char *dst, const char *src, loff_t offset, int test) argument
44 ALOGI("Writing RAW image '%s' to '%s' (offset=%llu)", src, dst, (unsigned long long)offset);
45 if ((src_fd = open(src, O_RDONLY)) < 0) {
46 ALOGE("Could not open %s for reading (errno=%d).", src, errno);
67 ALOGE("Error (%d) while reading from '%s'", errno, src);
/system/core/libmincrypt/
H A Ddsa_sig.c35 static inline int trim_to_p256_bytes(unsigned char dst[P256_NBYTES], unsigned char *src, argument
38 while (*src == '\0' && src_len > 0) {
39 src++;
47 memcpy(dst + dst_offset, src, src_len);
H A Dp256.c361 void p256_from_bin(const uint8_t src[P256_NBYTES], p256_int* dst) { argument
363 const uint8_t* p = &src[0];
/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 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;
/system/media/audio_utils/
H A Dformat.c25 const void *src, audio_format_t src_format, size_t count)
36 memcpy(dst, src, count * audio_bytes_per_sample(dst_format));
46 memcpy_to_i16_from_float((int16_t*)dst, (float*)src, count);
49 memcpy_to_i16_from_u8((int16_t*)dst, (uint8_t*)src, count);
52 memcpy_to_i16_from_p24((int16_t*)dst, (uint8_t*)src, count);
55 memcpy_to_i16_from_i32((int16_t*)dst, (int32_t*)src, count);
58 memcpy_to_i16_from_q8_23((int16_t*)dst, (int32_t*)src, count);
67 memcpy_to_float_from_i16((float*)dst, (int16_t*)src, count);
70 memcpy_to_float_from_u8((float*)dst, (uint8_t*)src, count);
73 memcpy_to_float_from_p24((float*)dst, (uint8_t*)src, coun
24 memcpy_by_audio_format(void *dst, audio_format_t dst_format, const void *src, audio_format_t src_format, size_t count) argument
[all...]
/system/bt/bta/gatt/
H A Dbta_gatts_utils.c192 BOOLEAN bta_gatts_uuid_compare(tBT_UUID tar, tBT_UUID src) argument
198 if (src.len == 0 || tar.len == 0)
204 if (src.len == 2 && tar.len == 2)
206 return src.uu.uuid16 == tar.uu.uuid16;
210 if (src.len == LEN_UUID_16)
213 bta_gatt_convert_uuid16_to_uuid128(su, src.uu.uuid16);
217 ps = src.uu.uuid128;
/system/bt/bta/pan/
H A Dbta_pan_ci.c129 void bta_pan_ci_rx_write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, argument
141 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->src, src);
172 void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, argument
177 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_buf)->src, src);
200 BT_HDR * bta_pan_ci_readbuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16* p_protocol, argument
212 bdcpy(src,((tBTA_PAN_DATA_PARAMS *)p_buf)->src);
276 void bta_pan_ci_rx_writebuf(UINT16 handle, BD_ADDR src, BD_ADD argument
286 bta_pan_ci_readbuf(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 *p_protocol, BOOLEAN* p_ext, BOOLEAN* p_forward) argument
[all...]
H A Dbta_pan_act.c200 static void bta_pan_data_buf_ind_cback(UINT16 handle, BD_ADDR src, BD_ADDR dst, UINT16 protocol, BT_HDR *p_buf, argument
230 bdcpy(((tBTA_PAN_DATA_PARAMS *)p_new_buf)->src, src);
683 ((tBTA_PAN_DATA_PARAMS *)p_buf)->src,
745 ((tBTA_PAN_DATA_PARAMS *)p_data)->src,
/system/bt/btcore/src/
H A Dbdaddr.c40 bt_bdaddr_t *bdaddr_copy(bt_bdaddr_t *dest, const bt_bdaddr_t *src) { argument
42 assert(src != NULL);
44 return (bt_bdaddr_t *)memcpy(dest, src, sizeof(bt_bdaddr_t));
H A Duuid.c102 bt_uuid_t *uuid_copy(bt_uuid_t *dest, const bt_uuid_t *src) { argument
104 assert(src != NULL);
105 return (bt_uuid_t *)memcpy(dest, src, sizeof(bt_uuid_t));
H A Ddevice_class.c96 bool device_class_copy(bt_device_class_t *dest, const bt_device_class_t *src) { argument
98 assert(src != NULL);
99 return (memcpy(dest, src, sizeof(bt_device_class_t)) == dest);
H A Dproperty.c45 bt_property_t *property_copy(bt_property_t *dest, const bt_property_t *src) { argument
47 assert(src != NULL);
48 return (bt_property_t *)memcpy(dest, src, sizeof(bt_property_t));
/system/bt/embdrv/sbc/decoder/srce/
H A Dframing.c225 PRIVATE void shift_buffer(SBC_BUFFER_T *dest, SBC_BUFFER_T *src, OI_UINT wordCount) argument
228 memmove(dest, src, wordCount * sizeof(SBC_BUFFER_T));
230 OI_ASSERT(((OI_CHAR *)(dest) - (OI_CHAR *)(src)) >= wordCount*sizeof(*dest));
231 memcpy(dest, src, wordCount * sizeof(SBC_BUFFER_T));
240 s = (void*)(src + wordCount);
/system/keymaster/
H A Dserializable.cpp122 bool Buffer::write(const uint8_t* src, size_t write_length) { argument
125 memcpy(buffer_.get() + write_position_, src, write_length);
/system/bt/btif/co/
H A Dbta_pan_co.c162 BD_ADDR src; local
186 if ((p_buf = bta_pan_ci_readbuf(handle, src, dst, &protocol,
192 if(is_empty_eth_addr(conn->eth_addr) && is_valid_bt_eth_addr(src))
196 bdaddr_to_string((bt_bdaddr_t *)src, bdstr, sizeof(bdstr));
198 bdaddr_to_string((bt_bdaddr_t *)src, bdstr, sizeof(bdstr)));
199 memcpy(conn->eth_addr, src, sizeof(conn->eth_addr));
202 btpan_tap_send(btpan_cb.tap_fd, src, dst, protocol,
243 void bta_pan_co_tx_write(UINT16 handle, UINT8 app_id, BD_ADDR src, BD_ADDR dst, argument
249 UNUSED(src);
273 void bta_pan_co_tx_writebuf(UINT16 handle, UINT8 app_id, BD_ADDR src, argument
[all...]
/system/bt/stack/pan/
H A Dpan_main.c182 PAN_TRACE_EVENT ("pan_conn_ind_cb - for handle %d, current role %d, dst uuid 0x%x, src uuid 0x%x, role change %s",
422 ** src - source BD Addr
434 UINT8 *src,
474 PAN_TRACE_DEBUG ("PAN received broadcast packet on handle %d, src uuid 0x%x",
482 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
487 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, TRUE);
500 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
513 (*pan_cb.pan_data_ind_cb) (pcb->handle, src, dst, protocol, p_data, len, ext, forward);
528 ** src - source BD Addr
539 UINT8 *src,
433 pan_data_ind_cb(UINT16 handle, UINT8 *src, UINT8 *dst, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument
538 pan_data_buf_ind_cb(UINT16 handle, UINT8 *src, UINT8 *dst, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
[all...]
H A Dpan_api.c293 ** src and dst roles may not be valid or
493 ** src - MAC or BD Addr of the source who sent this packet
504 tPAN_RESULT PAN_Write(UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, UINT8 *p_data, UINT16 len, BOOLEAN ext) argument
521 BNEP_Write (pan_cb.pcb[i].handle, dst, p_data, len, protocol, src, ext);
536 return PAN_WriteBuf(handle, dst, src, protocol, buffer, ext);
553 ** src - MAC or BD Addr of the source who sent this packet
563 tPAN_RESULT PAN_WriteBuf (UINT16 handle, BD_ADDR dst, BD_ADDR src, UINT16 protocol, BT_HDR *p_buf, BOOLEAN ext) argument
582 BNEP_Write(pan_cb.pcb[i].handle, dst, data, p_buf->len, protocol, src, ext);
606 result = BNEP_WriteBuf (pan_cb.pcb[i].handle, dst, p_buf, protocol, src, ext);
638 result = BNEP_WriteBuf (pcb->handle, dst, p_buf, protocol, src, ex
[all...]
/system/core/libpixelflinger/codeflinger/
H A Dload_store.cpp178 void GGLAssembler::expand(integer_t& dst, const integer_t& src, int dbits) argument
180 assert(src.size());
182 int sbits = src.size();
183 int s = src.reg;
186 // be sure to set 'dst' after we read 'src' as they may be identical
/system/core/libpixelflinger/tests/arch-arm64/col32cb16blend/
H A Dcol32cb16blend_test.c63 void scanline_col32cb16blend_arm64(uint16_t *dst, int32_t src, size_t count);
64 void scanline_col32cb16blend_c(uint16_t * dst, int32_t src, size_t count) argument
66 int srcAlpha = (src>>24);
74 int srcR = (src >> ( 3))&0x1F;
75 int srcG = (src >> ( 8+2))&0x3F;
76 int srcB = (src >> (16+3))&0x1F;
/system/core/libpixelflinger/tests/arch-arm64/t32cb16blend/
H A Dt32cb16blend_test.c65 void scanline_t32cb16blend_c(uint16_t * dst, uint32_t* src, size_t count) argument
70 uint32_t s = *src++;
94 uint32_t src[16]; local
111 src[j] = test.src_color;
114 scanline_t32cb16blend_c(dst_c,src,test.count);
115 scanline_t32cb16blend_arm64(dst_asm,src,test.count);
/system/bt/bta/av/
H A Dbta_av_sbc.c116 ** When called with bta_av_sbc_up_sample(src, uint8_array_dst..)
131 UINT32 src; local
136 src = src_samples/bta_av_sbc_ups_cb.div;
138 return (*bta_av_sbc_ups_cb.p_act)(p_src, p_dst, src, dst, p_ret);

Completed in 819 milliseconds

123