Lines Matching refs:binder
34 using android::binder::Status;
49 static status_t doUserTransaction(const sp<IBinder>& binder) { in doUserTransaction() argument
52 return binder->transact(USER_TRANSACTION, data, &reply, 0/*flags*/); in doUserTransaction()
103 Status sendAndCallBinder(const sp<IBinder>& binder) override { in sendAndCallBinder() argument
104 Stability::debugLogStability("sendAndCallBinder got binder", binder); in sendAndCallBinder()
105 return Status::fromExceptionCode(BadStableBinder::doUserTransaction(binder)); in sendAndCallBinder()
161 sp<BadStableBinder> binder = BadStableBinder::undef(); in TEST() local
162 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
163 EXPECT_TRUE(binder->gotUserTransaction); in TEST()
166 sp<BadStableBinder> binder = BadStableBinder::system(); in TEST() local
167 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
168 EXPECT_TRUE(binder->gotUserTransaction); in TEST()
171 sp<BadStableBinder> binder = BadStableBinder::vintf(); in TEST() local
172 EXPECT_TRUE(server->sendAndCallBinder(binder).isOk()); in TEST()
173 EXPECT_TRUE(binder->gotUserTransaction); in TEST()
178 sp<BadStableBinder> binder = BadStableBinder::vendor(); in TEST() local
179 EXPECT_EQ(BAD_TYPE, server->sendAndCallBinder(binder).exceptionCode()); in TEST()
180 EXPECT_FALSE(binder->gotUserTransaction); in TEST()
224 NdkBinderStable_DataClass* NdkBadStableBinder_getUserData(AIBinder* binder) { in NdkBadStableBinder_getUserData() argument
225 LOG_ALWAYS_FATAL_IF(binder == nullptr); in NdkBadStableBinder_getUserData()
226 void* userData = AIBinder_getUserData(binder); in NdkBadStableBinder_getUserData()
232 AIBinder* binder, transaction_code_t code, const AParcel* /*in*/, AParcel* /*out*/) { in NdkBadStableBinder_Class_onTransact() argument
236 NdkBadStableBinder_getUserData(binder)->gotUserTransaction = true; in NdkBadStableBinder_Class_onTransact()
250 extern "C" void AIBinder_markVendorStability(AIBinder* binder); // <- BAD DO NOT COPY
253 SpAIBinder binder = SpAIBinder(AServiceManager_getService( in TEST() local
257 aidl::IBinderStabilityTest::fromBinder(binder); in TEST()
291 MarksStabilityInConstructor* binder = new MarksStabilityInConstructor(); in TEST() local
294 sp<MarksStabilityInConstructor> binderSp = binder; in TEST()
303 sp<IBinder> binder = new BBinder(); in TEST()
304 Stability::markCompilationUnit(binder.get()); // <-- only called for tests in TEST()
305 Stability::markVndk(binder.get()); // <-- only called for tests in TEST()