Home
last modified time | relevance | path

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

12

/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.cc97 const bt_device_class_t* p2) { in device_class_equals() argument
99 CHECK(p2 != NULL); in device_class_equals()
100 return (memcmp(p1, p2, sizeof(bt_device_class_t)) == 0); in device_class_equals()
/system/iorap/tests/src/binder/
Dauto_parcelable_test.cc33 Parcel p1, p2; in TEST() local
36 p2.writeInt64(0x1234); in TEST()
38 EXPECT_EQ(COMPARED_SAME, p1.compareData(p2)); in TEST()
/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/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/btif/src/
Dbluetooth.cc131 static bool is_profile(const char* p1, const char* p2) { in is_profile() argument
133 CHECK(p2); in is_profile()
134 return strlen(p1) == strlen(p2) && strncmp(p1, p2, strlen(p2)) == 0; in is_profile()
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc196 Octet16 p2; in c1() local
197 it = p2.begin(); in c1()
203 p2[i] = p1bis[i] ^ p2[i]; in c1()
206 return aes_128(k, p2); in c1()
Daes.cc208 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
217 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
219 n2 = hibit(p2); /* add into result */ in gf_inv()
227 p1 ^= p2 * n1; in gf_inv()
/system/tools/aidl/tests/corpus/
Denum_named_byte1 = import s;enum byte{p}enum s{p} enum oz{p2}parcelable e{e oy;oz y;}
/system/extras/app-launcher/
Dcomputestatsf.c23 compare_double(const void *p1, const void *p2) in compare_double() argument
26 double val2 = *(u_int64_t *)p2; in compare_double()
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()
/system/bt/stack/smp/
Dsmp_keys.cc312 Octet16 p2{0}; in smp_gen_p2_4_confirm() local
313 uint8_t* p = p2.data(); in smp_gen_p2_4_confirm()
327 smp_debug_print_nbyte_little_endian(p2, "p2 = ra || ia || padding", 16); in smp_gen_p2_4_confirm()
328 return p2; in smp_gen_p2_4_confirm()
363 Octet16 p2 = smp_gen_p2_4_confirm(p_cb, remote_bda); in smp_calculate_comfirm() local
365 smp_xor_128(&p2, e1); in smp_calculate_comfirm()
366 smp_debug_print_nbyte_little_endian(p2, "p2' = p2 XOR e1", 16); in smp_calculate_comfirm()
368 *output = aes_128(p_cb->tk, p2); in smp_calculate_comfirm()
/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/test/
Dstack_smp_test.cc166 Octet16 p2 = smp_gen_p2_4_confirm(&p_cb_, remote_bda); in TEST_F() local
170 dump_uint128_reverse(p2, p2_str); in TEST_F()
/system/bt/bta/hf_client/
Dbta_hf_client_at.cc1512 char *p1, *p2; in bta_hf_client_dump_at() local
1515 p2 = dump; in bta_hf_client_dump_at()
1519 strlcpy(p2, "<cr>", 4); in bta_hf_client_dump_at()
1520 p2 += 4; in bta_hf_client_dump_at()
1522 strlcpy(p2, "<lf>", 4); in bta_hf_client_dump_at()
1523 p2 += 4; in bta_hf_client_dump_at()
1525 *p2 = *p1; in bta_hf_client_dump_at()
1526 p2++; in bta_hf_client_dump_at()
1531 *p2 = '\0'; in bta_hf_client_dump_at()
/system/tools/hidl/c2hal/test/
Dtest.h280 void (*p2)(struct framebuffer_device_t* dev, char *buff, int buff_len); member
/system/bt/bta/hh/
Dbta_hh_le.cc1133 uint8_t* p2; in bta_hh_gatt_open() local
1138 p2 = p_data->remote_bda.address; in bta_hh_gatt_open()
1142 ((p2[0]) << 24) + ((p2[1]) << 16) + ((p2[2]) << 8) + (p2[3]), in bta_hh_gatt_open()
1143 ((p2[4]) << 8) + p2[5], p_data->status); in bta_hh_gatt_open()
/system/extras/simpleperf/
Dcmd_trace_sched.cpp307 auto sort_process = [](const ProcessInfo& p1, const ProcessInfo& p2) { in BuildProcessInfo() argument
308 return p1.total_runtime_in_ns > p2.total_runtime_in_ns; in BuildProcessInfo()
/system/bt/stack/crypto_toolbox/
Daes.cc256 uint_8t p1 = x, p2 = BPOLY, n1 = hibit(x), n2 = 0x80, v1 = 1, v2 = 0; in gf_inv() local
265 p2 ^= (p1 * n2) & 0xff; /* and remove from larger one */ in gf_inv()
267 n2 = hibit(p2); /* add into result */ in gf_inv()
275 p1 ^= p2 * n1; in gf_inv()
/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.h158 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.c727 static int compare_entry_tags(const void *p1, const void *p2) { in compare_entry_tags() argument
729 uint32_t tag2 = ((camera_metadata_buffer_entry_t*)p2)->tag; in compare_entry_tags()

12