/base/customization/enterprise_device_management/test/unittest/services/edm/src/ |
H A D | enterprise_bundle_connection_test.cpp | 38 sptr<EnterpriseAdminStubMock> remoteObject {nullptr};
43 remoteObject = new (std::nothrow) EnterpriseAdminStubMock();
in SetUp() 62 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
in HWTEST_F() 64 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
in HWTEST_F() 65 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
in HWTEST_F() 67 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_BUNDLE_ADDED);
in HWTEST_F() 86 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
in HWTEST_F() 88 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
in HWTEST_F() 89 enterpriseBundleConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
in HWTEST_F() 91 EXPECT_TRUE(remoteObject in HWTEST_F() [all...] |
H A D | enterprise_admin_connection_test.cpp | 41 sptr<EnterpriseAdminStubMock> remoteObject {nullptr};
46 remoteObject = new (std::nothrow) EnterpriseAdminStubMock();
in SetUp() 65 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
in HWTEST_F() 67 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
in HWTEST_F() 68 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
in HWTEST_F() 71 EXPECT_TRUE(remoteObject->code_ == IEnterpriseAdmin::COMMAND_ON_ADMIN_ENABLED);
in HWTEST_F() 90 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _))
in HWTEST_F() 92 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest));
in HWTEST_F() 93 enterpriseAdminConnectionTest->OnAbilityConnectDone(admin, remoteObject, resultCode);
in HWTEST_F() 96 EXPECT_TRUE(remoteObject in HWTEST_F() [all...] |
H A D | enterprise_update_connection_test.cpp | 36 sptr<EnterpriseAdminStubMock> remoteObject {nullptr}; 41 remoteObject = new (std::nothrow) EnterpriseAdminStubMock(); in SetUp() 61 EXPECT_CALL(*remoteObject, SendRequest(_, _, _, _)) in HWTEST_F() 63 .WillOnce(Invoke(remoteObject.GetRefPtr(), &EnterpriseAdminStubMock::InvokeSendRequest)); in HWTEST_F() 64 enterpriseUpdateConnection->OnAbilityConnectDone(admin, remoteObject, resultCode); in HWTEST_F()
|
/base/security/code_signature/interfaces/innerkits/local_code_sign/src/ |
H A D | local_code_sign_load_callback.cpp | 31 int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject)
in OnLoadSystemAbilitySuccess() 33 LOG_INFO("load local code sign SA success, systemAbilityId:%{public}d, remoteObject result:%{public}s",
in OnLoadSystemAbilitySuccess() 34 systemAbilityId, (remoteObject != nullptr) ? "true" : "false");
in OnLoadSystemAbilitySuccess() 39 if (remoteObject == nullptr) {
in OnLoadSystemAbilitySuccess() 40 LOG_ERROR("remoteObject is nullptr");
in OnLoadSystemAbilitySuccess() 43 LocalCodeSignClient::GetInstance().FinishStartSA(remoteObject);
in OnLoadSystemAbilitySuccess() 30 OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) OnLoadSystemAbilitySuccess() argument
|
H A D | local_code_sign_client.cpp | 88 void LocalCodeSignClient::FinishStartSA(const sptr<IRemoteObject> &remoteObject)
in FinishStartSA() argument 96 if (!remoteObject->AddDeathRecipient(localCodeSignSvrRecipient_)) {
in FinishStartSA() 99 localCodeSignProxy_ = iface_cast<LocalCodeSignInterface>(remoteObject);
in FinishStartSA() 126 auto remoteObject = samgr->CheckSystemAbility(LOCAL_CODE_SIGN_SA_ID);
in CheckLocalCodeSignProxy() local 127 if (remoteObject != nullptr) {
in CheckLocalCodeSignProxy() 128 if (!remoteObject->AddDeathRecipient(localCodeSignSvrRecipient_)) {
in CheckLocalCodeSignProxy() 131 localCodeSignProxy_ = iface_cast<LocalCodeSignInterface>(remoteObject);
in CheckLocalCodeSignProxy() 187 sptr<IRemoteObject> remoteObject = remote.promote();
in OnRemoteLocalCodeSignSvrDied() local 188 if (remoteObject == nullptr) {
in OnRemoteLocalCodeSignSvrDied() 193 if (localCodeSignProxy_->AsObject() != remoteObject) {
in OnRemoteLocalCodeSignSvrDied() [all...] |
/base/customization/enterprise_device_management/common/external/src/ |
H A D | edm_bundle_manager_impl.cpp | 29 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetNameForUid() local 30 sptr<AppExecFwk::IBundleMgr> proxy = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetNameForUid() 43 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in QueryExtensionAbilityInfos() local 44 sptr<AppExecFwk::IBundleMgr> proxy = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in QueryExtensionAbilityInfos() 56 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(BUNDLE_MGR_SERVICE_SYS_ABILITY_ID); in GetBundleInfo() local 57 sptr<AppExecFwk::IBundleMgr> proxy = iface_cast<AppExecFwk::IBundleMgr>(remoteObject); in GetBundleInfo()
|
H A D | edm_app_manager_impl.cpp | 28 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(OHOS::APP_MGR_SERVICE_ID); in RegisterApplicationStateObserver() local 29 sptr<AppExecFwk::IAppMgr> proxy = iface_cast<AppExecFwk::IAppMgr>(remoteObject); in RegisterApplicationStateObserver() 41 auto remoteObject = EdmSysManager::GetRemoteObjectOfSystemAbility(OHOS::APP_MGR_SERVICE_ID); in UnregisterApplicationStateObserver() local 42 sptr<AppExecFwk::IAppMgr> proxy = iface_cast<AppExecFwk::IAppMgr>(remoteObject); in UnregisterApplicationStateObserver()
|
/base/hiviewdfx/hidumper/services/native/src/ |
H A D | dump_manager_client.cpp | 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() 76 DUMPER_HILOGE(MODULE_CLIENT, "remoteObject is nullptr."); in Connect() 85 if ((remoteObject->IsProxyObject()) && (!remoteObject->AddDeathRecipient(deathRecipient_))) { in Connect() 89 proxy_ = iface_cast<IDumpBroker>(remoteObject); in Connect() 135 ErrCode DumpManagerClient::OnDemandStart(sptr<ISystemAbilityManager> sam, sptr<IRemoteObject> &remoteObject) in OnDemandStart() argument 151 remoteObject in OnDemandStart() [all...] |
/base/security/access_token/services/common/window_manager/src/ |
H A D | privacy_window_manager_client.cpp | 133 sptr<IRemoteObject> remoteObject = systemAbilityManager->GetSystemAbility(WINDOW_MANAGER_SERVICE_ID); in InitSessionManagerServiceProxy() local 134 if (!remoteObject) { in InitSessionManagerServiceProxy() 138 mockSessionManagerServiceProxy_ = new PrivacyMockSessionManagerProxy(remoteObject); in InitSessionManagerServiceProxy() 164 sptr<IRemoteObject> remoteObject = sessionManagerServiceProxy_->GetSceneSessionManager(); in InitSceneSessionManagerProxy() local 165 if (!remoteObject) { in InitSceneSessionManagerProxy() 169 sceneSessionManagerProxy_ = new PrivacySceneSessionManagerProxy(remoteObject); in InitSceneSessionManagerProxy() 178 if (remoteObject->IsProxyObject() && !remoteObject->AddDeathRecipient(serviceDeathObserver_)) { in InitSceneSessionManagerProxy() 195 sptr<IRemoteObject> remoteObject = sessionManagerServiceProxy_->GetSceneSessionManagerLite(); in InitSceneSessionManagerLiteProxy() local 196 if (!remoteObject) { in InitSceneSessionManagerLiteProxy() [all...] |
/base/web/webview/sa/src/ |
H A D | app_fwk_update_client.cpp | 56 void AppFwkUpdateClient::SetFwkUpdate(const sptr<IRemoteObject>& remoteObject) in SetFwkUpdate() argument 59 fwkUpdateProxy_ = iface_cast<IAppFwkUpdateService>(remoteObject); in SetFwkUpdate() 157 void AppFwkUpdateClient::OnLoadSystemAbilitySuccess(const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() argument 164 if (!remoteObject->AddDeathRecipient(appFwkUpdateDiedRecipient_)) { in OnLoadSystemAbilitySuccess() 168 SetFwkUpdate(remoteObject); in OnLoadSystemAbilitySuccess() 182 void AppFwkUpdateClient::AppFwkUpdateDiedRecipient::OnRemoteDied(const wptr<IRemoteObject>& remoteObject) in OnRemoteDied() argument 184 if (remoteObject == nullptr) { in OnRemoteDied() 188 AppFwkUpdateClient::GetInstance().AppFwkUpdateOnRemoteDied(remoteObject); in OnRemoteDied() 191 void AppFwkUpdateClient::AppFwkUpdateOnRemoteDied(const wptr<IRemoteObject>& remoteObject) in AppFwkUpdateOnRemoteDied() argument 199 sptr<IRemoteObject> remotePromote = remoteObject in AppFwkUpdateOnRemoteDied() [all...] |
H A D | app_fwk_update_load_callback.cpp | 24 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() 31 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 32 WVLOG_E("remoteObject is nullptr"); in OnLoadSystemAbilitySuccess() 36 AppFwkUpdateClient::GetInstance().OnLoadSystemAbilitySuccess(remoteObject); in OnLoadSystemAbilitySuccess() 23 OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) OnLoadSystemAbilitySuccess() argument
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/ |
H A D | sys_event_service_stub.cpp | 36 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 in HandleSetDebugMode() local [all...] |
/base/update/sys_installer/interfaces/innerkits/ipc_client/src/ |
H A D | module_update_load_callback.cpp | 26 const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() 29 ((remoteObject != nullptr) ? "true" : "false"); in OnLoadSystemAbilitySuccess() 34 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 35 LOG(ERROR) << "remoteObject is null."; in OnLoadSystemAbilitySuccess() 25 OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) OnLoadSystemAbilitySuccess() argument
|
H A D | sys_installer_load_callback.cpp | 26 const sptr<IRemoteObject> &remoteObject) in OnLoadSystemAbilitySuccess() 29 ((remoteObject != nullptr) ? "true" : "false"); in OnLoadSystemAbilitySuccess() 34 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 35 LOG(ERROR) << "remoteObject is null."; in OnLoadSystemAbilitySuccess() 25 OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject> &remoteObject) OnLoadSystemAbilitySuccess() argument
|
/base/notification/common_event_service/services/src/ |
H A D | static_subscriber_connection.cpp | 25 const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) in OnAbilityConnectDone() 28 auto proxy = GetProxy(remoteObject); in OnAbilityConnectDone() 36 sptr<StaticSubscriberProxy> StaticSubscriberConnection::GetProxy(const sptr<IRemoteObject> &remoteObject) in GetProxy() argument 41 proxy_ = new (std::nothrow) StaticSubscriberProxy(remoteObject); in GetProxy() 24 OnAbilityConnectDone( const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int resultCode) OnAbilityConnectDone() argument
|
/base/notification/common_event_service/services/test/unittest/ |
H A D | bundle_manager_helper_other_test.cpp | 75 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/dlp_permission_service/interfaces/inner_api/dlp_permission/test/unittest/src/ |
H A D | dlp_permission_load_callback_test.cpp | 75 sptr<IRemoteObject> remoteObject = nullptr; in HWTEST_F() local 77 callback_.OnLoadSystemAbilitySuccess(systemAbilityId, remoteObject); in HWTEST_F() 81 callback_.OnLoadSystemAbilitySuccess(systemAbilityId, remoteObject); in HWTEST_F() 82 ASSERT_EQ(nullptr, remoteObject); in HWTEST_F()
|
/base/sensors/sensor/frameworks/native/src/ |
H A D | sensor_service_client.cpp | 64 auto remoteObject = sensorServer_->AsObject(); in ~SensorServiceClient() local 65 if (remoteObject != nullptr) { in ~SensorServiceClient() 66 remoteObject->RemoveDeathRecipient(serviceDeathObserver_); in ~SensorServiceClient() 94 auto remoteObject = sensorServer_->AsObject(); in InitServiceClient() local 95 CHKPR(remoteObject, SENSOR_NATIVE_GET_SERVICE_ERR); in InitServiceClient() 96 remoteObject->AddDeathRecipient(serviceDeathObserver_); in InitServiceClient() 211 auto remoteObject = sensorClientStub_->AsObject(); in TransferDataChannel() local 212 CHKPR(remoteObject, INVALID_POINTER); in TransferDataChannel() 213 ret = sensorServer_->TransferDataChannel(sensorDataChannel, remoteObject); in TransferDataChannel() 234 auto remoteObject in DestroyDataChannel() local 292 auto remoteObject = sensorClientStub_->AsObject(); ProcessDeathObserver() local 438 auto remoteObject = sensorClientStub_->AsObject(); Unregister() local 540 auto remoteObject = sensorClientStub_->AsObject(); HandleNetPacke() local [all...] |
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/ |
H A D | dlp_permission_load_callback.cpp | 30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() 37 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 38 DLP_LOG_ERROR(LABEL, "remoteObject is null."); in OnLoadSystemAbilitySuccess() 45 DlpPermissionClient::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess() 29 OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) OnLoadSystemAbilitySuccess() argument
|
/base/startup/init/device_info/ |
H A D | device_info_load.cpp | 28 const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() 32 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 39 DeviceInfoKits::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess() 27 OnLoadSystemAbilitySuccess(int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) OnLoadSystemAbilitySuccess() argument
|
/base/security/security_component_manager/frameworks/inner_api/security_component/src/ |
H A D | sec_comp_load_callback.cpp | 30 int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) in OnLoadSystemAbilitySuccess() 37 if (remoteObject == nullptr) { in OnLoadSystemAbilitySuccess() 38 SC_LOG_ERROR(LABEL, "remoteObject is null."); in OnLoadSystemAbilitySuccess() 45 SecCompClient::GetInstance().FinishStartSASuccess(remoteObject); in OnLoadSystemAbilitySuccess() 29 OnLoadSystemAbilitySuccess( int32_t systemAbilityId, const sptr<IRemoteObject>& remoteObject) OnLoadSystemAbilitySuccess() argument
|
/base/telephony/call_manager/services/spam_call/src/ |
H A D | spam_call_connection.cpp | 26 const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() 29 if (remoteObject == nullptr) { in OnAbilityConnectDone() 33 SpamCallProxy service(remoteObject); in OnAbilityConnectDone() 25 OnAbilityConnectDone(const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) OnAbilityConnectDone() argument
|
/base/useriam/user_auth_framework/services/base/src/ |
H A D | hdi_wrapper.cpp | 33 auto remoteObject = HDI::hdi_objcast<IUserAuthInterface>(hdi); in GetHdi() local 34 if (remoteObject != nullptr && !remoteObject->IsObjectDead()) { in GetHdi()
|
/base/telephony/call_manager/utils/src/ |
H A D | call_setting_ability_connection.cpp | 25 const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() 28 if (remoteObject == nullptr) { in OnAbilityConnectDone() 42 int32_t sendRequestRet = remoteObject->SendRequest(AAFwk::IAbilityConnection::ON_ABILITY_CONNECT_DONE, in OnAbilityConnectDone() 24 OnAbilityConnectDone(const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) OnAbilityConnectDone() argument
|
H A D | call_ability_connection.cpp | 25 const sptr<IRemoteObject> &remoteObject, int32_t resultCode) in OnAbilityConnectDone() 28 if (remoteObject == nullptr) { in OnAbilityConnectDone() 42 int32_t sendRequestRet = remoteObject->SendRequest(AAFwk::IAbilityConnection::ON_ABILITY_CONNECT_DONE, in OnAbilityConnectDone() 24 OnAbilityConnectDone(const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remoteObject, int32_t resultCode) OnAbilityConnectDone() argument
|