Home
last modified time | relevance | path

Searched refs:SampleData (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_ibinder.cpp28 SampleData::newBinder(nullptr, [&](SampleData*) { destroyed = true; }); in TEST_F() argument
39 AIBinder* binder = SampleData::newBinder(); in TEST_F()
41 EXPECT_EQ(SampleData::kClass, AIBinder_getClass(binder)); in TEST_F()
46 AIBinder* binder = SampleData::newBinder(); in TEST_F()
47 EXPECT_TRUE(AIBinder_associateClass(binder, SampleData::kClass)); in TEST_F()
52 AIBinder* binder = SampleData::newBinder(); in TEST_F()
53 EXPECT_FALSE(AIBinder_associateClass(binder, SampleData::kAnotherClass)); in TEST_F()
59 SampleData* data = new SampleData; in TEST_F()
61 AIBinder* binder = AIBinder_new(SampleData::kClass, static_cast<void*>(data)); in TEST_F()
68 SampleData* destroyedPointer = nullptr; in TEST_F()
[all …]
Dutilities.cpp33 SampleData* data = static_cast<SampleData*>(userData); in SampleClassOnDestroy()
42 SampleData* data = static_cast<SampleData*>(AIBinder_getUserData(binder)); in SampleClassOnTransact()
54 const char* SampleData::kDescriptor = "this-is-arbitrary";
55 const AIBinder_Class* SampleData::kClass =
56 AIBinder_Class_define(SampleData::kDescriptor, SampleClassOnCreate,
59 const char* SampleData::kAnotherDescriptor = "this-is-another-arbitrary-thing";
60 const AIBinder_Class* SampleData::kAnotherClass =
61 AIBinder_Class_define(SampleData::kAnotherDescriptor, SampleClassOnCreate,
Dtest_parcel.cpp67 AIBinder* binder = SampleData::newBinder( in ExpectInOut()
77 EXPECT_OK(SampleData::transact( in ExpectInOut()
104 AIBinder* binder = SampleData::newBinder(); in TEST_F()
141 SampleData::newBinder(nullptr, ExpectLifetimeTransactions(0)); in TEST_F()
145 SampleData::transact(binder, kCode, [&](AParcel* in) { in TEST_F()
241 AIBinder* binder = SampleData::newBinder( in TEST_F()
255 EXPECT_OK(SampleData::transact( in TEST_F()
269 AIBinder* binder = SampleData::newBinder(TransactionsReturn(STATUS_OK), in TEST_F()
272 EXPECT_OK(SampleData::transact( in TEST_F()
283 AIBinder* binder = SampleData::newBinder( in TEST_F()
[all …]
Dutilities.h60 struct SampleData;
62 typedef std::function<void(SampleData*)> OnDestroyFunc;
85 struct SampleData : ThisShouldBeDestroyed { struct
92 SampleData(const OnTransactFunc& oT = nullptr, argument
108 SampleData* data = new SampleData(onTransact, onDestroy); argument
139 return [count](SampleData* data) { in ExpectLifetimeTransactions() argument