Lines Matching refs:BadStableBinder

42 class BadStableBinder : public BBinder {  class
70 static sp<BadStableBinder> undef() { in undef()
71 sp<BadStableBinder> iface = new BadStableBinder(); in undef()
75 static sp<BadStableBinder> system() { in system()
76 sp<BadStableBinder> iface = new BadStableBinder(); in system()
81 static sp<BadStableBinder> vintf() { in vintf()
82 sp<BadStableBinder> iface = new BadStableBinder(); in vintf()
87 static sp<BadStableBinder> vendor() { in vendor()
88 sp<BadStableBinder> iface = new BadStableBinder(); in vendor()
93 String16 BadStableBinder::kDescriptor = String16("BadStableBinder.test");
105 return Status::fromExceptionCode(BadStableBinder::doUserTransaction(binder)); in sendAndCallBinder()
108 *_aidl_return = BadStableBinder::undef(); in returnNoStabilityBinder()
112 *_aidl_return = BadStableBinder::system(); in returnLocalStabilityBinder()
116 *_aidl_return = BadStableBinder::vintf(); in returnVintfStabilityBinder()
120 *_aidl_return = BadStableBinder::vendor(); in returnVendorStabilityBinder()
127 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::undef())); in TEST()
128 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::system())); in TEST()
129 EXPECT_FALSE(Stability::requiresVintfDeclaration(BadStableBinder::vendor())); in TEST()
131 EXPECT_TRUE(Stability::requiresVintfDeclaration(BadStableBinder::vintf())); in TEST()
135 sp<IBinder> vintfServer = BadStableBinder::vintf(); in TEST()
155 EXPECT_TRUE(server->sendBinder(BadStableBinder::undef()).isOk()); in TEST()
156 EXPECT_TRUE(server->sendBinder(BadStableBinder::system()).isOk()); in TEST()
157 EXPECT_TRUE(server->sendBinder(BadStableBinder::vintf()).isOk()); in TEST()
158 EXPECT_TRUE(server->sendBinder(BadStableBinder::vendor()).isOk()); in TEST()
161 sp<BadStableBinder> binder = BadStableBinder::undef(); in TEST()
166 sp<BadStableBinder> binder = BadStableBinder::system(); in TEST()
171 sp<BadStableBinder> binder = BadStableBinder::vintf(); in TEST()
178 sp<BadStableBinder> binder = BadStableBinder::vendor(); in TEST()
187 EXPECT_EQ(OK, BadStableBinder::doUserTransaction(out)); in TEST()
192 EXPECT_EQ(OK, BadStableBinder::doUserTransaction(out)); in TEST()
197 EXPECT_EQ(OK, BadStableBinder::doUserTransaction(out)); in TEST()
207 EXPECT_EQ(BAD_TYPE, BadStableBinder::doUserTransaction(out)); in TEST()
234 if (code == BadStableBinder::USER_TRANSACTION) { in NdkBadStableBinder_Class_onTransact()
244 AIBinder_Class_define(String8(BadStableBinder::kDescriptor).c_str(),