Home
last modified time | relevance | path

Searched refs:packet (Results 1 – 22 of 22) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawDevice.cpp59 for (auto const &packet : digest.packets) { in HidRawDevice() local
61 std::make_pair(packet.type, packet.id), &packet).second == false) { in HidRawDevice()
62 LOG_E << "Same type - report id pair (" << packet.type << ", " << packet.id << ")" in HidRawDevice()
66 reportIdSet.insert(packet.id); in HidRawDevice()
191 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in getFeature() local
192 if (packet == nullptr) { in getFeature()
197 size_t size = packet->getByteSize() + 1; // report id size in getFeature()
230 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in setFeature() local
231 if (packet == nullptr) { in setFeature()
236 size_t size = packet->getByteSize(); in setFeature()
[all …]
DHidRawSensorDevice.cpp66 for (const auto &packet : digest.packets) { in HidRawSensorDevice() local
67 if (packet.type == HidParser::REPORT_TYPE_INPUT) { // only used for input mapping in HidRawSensorDevice()
68 mSensors.emplace(packet.id/* report id*/, s); in HidRawSensorDevice()
DHidRawSensor.cpp145 for (const auto &packet : packets) { in HidRawSensor() local
146 if (packet.type == HidParser::REPORT_TYPE_INPUT && std::any_of( in HidRawSensor()
147 packet.reports.begin(), packet.reports.end(), in HidRawSensor()
152 pPacket = &packet; in HidRawSensor()
396 for (const auto &packet : packets) { in find() local
397 if (packet.type != type) { in find()
401 packet.reports.begin(), packet.reports.end(), in find()
406 if (i != packet.reports.end()) { in find()
452 for (const auto &packet : packets) { in populateFeatureValueFromFeatureReport() local
453 if (packet.type != HidParser::REPORT_TYPE_FEATURE) { in populateFeatureValueFromFeatureReport()
[all …]
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidParser.cpp233 ReportPacket packet = { in convertGroupToPacket() local
255 .bitOffset = packet.bitSize, in convertGroupToPacket()
260 packet.reports.push_back(digest); in convertGroupToPacket()
261 packet.bitSize += digest.bitSize * digest.count; in convertGroupToPacket()
263 if (!packet.reports.empty()) { in convertGroupToPacket()
264 packets.push_back(std::move(packet)); in convertGroupToPacket()
288 for (const auto &packet : i.packets) { in operator <<() local
289 os << reportTypeToString(packet.type) << " id: " << packet.id in operator <<()
290 << " size: " << packet.bitSize in operator <<()
291 << "b(" << packet.getByteSize() << "B), " in operator <<()
[all …]
/hardware/interfaces/bluetooth/1.0/default/
Dbluetooth_hci.cc75 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
76 auto hidl_status = cb->hciEventReceived(packet); in initialize()
81 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
82 auto hidl_status = cb->aclDataReceived(packet); in initialize()
87 [cb](const hidl_vec<uint8_t>& packet) { in initialize() argument
88 auto hidl_status = cb->scoDataReceived(packet); in initialize()
Dvendor_interface.cc55 HC_BT_HDR* packet = reinterpret_cast<HC_BT_HDR*>(new uint8_t[packet_size]); in WrapPacketAndCopy() local
56 packet->offset = 0; in WrapPacketAndCopy()
57 packet->len = data.size(); in WrapPacketAndCopy()
58 packet->layer_specific = 0; in WrapPacketAndCopy()
59 packet->event = event; in WrapPacketAndCopy()
62 memcpy(packet->data, data.data(), data.size()); in WrapPacketAndCopy()
63 return packet; in WrapPacketAndCopy()
66 bool internal_command_event_match(const hidl_vec<uint8_t>& packet) { in internal_command_event_match() argument
67 uint8_t event_code = packet[0]; in internal_command_event_match()
75 uint16_t opcode = packet[opcode_offset] | (packet[opcode_offset + 1] << 8); in internal_command_event_match()
Dbluetooth_hci.h42 Return<void> sendHciCommand(const hidl_vec<uint8_t>& packet) override;
/hardware/google/apf/
Dapf_run.c65 uint8_t* packet; in main() local
66 uint32_t packet_len = parse_hex(argv[2], &packet); in main()
68 int ret = accept_packet(program, program_len, packet, packet_len, in main()
72 free(packet); in main()
Dapf_interpreter.c48 const uint8_t* packet, uint32_t packet_len, in accept_packet() argument
69 if ((packet[APF_FRAME_HEADER_SIZE] & 0xf0) == 0x40) { in accept_packet()
70 memory[MEMORY_OFFSET_IPV4_HEADER_SIZE] = (packet[APF_FRAME_HEADER_SIZE] & 15) * 4; in accept_packet()
142 val = (val << 8) | packet[offs++]; in accept_packet()
198 if (memcmp(program + pc, packet + REG, cmp_imm)) in accept_packet()
Dapf_interpreter.h46 const uint8_t* packet, uint32_t packet_len,
/hardware/qcom/camera/msm8998/QCamera2/HAL/
DQCameraMem.cpp1402 media_metadata_buffer * packet = in allocateMore() local
1406 packet->eType = kMetadataBufferTypeNativeHandleSource; in allocateMore()
1407 packet->pHandle = NULL; in allocateMore()
1409 packet->buffer_type = kMetadataBufferTypeCameraSource; in allocateMore()
1410 packet->meta_handle = mNativeHandle[i]; in allocateMore()
1470 media_metadata_buffer *packet = in allocateMeta() local
1499 packet->eType = kMetadataBufferTypeNativeHandleSource; in allocateMeta()
1500 packet->pHandle = NULL; in allocateMeta()
1502 packet->buffer_type = kMetadataBufferTypeCameraSource; in allocateMeta()
1503 packet->meta_handle = mNativeHandle[i]; in allocateMeta()
[all …]
/hardware/interfaces/bluetooth/1.0/
DIBluetoothHciCallbacks.hal35 * Send an ACL data packet form the controller to the host.
36 * @param data the ACL HCI packet to be passed to the host stack
41 * Send a SCO data packet form the controller to the host.
42 * @param data the SCO HCI packet to be passed to the host stack
DIBluetoothHci.hal62 * Send an HCI ACL data packet (as specified in the Bluetooth Specification
65 * @param data HCI data packet to be sent
71 * Send an SCO data packet (as specified in the Bluetooth Specification
74 * @param data HCI data packet to be sent
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-interface/src/
Dmm_camera.c1954 cam_sock_packet_t packet; in mm_camera_map_buf() local
1955 memset(&packet, 0, sizeof(cam_sock_packet_t)); in mm_camera_map_buf()
1956 packet.msg_type = CAM_MAPPING_TYPE_FD_MAPPING; in mm_camera_map_buf()
1957 packet.payload.buf_map.type = buf_type; in mm_camera_map_buf()
1958 packet.payload.buf_map.fd = fd; in mm_camera_map_buf()
1959 packet.payload.buf_map.size = size; in mm_camera_map_buf()
1960 packet.payload.buf_map.buffer = buffer; in mm_camera_map_buf()
1963 &packet, in mm_camera_map_buf()
1969 my_obj->sessionid, &packet); in mm_camera_map_buf()
1994 cam_sock_packet_t packet; in mm_camera_map_bufs() local
[all …]
Dmm_camera_stream.c2140 cam_sock_packet_t packet; in mm_stream_map_buf() local
2141 memset(&packet, 0, sizeof(cam_sock_packet_t)); in mm_stream_map_buf()
2142 packet.msg_type = CAM_MAPPING_TYPE_FD_MAPPING; in mm_stream_map_buf()
2143 packet.payload.buf_map.type = buf_type; in mm_stream_map_buf()
2144 packet.payload.buf_map.fd = fd; in mm_stream_map_buf()
2145 packet.payload.buf_map.size = size; in mm_stream_map_buf()
2146 packet.payload.buf_map.stream_id = my_obj->server_stream_id; in mm_stream_map_buf()
2147 packet.payload.buf_map.frame_idx = frame_idx; in mm_stream_map_buf()
2148 packet.payload.buf_map.plane_idx = plane_idx; in mm_stream_map_buf()
2149 packet.payload.buf_map.buffer = buffer; in mm_stream_map_buf()
[all …]
/hardware/interfaces/wifi/1.0/
DIWifiStaIface.hal32 * APF (Android Packet Filter) is a BPF like packet filtering
88 * Support for keep alive packet offload.
431 * @param ipPacketData IP packet contents to be transmitted.
434 * @param srcAddress Source MAC address of the packet.
435 * @param dstAddress Destination MAC address of the packet.
436 * @param periodInMs Interval at which this packet must be transmitted.
478 * API to start packet fate monitoring.
481 * - When HAL is unloaded, all packet fate buffers must be cleared.
482 * - The packet fates are used to monitor the state of packets transmitted/
518 * to the packet fates.
[all …]
Dtypes.hal252 * Version of the packet filter interpreter supported
433 * WME Best Effort Access Category packet counters.
437 * WME Background Access Category packet counters.
441 * WME Video Access Category packet counters.
445 * WME Voice Access Category packet counters.
681 * publish discovery sessions. Describes the addressing of the packet responding to an ACTIVE
685 BROADCAST = 0, // Respond with a broadcast packet
686 UNICAST, // Respond with a unicast packet
1413 * The match filter from the discovery packet (publish or subscribe) which caused service
2250 * Actual frame content. This is the raw bytes of the corresponding packet.
[all …]
/hardware/interfaces/radio/1.1/
Dtypes.hal180 KeepaliveType type; // The format of the keepalive packet
/hardware/interfaces/radio/1.0/
DIRadioIndication.hal242 * packet to the MS by the BTS as coded in 3GPP 23.041 Section 9.4.2.2
DIRadio.hal359 * Setup a packet data connection. If DataCallResponse.status
537 * Deactivate packet data connection and remove from the
Dtypes.hal974 // and packet data
981 PS_ALL = 0x10 // Block packet data access due to restriction.
/hardware/interfaces/automotive/vehicle/2.0/
Dtypes.hal3296 * with a serialized VMS data packet as defined in the VMS protocol.