Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 117) sorted by relevance

12345

/device/generic/goldfish/dhcp/common/
Dsocket.cpp136 struct msghdr header; in sendOnInterface() local
137 memset(&header, 0, sizeof(header)); in sendOnInterface()
143 header.msg_name = &addr; in sendOnInterface()
144 header.msg_namelen = sizeof(addr); in sendOnInterface()
145 header.msg_iov = &iov; in sendOnInterface()
146 header.msg_iovlen = 1; in sendOnInterface()
147 header.msg_control = &controlData; in sendOnInterface()
148 header.msg_controllen = sizeof(controlData); in sendOnInterface()
150 struct cmsghdr* controlHeader = CMSG_FIRSTHDR(&header); in sendOnInterface()
159 ssize_t status = ::sendmsg(mSocketFd, &header, 0); in sendOnInterface()
[all …]
/device/generic/goldfish-opengl/system/codecs/omx/plugin/
DSimpleGoldfishOMXComponent.cpp224 OMX_BUFFERHEADERTYPE **header, in useBuffer() argument
230 return useBufferCallerLockedAlready(header, portIndex, appPrivate, size, ptr); in useBuffer()
234 OMX_BUFFERHEADERTYPE **header, in useBufferCallerLockedAlready() argument
249 *header = new OMX_BUFFERHEADERTYPE; in useBufferCallerLockedAlready()
250 (*header)->nSize = sizeof(OMX_BUFFERHEADERTYPE); in useBufferCallerLockedAlready()
251 (*header)->nVersion.s.nVersionMajor = 1; in useBufferCallerLockedAlready()
252 (*header)->nVersion.s.nVersionMinor = 0; in useBufferCallerLockedAlready()
253 (*header)->nVersion.s.nRevision = 0; in useBufferCallerLockedAlready()
254 (*header)->nVersion.s.nStep = 0; in useBufferCallerLockedAlready()
255 (*header)->pBuffer = ptr; in useBufferCallerLockedAlready()
[all …]
/device/google/contexthub/firmware/app/chre/common/
Dchre10_app.c47 static void initDataHeader(struct chreSensorDataHeader *header, uint64_t timestamp, uint32_t sensor… in initDataHeader() argument
48 header->baseTimestamp = timestamp; in initDataHeader()
49 header->sensorHandle = sensorHandle; in initDataHeader()
50 header->readingCount = 1; in initDataHeader()
51 header->reserved[0] = header->reserved[1] = 0; in initDataHeader()
59 initDataHeader(&three.header, src->referenceTime, sensorHandle); in processTripleAxisData()
64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData()
82 initDataHeader(&occ.header, src->referenceTime, sensorHandle); in processSingleAxisData()
87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
97 initDataHeader(&flt.header, src->referenceTime, sensorHandle); in processSingleAxisData()
[all …]
Dchre_app.c47 static void initDataHeader(struct chreSensorDataHeader *header, uint64_t timestamp, uint32_t sensor… in initDataHeader() argument
48 header->baseTimestamp = timestamp; in initDataHeader()
49 header->sensorHandle = sensorHandle; in initDataHeader()
50 header->readingCount = 1; in initDataHeader()
51 header->reserved = 0; in initDataHeader()
59 initDataHeader(&three.header, src->referenceTime, sensorHandle); in processTripleAxisData()
64 three.header.baseTimestamp += src->samples[i].deltaTime; in processTripleAxisData()
82 initDataHeader(&occ.header, src->referenceTime, sensorHandle); in processSingleAxisData()
87 occ.header.baseTimestamp += src->samples[i].deltaTime; in processSingleAxisData()
97 initDataHeader(&flt.header, src->referenceTime, sensorHandle); in processSingleAxisData()
[all …]
/device/google/coral/json-c/
Dconfig.h.in32 /* Define to 1 if you have the <dlfcn.h> header file. */
38 /* Define to 1 if you have the <endian.h> header file. */
41 /* Define to 1 if you have the <fcntl.h> header file. */
44 /* Define to 1 if you have the <inttypes.h> header file. */
47 /* Define to 1 if you have the <limits.h> header file. */
50 /* Define to 1 if you have the <locale.h> header file. */
57 /* Define to 1 if you have the <memory.h> header file. */
73 /* Define to 1 if you have the <stdarg.h> header file. */
76 /* Define to 1 if you have the <stdint.h> header file. */
79 /* Define to 1 if you have the <stdlib.h> header file. */
[all …]
/device/google/sunfish/json-c/
Dconfig.h.in32 /* Define to 1 if you have the <dlfcn.h> header file. */
38 /* Define to 1 if you have the <endian.h> header file. */
41 /* Define to 1 if you have the <fcntl.h> header file. */
44 /* Define to 1 if you have the <inttypes.h> header file. */
47 /* Define to 1 if you have the <limits.h> header file. */
50 /* Define to 1 if you have the <locale.h> header file. */
57 /* Define to 1 if you have the <memory.h> header file. */
73 /* Define to 1 if you have the <stdarg.h> header file. */
76 /* Define to 1 if you have the <stdint.h> header file. */
79 /* Define to 1 if you have the <stdlib.h> header file. */
[all …]
/device/google/redbull/json-c/
Dconfig.h.in32 /* Define to 1 if you have the <dlfcn.h> header file. */
38 /* Define to 1 if you have the <endian.h> header file. */
41 /* Define to 1 if you have the <fcntl.h> header file. */
44 /* Define to 1 if you have the <inttypes.h> header file. */
47 /* Define to 1 if you have the <limits.h> header file. */
50 /* Define to 1 if you have the <locale.h> header file. */
57 /* Define to 1 if you have the <memory.h> header file. */
73 /* Define to 1 if you have the <stdarg.h> header file. */
76 /* Define to 1 if you have the <stdint.h> header file. */
79 /* Define to 1 if you have the <stdlib.h> header file. */
[all …]
/device/generic/goldfish/wifi/wifi_hal/
Dnetlinkmessage.cpp39 auto header = reinterpret_cast<nlmsghdr*>(mData.data()); in NetlinkMessage() local
40 header->nlmsg_len = mData.size(); in NetlinkMessage()
41 header->nlmsg_flags = NLM_F_REQUEST; in NetlinkMessage()
42 header->nlmsg_type = type; in NetlinkMessage()
43 header->nlmsg_seq = sequence; in NetlinkMessage()
44 header->nlmsg_pid = getpid(); in NetlinkMessage()
67 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in type() local
68 return header->nlmsg_type; in type()
72 auto header = reinterpret_cast<const nlmsghdr*>(mData.data()); in sequence() local
73 return header->nlmsg_seq; in sequence()
Dnetlink.cpp203 auto header = reinterpret_cast<nlmsghdr*>(data); in readNetlinkMessage() local
204 if (data + header->nlmsg_len > end) { in readNetlinkMessage()
209 if (header->nlmsg_type == NLMSG_ERROR) { in readNetlinkMessage()
211 auto err = reinterpret_cast<nlmsgerr*>(NLMSG_DATA(header)); in readNetlinkMessage()
213 strerror(-err->error), header->nlmsg_seq); in readNetlinkMessage()
220 notifyHandler(data, header->nlmsg_len); in readNetlinkMessage()
222 data += header->nlmsg_len; in readNetlinkMessage()
/device/generic/goldfish/qemud/
Dqemud.cpp33 char header[5]; in qemud_channel_send() local
43 memcpy(header, &length32be, 4); in qemud_channel_send()
45 snprintf(header, sizeof(header), "%04x", size); in qemud_channel_send()
48 if (qemu_pipe_write_fully(pipe, header, 4)) { in qemud_channel_send()
60 char header[5]; in qemud_channel_recv() local
63 if (qemu_pipe_read_fully(pipe, header, 4)) { in qemud_channel_recv()
66 header[4] = 0; in qemud_channel_recv()
68 if (sscanf(header, "%04x", &size) != 1) { in qemud_channel_recv()
/device/google/barbet/dumpstate/
DDumpstateDevice.cpp118 static unsigned int tarCheckSum(PosixTarHeader *header) { in tarCheckSum() argument
120 char *p = (char *)header; in tarCheckSum()
123 header->chksum[i] = ' '; in tarCheckSum()
131 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
132 memset(header, 0, sizeof(PosixTarHeader)); in tarHeader()
133 strcpy(header->name, fileName); in tarHeader()
134 sprintf(header->mode, "%07o", 0600); in tarHeader()
135 sprintf(header->size, "%011llo", (long long unsigned int)fileSize); in tarHeader()
136 sprintf(header->mtime, "%011o", 0); in tarHeader()
137 header->typeflag = '0'; in tarHeader()
[all …]
/device/google/coral/dumpstate/
DDumpstateDevice.cpp119 static unsigned int tarCheckSum(PosixTarHeader *header) { in tarCheckSum() argument
121 char *p = (char *)header; in tarCheckSum()
124 header->chksum[i] = ' '; in tarCheckSum()
132 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
133 memset(header, 0, sizeof(PosixTarHeader)); in tarHeader()
134 strcpy(header->name, fileName); in tarHeader()
135 sprintf(header->mode, "%07o", 0600); in tarHeader()
136 sprintf(header->size, "%011llo", (long long unsigned int)fileSize); in tarHeader()
137 sprintf(header->mtime, "%011o", 0); in tarHeader()
138 header->typeflag = '0'; in tarHeader()
[all …]
/device/google/redfin/dumpstate/
DDumpstateDevice.cpp116 static unsigned int tarCheckSum(PosixTarHeader *header) { in tarCheckSum() argument
118 char *p = (char *)header; in tarCheckSum()
121 header->chksum[i] = ' '; in tarCheckSum()
129 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
130 memset(header, 0, sizeof(PosixTarHeader)); in tarHeader()
131 strcpy(header->name, fileName); in tarHeader()
132 sprintf(header->mode, "%07o", 0600); in tarHeader()
133 sprintf(header->size, "%011llo", (long long unsigned int)fileSize); in tarHeader()
134 sprintf(header->mtime, "%011o", 0); in tarHeader()
135 header->typeflag = '0'; in tarHeader()
[all …]
/device/google/sunfish/dumpstate/
DDumpstateDevice.cpp117 static unsigned int tarCheckSum(PosixTarHeader *header) { in tarCheckSum() argument
119 char *p = (char *)header; in tarCheckSum()
122 header->chksum[i] = ' '; in tarCheckSum()
130 static PosixTarHeader *tarHeader(PosixTarHeader *header, char *fileName, ssize_t fileSize) { in tarHeader() argument
131 memset(header, 0, sizeof(PosixTarHeader)); in tarHeader()
132 strcpy(header->name, fileName); in tarHeader()
133 sprintf(header->mode, "%07o", 0600); in tarHeader()
134 sprintf(header->size, "%011llo", (long long unsigned int)fileSize); in tarHeader()
135 sprintf(header->mtime, "%011o", 0); in tarHeader()
136 header->typeflag = '0'; in tarHeader()
[all …]
/device/google/cuttlefish/host/libs/image_aggregator/
Dimage_aggregator.cc107 GptHeader header; member
200 QCowHeader header; in ExpandedStorageSize() local
201 if (!android::base::ReadFully(fd, &header, sizeof(QCowHeader))) { in ExpandedStorageSize()
205 return header.size.as_uint64_t(); in ExpandedStorageSize()
308 ComponentDisk* header = disk.add_component_disks(); in MakeCompositeDiskSpec() local
309 header->set_file_path(header_file); in MakeCompositeDiskSpec()
310 header->set_offset(0); in MakeCompositeDiskSpec()
359 .header = in Beginning()
373 uuid_generate(gpt.header.disk_guid); in Beginning()
392 gpt.header.partition_entries_crc32 = in Beginning()
[all …]
/device/google/cuttlefish/host/libs/allocd/
Dutils.cpp89 RequestHeader* header = reinterpret_cast<RequestHeader*>(header_buff.data()); in SendJsonMsg() local
90 header->len = resp_str.size(); in SendJsonMsg()
91 header->version = kCurHeaderVersion; in SendJsonMsg()
100 RequestHeader header; in RecvJsonMsg() local
101 client_socket->Recv(&header, sizeof(header), kRecvFlags); in RecvJsonMsg()
103 if (header.version < kMinHeaderVersion) { in RecvJsonMsg()
104 LOG(WARNING) << "bad request header version: " << header.version; in RecvJsonMsg()
108 std::string payload = RecvAll(client_socket, header.len); in RecvJsonMsg()
/device/google/coral/
Dinit.qcom.usb.sh199 mkdir control/header/h
200 ln -s control/header/h control/class/fs/
201 ln -s control/header/h control/class/ss
238 mkdir streaming/header/h
239 ln -s streaming/uncompressed/u streaming/header/h
240 ln -s streaming/mjpeg/m streaming/header/h
241 ln -s streaming/h264/h streaming/header/h
242 ln -s streaming/header/h streaming/class/fs/
243 ln -s streaming/header/h streaming/class/hs/
244 ln -s streaming/header/h streaming/class/ss/
/device/google/sunfish/
Dinit.qcom.usb.sh196 mkdir control/header/h
197 ln -s control/header/h control/class/fs/
198 ln -s control/header/h control/class/ss
235 mkdir streaming/header/h
236 ln -s streaming/uncompressed/u streaming/header/h
237 ln -s streaming/mjpeg/m streaming/header/h
238 ln -s streaming/h264/h streaming/header/h
239 ln -s streaming/header/h streaming/class/fs/
240 ln -s streaming/header/h streaming/class/hs/
241 ln -s streaming/header/h streaming/class/ss/
/device/google/redbull/
Dinit.qcom.usb.sh199 mkdir control/header/h
200 ln -s control/header/h control/class/fs/
201 ln -s control/header/h control/class/ss
238 mkdir streaming/header/h
239 ln -s streaming/uncompressed/u streaming/header/h
240 ln -s streaming/mjpeg/m streaming/header/h
241 ln -s streaming/h264/h streaming/header/h
242 ln -s streaming/header/h streaming/class/fs/
243 ln -s streaming/header/h streaming/class/hs/
244 ln -s streaming/header/h streaming/class/ss/
/device/google/contexthub/firmware/os/algos/calibration/nano_calibration/
Dnano_calibration.cc147 const auto &header = event_data->header; in HandleSensorSamples() local
149 sample.timestamp_nanos = header.baseTimestamp; in HandleSensorSamples()
150 for (size_t i = 0; i < header.readingCount; i++) { in HandleSensorSamples()
159 initialization_start_time_nanos_ = header.baseTimestamp; in HandleSensorSamples()
170 event_data->header.readingCount > 0) { in HandleTemperatureSamples()
171 const auto header = event_data->header; in HandleTemperatureSamples() local
176 sample.timestamp_nanos = header.baseTimestamp; in HandleTemperatureSamples()
179 for (size_t i = 0; i < header.readingCount; i++) { in HandleTemperatureSamples()
184 accum_temperature_celsius / header.readingCount; in HandleTemperatureSamples()
/device/google/tangorpro/uwb/
Dcountry_conf_gen.sh38 header=${line:1}
43 if [ "$header" = "FCC" ]; then
45 elif [ "$header" = "CE" ]; then
47 elif [ "$header" = "JP" ]; then
49 elif [ "$header" = "TW" ]; then
51 elif [ "$header" = "Restricted" ]; then
/device/google/raviole/uwb/
Dcountry_conf_gen.sh38 header=${line:1}
43 if [ "$header" = "FCC" ]; then
45 elif [ "$header" = "CE" ]; then
47 elif [ "$header" = "JP" ]; then
49 elif [ "$header" = "TW" ]; then
51 elif [ "$header" = "Restricted" ]; then
/device/google/pantah/uwb/
Dcountry_conf_gen.sh38 header=${line:1}
43 if [ "$header" = "FCC" ]; then
45 elif [ "$header" = "CE" ]; then
47 elif [ "$header" = "JP" ]; then
49 elif [ "$header" = "TW" ]; then
51 elif [ "$header" = "Restricted" ]; then
/device/google/felix/uwb/
Dcountry_conf_gen.sh38 header=${line:1}
43 if [ "$header" = "FCC" ]; then
45 elif [ "$header" = "CE" ]; then
47 elif [ "$header" = "JP" ]; then
49 elif [ "$header" = "TW" ]; then
51 elif [ "$header" = "Restricted" ]; then
/device/google/cuttlefish/common/libs/net/
Dnetlink_request_test.cpp88 nlmsghdr* header = static_cast<nlmsghdr*>(arg.RequestData()); variable
89 if (arg.RequestLength() < sizeof(header)) {
94 if (header->nlmsg_len != length) {
96 << header->nlmsg_len << " vs " << length;
100 if (header->nlmsg_type != type) {
102 << header->nlmsg_type << " vs " << type;
106 if (header->nlmsg_flags != flags) {
108 << header->nlmsg_flags << " vs " << flags;
112 if (header->nlmsg_seq != seq) {
114 << header->nlmsg_seq << " vs " << seq;

12345