Home
last modified time | relevance | path

Searched refs:binder (Results 1 – 25 of 39) sorted by relevance

12

/cts/tests/tests/binder_ndk/libbinder_ndk_test/
Dtest_ibinder.cpp27 AIBinder* binder = in TEST_F() local
30 AIBinder_incStrong(binder); // 1 -> 2 in TEST_F()
32 AIBinder_decStrong(binder); // 2 -> 1 in TEST_F()
34 AIBinder_decStrong(binder); // 1 -> 0 in TEST_F()
39 AIBinder* binder = SampleData::newBinder(); in TEST_F() local
41 EXPECT_EQ(SampleData::kClass, AIBinder_getClass(binder)); in TEST_F()
42 AIBinder_decStrong(binder); in TEST_F()
46 AIBinder* binder = SampleData::newBinder(); in TEST_F() local
47 EXPECT_TRUE(AIBinder_associateClass(binder, SampleData::kClass)); in TEST_F()
48 AIBinder_decStrong(binder); in TEST_F()
[all …]
Dtest_parcel.cpp67 AIBinder* binder = SampleData::newBinder( in ExpectInOut() local
78 binder, kCode, in ExpectInOut()
92 AIBinder_decStrong(binder); in ExpectInOut()
104 AIBinder* binder = SampleData::newBinder(); in TEST_F() local
107 {binder}); in TEST_F()
110 AIBinder_decStrong(binder); in TEST_F()
113 AIBinder_decStrong(binder); in TEST_F()
116 {nullptr, binder}); in TEST_F()
119 AIBinder_decStrong(binder); in TEST_F()
122 AIBinder_decStrong(binder); in TEST_F()
[all …]
Dtest_ibinder_jni.cpp42 AIBinder* binder = AIBinder_new(kNothingClass, nullptr); in TEST_F() local
43 EXPECT_NE(nullptr, binder); in TEST_F()
45 jobject object = AIBinder_toJavaBinder(env, binder); in TEST_F()
49 EXPECT_EQ(binder, fromJavaBinder); in TEST_F()
51 AIBinder_decStrong(binder); in TEST_F()
Dandroid_binder_cts_NativeService.cpp30 SpAIBinder binder = SharedRefBase::make<MyTest>()->asBinder(); in Java_android_binder_cts_NativeService_getBinder_1native() local
36 binder_status_t ret = AIBinder_setExtension(binder.get(), extBinder.get()); in Java_android_binder_cts_NativeService_getBinder_1native()
42 return AIBinder_toJavaBinder(env, binder.get()); in Java_android_binder_cts_NativeService_getBinder_1native()
Dtest_native_aidl_client.cpp54 SpAIBinder binder = test->asBinder(); in TEST_F() local
55 EXPECT_EQ(test, ITest::fromBinder(binder)); in TEST_F()
260 SpAIBinder binder = iface->asBinder(); in TEST_P() local
263 ASSERT_OK(iface->RepeatBinder(binder, &ret)); in TEST_P()
264 EXPECT_EQ(binder.get(), ret.get()); in TEST_P()
266 ASSERT_OK(iface->RepeatNullableBinder(binder, &ret)); in TEST_P()
267 EXPECT_EQ(binder.get(), ret.get()); in TEST_P()
849 SpAIBinder binder = test->asBinder(); in getProxyLocalService() local
855 binder_status_t ret = AIBinder_setExtension(binder.get(), extBinder.get()); in getProxyLocalService()
864 return SharedRefBase::make<BpTest>(binder); in getProxyLocalService()
[all …]
Dutilities.h123 static binder_status_t transact(AIBinder* binder, transaction_code_t code,
128 binder_status_t status = AIBinder_prepareTransaction(binder, &in);
138 status = AIBinder_transact(binder, code, &in, &out, flags);
Dutilities.cpp40 binder_status_t SampleClassOnTransact(AIBinder* binder, transaction_code_t code, in SampleClassOnTransact() argument
42 SampleData* data = static_cast<SampleData*>(AIBinder_getUserData(binder)); in SampleClassOnTransact()
/cts/tests/tests/widget/src/android/widget/cts/
DSimpleAdapterTest.java193 SimpleAdapter.ViewBinder binder = mock(SimpleAdapter.ViewBinder.class); in testGetView() local
194 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
195 mSimpleAdapter.setViewBinder(binder); in testGetView()
197 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
200 doReturn(false).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetView()
201 reset(binder); in testGetView()
203 verify(binder, times(1)).setViewValue(any(View.class), eq("01"), anyString()); in testGetView()
268 SimpleAdapter.ViewBinder binder = mock(SimpleAdapter.ViewBinder.class); in testGetDropDownView() local
269 doReturn(true).when(binder).setViewValue(any(View.class), any(Object.class), anyString()); in testGetDropDownView()
270 mSimpleAdapter.setViewBinder(binder); in testGetDropDownView()
[all …]
DSimpleCursorAdapterTest.java147 SimpleCursorAdapter.ViewBinder binder = mock(SimpleCursorAdapter.ViewBinder.class); in testBindView() local
148 doReturn(true).when(binder).setViewValue(any(View.class), any(Cursor.class), anyInt()); in testBindView()
149 simpleCursorAdapter.setViewBinder(binder); in testBindView()
152 verify(binder, times(1)).setViewValue(any(View.class), eq(mCursor), eq(1)); in testBindView()
156 doReturn(false).when(binder).setViewValue(any(View.class), any(Cursor.class), anyInt()); in testBindView()
157 reset(binder); in testBindView()
160 verify(binder, times(1)).setViewValue(any(View.class), eq(mCursor), eq(1)); in testBindView()
182 SimpleCursorAdapter.ViewBinder binder = mock(SimpleCursorAdapter.ViewBinder.class); in testAccessViewBinder() local
183 doReturn(true).when(binder).setViewValue(any(View.class), any(Cursor.class), anyInt()); in testAccessViewBinder()
184 simpleCursorAdapter.setViewBinder(binder); in testAccessViewBinder()
[all …]
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DIBinderParcelable.java23 public IBinder binder; field in IBinderParcelable
26 binder = source; in IBinderParcelable()
34 dest.writeStrongBinder(binder); in writeToParcel()
50 binder = source.readStrongBinder(); in IBinderParcelable()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DIBinderParcelable.java23 public IBinder binder; field in IBinderParcelable
26 binder = source; in IBinderParcelable()
34 dest.writeStrongBinder(binder); in writeToParcel()
50 binder = source.readStrongBinder(); in IBinderParcelable()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputBindingTest.java43 Binder binder = new Binder(); in testInputBinding() local
46 InputBinding inputBinding = new InputBinding(bic, binder, uid, pid); in testInputBinding()
49 assertSame(binder, inputBinding.getConnectionToken()); in testInputBinding()
62 assertSame(binder, target.getConnectionToken()); in testInputBinding()
/cts/tests/tests/os/src/android/os/cts/
DExceptionalParcelable.java27 ExceptionalParcelable(IBinder binder) { in ExceptionalParcelable() argument
28 mBinder = binder; in ExceptionalParcelable()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/
Dpoc.cpp76 sp<IBinder> binder = sm->getService(String16("media.audio_policy")); in getOutputForAttr() local
85 binder->transact(GET_OUTPUT_FOR_ATTR, data, &reply, 0); in getOutputForAttr()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13253/
Dpoc.cpp35 sp<IBinder> binder = sm->getService(String16("media.drm")); in main() local
36 sp<IMediaDrmService> service = interface_cast<IMediaDrmService>(binder); in main()
/cts/tests/tests/net/ipsec/src/android/net/ipsec/ike/cts/
DTestNetworkUtils.java68 IBinder binder) in setupAndGetTestNetwork() argument
83 testNetworkMgr.setupTestNetwork(ifname, binder); in setupAndGetTestNetwork()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2025/
Dpoc.cpp63 sp<IBinder> binder = sm->getService(String16("sensorservice")); in bcfree_helper() local
64 sp<ISensorServer> sensor = interface_cast<ISensorServer>(binder); in bcfree_helper()
84 sp<IBinder> binder = sm->getService(String16("sensorservice")); in bcfree() local
85 sp<ISensorServer> sensor = interface_cast<ISensorServer>(binder); in bcfree()
/cts/tests/tests/security/src/android/security/cts/
DNanoAppBundleTest.java66 public void onServiceConnected(ComponentName name, IBinder binder) {
307 IBinder binder = mAuthenticator.getIBinder(); in onBind() local
308 mBinder = binder; in onBind()
310 return binder; in onBind()
DBinderExploitTest.java60 IBinder binder; field in Exchange
68 binder = bnd; in putBinder()
73 return binder; in getBinder()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManager_LayoutParamsTest.java83 IBinder binder = new Binder(); in testConstructor() local
85 mLayoutParams.token = binder; in testConstructor()
218 IBinder binder = new Binder(); in testWriteToParcel() local
227 mLayoutParams.token = binder; in testWriteToParcel()
/cts/tests/tests/telephony/current/EmbmsMiddlewareTestApp/src/android/telephony/cts/embmstestapp/
DCtsGroupCallService.java201 IBinder binder = super.onBind(intent); in onBind() local
204 return binder; in onBind()
210 return binder; in onBind()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-3913/
Dpoc.cpp142 sp<IBinder> binder = in main() local
144 sp<IMediaPlayerService> service = interface_cast<IMediaPlayerService>(binder); in main()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/
DProjectionActivity.java58 public void onServiceConnected(ComponentName name, IBinder binder) {
59 mService = IProjectionService.Stub.asInterface(binder);
/cts/tests/tests/binder_ndk/src/android/binder/cts/
DJavaService.java17 package android.binder.cts;
DJavaClientTest.java17 package android.binder.cts;
170 IBinder binder = mInterface.asBinder(); in testRepeatBinder() local
172 assertEquals(binder, mInterface.RepeatBinder(binder)); in testRepeatBinder()
173 assertEquals(binder, mInterface.RepeatNullableBinder(binder)); in testRepeatBinder()

12