Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 17 of 17) sorted by relevance

/system/bt/btcore/src/
Dproperty.c51 bool property_equals(const bt_property_t *p1, const bt_property_t *p2) { in property_equals() argument
54 if (!p1 || !p2 || p1->type != p2->type) { in property_equals()
66 if (p1->type == BT_PROPERTY_BDNAME && p1->len != p2->len) { in property_equals()
67 const bt_property_t *shorter = p1, *longer = p2; in property_equals()
68 if (p1->len > p2->len) { in property_equals()
69 shorter = p2; in property_equals()
75 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len); in property_equals()
Ddevice_class.c90 bool device_class_equals(const bt_device_class_t *p1, const bt_device_class_t *p2) { in device_class_equals() argument
92 assert(p2 != NULL); in device_class_equals()
93 return (memcmp(p1, p2, sizeof(bt_device_class_t)) == 0); in device_class_equals()
/system/core/adb/
Dsysdeps.h246 char* p2 = strchr(path, '\\'); in adb_dirstart() local
249 p = p2; in adb_dirstart()
250 else if ( p2 && p2 > p ) in adb_dirstart()
251 p = p2; in adb_dirstart()
259 char* p2 = strrchr(path, '\\'); in adb_dirstop() local
262 p = p2; in adb_dirstop()
263 else if ( p2 && p2 > p ) in adb_dirstop()
264 p = p2; in adb_dirstop()
/system/keymaster/
Dandroid_keymaster_utils.cpp36 int memcmp_s(const void* p1, const void* p2, size_t length) { in memcmp_s() argument
38 const uint8_t* s2 = static_cast<const uint8_t*>(p2); in memcmp_s()
/system/gatekeeper/include/gatekeeper/
Dgatekeeper_utils.h47 static inline int memcmp_s(const void* p1, const void* p2, size_t length) { in memcmp_s() argument
49 const uint8_t* s2 = static_cast<const uint8_t*>(p2); in memcmp_s()
/system/bt/bta/hf_client/
Dbta_hf_client_at.c1289 char *p1, *p2; in bta_hf_client_dump_at() local
1292 p2 = dump; in bta_hf_client_dump_at()
1298 strlcpy(p2, "<cr>", 4); in bta_hf_client_dump_at()
1299 p2 += 4; in bta_hf_client_dump_at()
1303 strlcpy(p2, "<lf>", 4); in bta_hf_client_dump_at()
1304 p2 += 4; in bta_hf_client_dump_at()
1308 *p2 = *p1; in bta_hf_client_dump_at()
1309 p2++; in bta_hf_client_dump_at()
1314 *p2 = '\0'; in bta_hf_client_dump_at()
/system/bt/btcore/include/
Ddevice_class.h51 bool device_class_equals(const bt_device_class_t *p1, const bt_device_class_t *p2);
Dproperty.h37 bool property_equals(const bt_property_t *p1, const bt_property_t *p2);
/system/bt/stack/smp/
Dsmp_keys.c574 void smp_gen_p2_4_confirm( tSMP_CB *p_cb, BT_OCTET16 p2) in smp_gen_p2_4_confirm() argument
576 UINT8 *p = (UINT8 *)p2; in smp_gen_p2_4_confirm()
606 smp_debug_print_nbyte_little_endian(p2, (const UINT8 *)"p2", 16); in smp_gen_p2_4_confirm()
660 BT_OCTET16 p2; in smp_calculate_comfirm_cont() local
670 smp_gen_p2_4_confirm(p_cb, p2); in smp_calculate_comfirm_cont()
673 smp_xor_128(p2, p->param_buf); in smp_calculate_comfirm_cont()
674 smp_debug_print_nbyte_little_endian ((UINT8 *)p2, (const UINT8 *)"p2' = C1 xor p2", 16); in smp_calculate_comfirm_cont()
677 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p2, BT_OCTET16_LEN, &output)) in smp_calculate_comfirm_cont()
2059 UINT8 *p2; in smp_calculate_long_term_key_from_link_key() local
2061 p2 = p_dev_rec->link_key; in smp_calculate_long_term_key_from_link_key()
[all …]
Daes.c235 { uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
246 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
248 n2 = hibit(p2); /* add into result */ in gf_inv()
257 p1 ^= p2 * n1; in gf_inv()
/system/bt/bta/hh/
Dbta_hh_le.c1446 UINT8 *p2; in bta_hh_gatt_open() local
1453 p2 = p_data->remote_bda; in bta_hh_gatt_open()
1456 ((p2[0])<<24)+((p2[1])<<16)+((p2[2])<<8)+(p2[3]), in bta_hh_gatt_open()
1457 ((p2[4])<<8)+ p2[5],p_data->status); in bta_hh_gatt_open()
/system/keymaster/include/keymaster/
Dandroid_keymaster_utils.h135 int memcmp_s(const void* p1, const void* p2, size_t length);
/system/core/libpixelflinger/
Dtrap.cpp666 const GGLcoord* p2, in edge_setup() argument
671 const GGLfixed* bot = p2; in edge_setup()
856 const GGLcoord* p2, in aa_edge_setup() argument
861 const GGLfixed* bot = p2; in aa_edge_setup()
/system/media/camera/src/
Dcamera_metadata.c574 static int compare_entry_tags(const void *p1, const void *p2) { in compare_entry_tags() argument
576 uint32_t tag2 = ((camera_metadata_buffer_entry_t*)p2)->tag; in compare_entry_tags()
/system/bt/bta/dm/
Dbta_dm_act.c5657 UINT8 *p2; in bta_dm_proc_open_evt() local
5660 p2 = p_data->remote_bda; in bta_dm_proc_open_evt()
5666 ((p2[0])<<24)+((p2[1])<<16)+((p2[2])<<8)+(p2[3]), in bta_dm_proc_open_evt()
5667 ((p2[4])<<8)+ p2[5]); in bta_dm_proc_open_evt()
/system/bt/stack/l2cap/
Dl2c_int.h580 UINT8 rem_id,UINT16 p1, UINT16 p2);
Dl2c_utils.c429 UINT16 p1, UINT16 p2) in l2cu_send_peer_cmd_reject() argument
458 UINT16_TO_STREAM (p, p2); in l2cu_send_peer_cmd_reject()