Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 87) sorted by relevance

1234

/hardware/interfaces/identity/support/src/
Dcppbor.cpp28 Iterator writeBigEndian(T value, Iterator pos) {
30 *pos++ = static_cast<uint8_t>(value >> (8 * (sizeof(value) - 1)));
33 return pos;
54 uint8_t* encodeHeader(MajorType type, uint64_t addlInfo, uint8_t* pos, const uint8_t* end) { in encodeHeader() argument
56 if (end - pos < static_cast<ssize_t>(sz)) return nullptr; in encodeHeader()
59 *pos++ = type | static_cast<uint8_t>(addlInfo); in encodeHeader()
60 return pos; in encodeHeader()
62 *pos++ = type | ONE_BYTE_LENGTH; in encodeHeader()
63 *pos++ = static_cast<uint8_t>(addlInfo); in encodeHeader()
64 return pos; in encodeHeader()
[all …]
Dcppbor_parse.cpp38 std::tuple<bool, uint64_t, const uint8_t*> parseLength(const uint8_t* pos, const uint8_t* end, in parseLength() argument
40 if (pos + sizeof(T) > end) { in parseLength()
41 parseClient->error(pos - 1, insufficientLengthString(sizeof(T), end - pos, "length field")); in parseLength()
42 return {false, 0, pos}; in parseLength()
45 const uint8_t* intEnd = pos + sizeof(T); in parseLength()
48 result = static_cast<T>((result << 8) | *pos++); in parseLength()
49 } while (pos < intEnd); in parseLength()
50 return {true, result, pos}; in parseLength()
158 const uint8_t* pos, const uint8_t* end, in handleEntries() argument
163 if (pos == end) { in handleEntries()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/util/
DQCameraQueue.cpp227 struct cam_list *pos = NULL; in peek() local
232 pos = head->next; in peek()
233 if (pos != head) { in peek()
234 node = member_of(pos, camera_q_node, list); in peek()
262 struct cam_list *pos = NULL; in dequeue() local
268 pos = head->next; in dequeue()
270 pos = head->prev; in dequeue()
272 if (pos != head) { in dequeue()
273 node = member_of(pos, camera_q_node, list); in dequeue()
302 struct cam_list *pos = NULL; in dequeue() local
[all …]
DQCameraBufferMaps.cpp175 uint32_t pos = mBufMapList.length++; in enqueue() local
176 mBufMapList.buf_maps[pos].type = pType; in enqueue()
177 mBufMapList.buf_maps[pos].stream_id = pStreamId; in enqueue()
178 mBufMapList.buf_maps[pos].frame_idx = pFrameIndex; in enqueue()
179 mBufMapList.buf_maps[pos].plane_idx = pPlaneIndex; in enqueue()
180 mBufMapList.buf_maps[pos].cookie = pCookie; in enqueue()
181 mBufMapList.buf_maps[pos].fd = pFd; in enqueue()
182 mBufMapList.buf_maps[pos].size = pSize; in enqueue()
183 mBufMapList.buf_maps[pos].buffer = buffer; in enqueue()
DQCameraFlash.cpp77 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in QCameraFlash() local
78 m_flashFds[pos] = -1; in QCameraFlash()
93 for (int pos = 0; pos < MM_CAMERA_MAX_NUM_SENSORS; pos++) { in ~QCameraFlash() local
94 if (m_flashFds[pos] >= 0) in ~QCameraFlash()
96 setFlashMode(pos, false); in ~QCameraFlash()
97 close(m_flashFds[pos]); in ~QCameraFlash()
98 m_flashFds[pos] = -1; in ~QCameraFlash()
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/src/
DIPACM_Filtering.cpp261 int ret = 0, cnt, num_rules = 0, pos = 0; in AddWanDLFilteringRule() local
314 if (pos < QMI_IPA_MAX_FILTERS_V01) in AddWanDLFilteringRule()
316 qmi_rule_msg.filter_spec_list[pos].filter_spec_identifier = pos; in AddWanDLFilteringRule()
317 qmi_rule_msg.filter_spec_list[pos].ip_type = QMI_IPA_IP_TYPE_V4_V01; in AddWanDLFilteringRule()
318 …qmi_rule_msg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].ru… in AddWanDLFilteringRule()
319 qmi_rule_msg.filter_spec_list[pos].is_routing_table_index_valid = 1; in AddWanDLFilteringRule()
320 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
321 qmi_rule_msg.filter_spec_list[pos].is_mux_id_valid = 1; in AddWanDLFilteringRule()
322 qmi_rule_msg.filter_spec_list[pos].mux_id = mux_id; in AddWanDLFilteringRule()
323 memcpy(&qmi_rule_msg.filter_spec_list[pos].filter_rule, in AddWanDLFilteringRule()
[all …]
/hardware/qcom/sm8150/data/ipacfg-mgr/ipacm/src/
DIPACM_Filtering.cpp264 int ret = 0, cnt, num_rules = 0, pos = 0; in AddWanDLFilteringRule() local
317 if (pos < QMI_IPA_MAX_FILTERS_V01) in AddWanDLFilteringRule()
319 qmi_rule_msg.filter_spec_list[pos].filter_spec_identifier = pos; in AddWanDLFilteringRule()
320 qmi_rule_msg.filter_spec_list[pos].ip_type = QMI_IPA_IP_TYPE_V4_V01; in AddWanDLFilteringRule()
321 …qmi_rule_msg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].ru… in AddWanDLFilteringRule()
322 qmi_rule_msg.filter_spec_list[pos].is_routing_table_index_valid = 1; in AddWanDLFilteringRule()
323 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
324 qmi_rule_msg.filter_spec_list[pos].is_mux_id_valid = 1; in AddWanDLFilteringRule()
325 qmi_rule_msg.filter_spec_list[pos].mux_id = mux_id; in AddWanDLFilteringRule()
326 memcpy(&qmi_rule_msg.filter_spec_list[pos].filter_rule, in AddWanDLFilteringRule()
[all …]
/hardware/qcom/sdm845/data/ipacfg-mgr/ipacm/src/
DIPACM_Filtering.cpp264 int ret = 0, cnt, num_rules = 0, pos = 0; in AddWanDLFilteringRule() local
317 if (pos < QMI_IPA_MAX_FILTERS_V01) in AddWanDLFilteringRule()
319 qmi_rule_msg.filter_spec_list[pos].filter_spec_identifier = pos; in AddWanDLFilteringRule()
320 qmi_rule_msg.filter_spec_list[pos].ip_type = QMI_IPA_IP_TYPE_V4_V01; in AddWanDLFilteringRule()
321 …qmi_rule_msg.filter_spec_list[pos].filter_action = GetQmiFilterAction(rule_table_v4->rules[cnt].ru… in AddWanDLFilteringRule()
322 qmi_rule_msg.filter_spec_list[pos].is_routing_table_index_valid = 1; in AddWanDLFilteringRule()
323 … qmi_rule_msg.filter_spec_list[pos].route_table_index = rule_table_v4->rules[cnt].rule.rt_tbl_idx; in AddWanDLFilteringRule()
324 qmi_rule_msg.filter_spec_list[pos].is_mux_id_valid = 1; in AddWanDLFilteringRule()
325 qmi_rule_msg.filter_spec_list[pos].mux_id = mux_id; in AddWanDLFilteringRule()
326 memcpy(&qmi_rule_msg.filter_spec_list[pos].filter_rule, in AddWanDLFilteringRule()
[all …]
/hardware/interfaces/confirmationui/support/include/android/hardware/confirmationui/support/
Dmsg_formatting.h158 volatile T* pos() const { return pos_; };
175 auto pos = s.pos_;
185 zero(pos, s.pos_);
190 auto pos = out.pos();
199 pos = std::copy(s, s + 4, pos);
200 std::copy(buffer, buffer + size, pos);
210 auto pos = in.pos();
214 std::copy(pos, pos + 4, bytes_cast(size));
215 pos = in.pos();
218 return {in, pos, size};
[all …]
/hardware/qcom/wlan/qcwcn/wifi_hal/
Dlist.h62 #define list_for_each_entry_safe(pos, n, head, member) \ argument
63 for (pos = list_entry((head)->next, typeof(*pos), member), \
64 n = list_entry(pos->member.next, typeof(*pos), member); \
65 &pos->member != (head); \
66 pos = n, n = list_entry(n->member.next, typeof(*n), member))
68 #define list_for_each_safe(pos, n, head) \ argument
69 for (pos = (head)->next, n = pos->next; pos != (head); \
70 pos = n, n = pos->next)
Dcpp_bindings.h109 struct nlattr *pos; variable
113 pos = (struct nlattr *)nla_data(attr); in nl_iterator()
117 return nla_ok(pos, rem); in has_next()
120 pos = (struct nlattr *)nla_next(pos, &(rem)); in next()
123 return pos; in get()
126 return pos->nla_type; in get_type()
129 return nla_get_u8(pos); in get_u8()
132 return nla_get_u16(pos); in get_u16()
135 return nla_get_u32(pos); in get_u32()
138 return nla_get_u64(pos); in get_u64()
[all …]
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-jpeg-interface/src/
Dmm_jpeg_queue.c69 struct cam_list *pos = NULL; in mm_jpeg_queue_enq_head() local
81 pos = head->next; in mm_jpeg_queue_enq_head()
84 cam_list_insert_before_node(&node->list, pos); in mm_jpeg_queue_enq_head()
96 struct cam_list *pos = NULL; in mm_jpeg_queue_deq() local
102 pos = head->next; in mm_jpeg_queue_deq()
103 if (pos != head) { in mm_jpeg_queue_deq()
104 node = member_of(pos, mm_jpeg_q_node_t, list); in mm_jpeg_queue_deq()
141 struct cam_list *pos = NULL; in mm_jpeg_queue_flush() local
145 pos = head->next; in mm_jpeg_queue_flush()
147 while(pos != head) { in mm_jpeg_queue_flush()
[all …]
/hardware/interfaces/keymaster/4.0/support/
Dkeymaster_utils.cpp70 auto pos = result.begin(); in authToken2HidlVec() local
71 *pos++ = 0; // Version byte in authToken2HidlVec()
72 pos = copy_bytes_to_iterator(token.challenge, pos); in authToken2HidlVec()
73 pos = copy_bytes_to_iterator(token.userId, pos); in authToken2HidlVec()
74 pos = copy_bytes_to_iterator(token.authenticatorId, pos); in authToken2HidlVec()
76 pos = copy_bytes_to_iterator(auth_type, pos); in authToken2HidlVec()
78 pos = copy_bytes_to_iterator(timestamp, pos); in authToken2HidlVec()
80 std::fill(pos, pos + kHmacSize, 0); in authToken2HidlVec()
82 std::copy(token.mac.begin(), token.mac.end(), pos); in authToken2HidlVec()
98 auto pos = buffer.begin(); in hidlVec2AuthToken() local
[all …]
Dauthorization_set.cpp120 int pos = -1; in Subtract() local
122 pos = find(i->tag, pos); in Subtract()
123 if (pos != -1 && keyParamEqual(*i, data_[pos])) { in Subtract()
124 data_.erase(data_.begin() + pos); in Subtract()
127 } while (pos != -1); in Subtract()
156 for (int pos = -1; (pos = find(tag, pos)) != -1;) ++count; in GetTagCount() local
170 auto pos = data_.begin() + index; in erase() local
171 if (pos != data_.end()) { in erase()
172 data_.erase(pos); in erase()
179 int pos = find(tag); in GetEntry() local
[all …]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/sm8150/media/libarbitrarybytes/src/
Dhevc_utils.cpp135 uint32 pos = 0; in isNewFrame() local
143 coef2 = buffer[pos++]; in isNewFrame()
144 coef3 = buffer[pos++]; in isNewFrame()
147 if (pos >= buffer_length) { in isNewFrame()
154 coef3 = buffer[pos++]; in isNewFrame()
163 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
177 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
182 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
184 …DEBUG_PRINT("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_leng… in isNewFrame()
204 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/vdec/src/
Dhevc_utils.cpp137 uint32 pos = 0; in isNewFrame() local
145 coef2 = buffer[pos++]; in isNewFrame()
146 coef3 = buffer[pos++]; in isNewFrame()
149 if (pos >= buffer_length) { in isNewFrame()
156 coef3 = buffer[pos++]; in isNewFrame()
165 nal_len |= buffer[pos++]<<(size_of_nal_length_field<<3); in isNewFrame()
179 if (pos + 2 > (nal_len + sizeofNalLengthField)) { in isNewFrame()
184 nalu_type = (buffer[pos] & 0x7E)>>1 ; //=== nal_unit_type in isNewFrame()
186 …DEBUG_PRINT_LOW("@#@# Pos = %x NalType = %x buflen = %u", pos-1, nalu_type, (unsigned int) buffer_… in isNewFrame()
206 bFirstSliceInPic = ((buffer[pos+2] & 0x80)>>7); in isNewFrame()
/hardware/qcom/camera/msm8998/QCamera2/stack/common/
Dcam_queue.h79 struct cam_list *pos = NULL; in cam_queue_deq() local
83 pos = head->next; in cam_queue_deq()
84 if (pos != head) { in cam_queue_deq()
85 node = member_of(pos, cam_node_t, list); in cam_queue_deq()
103 struct cam_list *pos = NULL; in cam_queue_flush() local
107 pos = head->next; in cam_queue_flush()
109 while(pos != head) { in cam_queue_flush()
110 node = member_of(pos, cam_node_t, list); in cam_queue_flush()
111 pos = pos->next; in cam_queue_flush()
/hardware/interfaces/confirmationui/support/src/
Dcbor.cpp31 auto pos = state.data_; in writeBytes() local
35 *pos++ = getByte(value, 7); in writeBytes()
36 *pos++ = getByte(value, 6); in writeBytes()
37 *pos++ = getByte(value, 5); in writeBytes()
38 *pos++ = getByte(value, 4); in writeBytes()
41 *pos++ = getByte(value, 3); in writeBytes()
42 *pos++ = getByte(value, 2); in writeBytes()
45 *pos++ = getByte(value, 1); in writeBytes()
48 *pos++ = value; in writeBytes()
/hardware/qcom/camera/msm8998/QCamera2/stack/mm-camera-test/src/
Dmm_qcamera_queue.c112 struct cam_list *pos = NULL; in mm_qcamera_queue_dequeue() local
117 pos = head->next; in mm_qcamera_queue_dequeue()
119 pos = head->prev; in mm_qcamera_queue_dequeue()
121 if (pos != head) { in mm_qcamera_queue_dequeue()
122 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_dequeue()
140 struct cam_list *pos = NULL; in mm_qcamera_queue_flush() local
148 pos = head->next; in mm_qcamera_queue_flush()
150 while(pos != head) { in mm_qcamera_queue_flush()
151 node = member_of(pos, camera_q_node, list); in mm_qcamera_queue_flush()
152 pos = pos->next; in mm_qcamera_queue_flush()
/hardware/broadcom/wlan/bcmdhd/wifi_hal/
Dcpp_bindings.h109 struct nlattr *pos; variable
113 pos = (struct nlattr *)nla_data(attr); in nl_iterator()
117 return nla_ok(pos, rem); in has_next()
120 pos = (struct nlattr *)nla_next(pos, &(rem)); in next()
123 return pos; in get()
126 return pos->nla_type; in get_type()
129 return nla_get_u8(pos); in get_u8()
132 return nla_get_u16(pos); in get_u16()
135 return nla_get_u32(pos); in get_u32()
138 return nla_get_u64(pos); in get_u64()
[all …]
/hardware/interfaces/keymaster/3.0/vts/functional/
Dauthorization_set.cpp127 int pos = -1; in Subtract() local
129 pos = find(i->tag, pos); in Subtract()
130 if (pos != -1 && keyParamEqual(*i, data_[pos])) { in Subtract()
131 data_.erase(data_.begin() + pos); in Subtract()
134 } while (pos != -1); in Subtract()
150 auto pos = data_.begin() + index; in erase() local
151 if (pos != data_.end()) { in erase()
152 data_.erase(pos); in erase()
172 for (int pos = -1; (pos = find(tag, pos)) != -1;) in GetTagCount() local
178 int pos = find(tag); in GetEntry() local
[all …]
/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp784 const uint8_t* pos = encBegin; in TEST() local
785 EXPECT_CALL(mpc, item(IsArrayOfSize(val.size()), pos, pos + 1, pos + 1)) in TEST()
787 ++pos; in TEST()
788 EXPECT_CALL(mpc, item(MatchesItem(ByRef(*val[0])), pos, pos + 1, pos + 6)) in TEST()
790 pos += 6; in TEST()
791 EXPECT_CALL(mpc, item(MatchesItem(ByRef(*val[1])), pos, pos + 1, pos + 1)) in TEST()
793 ++pos; in TEST()
794 const uint8_t* innerArrayBegin = pos; in TEST()
795 EXPECT_CALL(mpc, item(IsArrayOfSize(interior.size()), pos, pos + 1, pos + 1)) in TEST()
797 ++pos; in TEST()
[all …]
/hardware/qcom/wlan/qcwcn/wcnss-service/
Dwcnss_service.c367 int fd, rc, pos = 0; in setup_wcnss_parameters() local
380 pos = 0; in setup_wcnss_parameters()
381 msg[pos++] = WCNSS_USR_WLAN_MAC_ADDR >> BYTE_1; in setup_wcnss_parameters()
382 msg[pos++] = WCNSS_USR_WLAN_MAC_ADDR >> BYTE_0; in setup_wcnss_parameters()
383 msg[pos++] = wlan_nv_mac_addr[0]; in setup_wcnss_parameters()
384 msg[pos++] = wlan_nv_mac_addr[1]; in setup_wcnss_parameters()
385 msg[pos++] = wlan_nv_mac_addr[2]; in setup_wcnss_parameters()
386 msg[pos++] = wlan_nv_mac_addr[3]; in setup_wcnss_parameters()
387 msg[pos++] = wlan_nv_mac_addr[4]; in setup_wcnss_parameters()
388 msg[pos++] = wlan_nv_mac_addr[5]; in setup_wcnss_parameters()
[all …]

1234