/system/bt/embdrv/sbc/decoder/srce/ |
D | synthesis-8-generated.c | 42 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT s… in SynthWindow80_generated() argument 46 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 12]))>> 3; in SynthWindow80_generated() 47 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-23167, buffer[ 20]))>> 3; in SynthWindow80_generated() 48 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 28]))>> 2; in SynthWindow80_generated() 49 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(-17397, buffer[ 36]))<< 1; in SynthWindow80_generated() 50 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(9399, buffer[ 44]))<< 3; in SynthWindow80_generated() 51 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(17397, buffer[ 52]))<< 1; in SynthWindow80_generated() 52 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(26479, buffer[ 60]))>> 2; in SynthWindow80_generated() 53 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(23167, buffer[ 68]))>> 3; in SynthWindow80_generated() 54 /* 1 - stage 0 */ pcm_b +=(MUL_16S_16S(8235, buffer[ 76]))>> 3; in SynthWindow80_generated() [all …]
|
D | synthesis-sbc.c | 236 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT s… 237 PRIVATE void SynthWindow112_generated(OI_INT16 *pcm, SBC_BUFFER_T const * RESTRICT buffer, OI_UINT … 392 void SynthWindow40_int32_int32_symmetry_with_sum(OI_INT16 *pcm, SBC_BUFFER_T buffer[80], OI_UINT st… in SynthWindow40_int32_int32_symmetry_with_sum() 399 OI_ASSERT(buffer[ 2] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 400 OI_ASSERT(buffer[10] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 401 OI_ASSERT(buffer[18] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 402 OI_ASSERT(buffer[26] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 403 OI_ASSERT(buffer[34] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 404 OI_ASSERT(buffer[42] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() 405 OI_ASSERT(buffer[50] == 0); in SynthWindow40_int32_int32_symmetry_with_sum() [all …]
|
/system/gatekeeper/ |
D | gatekeeper_messages.cpp | 39 static inline void append_to_buffer(uint8_t **buffer, const SizedBuffer *to_append) { in append_to_buffer() argument 40 memcpy(*buffer, &to_append->length, sizeof(to_append->length)); in append_to_buffer() 41 *buffer += sizeof(to_append->length); in append_to_buffer() 43 memcpy(*buffer, to_append->buffer.get(), to_append->length); in append_to_buffer() 44 *buffer += to_append->length; in append_to_buffer() 48 static inline gatekeeper_error_t read_from_buffer(const uint8_t **buffer, const uint8_t *end, in read_from_buffer() argument 50 if (*buffer + sizeof(target->length) > end) return ERROR_INVALID; in read_from_buffer() 52 memcpy(&target->length, *buffer, sizeof(target->length)); in read_from_buffer() 53 *buffer += sizeof(target->length); in read_from_buffer() 55 const uint8_t *buffer_end = *buffer + target->length; in read_from_buffer() [all …]
|
/system/bt/bta/hf_client/ |
D | bta_hf_client_at.c | 600 static char *bta_hf_client_parse_ok(char *buffer) in bta_hf_client_parse_ok() argument 602 AT_CHECK_EVENT(buffer, "OK"); in bta_hf_client_parse_ok() 603 AT_CHECK_RN(buffer); in bta_hf_client_parse_ok() 607 return buffer; in bta_hf_client_parse_ok() 610 static char *bta_hf_client_parse_error(char *buffer) in bta_hf_client_parse_error() argument 612 AT_CHECK_EVENT(buffer, "ERROR"); in bta_hf_client_parse_error() 613 AT_CHECK_RN(buffer); in bta_hf_client_parse_error() 617 return buffer; in bta_hf_client_parse_error() 620 static char *bta_hf_client_parse_ring(char *buffer) in bta_hf_client_parse_ring() argument 622 AT_CHECK_EVENT(buffer, "RING"); in bta_hf_client_parse_ring() [all …]
|
/system/connectivity/dhcp_client/ |
D | dhcp_options_writer.cc | 42 int DHCPOptionsWriter::WriteUInt8Option(ByteString* buffer, in WriteUInt8Option() argument 46 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt8Option() 48 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt8Option() 50 buffer->Append(ByteString(reinterpret_cast<const char*>(&value), in WriteUInt8Option() 55 int DHCPOptionsWriter::WriteUInt16Option(ByteString* buffer, in WriteUInt16Option() argument 60 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt16Option() 62 buffer->Append(ByteString(reinterpret_cast<const char*>(&length), in WriteUInt16Option() 64 buffer->Append(ByteString(reinterpret_cast<const char*>(&value_net), in WriteUInt16Option() 69 int DHCPOptionsWriter::WriteUInt32Option(ByteString* buffer, in WriteUInt32Option() argument 74 buffer->Append(ByteString(reinterpret_cast<const char*>(&option_code), in WriteUInt32Option() [all …]
|
D | dhcp_options_parser.cc | 33 bool UInt8Parser::GetOption(const uint8_t* buffer, in GetOption() argument 41 *value_uint8 = *buffer; in GetOption() 45 bool UInt16Parser::GetOption(const uint8_t* buffer, in GetOption() argument 53 *value_uint16 = ntohs(*reinterpret_cast<const uint16_t*>(buffer)); in GetOption() 57 bool UInt32Parser::GetOption(const uint8_t* buffer, in GetOption() argument 65 *value_uint32 = ntohl(*reinterpret_cast<const uint32_t*>(buffer)); in GetOption() 69 bool UInt8ListParser::GetOption(const uint8_t* buffer, in GetOption() argument 79 uint8_t content = *reinterpret_cast<const uint8_t*>(buffer); in GetOption() 81 buffer += sizeof(uint8_t); in GetOption() 86 bool UInt16ListParser::GetOption(const uint8_t* buffer, in GetOption() argument [all …]
|
D | dhcp_options_writer.h | 34 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 …]
|
D | dhcp_options_parser.h | 26 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/logcat/tests/ |
D | logcat_test.cpp | 55 char buffer[5120]; in TEST() local 60 while (fgets(buffer, sizeof(buffer), fp)) { in TEST() 61 if (!strncmp(begin, buffer, sizeof(begin) - 1)) { in TEST() 62 while (char *cp = strrchr(buffer, '\n')) { in TEST() 65 log_id_t id = android_name_to_log_id(buffer + sizeof(begin) - 1); in TEST() 103 char buffer[5120]; in TEST() local 107 while (fgets(buffer, sizeof(buffer), fp)) { in TEST() 108 if (!strncmp(buffer, needle, strlen(needle))) { in TEST() 119 char *fgetLongTime(char *buffer, size_t buflen, FILE *fp) { in fgetLongTime() argument 120 while (fgets(buffer, buflen, fp)) { in fgetLongTime() [all …]
|
D | logcat_benchmark.cpp | 43 void init(const char *buffer) in TEST() argument 46 if (buffer != NULL) { in TEST() 47 ok = sscanf(buffer, "%d-%d %d:%d:%d.%d ", in TEST() 52 timestamp(const char *buffer) in TEST() argument 54 init(buffer); in TEST() 80 char buffer[5120]; in TEST() local 85 while (fgets(buffer, sizeof(buffer), fp)) { in TEST() 86 if (!strncmp(begin, buffer, sizeof(begin) - 1)) { in TEST() 91 last_buffer = strdup(buffer); in TEST() 92 last.init(buffer); in TEST() [all …]
|
/system/core/include/utils/ |
D | Flattenable.h | 38 static size_t align(void const*& buffer) { in align() argument 40 intptr_t b = intptr_t(buffer); in align() 41 buffer = (void*)((intptr_t(buffer) + (N-1)) & ~(N-1)); in align() 42 return size_t(intptr_t(buffer) - b); in align() 46 static size_t align(void*& buffer) { in align() argument 47 return align<N>( const_cast<void const*&>(buffer) ); in align() 50 static void advance(void*& buffer, size_t& size, size_t offset) { in advance() argument 51 buffer = reinterpret_cast<void*>( intptr_t(buffer) + offset ); in advance() 55 static void advance(void const*& buffer, size_t& size, size_t offset) { in advance() argument 56 buffer = reinterpret_cast<void const*>( intptr_t(buffer) + offset ); in advance() [all …]
|
/system/core/debuggerd/test/ |
D | dump_memory_test.cpp | 149 uint8_t buffer[256]; in TEST_F() local 150 for (size_t i = 0; i < sizeof(buffer); i++) { in TEST_F() 151 buffer[i] = i; in TEST_F() 153 backtrace_mock_->SetReadData(buffer, sizeof(buffer)); in TEST_F() 168 uint8_t buffer[256]; in TEST_F() local 169 for (size_t i = 0; i < sizeof(buffer); i++) { in TEST_F() 170 buffer[i] = i; in TEST_F() 172 backtrace_mock_->SetReadData(buffer, sizeof(buffer)); in TEST_F() 188 uint8_t buffer[256]; in TEST_F() local 189 for (size_t i = 0; i < sizeof(buffer); i++) { in TEST_F() [all …]
|
/system/media/audio_utils/ |
D | echo_reference.c | 49 void *buffer; // main buffer member 71 struct resampler_buffer* buffer) in echo_reference_get_next_buffer() argument 83 buffer->raw = NULL; in echo_reference_get_next_buffer() 84 buffer->frame_count = 0; in echo_reference_get_next_buffer() 88 buffer->frame_count = (buffer->frame_count > er->wr_frames_in) ? in echo_reference_get_next_buffer() 89 er->wr_frames_in : buffer->frame_count; in echo_reference_get_next_buffer() 91 buffer->i16 = (int16_t *)er->wr_src_buf + (er->wr_curr_frame_size - er->wr_frames_in) * in echo_reference_get_next_buffer() 98 struct resampler_buffer* buffer) in echo_reference_release_buffer() argument 109 er->wr_frames_in -= buffer->frame_count; in echo_reference_release_buffer() 115 free(er->buffer); in echo_reference_reset_l() [all …]
|
/system/core/liblog/tests/ |
D | liblog_benchmark.cpp | 147 android_log_event_int_t buffer; in BM_pmsg_short() local 150 buffer.header.tag = 0; in BM_pmsg_short() 151 buffer.payload.type = EVENT_TYPE_INT; in BM_pmsg_short() 153 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 155 newVec[2].iov_base = &buffer; in BM_pmsg_short() 156 newVec[2].iov_len = sizeof(buffer); in BM_pmsg_short() 161 buffer.payload.data = htole32(snapshot); in BM_pmsg_short() 210 struct packet *buffer = (struct packet*)(((uintptr_t)buf + 7) & ~7); in BM_pmsg_short_aligned() local 211 if (((uintptr_t)&buffer->pmsg_header) & 7) { in BM_pmsg_short_aligned() 212 fprintf (stderr, "&buffer=0x%p iters=%d\n", &buffer->pmsg_header, iters); in BM_pmsg_short_aligned() [all …]
|
/system/gatekeeper/tests/ |
D | gatekeeper_messages_test.cpp | 38 uint8_t *buffer = new uint8_t[size]; in make_buffer() local 42 buffer[i] = rand(); in make_buffer() 45 result->buffer.reset(buffer); in make_buffer() 56 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length); in TEST() 59 deserialized_msg.Deserialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() in TEST() 68 …ASSERT_EQ(0, memcmp(msg.provided_password.buffer.get(), deserialized_password->buffer.get(), passw… in TEST() 70 ASSERT_EQ(NULL, deserialized_msg.enrolled_password.buffer.get()); in TEST() 72 ASSERT_EQ(NULL, deserialized_msg.password_handle.buffer.get()); in TEST() 85 msg.Serialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() + serialized_msg.length); in TEST() 88 deserialized_msg.Deserialize(serialized_msg.buffer.get(), serialized_msg.buffer.get() in TEST() [all …]
|
/system/vold/ |
D | Devmapper.cpp | 43 char *buffer = (char *) malloc(1024 * 64); in dumpState() local 44 if (!buffer) { in dumpState() 48 memset(buffer, 0, (1024 * 64)); in dumpState() 53 free(buffer); in dumpState() 60 free(buffer); in dumpState() 65 struct dm_ioctl *io = (struct dm_ioctl *) buffer; in dumpState() 70 free(buffer); in dumpState() 76 struct dm_name_list *n = (struct dm_name_list *) (((char *) buffer) + io->data_start); in dumpState() 78 free(buffer); in dumpState() 111 free(buffer); in dumpState() [all …]
|
/system/bt/osi/src/ |
D | buffer.c | 39 buffer_t *buffer = osi_calloc(sizeof(buffer_t) + size); in buffer_new() local 41 buffer->root = buffer; in buffer_new() 42 buffer->refcount = 1; in buffer_new() 43 buffer->length = size; in buffer_new() 45 return buffer; in buffer_new() 69 void buffer_free(buffer_t *buffer) { in buffer_free() argument 70 if (!buffer) in buffer_free() 73 if (buffer->root != buffer) { in buffer_free() 75 if (--buffer->root->refcount == 0) in buffer_free() 76 osi_free(buffer->root); in buffer_free() [all …]
|
/system/core/gatekeeperd/tests/ |
D | gatekeeper_test.cpp | 38 password.buffer.reset(new uint8_t[16]); in do_enroll() 40 memset(password.buffer.get(), 0, 16); in do_enroll() 70 provided_password.buffer.reset(new uint8_t[16]); in TEST() 72 memset(provided_password.buffer.get(), 0, 16); in TEST() 85 reinterpret_cast<hw_auth_token_t *>(response.auth_token.buffer.get()); in TEST() 101 provided_password.buffer.reset(new uint8_t[16]); in TEST() 103 memset(provided_password.buffer.get(), 0, 16); in TEST() 108 password_handle.buffer.reset(new uint8_t[enroll_response.enrolled_password_handle.length]); in TEST() 110 memcpy(password_handle.buffer.get(), enroll_response.enrolled_password_handle.buffer.get(), in TEST() 120 reinterpret_cast<hw_auth_token_t *>(response.auth_token.buffer.get()); in TEST() [all …]
|
/system/core/logd/ |
D | LogBufferElement.cpp | 66 char buffer[256]; in tidToName() local 67 snprintf(buffer, sizeof(buffer), "/proc/%u/comm", tid); in tidToName() 68 int fd = open(buffer, O_RDONLY); in tidToName() 70 ssize_t ret = read(fd, buffer, sizeof(buffer)); in tidToName() 71 if (ret >= (ssize_t)sizeof(buffer)) { in tidToName() 72 ret = sizeof(buffer) - 1; in tidToName() 74 while ((ret > 0) && isspace(buffer[ret - 1])) { in tidToName() 78 buffer[ret] = '\0'; in tidToName() 79 retval = strdup(buffer); in tidToName() 109 size_t LogBufferElement::populateDroppedMessage(char *&buffer, in populateDroppedMessage() argument [all …]
|
/system/tpm/trunks/ |
D | tpm_generated.cc | 269 TPM_RC Serialize_uint8_t(const uint8_t& value, std::string* buffer) { in Serialize_uint8_t() argument 286 buffer->append(value_bytes, sizeof(uint8_t)); in Serialize_uint8_t() 291 std::string* buffer, in Parse_uint8_t() argument 295 if (buffer->size() < sizeof(uint8_t)) in Parse_uint8_t() 298 memcpy(&value_net, buffer->data(), sizeof(uint8_t)); in Parse_uint8_t() 313 value_bytes->append(buffer->substr(0, sizeof(uint8_t))); in Parse_uint8_t() 315 buffer->erase(0, sizeof(uint8_t)); in Parse_uint8_t() 319 TPM_RC Serialize_int8_t(const int8_t& value, std::string* buffer) { in Serialize_int8_t() argument 336 buffer->append(value_bytes, sizeof(int8_t)); in Serialize_int8_t() 341 std::string* buffer, in Parse_int8_t() argument [all …]
|
D | tpm_generated.h | 967 BYTE buffer[sizeof(TPMU_HA)]; member 972 BYTE buffer[sizeof(TPMT_HA)]; member 977 BYTE buffer[1024]; member 982 BYTE buffer[MAX_DIGEST_BUFFER]; member 987 BYTE buffer[MAX_NV_BUFFER_SIZE]; member 992 BYTE buffer[sizeof(UINT64)]; member 997 BYTE buffer[MAX_SYM_BLOCK_SIZE]; member 1092 BYTE buffer[sizeof(TPML_DIGEST_VALUES)]; member 1257 BYTE buffer[MAX_SYM_KEY_BYTES]; member 1266 BYTE buffer[MAX_SYM_DATA]; member [all …]
|
/system/core/libcutils/tests/ |
D | sockets_test.cpp | 37 char buffer[128]; in TestConnectedSockets() local 44 EXPECT_EQ(3, recvfrom(server, buffer, sizeof(buffer), 0, in TestConnectedSockets() 47 EXPECT_EQ(3, recv(server, buffer, sizeof(buffer), 0)); in TestConnectedSockets() 49 EXPECT_EQ(0, memcmp(buffer, "foo", 3)); in TestConnectedSockets() 58 EXPECT_EQ(3, recv(client, buffer, sizeof(buffer), 0)); in TestConnectedSockets() 59 EXPECT_EQ(0, memcmp(buffer, "bar", 3)); in TestConnectedSockets() 67 EXPECT_EQ(11, recv(server, buffer, sizeof(buffer), 0)); in TestConnectedSockets() 68 EXPECT_EQ(0, memcmp(buffer, "foobar12345", 11)); in TestConnectedSockets() 78 char buffer[32]; in TestReceiveTimeout() local 83 EXPECT_EQ(-1, recv(sock, buffer, sizeof(buffer), 0)); in TestReceiveTimeout() [all …]
|
/system/netd/tests/ |
D | dns_responder.cpp | 47 std::string str2hex(const char* buffer, size_t len) { in str2hex() argument 51 uint8_t c = buffer[i]; in str2hex() 144 const char* read(const char* buffer, const char* buffer_end); 145 char* write(char* buffer, const char* buffer_end) const; 148 const char* parseField(const char* buffer, const char* buffer_end, 156 const char* DNSName::read(const char* buffer, const char* buffer_end) { in read() argument 157 const char* cur = buffer; in read() 169 char* DNSName::write(char* buffer, const char* buffer_end) const { in write() argument 170 char* buffer_cur = buffer; in write() 199 const char* DNSName::parseField(const char* buffer, const char* buffer_end, in parseField() argument [all …]
|
/system/extras/memory_replay/tests/ |
D | LineBufferTest.cpp | 46 char buffer[100]; in TEST_F() local 47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() 65 char buffer[100]; in TEST_F() local 66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() 86 char buffer[100]; in TEST_F() local 87 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() 115 char buffer[100]; in TEST_F() local 116 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() 145 char buffer[24]; in TEST_F() local 146 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer)); in TEST_F() [all …]
|
/system/core/adb/ |
D | test_track_devices.cpp | 30 char buffer[1024]; in main() local 42 int len = snprintf(buffer, sizeof(buffer), "%04zx%s", strlen(request), request); in main() 43 if (!android::base::WriteFully(s, buffer, len)) in main() 47 if (!android::base::ReadFully(s, buffer, 4)) in main() 50 printf( "server answer: %.*s\n", 4, buffer ); in main() 63 if (!android::base::ReadFully(s, buffer, len)) in main() 66 printf( "received header %.*s (%d bytes):\n%.*s----\n", 4, head, len, len, buffer ); in main()
|