Home
last modified time | relevance | path

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

12

/system/incremental_delivery/incfs/tests/util/
Dmap_ptr_test.cpp99 auto p2 = map->data<TwoValues>(); in TEST_F() local
100 ASSERT_TRUE(p2); in TEST_F()
101 ASSERT_EQ(0U, p2->first); in TEST_F()
102 ASSERT_EQ(1U, p2->second); in TEST_F()
131 auto p2 = map->data<TwoValues>(); in TEST_F() local
132 ASSERT_TRUE(p2); in TEST_F()
133 ASSERT_EQ(4U, p2->first); in TEST_F()
134 ASSERT_EQ(5U, p2->second); in TEST_F()
146 auto p2 = p1 - 5U; in TEST_F() local
147 ASSERT_TRUE(p2); in TEST_F()
[all …]
/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/media/audio_utils/tests/
Dbiquad_filter_tests.cpp84 const D p2 = (D)dis(gen); in randomFilter() local
85 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomFilter()
95 D p2; in randomUnstableFilter() local
97 p2 = (D)dis(gen); in randomUnstableFilter()
98 if (fabs(p2) > 1.1) break; in randomUnstableFilter()
100 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomUnstableFilter()
/system/keymaster/android_keymaster/
Dandroid_keymaster_utils.cpp34 int memcmp_s(const void* p1, const void* p2, size_t length) { in memcmp_s() argument
36 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/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/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/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.cc290 Octet16 p2{0}; in smp_gen_p2_4_confirm() local
291 uint8_t* p = p2.data(); in smp_gen_p2_4_confirm()
305 smp_debug_print_nbyte_little_endian(p2, "p2 = ra || ia || padding", 16); in smp_gen_p2_4_confirm()
306 return p2; in smp_gen_p2_4_confirm()
341 Octet16 p2 = smp_gen_p2_4_confirm(p_cb, remote_bda); in smp_calculate_comfirm() local
343 smp_xor_128(&p2, e1); in smp_calculate_comfirm()
344 smp_debug_print_nbyte_little_endian(p2, "p2' = p2 XOR e1", 16); in smp_calculate_comfirm()
346 *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.cc167 Octet16 p2 = smp_gen_p2_4_confirm(&p_cb_, remote_bda); in TEST_F() local
171 dump_uint128_reverse(p2, p2_str); in TEST_F()
/system/bt/btif/src/
Dbluetooth.cc143 static bool is_profile(const char* p1, const char* p2) { in is_profile() argument
145 CHECK(p2); in is_profile()
146 return strlen(p1) == strlen(p2) && strncmp(p1, p2, strlen(p2)) == 0; in is_profile()
/system/core/fs_mgr/libsnapshot/
Dsnapuserd.h253 std::pair<sector_t, const CowOperation*> p2) { in compare() argument
254 return p1.first < p2.first; in compare()
/system/bt/bta/hf_client/
Dbta_hf_client_at.cc1574 char *p1, *p2; in bta_hf_client_dump_at() local
1577 p2 = dump; in bta_hf_client_dump_at()
1581 strlcpy(p2, "<cr>", 4); in bta_hf_client_dump_at()
1582 p2 += 4; in bta_hf_client_dump_at()
1584 strlcpy(p2, "<lf>", 4); in bta_hf_client_dump_at()
1585 p2 += 4; in bta_hf_client_dump_at()
1587 *p2 = *p1; in bta_hf_client_dump_at()
1588 p2++; in bta_hf_client_dump_at()
1593 *p2 = '\0'; in bta_hf_client_dump_at()
/system/keymaster/include/keymaster/
Dmem.h116 int memcmp_s(const void* p1, const void* p2, size_t length);
/system/bt/bta/hh/
Dbta_hh_le.cc1090 const uint8_t* p2; in bta_hh_gatt_open() local
1095 p2 = p_data->remote_bda.address; in bta_hh_gatt_open()
1099 ((p2[0]) << 24) + ((p2[1]) << 16) + ((p2[2]) << 8) + (p2[3]), in bta_hh_gatt_open()
1100 ((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/extras/simpleperf/
Dcmd_trace_sched.cpp310 auto sort_process = [](const ProcessInfo& p1, const ProcessInfo& p2) { in BuildProcessInfo() argument
311 return p1.total_runtime_in_ns > p2.total_runtime_in_ns; in BuildProcessInfo()
/system/tools/aidl/tests/java/src/android/aidl/tests/
DTestServiceClient.java574 StructuredParcelable p2 = new StructuredParcelable(); in testStructurecParcelableEquality() local
575 p2.shouldContainThreeFs = new int[] {1, 2, 3}; in testStructurecParcelableEquality()
576 p2.shouldBeJerry = "Jerry"; in testStructurecParcelableEquality()
577 shouldBeTheSame(p, p2); in testStructurecParcelableEquality()
/system/bt/test/mock/
Dmock_stack_l2cap_utils.cc226 uint16_t p1, uint16_t p2) { in l2cu_send_peer_cmd_reject() argument
/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()

12