Home
last modified time | relevance | path

Searched refs:stubObject (Results 1 – 25 of 36) sorted by relevance

12

/ohos5.0/foundation/multimedia/av_codec/services/services/sa_avcodec/server/
H A Davcodec_server.cpp103 … const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) in GetSubSystemAbility() argument
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", … in GetSubSystemAbility()
113 AVCodecServerManager::GetInstance().DestroyStubObject(*stubType, stubObject); in GetSubSystemAbility()
114 stubObject = nullptr; in GetSubSystemAbility()
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/small/
H A Dipc_stub_inner.c46 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()
/ohos5.0/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_process_skeleton_unittest.cpp869 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
906 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
910 auto ret = skeleton->AddStubByIndex(stubObject.GetRefPtr());
927 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
951 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
974 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
978 uint64_t ret = skeleton->EraseStubIndex(stubObject.GetRefPtr());
994 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
996 uint64_t ret = skeleton->EraseStubIndex(stubObject.GetRefPtr());
1378 sptr<IRemoteObject> stubObject = new IPCObjectStub(u"testObject"); variable
[all …]
/ohos5.0/foundation/communication/ipc/ipc/native/c/rpc/ipc_adapter/mini/
H A Dipc_proxy_inner.c101 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()
/ohos5.0/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dstub_collector.cpp80 HdfRemoteService **stubObject = constructor->second->constructor(servPtr); in StubCollectorGetOrNewObject() local
81 if (stubObject == nullptr) { in StubCollectorGetOrNewObject()
85 g_stubMap.insert(std::make_pair(servPtr, stubObject)); in StubCollectorGetOrNewObject()
86 return stubObject; in StubCollectorGetOrNewObject()
/ohos5.0/drivers/peripheral/wlan/hdi_service/
H A Dwlan_interface_drivers.c30 struct HdfRemoteService **stubObject; member
38 if (wlaninterfaceHost->service == NULL || wlaninterfaceHost->stubObject == NULL) { in WlanInterfaceDriverDispatch()
43 struct HdfRemoteService *stubObj = *wlaninterfaceHost->stubObject; in WlanInterfaceDriverDispatch()
99 wlaninterfaceHost->stubObject = stubObj; in HdfWlanInterfaceDriverBind()
/ohos5.0/drivers/peripheral/audio/effect/host/
H A Daudio_effect_driver.c29 struct HdfRemoteService **stubObject; member
42 if (effectModelHost->service == NULL || effectModelHost->stubObject == NULL) { in EffectModelDriverDispatch()
47 struct HdfRemoteService *stubObj = *effectModelHost->stubObject; in EffectModelDriverDispatch()
107 effectModelHost->stubObject = stubObj; in HdfEffectModelDriverBind()
/ohos5.0/drivers/peripheral/audio/hdi_service/primary/
H A Daudio_manager_driver.c30 struct HdfRemoteService **stubObject; member
43 if (audiomanagerHost->service == NULL || audiomanagerHost->stubObject == NULL) { in AudioManagerDriverDispatch()
48 struct HdfRemoteService *stubObj = *audiomanagerHost->stubObject; in AudioManagerDriverDispatch()
114 audiomanagerHost->stubObject = stubObj; in HdfAudioManagerDriverBind()
/ohos5.0/drivers/peripheral/wlan/hostapd/interfaces/hdi_service/
H A Dhostapd_interface_drivers.c32 struct HdfRemoteService **stubObject; member
45 …if (g_stop == 1 || hostapdinterfaceHost->service == NULL || hostapdinterfaceHost->stubObject == NU… in HostapdInterfaceDriverDispatch()
51 struct HdfRemoteService *stubObj = *hostapdinterfaceHost->stubObject; in HostapdInterfaceDriverDispatch()
105 hostapdinterfaceHost->stubObject = stubObj; in HdfHostapdInterfaceDriverBind()
/ohos5.0/drivers/peripheral/wlan/wpa/interfaces/hdi_service/
H A Dwpa_interface_drivers.c31 struct HdfRemoteService **stubObject; member
44 if (g_stop == 1 || wpainterfaceHost->service == NULL || wpainterfaceHost->stubObject == NULL) { in WpaInterfaceDriverDispatch()
50 struct HdfRemoteService *stubObj = *wpainterfaceHost->stubObject; in WpaInterfaceDriverDispatch()
104 wpainterfaceHost->stubObject = stubObj; in HdfWpaInterfaceDriverBind()
/ohos5.0/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/include/
H A Davcodec_service_stub.h39 … const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) = 0;
53 sptr<IRemoteObject> &stubObject));
64 … const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) override;
/ohos5.0/foundation/communication/ipc/ipc/native/test/fuzztest/core/ipcprocessskeleton_fuzzer/
H A Dipcprocessskeleton_fuzzer.cpp622 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()
668 current->QueryStubIndex(stubObject); in QueryStubIndexTest001()
684 current->AddStubByIndex(stubObject); in QueryStubIndexTest002()
685 current->QueryStubIndex(stubObject); in QueryStubIndexTest002()
686 current->EraseStubIndex(stubObject); in QueryStubIndexTest002()
[all …]
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/audio_effect_v1_0/c_target/audio/effect/v1_0/
H A Deffect_model_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/audio_v1_0/c_target/audio/v1_0/
H A Daudio_manager_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/audio_v2_0/c_target/audio/v2_0/
H A Daudio_manager_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_hostapd_v1_0/c_target/wlan/hostapd/v1_0/
H A Dhostapd_interface_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_0/c_target/wlan/v1_0/
H A Dwlan_interface_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_1/c_target/wlan/v1_1/
H A Dwlan_interface_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_v1_2/c_target/wlan/v1_2/
H A Dwlan_interface_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/wlan_wpa_v1_0/c_target/wlan/wpa/v1_0/
H A Dwpa_interface_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/hdi_all_interface_test_007/c_target/foo/v1_0/
H A Dfoo_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
H A Dfoo_ext_driver.c.txt30 struct HdfRemoteService **stubObject;
37 if (host->service == NULL || host->stubObject == NULL) {
42 struct HdfRemoteService *stubObj = *host->stubObject;
90 host->stubObject = stubObj;
/ohos5.0/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/
H A Davcodec_service_stub_mock.cpp54 … const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) in GetSubSystemAbility() argument
61 return mock->GetSubSystemAbility(subSystemId, listener, stubObject); in GetSubSystemAbility()
/ohos5.0/foundation/communication/ipc/ipc/native/src/mock/source/
H A Ddbinder_databus_invoker.cpp813 uint64_t DBinderDatabusInvoker::MakeStubIndexByRemoteObject(IRemoteObject *stubObject) in MakeStubIndexByRemoteObject() argument
821 if (!current->IsContainsObject(stubObject)) { in MakeStubIndexByRemoteObject()
826 uint64_t stubIndex = current->AddStubByIndex(stubObject); in MakeStubIndexByRemoteObject()
860 bool DBinderDatabusInvoker::ConnectRemoteObject2Session(IRemoteObject *stubObject, uint64_t stubInd… in ConnectRemoteObject2Session() argument
881 AppAuthInfo appAuthInfo = { peerPid, peerUid, tokenId, 0, stubIndex, stubObject, deviceId }; in ConnectRemoteObject2Session()
884 stubObject->IncStrongRef(this); in ConnectRemoteObject2Session()
892 IRemoteObject *stubObject = reinterpret_cast<IPCObjectStub *>(binder); in CreateServerSessionObject() local
893 if (stubObject == nullptr) { in CreateServerSessionObject()
898 uint64_t stubIndex = MakeStubIndexByRemoteObject(stubObject); in CreateServerSessionObject()
903 if (ConnectRemoteObject2Session(stubObject, stubIndex, sessionObject) != true) { in CreateServerSessionObject()
/ohos5.0/foundation/multimedia/av_codec/services/services/sa_avcodec/ipc/
H A Di_standard_avcodec_service.h37 const sptr<IRemoteObject> &listener, sptr<IRemoteObject> &stubObject) = 0;

12