Searched defs:buffer (Results 1 - 25 of 189) sorted by relevance

12345678

/system/extras/memory_replay/tests/
H A DLineBufferTest.cpp46 char buffer[100]; local
47 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
65 char buffer[100]; local
66 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
86 char buffer[100]; local
87 LineBuffer line_buf(tmp_file_->fd, buffer, sizeof(buffer));
115 char buffer[10 local
145 char buffer[24]; local
180 char buffer[60]; local
215 char buffer[25]; local
[all...]
/system/bt/embdrv/sbc/decoder/srce/
H A Dbitstream-decode.c41 PRIVATE void OI_BITSTREAM_ReadInit(OI_BITSTREAM* bs, const OI_BYTE* buffer) { argument
43 ((int32_t)buffer[0] << 16) | ((int32_t)buffer[1] << 8) | (buffer[2]);
44 bs->ptr.r = buffer + 3;
H A Dsynthesis-8-generated.c51 SBC_BUFFER_T const* RESTRICT buffer,
55 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[12])) >> 3;
56 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-23167, buffer[20])) >> 3;
57 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[28])) >> 2;
58 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-17397, buffer[36])) << 1;
59 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(9399, buffer[44])) << 3;
60 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(17397, buffer[52])) << 1;
61 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[60])) >> 2;
62 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(23167, buffer[68])) >> 3;
63 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[7
50 SynthWindow80_generated(int16_t* pcm, SBC_BUFFER_T const* RESTRICT buffer, OI_UINT strideShift) argument
[all...]
/system/core/fastboot/
H A Dtcp_test.cpp116 std::string buffer(message.length(), '\0');
117 return transport_->Read(&buffer[0], buffer.length()) ==
119 buffer == message;
201 char buffer[16]; local
202 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer)));
209 char buffer[16]; local
210 EXPECT_EQ(-1, transport_->Read(buffer, sizeof(buffer)));
224 char buffer[16]; local
[all...]
H A Dsocket_test.cpp93 char buffer[16]; local
98 EXPECT_EQ(-1, server->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
101 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
108 EXPECT_EQ(-1, client->Receive(buffer, sizeof(buffer), kShortTimeoutMs));
114 char buffer[16]; local
120 EXPECT_EQ(-1, server->Receive(buffer, sizeof(buffer), kTestTimeoutM
164 char buffer[5]; local
[all...]
/system/core/libbacktrace/
H A DBacktracePtrace.cpp65 size_t BacktracePtrace::Read(uintptr_t addr, uint8_t* buffer, size_t bytes) { argument
85 memcpy(buffer, reinterpret_cast<uint8_t*>(&data_word) + align_bytes, copy_bytes);
87 buffer += copy_bytes;
97 memcpy(buffer, &data_word, sizeof(word_t));
98 buffer += sizeof(word_t);
108 memcpy(buffer, &data_word, left_over);
/system/core/libmemunreachable/
H A DLineBuffer.cpp26 LineBuffer::LineBuffer(int fd, char* buffer, size_t buffer_len) : fd_(fd), buffer_(buffer), buffer_len_(buffer_len) { argument
43 // Didn't find anything, copy the current to the front of the buffer.
/system/core/libsysutils/src/
H A DFrameworkClient.cpp50 char *buffer = (char *) alloca(bufflen); local
51 if (!buffer) {
55 snprintf(buffer, bufflen, "%s%s", msg, data);
56 return sendMsg(buffer);
/system/extras/memory_replay/
H A DLineBuffer.cpp23 LineBuffer::LineBuffer(int fd, char* buffer, size_t buffer_len) : fd_(fd), buffer_(buffer), buffer_len_(buffer_len) { argument
40 // Didn't find anything, copy the current to the front of the buffer.
/system/nvram/core/
H A Dcrypto_boringssl.cpp33 // SHA256 requires an output buffer of at least SHA256_DIGEST_LENGTH.
34 // |digest_size| might be less, so store the digest in a local buffer.
35 uint8_t buffer[SHA256_DIGEST_LENGTH]; local
36 ::SHA256(data, data_size, buffer);
39 if (digest_size < sizeof(buffer)) {
40 memcpy(digest, buffer, digest_size);
42 memcpy(digest, buffer, sizeof(buffer));
43 memset(digest + sizeof(buffer), 0, digest_size - sizeof(buffer));
[all...]
/system/nvram/messages/
H A Dnvram_messages.cpp27 // IMPORTANT: The field numbers specified here correspond to protocol buffer
90 MakeField(2, &WriteSpaceRequest::buffer),
106 MakeFieldList(MakeField(1, &ReadSpaceResponse::buffer));
183 bool Encode(const Message& msg, void* buffer, size_t* size) { argument
184 ArrayOutputStreamBuffer stream(buffer, *size);
/system/bt/osi/test/
H A Dringbuffer_test.cc17 uint8_t buffer[10] = {0x01, 0x02, 0x03, 0x04, 0x05, local
19 ringbuffer_insert(rb, buffer, 10);
28 ASSERT_TRUE(0 == memcmp(buffer, peek, peeked));
91 // Add some more to wrap buffer
103 // Pop buffer
/system/chre/util/nanoapp/
H A Dwifi.cc26 bool parseSsidToStr(char *buffer, size_t bufferLen, argument
28 // Ensure that there is enough space in the buffer to copy the SSID and
43 // Copy the SSID to the buffer and null-terminate.
44 memcpy(buffer, ssid, ssidLen + 1);
45 buffer[ssidLen] = '\0';
52 char *buffer, size_t bufferLen) {
59 snprintf(buffer, bufferLen, kFormat, bssid[0], bssid[1], bssid[2],
51 parseBssidToStr(const uint8_t bssid[CHRE_WIFI_BSSID_LEN], char *buffer, size_t bufferLen) argument
/system/core/adb/
H A Dcommandline.h30 virtual void OnStdout(const char* buffer, int length) = 0;
33 virtual void OnStderr(const char* buffer, int length) = 0;
43 static void OnStream(std::string* string, FILE* stream, const char* buffer, int length) { argument
45 string->append(buffer, length);
47 fwrite(buffer, 1, length, stream);
67 void OnStdout(const char* buffer, int length) { argument
68 OnStream(stdout_str_, stdout, buffer, length);
71 void OnStderr(const char* buffer, int length) { argument
72 OnStream(stderr_str_, stderr, buffer, length);
/system/core/libcutils/tests/
H A Dsockets_test.cpp39 char buffer[128]; local
46 EXPECT_EQ(3, recvfrom(server, buffer, sizeof(buffer), 0,
49 EXPECT_EQ(3, recv(server, buffer, sizeof(buffer), 0));
51 EXPECT_EQ(0, memcmp(buffer, "foo", 3));
60 EXPECT_EQ(3, recv(client, buffer, sizeof(buffer), 0));
61 EXPECT_EQ(0, memcmp(buffer, "bar", 3));
69 EXPECT_EQ(11, recv(server, buffer, sizeo
80 char buffer[32]; local
[all...]
/system/core/libdiskconfig/
H A Ddiskutils.c38 uint8_t buffer[2048]; local
63 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) {
84 if ((tmp = write(dst_fd, buffer, nr_bytes)) < 0) {
/system/core/libunwindstack/tests/
H A DMemoryFileTest.cpp46 std::vector<char> buffer(11);
47 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
48 buffer[10] = '\0';
49 ASSERT_STREQ("0123456789", buffer.data());
56 std::vector<char> buffer(11);
57 ASSERT_TRUE(memory_.Read(0, buffer.data(), 10));
58 buffer[10] = '\0';
59 ASSERT_STREQ("abcdefghij", buffer.data());
72 std::vector<char> buffer(9);
73 ASSERT_TRUE(memory_.Read(0, buffer
155 std::vector<uint8_t> buffer = { 0x23, 0x32, 0x45 }; local
[all...]
/system/extras/ext4_utils/
H A Dsha1.h33 u_char buffer[64]; member in struct:__anon1712
/system/extras/tests/crypto/
H A Dget_dm_versions.c27 char buffer[DM_CRYPT_BUF_SIZE]; local
39 io = (struct dm_ioctl *) buffer;
49 v = (struct dm_target_versions *) &buffer[sizeof(struct dm_ioctl)];
/system/media/audio_utils/include/audio_utils/
H A Dclock.h30 * \param buffer caller allocated string buffer, buffer_length must be >= 19 chars
33 * \param buffer_size size of buffer.
35 static inline void audio_utils_ns_to_string(int64_t ns, char *buffer, size_t buffer_size) argument
45 buffer[0] = '\0';
49 if (snprintf(buffer, buffer_size, "%02d-%02d %02d:%02d:%02d.%03d",
53 buffer[0] = '\0'; // null terminate on format error, which should not happen
65 char time[19]; /* minimum size buffer */
/system/nfc/src/adaptation/
H A DCrcChecksum.cpp65 ** Description Compute a checksum on a buffer of data.
70 unsigned short crcChecksumCompute(const unsigned char* buffer, int bufferLen) { argument
72 const register unsigned char* cp = buffer;
100 char buffer[1024]; local
101 ssize_t actualReadData = read(fileStream, buffer, sizeof(buffer));
103 data.append(buffer, actualReadData);
/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/bt/osi/src/
H A Dbuffer.cc21 #include "osi/include/buffer.h"
39 buffer_t* buffer = local
42 buffer->root = buffer;
43 buffer->refcount = 1;
44 buffer->length = size;
46 return buffer;
70 void buffer_free(buffer_t* buffer) { argument
71 if (!buffer) return;
73 if (buffer
[all...]
/system/connectivity/wifilogd/
H A Dmessage_buffer.h31 // A fixed-size buffer, which provides FIFO access to read and write
37 // |buffer| does not expire before the ScopedRewinder.
40 explicit ScopedRewinder(NONNULL MessageBuffer* buffer) : buffer_(buffer) {} argument
47 // Constructs the buffer. |size| must be greater than GetHeaderSize().
50 // Appends a single message to the buffer. |data_len| must be >=1. Returns
51 // true if the message was added to the buffer.
54 // Returns true if the buffer is large enough to hold |length| bytes of user
55 // data, when the buffer is empty.
58 // Returns true if the buffer currentl
[all...]
/system/core/debuggerd/libdebuggerd/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...]

Completed in 1196 milliseconds

12345678