Home
last modified time | relevance | path

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

/system/bt/btcore/src/
Dproperty.cc52 bool property_equals(const bt_property_t* p1, const bt_property_t* p2) { in property_equals() argument
55 if (!p1 || !p2 || p1->type != p2->type) { in property_equals()
67 if (p1->type == BT_PROPERTY_BDNAME && p1->len != p2->len) { in property_equals()
68 const bt_property_t *shorter = p1, *longer = p2; in property_equals()
69 if (p1->len > p2->len) { in property_equals()
70 shorter = p2; in property_equals()
77 return p1->len == p2->len && !memcmp(p1->val, p2->val, p1->len); in property_equals()
Ddevice_class.cc95 const bt_device_class_t* p2) { in device_class_equals() argument
97 CHECK(p2 != NULL); in device_class_equals()
98 return (memcmp(p1, p2, sizeof(bt_device_class_t)) == 0); in device_class_equals()
/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/keymaster/android_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/bt/btif/src/
Dbluetooth.cc129 static bool is_profile(const char* p1, const char* p2) { in is_profile() argument
131 CHECK(p2); in is_profile()
132 return strlen(p1) == strlen(p2) && strncmp(p1, p2, strlen(p2)) == 0; in is_profile()
/system/bt/stack/test/
Dstack_smp_test.cc89 BT_OCTET16 p2);
173 BT_OCTET16 p2; in TEST_F() local
179 smp_gen_p2_4_confirm(&p_cb_, remote_bda, p2); in TEST_F()
183 dump_uint128_reverse(p2, p2_str); in TEST_F()
/system/extras/app-launcher/
Dcomputestats.c23 compare_long(const void *p1, const void *p2) in compare_long() argument
26 u_int64_t val2 = *(u_int64_t *)p2; in compare_long()
Dcomputestatsf.c23 compare_double(const void *p1, const void *p2) in compare_double() argument
26 double val2 = *(u_int64_t *)p2; in compare_double()
/system/bt/btcore/include/
Ddevice_class.h54 const bt_device_class_t* p2);
Dproperty.h39 bool property_equals(const bt_property_t* p1, const bt_property_t* p2);
/system/bt/stack/smp/
Dsmp_keys.cc404 BT_OCTET16 p2) { in smp_gen_p2_4_confirm() argument
406 uint8_t* p = (uint8_t*)p2; in smp_gen_p2_4_confirm()
420 smp_debug_print_nbyte_little_endian(p2, "p2 = ra || ia || padding", 16); in smp_gen_p2_4_confirm()
460 BT_OCTET16 p2; in smp_calculate_comfirm() local
461 smp_gen_p2_4_confirm(p_cb, remote_bda, p2); in smp_calculate_comfirm()
463 smp_xor_128(p2, output->param_buf); in smp_calculate_comfirm()
464 smp_debug_print_nbyte_little_endian((uint8_t*)p2, "p2' = p2 XOR e1", 16); in smp_calculate_comfirm()
467 if (!SMP_Encrypt(p_cb->tk, BT_OCTET16_LEN, p2, BT_OCTET16_LEN, output)) { in smp_calculate_comfirm()
1786 uint8_t* p2; in smp_calculate_long_term_key_from_link_key() local
1788 p2 = p_dev_rec->link_key; in smp_calculate_long_term_key_from_link_key()
[all …]
Daes.cc259 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
268 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
270 n2 = hibit(p2); /* add into result */ in gf_inv()
278 p1 ^= p2 * n1; in gf_inv()
/system/bt/bta/hf_client/
Dbta_hf_client_at.cc1473 char *p1, *p2; in bta_hf_client_dump_at() local
1476 p2 = dump; in bta_hf_client_dump_at()
1480 strlcpy(p2, "<cr>", 4); in bta_hf_client_dump_at()
1481 p2 += 4; in bta_hf_client_dump_at()
1483 strlcpy(p2, "<lf>", 4); in bta_hf_client_dump_at()
1484 p2 += 4; in bta_hf_client_dump_at()
1486 *p2 = *p1; in bta_hf_client_dump_at()
1487 p2++; in bta_hf_client_dump_at()
1492 *p2 = '\0'; in bta_hf_client_dump_at()
/system/bt/bta/hh/
Dbta_hh_le.cc1136 uint8_t* p2; in bta_hh_gatt_open() local
1141 p2 = p_data->remote_bda.address; in bta_hh_gatt_open()
1145 ((p2[0]) << 24) + ((p2[1]) << 16) + ((p2[2]) << 8) + (p2[3]), in bta_hh_gatt_open()
1146 ((p2[4]) << 8) + p2[5], p_data->status); in bta_hh_gatt_open()
/system/tools/hidl/c2hal/test/
Dtest.h280 void (*p2)(struct framebuffer_device_t* dev, char *buff, int buff_len); member
/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/keymaster/include/keymaster/
Dandroid_keymaster_utils.h135 int memcmp_s(const void* p1, const void* p2, size_t length);
/system/chre/host/msm/daemon/generated/
Dchre_slpi_skel.c292 const uintptr_t p2;\
Dchre_slpi_stub.c292 const uintptr_t p2;\
/system/media/camera/src/
Dcamera_metadata.c699 static int compare_entry_tags(const void *p1, const void *p2) { in compare_entry_tags() argument
701 uint32_t tag2 = ((camera_metadata_buffer_entry_t*)p2)->tag; in compare_entry_tags()
/system/bt/stack/l2cap/
Dl2c_int.h615 uint8_t rem_id, uint16_t p1, uint16_t p2);
Dl2c_utils.cc390 uint16_t p1, uint16_t p2) { in l2cu_send_peer_cmd_reject() argument
417 if (param_len >= 4) UINT16_TO_STREAM(p, p2); in l2cu_send_peer_cmd_reject()
/system/tpm/trunks/generator/
Draw_commands.txt15337 // set p2.x = hash(s2) mod p
Draw_commands_fixed.txt15348 // set p2.x = hash(s2) mod p