Lines Matching refs:binder
26 #include <binder/Binder.h>
27 #include <binder/IBinder.h>
28 #include <binder/IPCThreadState.h>
29 #include <binder/IServiceManager.h>
175 sp<IBinder> binder;
180 EXPECT_FALSE(binder != NULL);
181 binder = reply.readStrongBinder();
182 EXPECT_TRUE(binder != NULL);
187 return binder;
499 sp<IBinder> binder = addServer();
500 ASSERT_TRUE(binder != NULL);
501 ret = binder->linkToDeath(testDeathRecipient);
508 ret = binder->unlinkToDeath(testDeathRecipient);
521 sp<IBinder> binder = addServer();
522 ASSERT_TRUE(binder != NULL);
523 ret = binder->linkToDeath(testDeathRecipient);
525 wbinder = binder;
531 ret = binder->unlinkToDeath(testDeathRecipient);
544 sp<IBinder> binder = addServer();
545 ASSERT_TRUE(binder != NULL);
546 ret = binder->linkToDeath(testDeathRecipient);
548 sbinder = binder;
687 EXPECT_EQ(fb->binder >> 32, (binder_uintptr_t)0);
705 /* Add a weak ref to the freed binder so the driver does not
714 /* Replace original handle with handle to the freed binder */
758 sp<IBinder> binder;
760 binder = data.readStrongBinder();
761 if (binder == NULL) {
771 m_serverStarted = binder;
823 sp<IBinder> binder;
824 binder = data.readStrongBinder();
825 if (binder == NULL) {
829 binder->transact(BINDER_LIB_TEST_CALL_BACK, data2, &reply2);
841 sp<IBinder> binder;
847 binder = data.readStrongBinder();
848 if (binder == NULL) {
857 binder->transact(indirect_code, data2, &reply2);
950 sp<IBinder> binder = new BBinder();
952 reply->writeStrongBinder(binder);
954 reply->writeWeakBinder(binder);