!719 去掉int类型入参的const属性

Merge pull request !719 from wangdongdong/0207
This commit is contained in:
openharmony_ci 2022-02-14 11:33:15 +00:00 committed by Gitee
commit 12cec00f54
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
33 changed files with 38 additions and 38 deletions

View File

@ -117,7 +117,7 @@ public:
MOCK_METHOD1(GetPendinTerminateAbilityTestgRequestWant, void(int id));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD1(LockMissionForCleanup, int(int32_t missionId));
MOCK_METHOD1(UnlockMissionForCleanup, int(int32_t missionId));

View File

@ -349,7 +349,7 @@ public:
*
* @return
*/
virtual void NotifyContinuationResult(const int32_t result);
virtual void NotifyContinuationResult(int32_t result);
bool IsStageBasedModel() const;

View File

@ -313,7 +313,7 @@ public:
*
* @param result: Continuation result
*/
void NotifyContinuationResult(const int32_t result);
void NotifyContinuationResult(int32_t result);
/**
* @brief Converts the given uri that refer to the Data ability into a normalized URI. A normalized URI can be used

View File

@ -918,7 +918,7 @@ void AbilityImpl::ContinueAbility(const std::string& deviceId)
ability_->ContinueAbilityWithStack(deviceId);
}
void AbilityImpl::NotifyContinuationResult(const int32_t result)
void AbilityImpl::NotifyContinuationResult(int32_t result)
{
if (ability_ == nullptr) {
APP_LOGE("AbilityImpl::NotifyContinuationResult ability_ is nullptr");

View File

@ -1212,7 +1212,7 @@ void AbilityThread::ContinueAbility(const std::string& deviceId)
abilityImpl_->ContinueAbility(deviceId);
}
void AbilityThread::NotifyContinuationResult(const int32_t result)
void AbilityThread::NotifyContinuationResult(int32_t result)
{
APP_LOGI("NotifyContinuationResult, result:%{public}d", result);
if (abilityImpl_ == nullptr) {

View File

@ -125,7 +125,7 @@ public:
{
return std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>();
};
virtual void NotifyContinuationResult(const int32_t result) {};
virtual void NotifyContinuationResult(int32_t result) {};
virtual void ContinueAbility(const std::string& deviceId) {};
virtual void DumpAbilityInfo(std::vector<std::string> &info) {};
virtual sptr<IRemoteObject> CallRequest()
@ -135,4 +135,4 @@ public:
};
} // namespace AppExecFwk
} // namespace OHOS
#endif // FOUNDATION_APPEXECFWK_OHOS_ABILITY_NATIVE_MOCK_ABILITY_MANAGER_CLIENT_H
#endif // FOUNDATION_APPEXECFWK_OHOS_ABILITY_NATIVE_MOCK_ABILITY_MANAGER_CLIENT_H

View File

@ -137,7 +137,7 @@ public:
MOCK_METHOD1(GetPendinTerminateAbilityTestgRequestWant, void(int id));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -58,7 +58,7 @@ public:
MOCK_METHOD2(ScheduleUnregisterObserver, bool(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserver));
MOCK_METHOD1(ScheduleNotifyChange, bool(const Uri &uri));
MOCK_METHOD1(ExecuteBatch, std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>(const std::vector<std::shared_ptr<AppExecFwk::DataAbilityOperation>> &operation));
MOCK_METHOD1(NotifyContinuationResult, void(const int32_t result));
MOCK_METHOD1(NotifyContinuationResult, void(int32_t result));
MOCK_METHOD1(ContinueAbility, void(const std::string& deviceId));
MOCK_METHOD1(DumpAbilityInfo, void(std::vector<std::string> &info));
@ -71,4 +71,4 @@ public:
} // namespace AppExecFwk
} // namespace OHOS
#endif /* OHOS_APPEXECFWK_MOCK_ABILITY_SCHEDULER_FOR_OBESERVER_H */
#endif /* OHOS_APPEXECFWK_MOCK_ABILITY_SCHEDULER_FOR_OBESERVER_H */

View File

@ -114,7 +114,7 @@ public:
MOCK_METHOD1(SetMissionStackSetting, int(const StackSetting &stackSetting));
MOCK_METHOD1(GetPendinTerminateAbilityTestgRequestWant, void(int id));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -113,7 +113,7 @@ public:
MOCK_METHOD1(GetPendinTerminateAbilityTestgRequestWant, void(int id));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -544,7 +544,7 @@ public:
virtual void NotifyCompleteContinuation(const std::string &deviceId, int32_t sessionId, bool isSuccess) = 0;
virtual int NotifyContinuationResult(int32_t missionId, const int32_t result) = 0;
virtual int NotifyContinuationResult(int32_t missionId, int32_t result) = 0;
virtual int LockMissionForCleanup(int32_t missionId) = 0;

View File

@ -273,7 +273,7 @@ public:
virtual std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>> ExecuteBatch(
const std::vector<std::shared_ptr<AppExecFwk::DataAbilityOperation>> &operations) = 0;
virtual void ContinueAbility(const std::string& deviceId) = 0;
virtual void NotifyContinuationResult(const int32_t result) = 0;
virtual void NotifyContinuationResult(int32_t result) = 0;
virtual void DumpAbilityInfo(std::vector<std::string>& info) = 0;

View File

@ -519,7 +519,7 @@ public:
virtual void NotifyCompleteContinuation(const std::string &deviceId, int32_t sessionId, bool isSuccess) override;
virtual int NotifyContinuationResult(int32_t missionId, const int32_t result) override;
virtual int NotifyContinuationResult(int32_t missionId, int32_t result) override;
virtual int StartSyncRemoteMissions(const std::string& devId, bool fixConflict, int64_t tag) override;

View File

@ -215,7 +215,7 @@ public:
* @param result, continuation result.
* @return Returns ERR_OK on success, others on failure.
*/
virtual int NotifyContinuationResult(int32_t missionId, const int32_t result) override;
virtual int NotifyContinuationResult(int32_t missionId, int32_t result) override;
/**
* RegisterMissionListener, register remote device mission listener.

View File

@ -755,7 +755,7 @@ public:
void SetLaunchReason(const LaunchReason &reason);
void SetLastExitReason(const LastExitReason &reason);
void ContinueAbility(const std::string& deviceId);
void NotifyContinuationResult(const int32_t result);
void NotifyContinuationResult(int32_t result);
std::shared_ptr<MissionList> GetOwnedMissionList() const;
void SetUseNewMission();

View File

@ -297,7 +297,7 @@ public:
* @param The continuation result.
* @return
*/
void NotifyContinuationResult(const int32_t result) override;
void NotifyContinuationResult(int32_t result) override;
/**
* Dump Ability Runner info.

View File

@ -58,7 +58,7 @@ public:
void ForegroundNew(const Want &want, LifeCycleStateInfo &stateInfo);
void BackgroundNew(const Want &want, LifeCycleStateInfo &stateInfo);
void ContinueAbility(const std::string& deviceId);
void NotifyContinuationResult(const int32_t result);
void NotifyContinuationResult(int32_t result);
private:
sptr<IAbilityScheduler> GetScheduler();

View File

@ -1721,7 +1721,7 @@ void AbilityManagerProxy::NotifyCompleteContinuation(const std::string &deviceId
}
}
int AbilityManagerProxy::NotifyContinuationResult(int32_t missionId, const int32_t result)
int AbilityManagerProxy::NotifyContinuationResult(int32_t missionId, int32_t result)
{
MessageParcel data;
MessageParcel reply;

View File

@ -1051,7 +1051,7 @@ void AbilityManagerService::NotifyCompleteContinuation(const std::string &device
dmsClient.NotifyCompleteContinuation(Str8ToStr16(deviceId), sessionId, isSuccess);
}
int AbilityManagerService::NotifyContinuationResult(int32_t missionId, const int32_t result)
int AbilityManagerService::NotifyContinuationResult(int32_t missionId, int32_t result)
{
HILOG_INFO("Notify Continuation Result : %{public}d.", result);

View File

@ -1292,7 +1292,7 @@ void AbilityRecord::SetLastExitReason(const LastExitReason &reason)
lifeCycleStateInfo_.launchParam.lastExitReason = reason;
}
void AbilityRecord::NotifyContinuationResult(const int32_t result)
void AbilityRecord::NotifyContinuationResult(int32_t result)
{
HILOG_INFO("NotifyContinuationResult.");
CHECK_POINTER(lifecycleDeal_);

View File

@ -160,7 +160,7 @@ void LifecycleDeal::ContinueAbility(const std::string& deviceId)
abilityScheduler_->ContinueAbility(deviceId);
}
void LifecycleDeal::NotifyContinuationResult(const int32_t result)
void LifecycleDeal::NotifyContinuationResult(int32_t result)
{
HILOG_INFO("NotifyContinuationResult.");
auto abilityScheduler = GetScheduler();

View File

@ -97,7 +97,7 @@ public:
{
return std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>();
};
virtual void NotifyContinuationResult(const int32_t result) override
virtual void NotifyContinuationResult(int32_t result) override
{};
virtual void ContinueAbility(const std::string& deviceId) override
{};

View File

@ -41,7 +41,7 @@ public:
MOCK_METHOD3(ScheduleCommandAbility, void(const Want &, bool, int));
MOCK_METHOD1(NotifyTopActiveAbilityChanged, void(bool flag));
MOCK_METHOD2(NotifyMultiWinModeChanged, void(int32_t winModeKey, bool flag));
MOCK_METHOD1(NotifyContinuationResult, void(const int32_t result));
MOCK_METHOD1(NotifyContinuationResult, void(int32_t result));
MOCK_METHOD1(ContinueAbility, void(const std::string& deviceId));
MOCK_METHOD1(DumpAbilityInfo, void(std::vector<std::string> &info));
@ -150,4 +150,4 @@ public:
int code_ = 0;
};
} // namespace AAFwk
} // namespace OHOS
} // namespace OHOS

View File

@ -393,7 +393,7 @@ public:
MOCK_METHOD2(GetPendingRequestWant, int(const sptr<IWantSender> &target, std::shared_ptr<Want> &want));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -49,7 +49,7 @@ public:
MOCK_METHOD2(GetWantSenderInfo, int(const sptr<IWantSender> &target, std::shared_ptr<WantSenderInfo> &info));
MOCK_METHOD2(SetMissionLabel, int(const sptr<IRemoteObject> &token, const std::string &label));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -124,7 +124,7 @@ public:
return 0;
}
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -129,7 +129,7 @@ public:
{
return std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>();
}
virtual void NotifyContinuationResult(const int32_t result) override
virtual void NotifyContinuationResult(int32_t result) override
{}
virtual void ContinueAbility(const std::string& deviceId) override
{}
@ -143,4 +143,4 @@ public:
} // namespace AAFwk
} // namespace OHOS
#endif
#endif

View File

@ -268,7 +268,7 @@ public:
{
return 0;
}
int NotifyContinuationResult(int32_t missionId, const int32_t result) override
int NotifyContinuationResult(int32_t missionId, int32_t result) override
{
return 0;
}
@ -712,7 +712,7 @@ public:
{
return 0;
}
int NotifyContinuationResult(int32_t missionId, const int32_t result) override
int NotifyContinuationResult(int32_t missionId, int32_t result) override
{
return 0;
}

View File

@ -313,7 +313,7 @@ public:
{
return 0;
}
int NotifyContinuationResult(int32_t missionId, const int32_t result) override
int NotifyContinuationResult(int32_t missionId, int32_t result) override
{
return 0;
}

View File

@ -96,7 +96,7 @@ public:
MOCK_METHOD1(SetShowOnLockScreen, int(bool isAllow));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));

View File

@ -42,7 +42,7 @@ public:
ScheduleUnregisterObserver, bool(const Uri &uri, const sptr<AAFwk::IDataAbilityObserver> &dataObserver));
MOCK_METHOD1(ScheduleNotifyChange, bool(const Uri &uri));
MOCK_METHOD1(ExecuteBatch, std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>(const std::vector<std::shared_ptr<AppExecFwk::DataAbilityOperation>> &operations));
MOCK_METHOD1(NotifyContinuationResult, void(const int32_t result));
MOCK_METHOD1(NotifyContinuationResult, void(int32_t result));
MOCK_METHOD1(ContinueAbility, void(const std::string& deviceId));
MOCK_METHOD1(DumpAbilityInfo, void(std::vector<std::string> &info));
std::vector<std::string> GetFileTypes(const Uri &uri, const std::string &mimeTypeFilter)

View File

@ -51,7 +51,7 @@ public:
MOCK_METHOD1(ScheduleNotifyChange, bool(const Uri &uri));
MOCK_METHOD1(ExecuteBatch, std::vector<std::shared_ptr<AppExecFwk::DataAbilityResult>>(
const std::vector<std::shared_ptr<AppExecFwk::DataAbilityOperation>> &operations));
MOCK_METHOD1(NotifyContinuationResult, void(const int32_t result));
MOCK_METHOD1(NotifyContinuationResult, void(int32_t result));
MOCK_METHOD1(ContinueAbility, void(const std::string& deviceId));
MOCK_METHOD1(DumpAbilityInfo, void(std::vector<std::string> &info));

View File

@ -119,7 +119,7 @@ public:
MOCK_METHOD1(SetShowOnLockScreen, int(bool isAllow));
MOCK_METHOD1(GetSystemMemoryAttr, void(AppExecFwk::SystemMemoryAttr &memoryInfo));
MOCK_METHOD3(StartContinuation, int(const Want &want, const sptr<IRemoteObject> &abilityToken, int32_t status));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, const int32_t result));
MOCK_METHOD2(NotifyContinuationResult, int(int32_t missionId, int32_t result));
MOCK_METHOD5(ContinueMission, int(const std::string &srcDeviceId, const std::string &dstDeviceId,
int32_t missionId, const sptr<IRemoteObject> &callBack, AAFwk::WantParams &wantParams));
MOCK_METHOD2(ContinueAbility, int(const std::string &deviceId, int32_t missionId));