Home
last modified time | relevance | path

Searched refs:p2 (Results 1 – 25 of 26) 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/tools/aidl/tests/java/src/android/aidl/tests/
DTrunkStableTests.java87 MyParcelable p2; in testRepeatParcelable() local
88 p2 = service.repeatParcelable(p1); in testRepeatParcelable()
89 assertThat(p2.a, is(p1.a)); in testRepeatParcelable()
90 assertThat(p2.b, is(p1.b)); in testRepeatParcelable()
92 assertTrue(p2.c != p1.c); in testRepeatParcelable()
94 assertTrue(p2.c == p1.c); in testRepeatParcelable()
126 MyOtherParcelable p2; in testRepeatOtherParcelable() local
131 p2 = service.repeatOtherParcelable(p1); in testRepeatOtherParcelable()
DTestServiceClient.java696 StructuredParcelable p2 = new StructuredParcelable(); in testStructuredParcelableEquality() local
697 p2.shouldContainThreeFs = new int[] {1, 2, 3}; in testStructuredParcelableEquality()
698 p2.shouldBeJerry = "Jerry"; in testStructuredParcelableEquality()
699 shouldBeTheSame(p, p2); in testStructuredParcelableEquality()
1043 IntParcelable p2 = new IntParcelable(); in testFixedSizeArrayOverBinder() local
1044 p2.value = 1; in testFixedSizeArrayOverBinder()
1047 IntParcelable[][] input = new IntParcelable[][] {{p1, p2, p3}, {p1, p2, p3}}; in testFixedSizeArrayOverBinder()
/system/media/audio_utils/tests/
Dbiquad_filter_tests.cpp86 const D p2 = (D)dis(gen); in randomFilter() local
87 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomFilter()
97 D p2; in randomUnstableFilter() local
99 p2 = (D)dis(gen); in randomUnstableFilter()
100 if (fabs(p2) > 1.1) break; in randomUnstableFilter()
102 return {(D)dis(gen), (D)dis(gen), (D)dis(gen), -(p1 + p2), p1 * p2}; in randomUnstableFilter()
Dmetadata_tests.cpp282 ASSERT_EQ(4, arbitrary.p2.first); in TEST()
/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/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/tools/aidl/tests/
Daidl_test_client_ndk_parcelables.cpp238 IntParcelable p1, p2, p3; in TEST_F() local
240 p2.value = 2; in TEST_F()
243 (std::array<IntParcelable, 3>{p1, p2, p3})); in TEST_F()
254 Make2dArray<IntParcelable>({p1, p2, p3})); in TEST_F()
Daidl_test_client_parcelables.cpp690 IntParcelable p1, p2, p3; in TEST_F() local
692 p2.value = 2; in TEST_F()
695 (std::array<IntParcelable, 3>{p1, p2, p3})); in TEST_F()
706 Make2dArray<IntParcelable>({p1, p2, p3})); in TEST_F()
/system/core/fs_mgr/libsnapshot/snapuserd/user-space-merge/
Dsnapuserd_core.h130 std::pair<sector_t, const CowOperation*> p2) { in compare() argument
131 return p1.first < p2.first; in compare()
/system/chre/util/tests/
Dunique_ptr_test.cc64 UniquePtr<int> p2(nullptr); in TEST() local
65 EXPECT_TRUE(p2.isNull()); in TEST()
Darray_queue_test.cc589 auto p2 = std::make_unique<int>(43); in TEST() local
597 q.kick_push(std::move(p2)); in TEST()
/system/tools/aidl/tests/rust/
Dtest_client.rs1283 let p2 = IntParcelable { value: 2 }; in test_fixed_size_array_over_binder() localVariable
1285 test_repeat_fixed_size_array!(service, RepeatParcelables, [p1, p2, p3]); in test_fixed_size_array_over_binder()
1296 test_repeat_fixed_size_array!(service, Repeat2dParcelables, [[p1, p2, p3], [p1, p2, p3]]); in test_fixed_size_array_over_binder()
1315 let p2 = result.unwrap(); in test_trunk_stable_parcelable() localVariable
1316 assert_eq!(p1.a, p2.a); in test_trunk_stable_parcelable()
1317 assert_eq!(p1.b, p2.b); in test_trunk_stable_parcelable()
1319 assert_ne!(p1.c, p2.c); in test_trunk_stable_parcelable()
1320 assert_eq!(0, p2.c); in test_trunk_stable_parcelable()
1322 assert_eq!(p1.c, p2.c); in test_trunk_stable_parcelable()
/system/keymaster/include/keymaster/
Dmem.h113 int memcmp_s(const void* p1, const void* p2, size_t length);
/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.cpp314 auto sort_process = [](const ProcessInfo& p1, const ProcessInfo& p2) { in BuildProcessInfo() argument
315 return p1.total_runtime_in_ns > p2.total_runtime_in_ns; in BuildProcessInfo()
/system/chre/host/msm/daemon/generated/
Dchre_slpi_skel.c294 const uintptr_t p2;\
Dchre_slpi_stub.c294 const uintptr_t p2;\
/system/tools/aidl/tests/java/src/android/aidl/service/
DTestServiceServer.java828 MyParcelable p1, p2; in callMyCallback() local
830 p2 = cb.repeatParcelable(p1); in callMyCallback()
/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()
/system/libvintf/test/
Dvintf_object_tests.cpp990 auto p2 = get(); in TEST_F() local
991 ASSERT_NE(nullptr, p2); in TEST_F()
992 ASSERT_NE(p, p2); in TEST_F()
996 ASSERT_EQ(p2,p3); in TEST_F()
/system/libcppbor/tests/
Dcppbor_test.cpp280 const pair<string::iterator, string::iterator> p2 = p1; in TEST() local
282 EXPECT_EQ("\x65\x68\x65\x6c\x6c\x6f"s, details::makeItem(p2)->toString()); in TEST()
306 const pair<iter, iter> p2 = make_pair(v1.begin(), v1.end()); in TEST() local
308 EXPECT_EQ("\x43\x00\x01\x02"s, details::makeItem(p2)->toString()); in TEST()
/system/core/debuggerd/
Ddebuggerd_test.cpp1952 char* volatile p2 = reinterpret_cast<char* volatile>(malloc(params.alloc_size)); in TEST_P() local
1954 free(static_cast<void*>(const_cast<char*>(p2))); in TEST_P()
1956 *p2 = 42; in TEST_P()

12