/cts/tests/tests/binder_ndk/libbinder_ndk_test/ |
D | test_ibinder.cpp | 27 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 …]
|
D | test_parcel.cpp | 67 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 …]
|
D | test_ibinder_jni.cpp | 42 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()
|
D | android_binder_cts_NativeService.cpp | 30 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()
|
D | utilities.h | 123 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);
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0243/ |
D | poc.cpp | 51 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-2020-0226/ |
D | poc.cpp | 40 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/hostsidetests/securitybulletin/securityPatch/CVE-2017-0479/ |
D | poc.cpp | 33 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() 47 virtual binder::Status framesProcessed(int32_t frames __unused) override { in framesProcessed() 48 return binder::Status::ok(); in framesProcessed() 119 binder::Status status = gEffect->command(EFFECT_CMD_GET_CONFIG, cmdData, in main()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0318/ |
D | poc.cpp | 42 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/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | IBinderParcelable.java | 23 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/ |
D | poc.cpp | 24 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/tests/widget/src/android/widget/cts/ |
D | SimpleAdapterTest.java | 193 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 …]
|
D | SimpleCursorAdapterTest.java | 147 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/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 43 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/ |
D | ContextCrossProfileTestService.java | 26 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/ |
D | AppOpsUserService.cpp | 28 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/ |
D | ContextCrossProfileSamePackageTestService.java | 26 private final IBinder binder = new LocalBinder(); field in ContextCrossProfileSamePackageTestService 30 return binder; in onBind()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | ExceptionalParcelable.java | 27 ExceptionalParcelable(IBinder binder) { in ExceptionalParcelable() argument 28 mBinder = binder; in ExceptionalParcelable()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-13232/ |
D | poc.cpp | 76 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/common/device-side/bedstead/eventlib/src/main/java/com/android/eventlib/ |
D | QueryService.java | 37 private final IQueryService.Stub binder = new IQueryService.Stub() { field in QueryService 61 return binder; in onBind()
|
/cts/tests/tests/gwp-asan/enabled/src/android/gwpasan/cts/ |
D | GwpAsanServiceTest.java | 46 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/ |
D | SignatureQueryServiceInstrumentationTest.java | 60 IBinder binder = serviceTestRule.bindService( in setUp() local 63 signatureQueryService = ISignatureQueryService.Stub.asInterface(binder); in setUp()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | WindowManager_LayoutParamsTest.java | 85 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/ |
D | ResourceObserverNativeTest.cpp | 97 ::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/hostsidetests/securitybulletin/securityPatch/CVE-2019-2136/ |
D | poc.cpp | 20 using ::android::binder::Status;
|