Home
last modified time | relevance | path

Searched refs:remoteObject (Results 1 – 25 of 161) sorted by relevance

1234567

/base/customization/enterprise_device_management/test/unittest/src/
Denterprise_admin_connection_test.cpp39 sptr<EnterpriseAdminStubMock> remoteObject {nullptr}; member in OHOS::EDM::TEST::EnterpriseAdminConnectionTest
44 remoteObject = new (std::nothrow) EnterpriseAdminStubMock(); in SetUp()
63 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
65 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
66 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
69 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_ADMIN_ENABLED);
88 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
90 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
91 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
94 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_ADMIN_DISABLED);
[all …]
Denterprise_bundle_connection_test.cpp38 sptr<EnterpriseAdminStubMock> remoteObject {nullptr}; member in OHOS::EDM::TEST::EnterpriseBundleConnectionTest
43 remoteObject = new (std::nothrow) EnterpriseAdminStubMock(); in SetUp()
62 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
64 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
65 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
67 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_BUNDLE_ADDED);
86 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
88 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
89 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
91 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_BUNDLE_REMOVED);
[all …]
Dedm_sys_manager_test.cpp58 …auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(ENTERPRISE_DEVICE_MANAGER_SA_ID); variable
59 ASSERT_TRUE(remoteObject != nullptr);
/base/hiviewdfx/hidumper/services/native/src/
Ddump_manager_client.cpp36 auto remoteObject = proxy_->AsObject(); in ~DumpManagerClient() local
37 if (remoteObject != nullptr) { in ~DumpManagerClient()
38 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~DumpManagerClient()
72 sptr<IRemoteObject> remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_ABILITY_ID); in Connect() local
73 if (remoteObject == nullptr) { in Connect()
74 ErrCode retStart = OnDemandStart(sam, remoteObject); in Connect()
75 if (remoteObject == nullptr || retStart != ERR_OK) { in Connect()
83 if ((remoteObject->IsProxyObject()) && (!remoteObject->AddDeathRecipient(deathRecipient_))) { in Connect()
86 proxy_ = iface_cast<IDumpBroker>(remoteObject); in Connect()
132 …umpManagerClient::OnDemandStart(sptr<ISystemAbilityManager> sam, sptr<IRemoteObject> &remoteObject) in OnDemandStart() argument
[all …]
Ddump_manager_cpu_client.cpp33 auto remoteObject = proxy_->AsObject(); in ~DumpManagerCpuClient() local
34 if (remoteObject != nullptr) { in ~DumpManagerCpuClient()
35 remoteObject->RemoveDeathRecipient(deathRecipient_); in ~DumpManagerCpuClient()
61 sptr<IRemoteObject> remoteObject = sam->CheckSystemAbility(DFX_SYS_HIDUMPER_CPU_ABILITY_ID); in Connect() local
62 if (remoteObject == nullptr) { in Connect()
71 if ((remoteObject->IsProxyObject()) && (!remoteObject->AddDeathRecipient(deathRecipient_))) { in Connect()
75 proxy_ = iface_cast<IDumpCpuBroker>(remoteObject); in Connect()
Ddump_on_demand_load.cpp27 …lback::OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() argument
31 ((remoteObject != nullptr) ? "succeed" : "failed")); in OnLoadSystemAbilitySuccess()
/base/security/code_signature/interfaces/innerkits/local_code_sign/src/
Dlocal_code_sign_load_callback.cpp31 int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() argument
34 systemAbilityId, (remoteObject != nullptr) ? "true" : "false"); in OnLoadSystemAbilitySuccess()
39 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess()
43 LocalCodeSignClient::GetInstance().FinishStartSA(remoteObject); in OnLoadSystemAbilitySuccess()
Dlocal_code_sign_client.cpp76 void LocalCodeSignClient::FinishStartSA(const sptr<IRemoteObject> &remoteObject) in FinishStartSA() argument
84 if (!remoteObject->AddDeathRecipient(localCodeSignSvrRecipient_)) { in FinishStartSA()
87 localCodeSignProxy_ = iface_cast<LocalCodeSignInterface>(remoteObject); in FinishStartSA()
114 auto remoteObject = samgr->CheckSystemAbility(LOCAL_CODE_SIGN_SA_ID); in CheckLocalCodeSignProxy() local
115 if (remoteObject != nullptr) { in CheckLocalCodeSignProxy()
116 localCodeSignProxy_ = iface_cast<LocalCodeSignInterface>(remoteObject); in CheckLocalCodeSignProxy()
166 sptr<IRemoteObject> remoteObject = remote.promote(); in OnRemoteLocalCodeSignSvrDied() local
167 if (remoteObject == nullptr) { in OnRemoteLocalCodeSignSvrDied()
172 if (localCodeSignProxy_->AsObject() != remoteObject) { in OnRemoteLocalCodeSignSvrDied()
/base/hiviewdfx/hisysevent/adapter/native/idl/src/
Dsys_event_service_stub.cpp35 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleAddSysEventListener() local
36 if (remoteObject == nullptr) { in HandleAddSysEventListener()
39 sptr<ISysEventCallback> callback = iface_cast<ISysEventCallback>(remoteObject); in HandleAddSysEventListener()
51 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleRemoveSysEventListener() local
52 if (remoteObject == nullptr) { in HandleRemoveSysEventListener()
55 sptr<ISysEventCallback> callback = iface_cast<ISysEventCallback>(remoteObject); in HandleRemoveSysEventListener()
82 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleQueryEvent() local
83 if (remoteObject == nullptr) { in HandleQueryEvent()
87 sptr<IQuerySysEventCallback> callback = iface_cast<IQuerySysEventCallback>(remoteObject); in HandleQueryEvent()
99 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleSetDebugMode() local
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_stub.cpp36 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleAddSysEventListener() local
37 if (remoteObject == nullptr) { in HandleAddSysEventListener()
40 sptr<ISysEventCallback> callback = iface_cast<ISysEventCallback>(remoteObject); in HandleAddSysEventListener()
52 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleRemoveSysEventListener() local
53 if (remoteObject == nullptr) { in HandleRemoveSysEventListener()
56 sptr<ISysEventCallback> callback = iface_cast<ISysEventCallback>(remoteObject); in HandleRemoveSysEventListener()
83 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleQueryEvent() local
84 if (remoteObject == nullptr) { in HandleQueryEvent()
88 sptr<IQuerySysEventCallback> callback = iface_cast<IQuerySysEventCallback>(remoteObject); in HandleQueryEvent()
100 sptr<IRemoteObject> remoteObject = data.ReadRemoteObject(); in HandleSetDebugMode() local
[all …]
/base/sensors/sensor/frameworks/native/sensor/src/
Dsensor_service_client.cpp57 auto remoteObject = sensorServer_->AsObject(); in ~SensorServiceClient() local
58 if (remoteObject != nullptr) { in ~SensorServiceClient()
59 remoteObject->RemoveDeathRecipient(serviceDeathObserver_); in ~SensorServiceClient()
85 auto remoteObject = sensorServer_->AsObject(); in InitServiceClient() local
86 CHKPR(remoteObject, SENSOR_NATIVE_GET_SERVICE_ERR); in InitServiceClient()
87 remoteObject->AddDeathRecipient(serviceDeathObserver_); in InitServiceClient()
181 auto remoteObject = sensorClientStub_->AsObject(); in TransferDataChannel() local
182 CHKPR(remoteObject, INVALID_POINTER); in TransferDataChannel()
183 ret = sensorServer_->TransferDataChannel(sensorDataChannel, remoteObject); in TransferDataChannel()
198 auto remoteObject = sensorClientStub_->AsObject(); in DestroyDataChannel() local
[all …]
/base/startup/init/device_info/
Ddevice_info_load.cpp28 const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
32 DINFO_CHECK(remoteObject != nullptr, return, "remoteObject is null."); in OnLoadSystemAbilitySuccess()
35 DeviceInfoKits::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess()
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/
Dsys_installer_load_callback.cpp26 const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() argument
29 ((remoteObject != nullptr) ? "true" : "false"); in OnLoadSystemAbilitySuccess()
34 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess()
/base/notification/common_event_service/services/test/unittest/
Dbundle_manager_helper_other_test.cpp75 sptr<IRemoteObject> remoteObject = sptr<IRemoteObject>(new MockCommonEventStub()); in HWTEST_F() local
76 bundleManagerHelper.sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject); in HWTEST_F()
92 sptr<IRemoteObject> remoteObject = sptr<IRemoteObject>(new MockCommonEventStub()); in HWTEST_F() local
93 bundleManagerHelper.sptrBundleMgr_ = iface_cast<IBundleMgr>(remoteObject); in HWTEST_F()
/base/security/security_component_manager/interfaces/inner_api/security_component/src/
Dsec_comp_load_callback.cpp30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
37 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess()
45 SecCompClient::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess()
Dsec_comp_client.cpp174 void SecCompClient::FinishStartSASuccess(const sptr<IRemoteObject>& remoteObject) in FinishStartSASuccess() argument
176 GetProxyFromRemoteObject(remoteObject); in FinishStartSASuccess()
212 void SecCompClient::GetProxyFromRemoteObject(const sptr<IRemoteObject>& remoteObject) in GetProxyFromRemoteObject() argument
214 if (remoteObject == nullptr) { in GetProxyFromRemoteObject()
224 if (!remoteObject->AddDeathRecipient(serviceDeathObserver)) { in GetProxyFromRemoteObject()
229 auto proxy = iface_cast<ISecCompService>(remoteObject); in GetProxyFromRemoteObject()
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
Ddlp_permission_load_callback.cpp30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
37 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess()
45 DlpPermissionClient::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess()
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_extension_ability_connection.cpp25 const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() argument
28 wallpaperService_.AddWallpaperExtensionDeathRecipient(remoteObject); in OnAbilityConnectDone()
/base/print/print_fwk/services/src/
Dprint_bms_helper.cpp74 auto remoteObject = helper_->GetBundleMgr(); in GetProxy() local
75 if (remoteObject == nullptr) { in GetProxy()
80 sptrBundleMgr_ = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetProxy()
91 remoteObject->AddDeathRecipient(printBMSDeath_); in GetProxy()
/base/location/services/location_locator/locator/source/
Dfusion_controller.cpp78 … sptr<IRemoteObject> remoteObject = CommonUtils::GetRemoteObject(LOCATION_NETWORK_LOCATING_SA_ID); in RequestQuickFix() local
79 if (remoteObject == nullptr) { in RequestQuickFix()
90 remoteObject->SendRequest(NETWORK_SELF_REQUEST, data, reply, option); in RequestQuickFix()
/base/sensors/miscdevice/frameworks/native/miscdevice/src/
Dlight_client.cpp40 auto remoteObject = miscdeviceProxy_->AsObject(); in ~LightClient() local
41 if (remoteObject != nullptr) { in ~LightClient()
42 remoteObject->RemoveDeathRecipient(serviceDeathObserver_); in ~LightClient()
65 auto remoteObject = miscdeviceProxy_->AsObject(); in InitLightClient() local
66 CHKPR(remoteObject, MISC_NATIVE_GET_SERVICE_ERR); in InitLightClient()
67 remoteObject->AddDeathRecipient(serviceDeathObserver_); in InitLightClient()
/base/startup/init/test/exec_test/
Dsa_service_ondemand_test.cpp29 …oadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) override;
34 const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument
37 ((remoteObject != nullptr) ? "succeed" : "failed") << endl; in OnLoadSystemAbilitySuccess()
/base/notification/common_event_service/services/src/
Dstatic_subscriber_connection.cpp24 const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() argument
27 proxy_ = new (std::nothrow) StaticSubscriberProxy(remoteObject); in OnAbilityConnectDone()
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_sync_load_callback_test.cpp54 const sptr<IRemoteObject> remoteObject; variable
55 printSyncLoadCallback.OnLoadSystemAbilitySuccess(systemAbilityId, remoteObject);
/base/customization/enterprise_device_management/services/edm/src/connection/
Denterprise_admin_connection.cpp25 …const AppExecFwk::ElementName& element, const sptr<IRemoteObject>& remoteObject, int32_t resultCod… in OnAbilityConnectDone() argument
28 proxy_ = (new (std::nothrow) EnterpriseAdminProxy(remoteObject)); in OnAbilityConnectDone()

1234567