Home
last modified time | relevance | path

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

123

/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()
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);
Dtest_native_aidl_client.cpp68 SpAIBinder binder = test->asBinder(); in TEST_F() local
69 EXPECT_EQ(test, ITest::fromBinder(binder)); in TEST_F()
153 SpAIBinder binder; in getCompatTest() local
154 itest->getICompatTest(&binder); in getCompatTest()
155 return ICompatTest::fromBinder(binder); in getCompatTest()
312 SpAIBinder binder = iface->asBinder(); in TEST_P() local
315 ASSERT_OK(iface->RepeatBinder(binder, &ret)); in TEST_P()
316 EXPECT_EQ(binder.get(), ret.get()); in TEST_P()
326 ASSERT_OK(iface->RepeatNullableBinder(binder, &ret)); in TEST_P()
327 EXPECT_EQ(binder.get(), ret.get()); in TEST_P()
[all …]
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/
Dpoc.cpp51 sp<IBinder> binder = nullptr; in main() local
64 binder = reply.readStrongBinder(); in main()
67 if (not binder) { in main() local
74 params->service = binder; in main()
80 if (not binder) { in main() local
84 data.writeInterfaceToken(binder->getInterfaceDescriptor()); in main()
85 data.writeStrongBinder(binder); in main()
86 err = binder->transact(/*SET_DATA_SOURCE_URL_ID*/ 2, data, &reply, 0); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/
Dpoc.cpp42 sp<IBinder> binder = reply.readStrongBinder(); in poc() local
44 if (binder) { in poc()
47 data.writeInterfaceToken(binder->getInterfaceDescriptor()); in poc()
53 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc()
61 String16 name = binder->getInterfaceDescriptor(); in poc()
63 err = binder->transact(6 /*DESTROY*/, data, &reply, 0); in poc()
69 data.writeInterfaceToken(binder->getInterfaceDescriptor()); in poc()
75 err = binder->transact(2 /*ENABLE_DISABLE*/, data, &reply, 0); in poc()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0226/
Dpoc.cpp40 sp < IBinder > binder = reply1.readStrongBinder(); in main() local
41 if (!binder) { in main()
46 data2.writeInterfaceToken(binder->getInterfaceDescriptor()); in main()
51 data2.writeStrongBinder(binder); in main()
52 binder->transact(code, data2, &reply2, flags); in main()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/
Dpoc.cpp33 virtual binder::Status controlStatusChanged(bool controlGranted __unused) { in controlStatusChanged()
34 return binder::Status::ok(); in controlStatusChanged()
37 virtual binder::Status enableStatusChanged(bool enabled __unused) { in enableStatusChanged()
38 return binder::Status::ok(); in enableStatusChanged()
41 virtual binder::Status commandExecuted(int32_t cmdCode __unused, in commandExecuted()
44 return binder::Status::ok(); in commandExecuted()
115 binder::Status status = gEffect->command(EFFECT_CMD_GET_CONFIG, cmdData, in main()
/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/hostsidetests/securitybulletin/securityPatch/CVE-2021-0439/
Dpoc.cpp24 sp<IBinder> binder = sm->getService(String16("power")); in main() local
25 if (!binder) { in main()
47 binder->transact(6, data, &result); in main()
/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/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileTestServiceApp/src/com/android/cts/testService/
DContextCrossProfileTestService.java26 private final IBinder binder = new LocalBinder(); field in ContextCrossProfileTestService
30 return binder; in onBind()
/cts/tests/tests/appop/AppThatUsesAppOps/jni/android/app/appops/cts/appthatusesappops/
DAppOpsUserService.cpp28 JNIEnv* env, jclass clazz, jobject binder) { in Java_android_app_appops_cts_appthatusesappops_AppOpsUserServiceKt_noteSyncOpFromNativeCode() argument
29 SpAIBinder native_binder = SpAIBinder(AIBinder_fromJavaBinder(env, binder)); in Java_android_app_appops_cts_appthatusesappops_AppOpsUserServiceKt_noteSyncOpFromNativeCode()
/cts/hostsidetests/content/test-apps/ContextCrossProfileApps/ContextCrossProfileApp/src/com/android/cts/context/
DContextCrossProfileSamePackageTestService.java26 private final IBinder binder = new LocalBinder(); field in ContextCrossProfileSamePackageTestService
30 return binder; in onBind()
/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/tests/framework/base/windowmanager/src/android/server/wm/
DWindowManager_LayoutParamsTest.java85 IBinder binder = new Binder(); in testConstructor() local
87 mLayoutParams.token = binder; in testConstructor()
227 IBinder binder = new Binder(); in testWriteToParcel() local
236 mLayoutParams.token = binder; in testWriteToParcel()
239 mLayoutParams.setWindowContextToken(binder); in testWriteToParcel()
247 assertEquals(binder, out.getWindowContextToken()); in testWriteToParcel()
/cts/tests/tests/nativemedia/resourceobserver/src/
DResourceObserverNativeTest.cpp97 ::ndk::SpAIBinder binder(AServiceManager_getService("media.resource_observer")); in testResourceObserver()
99 IResourceObserverService::fromBinder(binder); in testResourceObserver()
157 ::ndk::SpAIBinder binder(AServiceManager_getService("media.resource_observer")); in TEST_F()
159 IResourceObserverService::fromBinder(binder); in TEST_F()
/cts/tests/tests/gwp-asan/enabled/src/android/gwpasan/cts/
DGwpAsanServiceTest.java46 IBinder binder = mServiceRule.bindService(serviceIntent); in isGwpAsanEnabledInService() local
49 if (!binder.transact(42, request, reply, 0)) { in isGwpAsanEnabledInService()
/cts/hostsidetests/appsecurity/test-apps/KeyRotationTest/ServiceTest/src/android/appsecurity/cts/keyrotationtest/test/
DSignatureQueryServiceInstrumentationTest.java60 IBinder binder = serviceTestRule.bindService( in setUp() local
63 signatureQueryService = ISignatureQueryService.Stub.asInterface(binder); in setUp()
/cts/tests/app/app/src/android/app/stubs/
DLocalForegroundService.java172 final IBinder binder = extras.getBinder(CommandReceiver.EXTRA_MESSENGER); in handleIncomingMessengerIfNeeded() local
173 if (binder != null) { in handleIncomingMessengerIfNeeded()
174 final Messenger messenger = new Messenger(binder); in handleIncomingMessengerIfNeeded()

123