mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-27 01:10:52 +00:00
commit
48a8584dee
@ -1286,14 +1286,14 @@ public:
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
virtual int32_t RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) = 0;
|
||||
virtual int32_t RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) = 0;
|
||||
|
||||
/**
|
||||
* @brief Unregister app debug listener.
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
virtual int32_t UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) = 0;
|
||||
virtual int32_t UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) = 0;
|
||||
|
||||
/**
|
||||
* @brief Attach app debug.
|
||||
|
@ -1018,14 +1018,14 @@ public:
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
int32_t RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) override;
|
||||
int32_t RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) override;
|
||||
|
||||
/**
|
||||
* @brief Unregister app debug listener.
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
int32_t UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) override;
|
||||
int32_t UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) override;
|
||||
|
||||
/**
|
||||
* @brief Attach app debug.
|
||||
|
@ -1330,14 +1330,14 @@ public:
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
int32_t RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) override;
|
||||
int32_t RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) override;
|
||||
|
||||
/**
|
||||
* @brief Unregister app debug listener.
|
||||
* @param listener App debug listener.
|
||||
* @return Returns ERR_OK on success, others on failure.
|
||||
*/
|
||||
int32_t UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener) override;
|
||||
int32_t UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener) override;
|
||||
|
||||
/**
|
||||
* @brief Attach app debug.
|
||||
|
@ -4440,7 +4440,7 @@ int AbilityManagerProxy::PrepareTerminateAbilityBySCB(const sptr<SessionInfo> &s
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
int32_t AbilityManagerProxy::RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
|
||||
int32_t AbilityManagerProxy::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
HILOG_DEBUG("Called.");
|
||||
MessageParcel data;
|
||||
@ -4464,7 +4464,7 @@ int32_t AbilityManagerProxy::RegisterAppDebugListener(const sptr<AppExecFwk::IAp
|
||||
return reply.ReadInt32();
|
||||
}
|
||||
|
||||
int32_t AbilityManagerProxy::UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
|
||||
int32_t AbilityManagerProxy::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
HILOG_DEBUG("Called.");
|
||||
MessageParcel data;
|
||||
|
@ -8829,7 +8829,7 @@ bool AbilityManagerService::CheckUserIdActive(int32_t userId)
|
||||
return true;
|
||||
}
|
||||
|
||||
int32_t AbilityManagerService::RegisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
|
||||
int32_t AbilityManagerService::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
HILOG_DEBUG("Called.");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
@ -8839,7 +8839,7 @@ int32_t AbilityManagerService::RegisterAppDebugListener(const sptr<AppExecFwk::I
|
||||
return DelayedSingleton<AppScheduler>::GetInstance()->RegisterAppDebugListener(listener);
|
||||
}
|
||||
|
||||
int32_t AbilityManagerService::UnregisterAppDebugListener(const sptr<AppExecFwk::IAppDebugListener> &listener)
|
||||
int32_t AbilityManagerService::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
HILOG_DEBUG("Called.");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
|
@ -324,8 +324,8 @@ public:
|
||||
commonMockResultFlag_ = flag;
|
||||
}
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -291,8 +291,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -173,8 +173,8 @@ public:
|
||||
void CompleteFirstFrameDrawing(const sptr<IRemoteObject>& abilityToken) override {}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
@ -340,8 +340,8 @@ public:
|
||||
void CompleteFirstFrameDrawing(const sptr<IRemoteObject>& abilityToken) override {}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -125,8 +125,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -281,8 +281,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -297,8 +297,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -263,8 +263,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -417,8 +417,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -402,8 +402,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(IsAbilityControllerStart, bool(const Want& want));
|
||||
|
@ -402,8 +402,8 @@ public:
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD2(PrepareTerminateAbilityBySCB, int32_t(const sptr<SessionInfo> &sessionInfo, bool &isPrepareTerminate));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(IsAbilityControllerStart, bool(const Want& want));
|
||||
|
@ -403,8 +403,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -394,8 +394,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -271,8 +271,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
@ -273,8 +273,8 @@ public:
|
||||
}
|
||||
#endif
|
||||
MOCK_METHOD2(IsValidMissionIds, int32_t(const std::vector<int32_t>&, std::vector<MissionValidResult>&));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(const sptr<AppExecFwk::IAppDebugListener> &listener));
|
||||
MOCK_METHOD1(RegisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(UnregisterAppDebugListener, int32_t(sptr<AppExecFwk::IAppDebugListener> listener));
|
||||
MOCK_METHOD1(AttachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD1(DetachAppDebug, int32_t(const std::string &bundleName));
|
||||
MOCK_METHOD3(ExecuteIntent, int32_t(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
|
Loading…
Reference in New Issue
Block a user