Searched refs:buffer (Results 1 - 25 of 227) sorted by relevance

12345678910

/system/bt/embdrv/sbc/decoder/srce/
H A Dsynthesis-8-generated.c42 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT strideShift) argument
46 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 12]))>> 3;
47 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-23167, buffer[ 20]))>> 3;
48 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 28]))>> 2;
49 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-17397, buffer[ 36]))<< 1;
50 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(9399, buffer[ 44]))<< 3;
51 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(17397, buffer[ 52]))<< 1;
52 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 60]))>> 2;
53 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(23167, buffer[ 68]))>> 3;
54 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 7
[all...]
H A Dsynthesis-sbc.c236 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT strideShift);
237 PRIVATE void SynthWindow112_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT strideShift);
392 void SynthWindow40_int32_int32_symmetry_with_sum(OI_INT16 *pcm, SBC_BUFFER_T buffer[80], OI_UINT strideShift) argument
399 OI_ASSERT(buffer[ 2] == 0);
400 OI_ASSERT(buffer[10] == 0);
401 OI_ASSERT(buffer[18] == 0);
402 OI_ASSERT(buffer[26] == 0);
403 OI_ASSERT(buffer[34] == 0);
404 OI_ASSERT(buffer[42] == 0);
405 OI_ASSERT(buffer[5
[all...]
/system/bt/osi/src/
H A Dbuffer.c21 #include "osi/include/buffer.h"
39 buffer_t *buffer = osi_calloc(sizeof(buffer_t) + size); local
41 buffer->root = buffer;
42 buffer->refcount = 1;
43 buffer->length = size;
45 return buffer;
69 void buffer_free(buffer_t *buffer) { argument
70 if (!buffer)
73 if (buffer
[all...]
/system/gatekeeper/
H A Dgatekeeper_messages.cpp39 static inline void append_to_buffer(uint8_t **buffer, const SizedBuffer *to_append) { argument
40 memcpy(*buffer, &to_append->length, sizeof(to_append->length));
41 *buffer += sizeof(to_append->length);
43 memcpy(*buffer, to_append->buffer.get(), to_append->length);
44 *buffer += to_append->length;
48 static inline gatekeeper_error_t read_from_buffer(const uint8_t **buffer, const uint8_t *end, argument
50 if (*buffer + sizeof(target->length) > end) return ERROR_INVALID;
52 memcpy(&target->length, *buffer, sizeof(target->length));
53 *buffer
79 Serialize(uint8_t *buffer, const uint8_t *end) const argument
[all...]
/system/core/logcat/tests/
H A Dlogcat_benchmark.cpp43 void init(const char *buffer) argument
46 if (buffer != NULL) {
47 ok = sscanf(buffer, "%d-%d %d:%d:%d.%d ",
52 timestamp(const char *buffer) argument
54 init(buffer);
80 char buffer[5120]; local
85 while (fgets(buffer, sizeof(buffer), fp)) {
86 if (!strncmp(begin, buffer, sizeof(begin) - 1)) {
91 last_buffer = strdup(buffer);
[all...]
H A Dlogcat_test.cpp55 char buffer[5120]; local
60 while (fgets(buffer, sizeof(buffer), fp)) {
61 if (!strncmp(begin, buffer, sizeof(begin) - 1)) {
62 while (char *cp = strrchr(buffer, '\n')) {
65 log_id_t id = android_name_to_log_id(buffer + sizeof(begin) - 1);
103 char buffer[5120]; local
107 while (fgets(buffer, sizeof(buffer), fp)) {
108 if (!strncmp(buffer, needl
119 fgetLongTime(char *buffer, size_t buflen, FILE *fp) argument
166 char buffer[5120]; local
190 char buffer[5120]; local
210 char buffer[5120]; local
253 char buffer[5120]; local
316 char buffer[5120]; local
348 char buffer[5120]; local
437 char buffer[5120]; local
506 char buffer[5120]; local
569 char buffer[5120]; local
612 char buffer[5120]; local
786 char buffer[5120]; local
847 char buffer[5120]; local
876 char buffer[5120]; local
938 char buffer[5120]; local
971 char buffer[5120]; local
[all...]
/system/connectivity/dhcp_client/
H A Ddhcp_options_writer.h34 int WriteUInt8Option(shill::ByteString* buffer,
37 int WriteUInt16Option(shill::ByteString* buffer,
40 int WriteUInt32Option(shill::ByteString* buffer,
43 int WriteUInt8ListOption(shill::ByteString* buffer,
46 int WriteUInt16ListOption(shill::ByteString* buffer,
49 int WriteUInt32ListOption(shill::ByteString* buffer,
52 int WriteUInt32PairListOption(shill::ByteString* buffer,
55 int WriteBoolOption(shill::ByteString* buffer,
58 int WriteStringOption(shill::ByteString* buffer,
61 int WriteByteArrayOption(shill::ByteString* buffer,
[all...]
H A Ddhcp_options_writer.cc42 int DHCPOptionsWriter::WriteUInt8Option(ByteString* buffer, argument
46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code),
48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value),
55 int DHCPOptionsWriter::WriteUInt16Option(ByteString* buffer, argument
60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code),
62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length),
64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net),
69 int DHCPOptionsWriter::WriteUInt32Option(ByteString* buffer, argument
74 buffer
83 WriteUInt8ListOption(ByteString* buffer, uint8_t option_code, const std::vector<uint8_t>& value) argument
101 WriteUInt16ListOption(ByteString* buffer, uint8_t option_code, const std::vector<uint16_t>& value) argument
122 WriteUInt32ListOption(ByteString* buffer, uint8_t option_code, const std::vector<uint32_t>& value) argument
143 WriteUInt32PairListOption(ByteString* buffer, uint8_t option_code, const std::vector<std::pair<uint32_t, uint32_t>>& value) argument
167 WriteBoolOption(ByteString* buffer, uint8_t option_code, const bool value) argument
181 WriteStringOption(ByteString* buffer, uint8_t option_code, const std::string& value) argument
199 WriteByteArrayOption(ByteString* buffer, uint8_t option_code, const ByteString& value) argument
212 WriteEndTag(ByteString* buffer) argument
[all...]
H A Ddhcp_options_parser.cc33 bool UInt8Parser::GetOption(const uint8_t* buffer, argument
41 *value_uint8 = *buffer;
45 bool UInt16Parser::GetOption(const uint8_t* buffer, argument
53 *value_uint16 = ntohs(*reinterpret_cast<const uint16_t*>(buffer));
57 bool UInt32Parser::GetOption(const uint8_t* buffer, argument
65 *value_uint32 = ntohl(*reinterpret_cast<const uint32_t*>(buffer));
69 bool UInt8ListParser::GetOption(const uint8_t* buffer, argument
79 uint8_t content = *reinterpret_cast<const uint8_t*>(buffer);
81 buffer += sizeof(uint8_t);
86 bool UInt16ListParser::GetOption(const uint8_t* buffer, argument
105 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
124 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
146 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
166 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
178 GetOption(const uint8_t* buffer, uint8_t length, void* value) argument
[all...]
H A Ddhcp_options_parser.h26 virtual bool GetOption(const uint8_t* buffer,
35 bool GetOption(const uint8_t* buffer,
43 bool GetOption(const uint8_t* buffer,
51 bool GetOption(const uint8_t* buffer,
59 bool GetOption(const uint8_t* buffer,
67 bool GetOption(const uint8_t* buffer,
75 bool GetOption(const uint8_t* buffer,
83 bool GetOption(const uint8_t* buffer,
91 bool GetOption(const uint8_t* buffer,
99 bool GetOption(const uint8_t* buffer,
[all...]
/system/core/debuggerd/test/
H A Ddump_memory_test.cpp149 uint8_t buffer[256]; local
150 for (size_t i = 0; i < sizeof(buffer); i++) {
151 buffer[i] = i;
153 backtrace_mock_->SetReadData(buffer, sizeof(buffer));
168 uint8_t buffer[256]; local
169 for (size_t i = 0; i < sizeof(buffer); i++) {
170 buffer[i] = i;
172 backtrace_mock_->SetReadData(buffer, sizeof(buffer));
188 uint8_t buffer[256]; local
257 uint8_t buffer[104]; local
276 uint8_t buffer[104]; local
301 uint8_t buffer[106]; local
330 uint8_t buffer[256]; local
384 uint8_t buffer[256]; local
401 uint8_t buffer[256]; local
426 uint8_t buffer[256]; local
447 uint8_t buffer[256]; local
507 uint8_t buffer[256]; local
566 uint8_t buffer[224]; local
625 uint8_t buffer[256]; local
683 uint8_t buffer[256]; local
[all...]
/system/vold/tests/
H A DVolumeManager_test.cpp38 char buffer[MD5_ASCII_LENGTH_PLUS_NULL]; local
39 char* dst = reinterpret_cast<char*>(&buffer);
44 EXPECT_TRUE(VolumeManager::asecHash(exp1, (char*)NULL, sizeof(buffer)) == NULL && errno == ESPIPE)
45 << "Should return NULL and set errno to ESPIPE when destination buffer is NULL";
47 << "Should return NULL and set errno to ESPIPE when destination buffer length is 0";
48 EXPECT_TRUE(VolumeManager::asecHash((const char*)NULL, dst, sizeof(buffer)) == NULL && errno == ESPIPE)
49 << "Should return NULL and set errno to ESPIPE when source buffer is NULL";
51 EXPECT_FALSE(VolumeManager::asecHash(src1, dst, sizeof(buffer)) == NULL)
58 EXPECT_FALSE(VolumeManager::asecHash(src2, dst, sizeof(buffer)) == NULL)
/system/gatekeeper/tests/
H A Dgatekeeper_messages_test.cpp38 uint8_t *buffer = new uint8_t[size]; local
42 buffer[i] = rand();
45 result->buffer.reset(buffer);
56 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length);
59 deserialized_msg.Deserialize(serialized_msg.buffer.get(), serialized_msg.buffer.get()
68 ASSERT_EQ(0, memcmp(msg.provided_password.buffer.get(), deserialized_password->buffer
[all...]
/system/bt/bta/hf_client/
H A Dbta_hf_client_at.c244 ** No buffer parsing is being done here.
590 /* check for <cr><lf> and forward buffer if match */
600 static char *bta_hf_client_parse_ok(char *buffer) argument
602 AT_CHECK_EVENT(buffer, "OK");
603 AT_CHECK_RN(buffer);
607 return buffer;
610 static char *bta_hf_client_parse_error(char *buffer) argument
612 AT_CHECK_EVENT(buffer, "ERROR");
613 AT_CHECK_RN(buffer);
617 return buffer;
620 bta_hf_client_parse_ring(char *buffer) argument
631 bta_hf_client_parse_uint32(char *buffer, void (*handler_callback)(UINT32)) argument
651 bta_hf_client_parse_brsf(char *buffer) argument
658 bta_hf_client_parse_cind_values(char *buffer) argument
693 bta_hf_client_parse_cind_list(char *buffer) argument
730 bta_hf_client_parse_cind(char *buffer) argument
740 bta_hf_client_parse_chld(char *buffer) argument
813 bta_hf_client_parse_ciev(char *buffer) argument
841 bta_hf_client_parse_bcs(char *buffer) argument
848 bta_hf_client_parse_bsir(char *buffer) argument
855 bta_hf_client_parse_cmeerror(char *buffer) argument
862 bta_hf_client_parse_vgm(char *buffer) argument
869 bta_hf_client_parse_vgme(char *buffer) argument
876 bta_hf_client_parse_vgs(char *buffer) argument
883 bta_hf_client_parse_vgse(char *buffer) argument
890 bta_hf_client_parse_bvra(char *buffer) argument
897 bta_hf_client_parse_clip(char *buffer) argument
931 bta_hf_client_parse_ccwa(char *buffer) argument
964 bta_hf_client_parse_cops(char *buffer) argument
1003 bta_hf_client_parse_binp(char *buffer) argument
1044 bta_hf_client_parse_clcc(char *buffer) argument
1126 bta_hf_client_parse_cnum(char *buffer) argument
1193 bta_hf_client_parse_btrh(char *buffer) argument
1215 bta_hf_client_parse_busy(char *buffer) argument
1225 bta_hf_client_parse_delayed(char *buffer) argument
1235 bta_hf_client_parse_no_carrier(char *buffer) argument
1245 bta_hf_client_parse_no_answer(char *buffer) argument
1255 bta_hf_client_parse_blacklisted(char *buffer) argument
1265 bta_hf_client_skip_unknown(char *buffer) argument
[all...]
/system/core/include/cutils/
H A Duevent.h28 ssize_t uevent_kernel_multicast_recv(int socket, void *buffer, size_t length);
29 ssize_t uevent_kernel_multicast_uid_recv(int socket, void *buffer, size_t length, uid_t *uid);
30 ssize_t uevent_kernel_recv(int socket, void *buffer, size_t length, bool require_group, uid_t *uid);
/system/vold/
H A DDevmapper.cpp43 char *buffer = (char *) malloc(1024 * 64); local
44 if (!buffer) {
48 memset(buffer, 0, (1024 * 64));
53 free(buffer);
60 free(buffer);
65 struct dm_ioctl *io = (struct dm_ioctl *) buffer;
70 free(buffer);
76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start);
78 free(buffer);
111 free(buffer);
134 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local
168 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local
265 char *buffer = (char *) malloc(DEVMAPPER_BUFFER_SIZE); local
[all...]
/system/core/include/utils/
H A DFlattenable.h38 static size_t align(void const*& buffer) { argument
40 intptr_t b = intptr_t(buffer);
41 buffer = (void*)((intptr_t(buffer) + (N-1)) & ~(N-1));
42 return size_t(intptr_t(buffer) - b);
46 static size_t align(void*& buffer) { argument
47 return align<N>( const_cast<void const*&>(buffer) );
50 static void advance(void*& buffer, size_t& size, size_t offset) { argument
51 buffer = reinterpret_cast<void*>( intptr_t(buffer)
55 advance(void const*& buffer, size_t& size, size_t offset) argument
62 write(void*& buffer, size_t& size, const T& value) argument
69 read(void const*& buffer, size_t& size, T& value) argument
117 flatten( void*& buffer, size_t& size, int*& fds, size_t& count) const argument
122 unflatten( void const*& buffer, size_t& size, int const*& fds, size_t& count) argument
159 flatten(void* buffer, size_t size) const argument
163 unflatten(void const* buffer, size_t size) argument
183 flatten(void* buffer, size_t size) const argument
188 unflatten(void const* buffer, size_t) argument
[all...]
/system/core/adb/
H A Dtest_track_devices.cpp30 char buffer[1024]; local
42 int len = snprintf(buffer, sizeof(buffer), "%04zx%s", strlen(request), request);
43 if (!android::base::WriteFully(s, buffer, len))
47 if (!android::base::ReadFully(s, buffer, 4))
50 printf( "server answer: %.*s\n", 4, buffer );
63 if (!android::base::ReadFully(s, buffer, len))
66 printf( "received header %.*s (%d bytes):\n%.*s----\n", 4, head, len, len, buffer );
/system/core/toolbox/
H A Dlog.c94 char buffer[4096]; local
130 buffer[0] = '\0';
133 strlcat(buffer, argv[i], sizeof(buffer)-1);
134 strlcat(buffer, " ", sizeof(buffer)-1);
137 if(buffer[0] == 0) {
141 __android_log_print(priority, tag, "%s", buffer);
/system/media/audio_utils/
H A Decho_reference.c49 void *buffer; // main buffer member in struct:echo_reference
50 size_t buf_size; // main buffer size in frames
51 size_t frames_in; // number of frames in main buffer
52 void *wr_buf; // buffer for input conversions
53 size_t wr_buf_size; // size of conversion buffer in frames
54 size_t wr_frames_in; // number of frames in conversion buffer
56 void *wr_src_buf; // resampler input buf (either wr_buf or buffer used by write())
59 int32_t playback_delay; // playback buffer delay indicated by last write()
66 struct resampler_buffer_provider provider; // resampler buffer provide
70 echo_reference_get_next_buffer(struct resampler_buffer_provider *buffer_provider, struct resampler_buffer* buffer) argument
97 echo_reference_release_buffer(struct resampler_buffer_provider *buffer_provider, struct resampler_buffer* buffer) argument
133 echo_reference_write(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer) argument
295 echo_reference_read(struct echo_reference_itfe *echo_reference, struct echo_reference_buffer *buffer) argument
[all...]
/system/core/liblog/tests/
H A Dliblog_benchmark.cpp147 android_log_event_int_t buffer; local
150 buffer.header.tag = 0;
151 buffer.payload.type = EVENT_TYPE_INT;
153 buffer.payload.data = htole32(snapshot);
155 newVec[2].iov_base = &buffer;
156 newVec[2].iov_len = sizeof(buffer);
161 buffer.payload.data = htole32(snapshot);
210 struct packet *buffer = (struct packet*)(((uintptr_t)buf + 7) & ~7); local
211 if (((uintptr_t)&buffer->pmsg_header) & 7) {
212 fprintf (stderr, "&buffer
286 struct packet *buffer = (struct packet*)((((uintptr_t)buf + 7) & ~7) + 1); local
362 struct packet *buffer = (struct packet*)(((uintptr_t)buf + 7) & ~7); local
435 struct packet *buffer = (struct packet*)((((uintptr_t)buf + 7) & ~7) + 1); local
[all...]
/system/media/audio_utils/include/audio_utils/
H A Dfifo.h40 void *mBuffer; // pointer to caller-allocated buffer of size mFrameCount frames
54 * \param buffer Pointer to a caller-allocated buffer of frameCount frames.
57 void *buffer);
70 * \param buffer Pointer to source buffer containing 'count' frames of data.
79 ssize_t audio_utils_fifo_write(struct audio_utils_fifo *fifo, const void *buffer, size_t count);
84 * \param buffer Pointer to destination buffer to be filled with up to 'count' frames of data.
93 ssize_t audio_utils_fifo_read(struct audio_utils_fifo *fifo, void *buffer, size_
[all...]
/system/core/libcutils/tests/
H A Dsockets_test.cpp37 char buffer[128]; local
44 EXPECT_EQ(3, recvfrom(server, buffer, sizeof(buffer), 0,
47 EXPECT_EQ(3, recv(server, buffer, sizeof(buffer), 0));
49 EXPECT_EQ(0, memcmp(buffer, "foo", 3));
58 EXPECT_EQ(3, recv(client, buffer, sizeof(buffer), 0));
59 EXPECT_EQ(0, memcmp(buffer, "bar", 3));
67 EXPECT_EQ(11, recv(server, buffer, sizeo
78 char buffer[32]; local
[all...]
/system/core/gatekeeperd/tests/
H A Dgatekeeper_test.cpp38 password.buffer.reset(new uint8_t[16]);
40 memset(password.buffer.get(), 0, 16);
70 provided_password.buffer.reset(new uint8_t[16]);
72 memset(provided_password.buffer.get(), 0, 16);
85 reinterpret_cast<hw_auth_token_t *>(response.auth_token.buffer.get());
101 provided_password.buffer.reset(new uint8_t[16]);
103 memset(provided_password.buffer.get(), 0, 16);
108 password_handle.buffer.reset(new uint8_t[enroll_response.enrolled_password_handle.length]);
110 memcpy(password_handle.buffer.get(), enroll_response.enrolled_password_handle.buffer
[all...]
/system/core/libsysutils/src/
H A DFrameworkClient.cpp34 char *buffer = (char *) alloca(bufflen); local
35 if (!buffer) {
39 snprintf(buffer, bufflen, "%s%s", msg, data);
40 return sendMsg(buffer);

Completed in 1509 milliseconds

12345678910