/system/libufdt/utils/src/ |
H A D | dt_table.c | 25 void dt_table_header_init(struct dt_table_header *header) { argument 29 dto_memset(header, 0, header_size); 30 header->magic = cpu_to_fdt32(DT_TABLE_MAGIC); 31 header->total_size = cpu_to_fdt32(header_size); 32 header->header_size = cpu_to_fdt32(header_size); 33 header->dt_entry_size = cpu_to_fdt32(entry_size); 34 header->dt_entries_offset = cpu_to_fdt32(header_size); 35 header->page_size = cpu_to_fdt32(DT_TABLE_DEFAULT_PAGE_SIZE);
|
H A D | mkdtimg_dump.c | 108 static void output_table_header(FILE *out_fp, const struct dt_table_header *header) { argument 110 output_prop_hex(out_fp, "magic", header->magic); 111 output_prop_int(out_fp, "total_size", header->total_size); 112 output_prop_int(out_fp, "header_size", header->header_size); 113 output_prop_int(out_fp, "dt_entry_size", header->dt_entry_size); 114 output_prop_int(out_fp, "dt_entry_count", header->dt_entry_count); 115 output_prop_int(out_fp, "dt_entries_offset", header->dt_entries_offset); 116 output_prop_int(out_fp, "page_size", header->page_size); 117 output_prop_hex(out_fp, "reserved[0]", header->reserved[0]); 151 struct dt_table_header header; local [all...] |
/system/core/libsparse/ |
H A D | simg_dump.py | 77 header = struct.unpack("<I4H4I", header_bin) 79 magic = header[0] 80 major_version = header[1] 81 minor_version = header[2] 82 file_hdr_sz = header[3] 83 chunk_hdr_sz = header[4] 84 blk_sz = header[5] 85 total_blks = header[6] 86 total_chunks = header[7] 87 image_checksum = header[ [all...] |
/system/core/libappfuse/tests/ |
H A D | FuseBufferTest.cc | 46 packet->header.len = headerSize; 59 packet->header.len = size; 70 request.header.len = sizeof(FuseRequest); 71 request.header.opcode = 1; 72 request.header.unique = 2; 73 request.header.nodeid = 3; 74 request.header.uid = 4; 75 request.header.gid = 5; 76 request.header.pid = 6; 85 EXPECT_EQ(sizeof(FuseRequest), request.header [all...] |
H A D | FuseBridgeLoopTest.cc | 68 request_.header.opcode = opcode; 69 request_.header.len = sizeof(fuse_in_header); 74 EXPECT_EQ(-ENOSYS, response_.header.error); 81 request_.header.opcode = opcode; 82 request_.header.unique = opcode; // Use opcode as unique. 83 request_.header.len = sizeof(fuse_in_header); 88 EXPECT_EQ(opcode, request_.header.opcode); 89 EXPECT_EQ(opcode, request_.header.unique); 92 response_.header.len = sizeof(fuse_out_header); 93 response_.header [all...] |
/system/connectivity/wifilogd/ |
H A D | message_buffer.cpp | 67 const auto& header = CopyFromBufferOrDie<LengthHeader>( local 69 read_pos_ += sizeof(header); 72 read_pos_ += header.payload_len; 75 return {payload_start, header.payload_len}; 83 LengthHeader header; local 84 header.payload_len = message_len; 85 AppendRawBytes(&header, sizeof(header));
|
/system/core/libappfuse/ |
H A D | FuseBuffer.cc | 41 const auto& header = static_cast<const T*>(self)->header; local 42 if (header.len >= sizeof(header) && header.len <= max_size) { 45 LOG(ERROR) << "Invalid header length is found in " << name << ": " << header.len; 68 const auto& header = static_cast<const T*>(self)->header; local 69 if (result < static_cast<ssize_t>(sizeof(header))) { 94 const auto& header = static_cast<const T*>(self)->header; local [all...] |
H A D | FuseAppLoop.cc | 35 if (buffer->request.header.nodeid != FUSE_ROOT_ID) { 37 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); 41 const size_t filename_length = buffer->request.header.len - sizeof(fuse_in_header); 44 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); 50 return loop->ReplySimple(buffer->request.header.unique, -ENOENT); 53 callback->OnLookup(buffer->request.header.unique, inode); 58 if (buffer->request.header.nodeid == FUSE_ROOT_ID) { 59 return loop->ReplyGetAttr(buffer->request.header.unique, buffer->request.header.nodeid, 0, 62 callback->OnGetAttr(buffer->request.header [all...] |
/system/connectivity/wificond/net/ |
H A D | nl80211_attribute.cpp | 37 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); local 38 header->nla_type = attribute_id; 39 header->nla_len = NLA_HDRLEN + payload_length; 43 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); local 44 return header->nla_type; 51 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); local 52 return NLA_ALIGN(header->nla_len) == data_.size(); 64 // Skip the top level attribute header. 68 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); local 69 if (header 100 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); local 122 const nlattr* header = reinterpret_cast<const nlattr*>(data_.data()); local 146 nlattr* header = reinterpret_cast<nlattr*>(data_.data()); local 194 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); local 216 const nlattr* header = reinterpret_cast<const nlattr*>(ptr); local [all...] |
/system/core/include/system/ |
H A D | qemu_pipe.h | 87 char header[5]; local 88 snprintf(header, sizeof(header), "%04zx", len); 89 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, header, 4)); 91 QEMU_PIPE_DEBUG("Can't write qemud frame header: %s", strerror(errno)); 108 char header[5]; local 109 ssize_t ret = TEMP_FAILURE_RETRY(read(fd, header, 4)); 111 QEMU_PIPE_DEBUG("Can't read qemud frame header: %s", strerror(errno)); 114 header[4] = '\0'; 116 if (sscanf(header, " [all...] |
/system/core/libsystem/include/system/ |
H A D | qemu_pipe.h | 87 char header[5]; local 88 snprintf(header, sizeof(header), "%04zx", len); 89 ssize_t ret = TEMP_FAILURE_RETRY(write(fd, header, 4)); 91 QEMU_PIPE_DEBUG("Can't write qemud frame header: %s", strerror(errno)); 108 char header[5]; local 109 ssize_t ret = TEMP_FAILURE_RETRY(read(fd, header, 4)); 111 QEMU_PIPE_DEBUG("Can't read qemud frame header: %s", strerror(errno)); 114 header[4] = '\0'; 116 if (sscanf(header, " [all...] |
/system/bt/vendor_libs/test_vendor_lib/src/ |
H A D | command_packet.cc | 29 CommandPacket::CommandPacket(vector<uint8_t> header) argument 30 : Packet(DATA_TYPE_COMMAND, std::move(header)) {} 36 CommandPacket::CommandPacket(vector<uint8_t> header, vector<uint8_t> payload) argument 37 : Packet(DATA_TYPE_COMMAND, std::move(header)) {
|
/system/core/libprocinfo/ |
H A D | process.cpp | 74 std::string header = std::string(line, header_len); local 75 if (header == "Name:") { 83 } else if (header == "Pid:") { 86 } else if (header == "Tgid:") { 89 } else if (header == "PPid:") { 92 } else if (header == "TracerPid:") { 95 } else if (header == "Uid:") { 98 } else if (header == "Gid:") {
|
/system/tools/hidl/c2hal/test/ |
H A D | build_all.py | 52 for header in sorted(headers(path)): 53 fname = header[:-2] 62 command += [path_join(path, header)] 67 success += [header] 69 failure += [header]
|
/system/chre/apps/imu_cal/ |
H A D | imu_cal.cc | 121 const auto header = ev->header; local 126 for (size_t i = 0; i < header.readingCount; i++) { 131 x /= header.readingCount; 132 y /= header.readingCount; 133 z /= header.readingCount; 136 getSensorNameForEventType(eventType), header.readingCount, x, y, z); 143 const auto header = ev->header; local 147 for (size_t i = 0; i < header [all...] |
/system/core/adb/ |
H A D | diagnose_usb.cpp | 74 std::string header = "insufficient permissions for device"; local 78 header += android::base::StringPrintf(": %s", problem); 82 header.c_str(), kPermissionsHelpUrl);
|
/system/extras/perfprofd/quipper/kernel-headers/tools/perf/util/ |
H A D | event.h | 4 *** This header was automatically generated from a Linux kernel header 7 *** structures, and macros generated from the original header, and thus, 10 *** To edit the content of this header, modify the corresponding 24 struct perf_event_header header; member in struct:mmap_event 34 struct perf_event_header header; member in struct:mmap2_event 49 struct perf_event_header header; member in struct:comm_event 55 struct perf_event_header header; member in struct:fork_event 62 struct perf_event_header header; member in struct:lost_event 69 struct perf_event_header header; member in struct:read_event 80 struct perf_event_header header; member in struct:sample_event 140 struct perf_event_header header; member in struct:build_id_event 159 struct perf_event_header header; member in struct:attr_event 171 struct perf_event_header header; member in struct:event_type_event 176 struct perf_event_header header; member in struct:tracing_data_event 181 struct perf_event_header header; member in union:perf_event [all...] |
/system/bt/vendor_libs/test_vendor_lib/include/ |
H A D | command_packet.h | 29 // octet header formatted as follows: 34 // The header is followed by the payload, which contains command specific 45 explicit CommandPacket(std::vector<uint8_t> header); 47 CommandPacket(std::vector<uint8_t> header, std::vector<uint8_t> payload); 77 // Size of a command packet header, which consists of a 2 octet opcode
|
/system/chre/apps/sensor_world/ |
H A D | sensor_world.cc | 182 const auto header = ev->header; local 186 for (size_t i = 0; i < header.readingCount; i++) { 191 x /= header.readingCount; 192 y /= header.readingCount; 193 z /= header.readingCount; 196 getSensorNameForEventType(eventType), header.readingCount, x, y, z); 205 const auto header = ev->header; local 208 for (size_t i = 0; i < header 220 const auto header = ev->header; local 243 const auto header = ev->header; local [all...] |
/system/extras/simpleperf/ |
H A D | cmd_dumprecord.cpp | 96 const FileHeader& header = record_file_reader_->FileHeader(); local 99 printf("%c", header.magic[i]); 102 printf("header_size: %" PRId64 "\n", header.header_size); 103 if (header.header_size != sizeof(header)) { 104 PLOG(WARNING) << "record file header size " << header.header_size 105 << "doesn't match expected header size " << sizeof(header); 107 printf("attr_size: %" PRId64 "\n", header [all...] |
H A D | record_file_writer.cpp | 76 // Skip file header part. 135 RecordHeader header; local 136 header.type = SIMPLE_PERF_RECORD_SPLIT; 141 header.size = bytes_to_write + Record::header_size(); 143 header.MoveToBinaryFormat(header_p); 153 header.type = SIMPLE_PERF_RECORD_SPLIT_END; 154 header.size = Record::header_size(); 156 header.MoveToBinaryFormat(header_p); 195 RecordHeader header(record_buf.data()); 196 if (record_buf.size() < header 373 FileHeader header; local [all...] |
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
H A D | getbsize.c | 56 static char header[20]; local 114 snprintf(header, sizeof(header), "%ld%s-blocks", n, form); 117 return (header);
|
/system/core/logd/ |
H A D | LogListener.cpp | 86 android_log_header_t* header = local 88 if (/* header->id < LOG_ID_MIN || */ header->id >= LOG_ID_MAX || 89 header->id == LOG_ID_KERNEL) { 93 if ((header->id == LOG_ID_SECURITY) && 105 if (logbuf->log((log_id_t)header->id, header->realtime, cred->uid, 106 cred->pid, header->tid, msg,
|
/system/core/libcutils/tests/ |
H A D | sched_policy_test.cpp | 29 __user_cap_header_struct header; local 30 memset(&header, 0, sizeof(header)); 31 header.version = _LINUX_CAPABILITY_VERSION_3; 34 if (capget(&header, &caps[0])) {
|
/system/core/liblog/ |
H A D | logd_writer.c | 133 android_log_header_t header; local 161 * android_log_header_t header; 176 header.tid = gettid(); 177 header.realtime.tv_sec = ts->tv_sec; 178 header.realtime.tv_nsec = ts->tv_nsec; 180 newVec[0].iov_base = (unsigned char*)&header; 181 newVec[0].iov_len = sizeof(header); 189 header.id = LOG_ID_SECURITY; 190 buffer.header.tag = htole32(LIBLOG_LOG_TAG); 198 if (ret != (ssize_t)(sizeof(header) [all...] |