/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/ |
H A D | ipc_proxy_inner.c | 101 StubObject *stubObject = (StubObject *)malloc(sizeof(StubObject)); in InvokerListenThread() local 102 if (stubObject == NULL) { in InvokerListenThread() 106 stubObject->stubIndex = stubIndex; in InvokerListenThread() 108 stubObject->func = cookie->func; in InvokerListenThread() 109 if (AddStubByIndex(stubObject) != ERR_NONE) { in InvokerListenThread() 110 free(stubObject); in InvokerListenThread()
|
/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/small/ |
H A D | ipc_stub_inner.c | 46 StubObject *stubObject = (StubObject *)malloc(sizeof(StubObject)); in MakeStubCached() local 47 if (stubObject == NULL) { in MakeStubCached() 51 stubObject->stubIndex = stubIndex; in MakeStubCached() 52 stubObject->func = func; in MakeStubCached() 53 if (AddStubByIndex(stubObject) != ERR_NONE) { in MakeStubCached() 54 free(stubObject); in MakeStubCached()
|
/foundation/multimedia/av_codec/services/services/sa_avcodec/server/ |
H A D | avcodec_server.cpp | 103 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) in GetSubSystemAbility() 108 int32_t ret = AVCodecServerManager::GetInstance().CreateStubObject(stubType.value(), stubObject); in GetSubSystemAbility() 109 CHECK_AND_RETURN_RET_LOG(stubObject != nullptr, ret, "Create sub system failed, err: %{public}d", ret); in GetSubSystemAbility() 113 AVCodecServerManager::GetInstance().DestroyStubObject(*stubType, stubObject); in GetSubSystemAbility() 114 stubObject = nullptr; in GetSubSystemAbility() 102 GetSubSystemAbility(IStandardAVCodecService::AVCodecSystemAbility subSystemId, const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) GetSubSystemAbility() argument
|
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/include/ |
H A D | avcodec_service_stub.h | 39 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) = 0; 53 sptr<IRemoteObject> &stubObject)); 64 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) override;
|
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_process_skeleton_unittest.cpp | 869 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); in HWTEST_F() local 871 std::pair<uint64_t, IRemoteObject *>(stubIndex, stubObject.GetRefPtr())); in HWTEST_F() 906 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); in HWTEST_F() local 908 std::pair<uint64_t, IRemoteObject *>(stubIndex, stubObject.GetRefPtr())); in HWTEST_F() 910 auto ret = skeleton->AddStubByIndex(stubObject.GetRefPtr()); in HWTEST_F() 927 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); in HWTEST_F() local 929 std::pair<uint64_t, IRemoteObject *>(stubIndex, stubObject.GetRefPtr())); in HWTEST_F() 951 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); in HWTEST_F() local 953 std::pair<uint64_t, IRemoteObject *>(stubIndex, stubObject.GetRefPtr())); in HWTEST_F() 974 sptr<IRemoteObject> stubObject in HWTEST_F() local 994 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1378 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1400 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1422 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1444 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1466 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1488 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1511 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1536 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1557 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local 1583 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); HWTEST_F() local [all...] |
H A D | ipc_binder_databus_invoker_unittest.cpp | 922 IRemoteObject* stubObject = nullptr; 925 bool test = testInvoker.ConnectRemoteObject2Session(stubObject, stubIndex, sessionObject);
|
/foundation/communication/ipc/ipc/native/test/fuzztest/core/ipcprocessskeleton_fuzzer/ |
H A D | ipcprocessskeleton_fuzzer.cpp | 622 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(handle); in AddStubByIndexTest001() local 624 current->AddStubByIndex(stubObject); in AddStubByIndexTest001() 625 current->EraseStubIndex(stubObject); in AddStubByIndexTest001() 640 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(handle); in QueryStubByIndexTest001() local 641 current->AddStubByIndex(stubObject); in QueryStubByIndexTest001() 643 current->EraseStubIndex(stubObject); in QueryStubByIndexTest001() 667 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(handle); in QueryStubIndexTest001() local 668 current->QueryStubIndex(stubObject); in QueryStubIndexTest001() 682 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(handle); in QueryStubIndexTest002() local 684 current->AddStubByIndex(stubObject); in QueryStubIndexTest002() 700 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(handle); EraseStubIndexTest() local [all...] |
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/ |
H A D | avcodec_service_stub_mock.cpp | 54 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) in GetSubSystemAbility() 61 return mock->GetSubSystemAbility(subSystemId, listener, stubObject); in GetSubSystemAbility() 53 GetSubSystemAbility(IStandardAVCodecService::AVCodecSystemAbility subSystemId, const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) GetSubSystemAbility() argument
|
/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/ |
H A D | i_standard_avcodec_service.h | 37 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) = 0;
|
/foundation/multimedia/av_codec/services/services/sa_avcodec/server/include/ |
H A D | avcodec_server.h | 35 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) override;
|
/foundation/communication/ipc/ipc/native/src/mock/source/ |
H A D | dbinder_databus_invoker.cpp | 819 uint64_t DBinderDatabusInvoker::MakeStubIndexByRemoteObject(IRemoteObject *stubObject) in MakeStubIndexByRemoteObject() argument 827 if (!current->IsContainsObject(stubObject)) { in MakeStubIndexByRemoteObject() 832 uint64_t stubIndex = current->AddStubByIndex(stubObject); in MakeStubIndexByRemoteObject() 866 bool DBinderDatabusInvoker::ConnectRemoteObject2Session(IRemoteObject *stubObject, uint64_t stubIndex, in ConnectRemoteObject2Session() argument 887 AppAuthInfo appAuthInfo = { peerPid, peerUid, tokenId, 0, stubIndex, stubObject, deviceId }; in ConnectRemoteObject2Session() 890 stubObject->IncStrongRef(this); in ConnectRemoteObject2Session() 898 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(binder); in CreateServerSessionObject() local 899 if (stubObject == nullptr) { in CreateServerSessionObject() 904 uint64_t stubIndex = MakeStubIndexByRemoteObject(stubObject); in CreateServerSessionObject() 909 if (ConnectRemoteObject2Session(stubObject, stubInde in CreateServerSessionObject() [all...] |
H A D | binder_invoker.cpp | 1540 auto stubObject = reinterpret_cast<IRemoteObject *>(flat->cookie); in UnflattenObject() local 1541 if (!current->IsContainsObject(stubObject)) { in UnflattenObject() 1545 remoteObject = stubObject; in UnflattenObject()
|
/foundation/communication/ipc/ipc/native/src/mock/include/ |
H A D | dbinder_databus_invoker.h | 99 uint64_t MakeStubIndexByRemoteObject(IRemoteObject *stubObject); 102 bool ConnectRemoteObject2Session(IRemoteObject *stubObject, uint64_t stubIndex,
|
H A D | dbinder_base_invoker_process.h | 87 auto *stubObject = reinterpret_cast<IPCObjectStub *>(stub);
in ProcessTransaction() local 92 error = stubObject->SendRequest(tr->code, data, reply, option);
in ProcessTransaction()
|
/foundation/communication/ipc/ipc/native/src/core/include/ |
H A D | ipc_process_skeleton.h | 152 uint64_t QueryStubIndex(IRemoteObject *stubObject); 153 uint64_t AddStubByIndex(IRemoteObject *stubObject); 154 uint64_t EraseStubIndex(IRemoteObject *stubObject);
|
/foundation/communication/ipc/services/dbinder/test/unittest/ |
H A D | dbinder_service_stub_unittest.cpp | 728 sptr<IRemoteObject> stubObject = new DBinderServiceStub(service2, device2, object); in HWTEST_F() local 729 EXPECT_TRUE(stubObject != nullptr); in HWTEST_F() 731 bool result = dBinderServiceStub.Marshalling(parcel, stubObject); in HWTEST_F() 751 sptr<IRemoteObject> stubObject = dBinderServiceStub2; in HWTEST_F() local 754 bool result = dBinderServiceStub1.Marshalling(parcel, stubObject); in HWTEST_F()
|
/foundation/communication/ipc/ipc/native/c/rpc/include/ |
H A D | rpc_process_skeleton.h | 111 int32_t AddStubByIndex(StubObject *stubObject);
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_service_extension_ability/ |
H A D | js_ui_service_extension.cpp | 322 sptr<IRemoteObject> stubObject = nullptr; in OnConnect() local 324 stubObject = extensionStub_->AsObject(); in OnConnect() 328 return stubObject; in OnConnect() 345 return stubObject; in OnConnect()
|
/foundation/communication/ipc/ipc/native/c/rpc/src/ |
H A D | rpc_process_skeleton.c | 86 int32_t AddStubByIndex(StubObject *stubObject) in AddStubByIndex() argument 89 UtilsListAdd(&g_stubObjectList.stubObjects, &stubObject->list); in AddStubByIndex()
|
H A D | dbinder_invoker.c | 383 StubObject *stubObject = QueryStubByIndex(tr->cookie); in ProcessTransaction() local 384 if (stubObject == NULL) { in ProcessTransaction() 389 int32_t result = stubObject->func(tr->code, &data, &reply, option); in ProcessTransaction()
|
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_process_skeleton.cpp | 958 uint64_t IPCProcessSkeleton::AddStubByIndex(IRemoteObject *stubObject) in AddStubByIndex() argument 965 if (it->second == stubObject) { in AddStubByIndex() 970 auto result = stubObjects_.insert(std::pair<uint64_t, IRemoteObject *>(stubIndex, stubObject)); in AddStubByIndex() 978 uint64_t IPCProcessSkeleton::QueryStubIndex(IRemoteObject *stubObject) in QueryStubIndex() argument 984 if (it->second == stubObject) { in QueryStubIndex() 991 uint64_t IPCProcessSkeleton::EraseStubIndex(IRemoteObject *stubObject) in EraseStubIndex() argument 997 if (it->second == stubObject) { in EraseStubIndex()
|