Searched refs:bytes (Results 51 - 75 of 148) sorted by relevance

123456

/system/core/libunwindstack/
H A DMaps.cpp171 ssize_t bytes = read(fd, &buffer[leftover], 2048 - leftover); local
172 if (bytes == -1) {
176 if (bytes == 0) {
179 bytes += leftover;
181 while (bytes > 0) {
182 char* newline = static_cast<char*>(memchr(line, '\n', bytes));
184 memmove(buffer, line, bytes);
196 bytes -= newline - line + 1;
199 leftover = bytes;
H A DMemory.cpp104 static size_t PtraceRead(pid_t pid, uint64_t addr, void* dst, size_t bytes) { argument
107 if (__builtin_add_overflow(addr, bytes, &max_size)) {
118 size_t copy_bytes = std::min(sizeof(long) - align_bytes, bytes);
122 bytes -= copy_bytes;
126 for (size_t i = 0; i < bytes / sizeof(long); i++) {
136 size_t left_over = bytes & (sizeof(long) - 1);
279 size_t bytes = ProcessVmRead(pid_, addr, dst, size); local
280 if (bytes > 0) {
282 return bytes;
284 bytes
381 size_t bytes = memory->Read(addr, dst, size); local
[all...]
/system/tpm/trunks/
H A Dtrunks_ftdi_spi.cc61 // SPI frame header for TPM transactions is 4 bytes in size, it is described
84 size_t bytes,
94 header.body[0] = (read_write ? 0x80 : 0) | 0x40 | (bytes - 1);
125 size_t bytes,
130 StartTransaction(false, bytes, reg_number + locality_ * 0x10000);
131 Write(mpsse_, buffer, bytes);
137 size_t bytes,
144 StartTransaction(true, bytes, reg_number + locality_ * 0x10000);
145 value = Read(mpsse_, bytes);
147 memcpy(buffer, value, bytes);
83 StartTransaction(bool read_write, size_t bytes, unsigned addr) argument
124 FtdiWriteReg(unsigned reg_number, size_t bytes, const void* buffer) argument
136 FtdiReadReg(unsigned reg_number, size_t bytes, void* buffer) argument
[all...]
H A Dsession_manager_test.cc63 std::vector<uint8_t> bytes; local
64 CHECK(base::HexStringToBytes(kValidModulus, &bytes));
65 CHECK_EQ(bytes.size(), 256u);
67 rsa.size = bytes.size();
68 memcpy(rsa.buffer, bytes.data(), bytes.size());
/system/chre/apps/chqts/src/shared/
H A Ddumb_allocator.cc36 void *DumbAllocatorBase::alloc(size_t bytes) { argument
37 if (bytes > mAllocSize) {
/system/chre/platform/shared/
H A Dchre_api_re.cc59 DLL_EXPORT void *chreHeapAlloc(uint32_t bytes) { argument
62 nanoappAlloc(nanoapp, bytes);
/system/core/libbacktrace/
H A DUnwindStack.h49 size_t Read(uint64_t addr, uint8_t* buffer, size_t bytes) override;
63 size_t Read(uint64_t addr, uint8_t* buffer, size_t bytes) override;
H A DBacktraceCurrent.cpp56 size_t BacktraceCurrent::Read(uint64_t addr, uint8_t* buffer, size_t bytes) { argument
62 bytes = MIN(map.end - addr, bytes);
63 memcpy(buffer, reinterpret_cast<uint8_t*>(addr), bytes);
64 return bytes;
H A DBacktraceCurrent.h42 size_t Read(uint64_t addr, uint8_t* buffer, size_t bytes) override;
/system/iot/attestation/partner-tools/
H A Dprovision-test.py47 _session_params = _ATAPSessionParameters(0, 0, bytes(), bytes())
76 # Make 33 bytes to match P256
85 # +2 for algo and operation bytes
111 CA Request message format for reference, sizes in bytes
158 device_pub_key = bytes(ca_request[start:end])
168 gcm_iv = bytes(ca_request[start:end])
179 enc_message = bytes(ca_request[start:end])
182 gcm_tag = bytes(ca_request[-gcm_tag_len:])
251 inner_ca_response = bytes(infil
[all...]
/system/update_engine/payload_consumer/
H A Dcached_file_descriptor.cc52 auto bytes = static_cast<const uint8_t*>(buf); local
59 bytes + total_bytes_wrote,
H A Dextent_writer_unittest.cc70 const string bytes = "1234"; local
74 EXPECT_TRUE(direct_writer.Write(bytes.data(), bytes.size()));
77 EXPECT_EQ(static_cast<off_t>(kBlockSize + bytes.size()),
85 bytes.data(), bytes.data() + bytes.size());
H A Dbzip_extent_writer.h46 bool Write(const void* bytes, size_t count) override;
H A Dxz_extent_writer.h45 bool Write(const void* bytes, size_t count) override;
H A Dbzip_extent_writer.cc40 bool BzipExtentWriter::Write(const void* bytes, size_t count) { argument
46 const uint8_t* input = reinterpret_cast<const uint8_t*>(bytes);
64 break; // got no new bytes
H A Dextent_reader.cc65 auto bytes = reinterpret_cast<uint8_t*>(buffer); local
79 bytes + bytes_read,
/system/chre/chre_api/include/chre_api/chre/
H A Dre.h349 * Allocate a given number of bytes from the system heap.
359 * @param bytes The number of bytes requested.
360 * @returns A pointer to 'bytes' contiguous bytes of heap memory, or NULL
366 void *chreHeapAlloc(uint32_t bytes);
/system/chre/chre_api/legacy/v1_1/chre/
H A Dre.h349 * Allocate a given number of bytes from the system heap.
359 * @param bytes The number of bytes requested.
360 * @returns A pointer to 'bytes' contiguous bytes of heap memory, or NULL
366 void *chreHeapAlloc(uint32_t bytes);
/system/extras/tests/suspend_stress/
H A Dsuspend_stress.cpp145 ssize_t bytes = read(fd, &fired, sizeof(fired)); local
146 if (bytes < 0) {
149 } else if (bytes < (ssize_t)sizeof(fired)) {
150 fprintf(stderr, "unexpected read from timer fd: %zd\n", bytes);
/system/extras/memtrack/
H A Dmemtrack.cpp66 ssize_t bytes; local
69 bytes = read(fd_, data_ + len_, max_ - len_);
70 if (bytes == 0 || bytes == -1) {
74 len_ += bytes;
133 ssize_t bytes = read(fd, cmd_name_, sizeof(cmd_name_)); local
135 if (bytes == -1 || bytes == 0) {
/system/tpm/tpm_manager/server/
H A Dtpm_status_impl.cc58 std::vector<BYTE> bytes(capability_data.begin(), capability_data.end());
59 Trspi_UnloadBlob_DA_INFO(&offset, bytes.data(), &da_info);
/system/core/toolbox/upstream-netbsd/bin/dd/
H A Dmisc.c134 "%llu bytes transferred in %lu.%03d secs (%llu bytes/sec)\n",
135 (unsigned long long) st.bytes,
138 (unsigned long long) (st.bytes * 1000LL / mS));
220 (unsigned long long)st.bytes);
225 st.bytes, "B",
227 warnx("humanize_number (bytes transferred)");
232 (unsigned long long) (st.bytes * 1000LL / mS));
237 st.bytes * 1000LL / mS, "B",
239 warnx("humanize_number (bytes pe
[all...]
/system/core/adb/
H A Dshell_service.cpp117 int bytes = adb_read(fd, buffer, sizeof(buffer)); local
118 if (bytes <= 0) {
121 received.append(buffer, bytes);
622 int bytes = adb_write(stdinout_sfd_, input_->data() + index, input_bytes_left_); local
623 if (bytes == 0 || (bytes < 0 && errno != EAGAIN)) {
624 if (bytes < 0) {
631 } else if (bytes > 0) {
632 input_bytes_left_ -= bytes;
640 int bytes local
[all...]
/system/core/debuggerd/libdebuggerd/test/
H A Ddump_memory_test.cpp110 virtual size_t Read(uint64_t addr, void* buffer, size_t bytes) override {
118 bytes = std::min(bytes, bytes_partial_read_);
119 bytes_partial_read_ -= bytes;
121 } else if (bytes > bytes_available) {
122 bytes = bytes_available;
125 if (bytes > 0) {
126 memcpy(buffer, buffer_.data() + offset, bytes);
130 return bytes;
133 void SetReadData(uint8_t* buffer, size_t bytes) { argument
140 SetPartialReadAmount(size_t bytes) argument
[all...]
/system/core/storaged/tests/
H A Dstoraged_test.cpp452 .uid_ios.bytes[WRITE][FOREGROUND][CHARGER_ON] = 1000,
457 .uid_ios.bytes[READ][FOREGROUND][CHARGER_OFF] = 1000,
462 .uid_ios.bytes[WRITE][FOREGROUND][CHARGER_ON] = 1000,
463 .uid_ios.bytes[READ][FOREGROUND][CHARGER_ON] = 1000,
474 .uid_ios.bytes[WRITE][FOREGROUND][CHARGER_OFF] = 1000,
479 .uid_ios.bytes[READ][BACKGROUND][CHARGER_OFF] = 1000,
536 .uid_ios.bytes[WRITE][FOREGROUND][CHARGER_ON] = 1000,
547 .uid_ios.bytes[WRITE][FOREGROUND][CHARGER_ON] = 1000,
566 EXPECT_EQ(entries_0[0].ios.uid_ios.bytes[WRITE][FOREGROUND][CHARGER_ON], 1000UL);
569 EXPECT_EQ(entries_0[1].ios.uid_ios.bytes[REA
[all...]

Completed in 2009 milliseconds

123456