Home
last modified time | relevance | path

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

/system/core/libpixelflinger/
Dcol32cb16blend_neon.S46 vmov.u16 q15, #256 // create alpha constant
48 vmov.u16 q14, #0x1f // create blue mask
64 vsub.u16 q3, q15, q3 // invert alpha
78 vshr.u16 q8, q10, #11 // shift dst red0 to low 5 bits
80 vshl.u16 q9, q10, #5 // shift dst green0 to top 6 bits
82 vshr.u16 q9, q9, #10 // shift dst green0 to low 6 bits
83 vmul.u16 q8, q8, q3 // multiply dst red0 by src alpha
84 vshl.u16 q12, q11, #5 // shift dst green1 to top 6 bits
85 vmul.u16 q9, q9, q3 // multiply dst green0 by src alpha
86 vshr.u16 q13, q11, #11 // shift dst red1 to low 5 bits
[all …]
/system/nfc/src/include/
Dnfc_types.h57 #define UINT16_TO_STREAM(p, u16) \ argument
59 *(p)++ = (uint8_t)(u16); \
60 *(p)++ = (uint8_t)((u16) >> 8); \
81 #define STREAM_TO_UINT16(u16, p) \ argument
83 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \
122 #define UINT16_TO_BE_STREAM(p, u16) \ argument
124 *(p)++ = (uint8_t)((u16) >> 8); \
125 *(p)++ = (uint8_t)(u16); \
140 #define BE_STREAM_TO_UINT16(u16, p) \ argument
142 (u16) = (uint16_t)(((uint16_t)(*(p)) << 8) + (uint16_t)(*((p) + 1))); \
/system/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h81 typedef unsigned short int u16; typedef
91 u16 bg_free_blocks_count;
92 u16 bg_free_inodes_count;
93 u16 bg_used_dirs_count;
94 u16 bg_flags;
96 u16 bg_reserved16;
97 u16 bg_checksum;
/system/nfc/src/nfc/include/
Dllcp_defs.h33 #define LLCP_GET_DSAP(u16) (((u16)&0xFC00) >> 10) argument
34 #define LLCP_GET_PTYPE(u16) (((u16)&0x03C0) >> 6) argument
35 #define LLCP_GET_SSAP(u16) (((u16)&0x003F)) argument
/system/core/libsparse/
Dsparse_defs.h25 #define __le16 u16
29 #define __be16 u16
33 #define __u16 u16
39 typedef unsigned short int u16; typedef
/system/bt/stack/sdp/
Dsdp_api.cc259 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
286 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
298 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
389 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
391 if ((p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE) || in SDP_FindServiceInDb()
392 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK)) { in SDP_FindServiceInDb()
403 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
424 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
438 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
595 (p_sattr->attr_value.v.u16 == layer_uuid)) { in sdp_fill_proto_elem()
[all …]
Dsdp_utils.cc89 uint16_t uuid = p_ssattr->attr_value.v.u16; in sdpu_find_profile_version()
103 uint16_t version = version_attr->attr_value.v.u16; in sdpu_find_profile_version()
125 return p_first_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
138 return p_extra_sattr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
148 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
223 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
795 uint16_t u16; in sdpu_get_len_from_type() local
827 BE_STREAM_TO_UINT16(u16, p); in sdpu_get_len_from_type()
828 *p_len = u16; in sdpu_get_len_from_type()
951 if (len == 2) return uuid.As16Bit() == p_attr->attr_value.v.u16; in sdpu_compare_uuid_with_attr()
Dsdp_discovery.cc880 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
894 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
901 p_attr->attr_value.v.u16 = (uint16_t)p_attr->attr_value.v.u32; in add_attr()
911 BE_STREAM_TO_UINT16(p_attr->attr_value.v.u16, p); in add_attr()
/system/bt/stack/include/
Dbt_types.h285 #define UINT16_TO_STREAM(p, u16) \ argument
287 *(p)++ = (uint8_t)(u16); \
288 *(p)++ = (uint8_t)((u16) >> 8); \
342 #define STREAM_TO_UINT16(u16, p) \ argument
344 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \
439 #define UINT16_TO_FIELD(p, u16) \ argument
441 *(uint8_t*)(p) = (uint8_t)(u16); \
442 *((uint8_t*)(p) + 1) = (uint8_t)((u16) >> 8); \
463 #define UINT16_TO_BE_STREAM(p, u16) \ argument
465 *(p)++ = (uint8_t)((u16) >> 8); \
[all …]
Dhcimsgs.h640 #define HCID_GET_HANDLE(u16) (uint16_t)((u16)&HCI_DATA_HANDLE_MASK) argument
644 #define HCID_GET_EVENT(u16) \ argument
645 (uint8_t)(((u16) >> HCI_DATA_EVENT_OFFSET) & HCI_DATA_EVENT_MASK)
649 #define HCID_GET_BCAST(u16) \ argument
650 (uint8_t)(((u16) >> HCI_DATA_BCAST_OFFSET) & HCI_DATA_BCAST_MASK)
Dbtm_api_types.h271 #define BTM_COD_SERVICE_CLASS(u16, pd) \ argument
273 (u16) = (pd)[0]; \
274 (u16) <<= 8; \
275 (u16) += (pd)[1] & 0xE0; \
Dsdp_api.h90 uint16_t u16; /* 16-bit integer */ member
/system/core/trusty/utils/rpmb_dev/
Drpmb_protocol.h107 static inline uint16_t rpmb_get_u16(struct rpmb_u16 u16) { in rpmb_get_u16() argument
112 for (i = 0; i < sizeof(u16.byte); i++) in rpmb_get_u16()
113 val = val << 8 | u16.byte[i]; in rpmb_get_u16()
/system/libbase/
Dparseint_test.cpp197 uint16_t u16; in TEST() local
198 ASSERT_TRUE(android::base::ParseByteCount("63k", &u16)); in TEST()
199 ASSERT_EQ(63U * 1024, u16); in TEST()
200 ASSERT_TRUE(android::base::ParseByteCount("65535b", &u16)); in TEST()
201 ASSERT_EQ(65535U, u16); in TEST()
202 ASSERT_FALSE(android::base::ParseByteCount("65k", &u16)); in TEST()
/system/bt/stack/hid/
Dhidh_api.cc177 p_nvi->rel_num = p_attr->attr_value.v.u16; in hidh_search_callback()
192 p_nvi->hpars_ver = p_attr->attr_value.v.u16; in hidh_search_callback()
198 p_nvi->sup_timeout = p_attr->attr_value.v.u16; in hidh_search_callback()
204 p_nvi->ssr_max_latency = p_attr->attr_value.v.u16; in hidh_search_callback()
211 p_nvi->ssr_min_tout = p_attr->attr_value.v.u16; in hidh_search_callback()
/system/bt/bta/hf_client/
Dbta_hf_client_sdp.cc259 client_cb->peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
270 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()
/system/bt/bta/av/
Dbta_av_act.cc393 uint16_t u16; in bta_av_group_navi_supported() local
398 BE_STREAM_TO_UINT16(u16, p_ptr); in bta_av_group_navi_supported()
402 if (u16 <= AVRC_PDU_PREV_GROUP) ret = AVRC_RSP_IMPL_STBL; in bta_av_group_navi_supported()
404 if (u16 <= AVRC_PDU_PREV_GROUP) in bta_av_group_navi_supported()
729 uint16_t u16; in bta_av_chk_notif_evt_id() local
732 BE_STREAM_TO_UINT16(u16, p); in bta_av_chk_notif_evt_id()
734 if ((u16 != 5) || (p_vendor->vendor_len != 9)) { in bta_av_chk_notif_evt_id()
764 uint16_t u16; in bta_av_proc_meta_cmd() local
807 BE_STREAM_TO_UINT16(u16, p); in bta_av_proc_meta_cmd()
808 if (u16 != 1) { in bta_av_proc_meta_cmd()
[all …]
/system/bt/bta/sdp/
Dbta_sdp_act.cc87 record->mns.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mns_sdp_record()
140 record->mas.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_mas_sdp_record()
186 record->pse.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_pse_sdp_record()
222 record->ops.hdr.l2cap_psm = p_attr->attr_value.v.u16; in bta_create_ops_sdp_record()
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc59 .attr_value = {.v = {.u16 = 0}}, in SetUpSdp()
62 if (browsing) fake_features.attr_value.v.u16 |= AVRC_SUPF_CT_BROWSE; in SetUpSdp()
63 if (absolute_volume) fake_features.attr_value.v.u16 |= AVRC_SUPF_CT_CAT2; in SetUpSdp()
/system/bt/stack/a2dp/
Da2dp_api.cc103 a2dp_svc.features = p_attr->attr_value.v.u16; in a2dp_sdp_cback()
/system/bt/profile/avrcp/
Dconnection_handler.cc462 uint16_t categories = sdp_attribute->attr_value.v.u16; in SdpCb()
503 uint16_t categories = sdp_attribute->attr_value.v.u16; in SdpCb()
/system/bt/bta/ag/
Dbta_ag_sdp.cc366 uint16_t sdp_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr()