Home
last modified time | relevance | path

Searched refs:u16 (Results 1 – 21 of 21) 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/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/extras/ext4_utils/include/ext4_utils/
Dext4_utils.h87 typedef unsigned short int u16; typedef
97 u16 bg_free_blocks_count;
98 u16 bg_free_inodes_count;
99 u16 bg_used_dirs_count;
100 u16 bg_flags;
102 u16 bg_reserved16;
103 u16 bg_checksum;
/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/include/
Dbt_types.h280 #define UINT16_TO_STREAM(p, u16) \ argument
282 *(p)++ = (uint8_t)(u16); \
283 *(p)++ = (uint8_t)((u16) >> 8); \
337 #define STREAM_TO_UINT16(u16, p) \ argument
339 (u16) = ((uint16_t)(*(p)) + (((uint16_t)(*((p) + 1))) << 8)); \
434 #define UINT16_TO_FIELD(p, u16) \ argument
436 *(uint8_t*)(p) = (uint8_t)(u16); \
437 *((uint8_t*)(p) + 1) = (uint8_t)((u16) >> 8); \
458 #define UINT16_TO_BE_STREAM(p, u16) \ argument
460 *(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.h388 #define BTM_COD_SERVICE_CLASS(u16, pd) \ argument
390 (u16) = (pd)[0]; \
391 (u16) <<= 8; \
392 (u16) += (pd)[1] & 0xE0; \
Dsdp_api.h93 uint16_t u16; /* 16-bit integer */ member
/system/bt/stack/sdp/
Dsdp_api.cc306 *p_uuid = Uuid::From16Bit(p_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
333 *p_uuid = Uuid::From16Bit(p_extra_sattr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
345 *p_uuid = Uuid::From16Bit(p_attr->attr_value.v.u16); in SDP_FindServiceUUIDInRec()
436 p_sattr->attr_value.v.u16, service_uuid); in SDP_FindServiceInDb()
438 if ((p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SOURCE) || in SDP_FindServiceInDb()
439 (p_sattr->attr_value.v.u16 == UUID_SERVCLASS_HDP_SINK)) { in SDP_FindServiceInDb()
450 p_sattr->attr_value.v.u16 == service_uuid))) in SDP_FindServiceInDb()
471 && ((p_extra_sattr->attr_value.v.u16 == service_uuid) || in SDP_FindServiceInDb()
485 ((p_attr->attr_value.v.u16 == service_uuid) || service_uuid == 0)) in SDP_FindServiceInDb()
642 (p_sattr->attr_value.v.u16 == layer_uuid)) { in sdp_fill_proto_elem()
[all …]
Dsdp_utils.cc95 uint16_t uuid = p_ssattr->attr_value.v.u16; in sdpu_find_profile_version()
109 uint16_t version = version_attr->attr_value.v.u16; in sdpu_find_profile_version()
131 return p_first_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
144 return p_extra_sattr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
154 return p_attr->attr_value.v.u16; in sdpu_find_most_specific_service_uuid()
229 uint16_t supported_features = p_attr->attr_value.v.u16; in sdpu_log_attribute_metrics()
790 uint16_t u16; in sdpu_get_len_from_type() local
822 BE_STREAM_TO_UINT16(u16, p); in sdpu_get_len_from_type()
823 *p_len = u16; in sdpu_get_len_from_type()
946 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/core/base/
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.cc255 client_cb->peer_features = p_attr->attr_value.v.u16; in bta_hf_client_sdp_find_attr()
266 if (p_attr->attr_value.v.u16 == 0x01) { in bta_hf_client_sdp_find_attr()
/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/bta/av/
Dbta_av_act.cc392 uint16_t u16; in bta_av_group_navi_supported() local
397 BE_STREAM_TO_UINT16(u16, p_ptr); in bta_av_group_navi_supported()
401 if (u16 <= AVRC_PDU_PREV_GROUP) ret = AVRC_RSP_IMPL_STBL; in bta_av_group_navi_supported()
403 if (u16 <= AVRC_PDU_PREV_GROUP) in bta_av_group_navi_supported()
726 uint16_t u16; in bta_av_chk_notif_evt_id() local
729 BE_STREAM_TO_UINT16(u16, p); in bta_av_chk_notif_evt_id()
731 if ((u16 != 5) || (p_vendor->vendor_len != 9)) { in bta_av_chk_notif_evt_id()
761 uint16_t u16; in bta_av_proc_meta_cmd() local
804 BE_STREAM_TO_UINT16(u16, p); in bta_av_proc_meta_cmd()
805 if (u16 != 1) { in bta_av_proc_meta_cmd()
[all …]
/system/bt/profile/avrcp/tests/
Davrcp_connection_handler_test.cc58 .attr_value.v.u16 = 0, in SetUpSdp()
61 if (browsing) fake_features.attr_value.v.u16 |= AVRC_SUPF_CT_BROWSE; in SetUpSdp()
62 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.cc458 uint16_t categories = sdp_attribute->attr_value.v.u16; in SdpCb()
499 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()