mirror of
https://gitee.com/openharmony/ability_ability_runtime
synced 2024-11-23 07:10:19 +00:00
IssueNo:
Description: Sig: SIG_ApplicationFramework Feature or Bugfix: Binary Source:No Signed-off-by: liqiang <liqiang121@huawei.com> Change-Id: I18f53652b4e89bfccd9139d5774bd6fa74ed99f2
This commit is contained in:
parent
8fa6c48590
commit
dfdc8993fb
@ -68,7 +68,7 @@ bool IsNormalObject(napi_env env, napi_value value)
|
||||
|
||||
napi_value CreateJsAutoStartupInfoArray(napi_env env, const std::vector<AutoStartupInfo> &infoList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
napi_value arrayObj = nullptr;
|
||||
napi_create_array(env, &arrayObj);
|
||||
for (size_t i = 0; i < infoList.size(); ++i) {
|
||||
@ -89,7 +89,7 @@ napi_value CreateJsAutoStartupInfoArray(napi_env env, const std::vector<AutoStar
|
||||
|
||||
napi_value CreateJsAutoStartupInfo(napi_env env, const AutoStartupInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
napi_value object = AppExecFwk::CreateJSObject(env);
|
||||
if (object == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "object is nullptr.");
|
||||
|
@ -41,7 +41,7 @@ constexpr const char *ON_OFF_TYPE_SYSTEM = "systemAutoStartup";
|
||||
|
||||
void JsAbilityAutoStartupManager::Finalizer(napi_env env, void *data, void *hint)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
std::unique_ptr<JsAbilityAutoStartupManager>(static_cast<JsAbilityAutoStartupManager *>(data));
|
||||
}
|
||||
|
||||
@ -82,7 +82,7 @@ bool JsAbilityAutoStartupManager::CheckCallerIsSystemApp()
|
||||
|
||||
napi_value JsAbilityAutoStartupManager::OnRegisterAutoStartupCallback(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (info.argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "The param is invalid.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -130,7 +130,7 @@ napi_value JsAbilityAutoStartupManager::OnRegisterAutoStartupCallback(napi_env e
|
||||
|
||||
napi_value JsAbilityAutoStartupManager::OnUnregisterAutoStartupCallback(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "OnUnregisterAutoStartupCallback Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "The argument is invalid.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -175,7 +175,7 @@ napi_value JsAbilityAutoStartupManager::OnUnregisterAutoStartupCallback(napi_env
|
||||
|
||||
napi_value JsAbilityAutoStartupManager::OnSetApplicationAutoStartup(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "OnSetApplicationAutoStartup Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "The argument is invalid.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -225,7 +225,7 @@ napi_value JsAbilityAutoStartupManager::OnSetApplicationAutoStartup(napi_env env
|
||||
|
||||
napi_value JsAbilityAutoStartupManager::OnCancelApplicationAutoStartup(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "OnCancelApplicationAutoStartup Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "The param is invalid.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -276,7 +276,7 @@ napi_value JsAbilityAutoStartupManager::OnCancelApplicationAutoStartup(napi_env
|
||||
|
||||
napi_value JsAbilityAutoStartupManager::OnQueryAllAutoStartupApplications(napi_env env, const NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (!CheckCallerIsSystemApp()) {
|
||||
ThrowError(env, AbilityErrorCode::ERROR_CODE_NOT_SYSTEM_APP);
|
||||
return CreateJsUndefined(env);
|
||||
@ -316,7 +316,7 @@ napi_value JsAbilityAutoStartupManager::OnQueryAllAutoStartupApplications(napi_e
|
||||
|
||||
napi_value JsAbilityAutoStartupManagerInit(napi_env env, napi_value exportObj)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (env == nullptr || exportObj == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "Env or exportObj nullptr.");
|
||||
return nullptr;
|
||||
|
@ -27,7 +27,7 @@ JSAbilityForegroundStateObserver::JSAbilityForegroundStateObserver(napi_env env)
|
||||
|
||||
void JSAbilityForegroundStateObserver::OnAbilityStateChanged(const AbilityStateData &abilityStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!valid_) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "The app manager may has destroyed.");
|
||||
return;
|
||||
@ -49,7 +49,7 @@ void JSAbilityForegroundStateObserver::OnAbilityStateChanged(const AbilityStateD
|
||||
|
||||
void JSAbilityForegroundStateObserver::HandleOnAbilityStateChanged(const AbilityStateData &abilityStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
for (auto &item : jsObserverObjectSet_) {
|
||||
if (item == nullptr) {
|
||||
continue;
|
||||
|
@ -148,7 +148,7 @@ private:
|
||||
|
||||
napi_value OnOn(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Not enough params.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -194,7 +194,7 @@ private:
|
||||
|
||||
napi_value OnOff(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Not enough params when off.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -232,7 +232,7 @@ private:
|
||||
|
||||
napi_value OnNotifyDebugAssertResult(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Not enough params when off.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -549,7 +549,7 @@ private:
|
||||
|
||||
napi_value OnGetForegroundUIAbilities(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
NapiAsyncTask::CompleteCallback complete = [](napi_env env, NapiAsyncTask &task, int32_t status) {
|
||||
std::vector<AppExecFwk::AbilityStateData> list;
|
||||
int32_t ret = AbilityManagerClient::GetInstance()->GetForegroundUIAbilities(list);
|
||||
@ -570,7 +570,7 @@ private:
|
||||
|
||||
napi_value OnSetResidentProcessEnabled(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Not enough params when off.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -620,7 +620,7 @@ private:
|
||||
|
||||
napi_value OnIsEmbeddedOpenAllowed(napi_env env, NapiCallbackInfo& info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (info.argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Not enough params");
|
||||
ThrowTooFewParametersError(env);
|
||||
|
@ -118,7 +118,7 @@ napi_value AbilityStateInit(napi_env env)
|
||||
|
||||
napi_value UserStatusInit(napi_env env)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
napi_value objValue = nullptr;
|
||||
napi_create_object(env, &objValue);
|
||||
|
||||
@ -131,7 +131,7 @@ napi_value UserStatusInit(napi_env env)
|
||||
|
||||
napi_value CreateJsAbilityStateData(napi_env env, const AbilityStateData &abilityStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
napi_value object = nullptr;
|
||||
napi_create_object(env, &object);
|
||||
if (object == nullptr) {
|
||||
|
@ -540,7 +540,7 @@ private:
|
||||
loopObserver_ = nullptr;
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "Remove loopObserver success");
|
||||
} else {
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "Unregister loopObserver Called.");
|
||||
TAG_LOGI(AAFwkTag::JSNAPI, "called");
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ void JSAbilityFirstFrameStateObserver::OnAbilityFirstFrameState(
|
||||
void JSAbilityFirstFrameStateObserver::HandleOnAbilityFirstFrameState(
|
||||
const AbilityFirstFrameStateData &AbilityFirstFrameStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
napi_value obj = jsObserverObject_->GetNapiValue();
|
||||
napi_value argv[] = { CreateJsAbilityFirstFrameStateData(env_, AbilityFirstFrameStateData) };
|
||||
CallJsFunction(obj, "onAbilityFirstFrameDrawn", argv, ARGC_ONE);
|
||||
@ -57,7 +57,7 @@ void JSAbilityFirstFrameStateObserver::HandleOnAbilityFirstFrameState(
|
||||
void JSAbilityFirstFrameStateObserver::CallJsFunction(
|
||||
const napi_value value, const char *methodName, const napi_value *argv, const size_t argc)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (value == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "value is nullptr.");
|
||||
return;
|
||||
@ -128,7 +128,7 @@ bool JSAbilityFirstFrameStateObserverManager::IsObserverObjectExist(const napi_v
|
||||
void JSAbilityFirstFrameStateObserverManager::RemoveAllJsObserverObjects(
|
||||
sptr<OHOS::AAFwk::IAbilityManager> &abilityManager)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (abilityManager == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "abilityManager is nullptr.");
|
||||
return;
|
||||
@ -144,7 +144,7 @@ void JSAbilityFirstFrameStateObserverManager::RemoveAllJsObserverObjects(
|
||||
void JSAbilityFirstFrameStateObserverManager::RemoveJsObserverObject(
|
||||
sptr<OHOS::AAFwk::IAbilityManager> &abilityManager, const napi_value &jsObserverObject)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (abilityManager == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "abilityManager is nullptr.");
|
||||
return;
|
||||
|
@ -27,7 +27,7 @@ JSAppForegroundStateObserver::JSAppForegroundStateObserver(napi_env env) : env_(
|
||||
|
||||
void JSAppForegroundStateObserver::OnAppStateChanged(const AppStateData &appStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!valid_) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "The app manager may has destroyed.");
|
||||
return;
|
||||
@ -49,7 +49,7 @@ void JSAppForegroundStateObserver::OnAppStateChanged(const AppStateData &appStat
|
||||
|
||||
void JSAppForegroundStateObserver::HandleOnAppStateChanged(const AppStateData &appStateData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(jsObserverObjectSetLock_);
|
||||
for (auto &item : jsObserverObjectSet_) {
|
||||
napi_value obj = item->GetNapiValue();
|
||||
|
@ -342,7 +342,7 @@ private:
|
||||
|
||||
napi_value OnOnForeground(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (argc < ARGC_TWO) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not enough params.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -582,7 +582,7 @@ private:
|
||||
|
||||
napi_value OnOffForeground(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not enough params when off.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -1226,7 +1226,7 @@ private:
|
||||
|
||||
napi_value OnIsApplicationRunning(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Params not match.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -1271,7 +1271,7 @@ private:
|
||||
|
||||
napi_value OnIsAppRunning(napi_env env, size_t argc, napi_value *argv)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Params not match.");
|
||||
ThrowTooFewParametersError(env);
|
||||
|
@ -34,7 +34,7 @@ constexpr size_t ARGC_TWO = 2;
|
||||
} // namespace
|
||||
void JsStartupManager::Finalizer(napi_env env, void *data, void *hint)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
std::unique_ptr<JsStartupManager>(static_cast<JsStartupManager *>(data));
|
||||
}
|
||||
|
||||
@ -204,7 +204,7 @@ napi_value JsStartupManager::OnRemoveResult(napi_env env, NapiCallbackInfo &info
|
||||
|
||||
napi_value JsStartupManagerInit(napi_env env, napi_value exportObj)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
if (env == nullptr || exportObj == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::STARTUP, "Env or exportObj nullptr.");
|
||||
return nullptr;
|
||||
|
@ -32,7 +32,7 @@ constexpr size_t ARGC_ONE = 1;
|
||||
|
||||
void JsAutoFillManager::Finalizer(napi_env env, void *data, void *hint)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
std::unique_ptr<JsAutoFillManager>(static_cast<JsAutoFillManager *>(data));
|
||||
}
|
||||
|
||||
@ -43,7 +43,7 @@ napi_value JsAutoFillManager::RequestAutoSave(napi_env env, napi_callback_info i
|
||||
|
||||
napi_value JsAutoFillManager::OnRequestAutoSave(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "The param is invalid.");
|
||||
ThrowTooFewParametersError(env);
|
||||
@ -141,7 +141,7 @@ void JsAutoFillManager::OnRequestAutoSaveDone(int32_t instanceId)
|
||||
|
||||
napi_value CreateJsAutoFillType(napi_env env)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
napi_value objValue = nullptr;
|
||||
napi_create_object(env, &objValue);
|
||||
|
||||
@ -192,7 +192,7 @@ napi_value CreateJsAutoFillType(napi_env env)
|
||||
|
||||
napi_value CreateJsPopupPlacement(napi_env env)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
napi_value objValue = nullptr;
|
||||
napi_create_object(env, &objValue);
|
||||
|
||||
@ -216,7 +216,7 @@ napi_value CreateJsPopupPlacement(napi_env env)
|
||||
|
||||
napi_value JsAutoFillManagerInit(napi_env env, napi_value exportObj)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (env == nullptr || exportObj == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Env or exportObj nullptr.");
|
||||
return nullptr;
|
||||
|
@ -35,7 +35,7 @@ JsAutoSaveRequestCallback::~JsAutoSaveRequestCallback() {}
|
||||
|
||||
void JsAutoSaveRequestCallback::OnSaveRequestSuccess()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
JSCallFunction(METHOD_ON_SAVE_REQUEST_SUCCESS);
|
||||
if (autoFillManagerFunc_ != nullptr) {
|
||||
autoFillManagerFunc_(instanceId_);
|
||||
@ -44,7 +44,7 @@ void JsAutoSaveRequestCallback::OnSaveRequestSuccess()
|
||||
|
||||
void JsAutoSaveRequestCallback::OnSaveRequestFailed()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
JSCallFunction(METHOD_ON_SAVE_REQUEST_FAILED);
|
||||
if (autoFillManagerFunc_ != nullptr) {
|
||||
autoFillManagerFunc_(instanceId_);
|
||||
@ -53,7 +53,7 @@ void JsAutoSaveRequestCallback::OnSaveRequestFailed()
|
||||
|
||||
void JsAutoSaveRequestCallback::Register(napi_value value)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (IsJsCallbackEquals(callback_, value)) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "The current callback already exists.");
|
||||
return;
|
||||
|
@ -793,7 +793,7 @@ void AbilityContextImpl::InsertResultCallbackTask(int requestCode, RuntimeTask &
|
||||
|
||||
void AbilityContextImpl::RemoveResultCallbackTask(int requestCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTEXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTEXT, "called");
|
||||
resultCallbacks_.erase(requestCode);
|
||||
}
|
||||
|
||||
@ -1041,7 +1041,7 @@ bool AbilityContextImpl::GetRestoreEnabled()
|
||||
|
||||
ErrCode AbilityContextImpl::OpenLink(const AAFwk::Want& want, int requestCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTEXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTEXT, "called");
|
||||
return AAFwk::AbilityManagerClient::GetInstance()->OpenLink(want, token_, -1, requestCode);
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
|
@ -90,12 +90,12 @@ UIAbility *CJUIAbility::Create(const std::unique_ptr<Runtime> &runtime)
|
||||
|
||||
CJUIAbility::CJUIAbility(CJRuntime &cjRuntime) : cjRuntime_(cjRuntime)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
CJUIAbility::~CJUIAbility()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (abilityContext_ != nullptr) {
|
||||
abilityContext_->Unbind();
|
||||
}
|
||||
@ -668,7 +668,7 @@ int32_t CJUIAbility::OnSaveState(int32_t reason, WantParams &wantParams)
|
||||
void CJUIAbility::OnConfigurationUpdated(const Configuration &configuration)
|
||||
{
|
||||
UIAbility::OnConfigurationUpdated(configuration);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
auto fullConfig = GetAbilityContext()->GetConfiguration();
|
||||
if (!fullConfig) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "configuration is nullptr.");
|
||||
@ -687,12 +687,12 @@ void CJUIAbility::OnConfigurationUpdated(const Configuration &configuration)
|
||||
void CJUIAbility::OnMemoryLevel(int level)
|
||||
{
|
||||
UIAbility::OnMemoryLevel(level);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void CJUIAbility::UpdateContextConfiguration()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void CJUIAbility::OnNewWant(const Want &want)
|
||||
@ -763,7 +763,7 @@ std::shared_ptr<AppExecFwk::ADelegatorAbilityProperty> CJUIAbility::CreateADeleg
|
||||
void CJUIAbility::Dump(const std::vector<std::string> ¶ms, std::vector<std::string> &info)
|
||||
{
|
||||
UIAbility::Dump(params, info);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (!cjAbilityObj_) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "CJAbility is not loaded.");
|
||||
return;
|
||||
@ -774,7 +774,7 @@ void CJUIAbility::Dump(const std::vector<std::string> ¶ms, std::vector<std::
|
||||
|
||||
std::shared_ptr<CJAbilityObject> CJUIAbility::GetCJAbility()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (cjAbilityObj_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "cjAbility object is nullptr.");
|
||||
}
|
||||
|
@ -146,13 +146,13 @@ UIAbility *JsUIAbility::Create(const std::unique_ptr<Runtime> &runtime)
|
||||
|
||||
JsUIAbility::JsUIAbility(JsRuntime &jsRuntime) : jsRuntime_(jsRuntime)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
JsUIAbility::~JsUIAbility()
|
||||
{
|
||||
//"maintenance log
|
||||
TAG_LOGI(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGI(AAFwkTag::UIABILITY, "called");
|
||||
if (abilityContext_ != nullptr) {
|
||||
abilityContext_->Unbind();
|
||||
}
|
||||
@ -892,7 +892,7 @@ void JsUIAbility::RequestFocus(const Want &want)
|
||||
|
||||
void JsUIAbility::ContinuationRestore(const Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (!IsRestoredInContinuation() || scene_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Is not in continuation or scene_ is nullptr.");
|
||||
return;
|
||||
@ -904,7 +904,7 @@ void JsUIAbility::ContinuationRestore(const Want &want)
|
||||
|
||||
std::shared_ptr<NativeReference> JsUIAbility::GetJsWindowStage()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (jsWindowStageObj_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "JsWindowSatge is nullptr.");
|
||||
}
|
||||
@ -1157,7 +1157,7 @@ void JsUIAbility::OnConfigurationUpdated(const Configuration &configuration)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
UIAbility::OnConfigurationUpdated(configuration);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (abilityContext_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "abilityContext_ is nullptr.");
|
||||
return;
|
||||
@ -1181,7 +1181,7 @@ void JsUIAbility::OnConfigurationUpdated(const Configuration &configuration)
|
||||
void JsUIAbility::OnMemoryLevel(int level)
|
||||
{
|
||||
UIAbility::OnMemoryLevel(level);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
auto env = jsRuntime_.GetNapiEnv();
|
||||
@ -1202,7 +1202,7 @@ void JsUIAbility::OnMemoryLevel(int level)
|
||||
|
||||
void JsUIAbility::UpdateContextConfiguration()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (abilityContext_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "abilityContext_ is nullptr.");
|
||||
return;
|
||||
@ -1486,7 +1486,7 @@ std::shared_ptr<AppExecFwk::ADelegatorAbilityProperty> JsUIAbility::CreateADeleg
|
||||
void JsUIAbility::Dump(const std::vector<std::string> ¶ms, std::vector<std::string> &info)
|
||||
{
|
||||
UIAbility::Dump(params, info);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
auto env = jsRuntime_.GetNapiEnv();
|
||||
// create js array object of params
|
||||
@ -1534,7 +1534,7 @@ void JsUIAbility::GetDumpInfo(
|
||||
|
||||
std::shared_ptr<NativeReference> JsUIAbility::GetJsAbility()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (jsAbilityObj_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "JsAbility object is nullptr.");
|
||||
}
|
||||
@ -1569,7 +1569,7 @@ sptr<IRemoteObject> JsUIAbility::SetNewRuleFlagToCallee(napi_env env, napi_value
|
||||
#ifdef SUPPORT_SCREEN
|
||||
void JsUIAbility::UpdateJsWindowStage(napi_value windowStage)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (shellContextRef_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "shellContextRef_ is nullptr.");
|
||||
return;
|
||||
|
@ -25,7 +25,7 @@ namespace OHOS {
|
||||
namespace AbilityRuntime {
|
||||
AutoFillExtension *AutoFillExtension::Create(const std::unique_ptr<Runtime> &runtime)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (runtime == nullptr) {
|
||||
return new AutoFillExtension();
|
||||
}
|
||||
@ -41,7 +41,7 @@ void AutoFillExtension::Init(const std::shared_ptr<AbilityLocalRecord> &record,
|
||||
const std::shared_ptr<OHOSApplication> &application, std::shared_ptr<AbilityHandler> &handler,
|
||||
const sptr<IRemoteObject> &token)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
ExtensionBase<AutoFillExtensionContext>::Init(record, application, handler, token);
|
||||
}
|
||||
|
||||
|
@ -33,7 +33,7 @@ void AutoFillExtensionContext::SetSessionInfo(const wptr<AAFwk::SessionInfo> &se
|
||||
|
||||
int32_t AutoFillExtensionContext::ReloadInModal(const CustomData &customData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
auto sessionInfo = sessionInfo_.promote();
|
||||
if (sessionInfo == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Session info is nullptr.");
|
||||
|
@ -57,7 +57,7 @@ constexpr const char *WANT_PARAMS_AUTO_FILL_POPUP_WINDOW_KEY = "ohos.ability.par
|
||||
}
|
||||
napi_value AttachAutoFillExtensionContext(napi_env env, void *value, void *)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (value == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Invalid parameter.");
|
||||
return nullptr;
|
||||
@ -125,7 +125,7 @@ void JsAutoFillExtension::Init(const std::shared_ptr<AbilityLocalRecord> &record
|
||||
const std::shared_ptr<OHOSApplication> &application, std::shared_ptr<AbilityHandler> &handler,
|
||||
const sptr<IRemoteObject> &token)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
AutoFillExtension::Init(record, application, handler, token);
|
||||
if (abilityInfo_ == nullptr || abilityInfo_->srcEntrance.empty()) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Init ability info failed.");
|
||||
@ -164,7 +164,7 @@ void JsAutoFillExtension::Init(const std::shared_ptr<AbilityLocalRecord> &record
|
||||
|
||||
void JsAutoFillExtension::BindContext(napi_env env, napi_value obj)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
auto context = GetContext();
|
||||
if (context == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Failed to get context.");
|
||||
@ -208,7 +208,7 @@ void JsAutoFillExtension::BindContext(napi_env env, napi_value obj)
|
||||
|
||||
void JsAutoFillExtension::OnStart(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
Extension::OnStart(want);
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
napi_env env = jsRuntime_.GetNapiEnv();
|
||||
@ -219,7 +219,7 @@ void JsAutoFillExtension::OnStart(const AAFwk::Want &want)
|
||||
|
||||
void JsAutoFillExtension::OnStop()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
AutoFillExtension::OnStop();
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
CallObjectMethod("onDestroy");
|
||||
@ -228,7 +228,7 @@ void JsAutoFillExtension::OnStop()
|
||||
|
||||
void JsAutoFillExtension::OnStop(AppExecFwk::AbilityTransactionCallbackInfo<> *callbackInfo, bool &isAsyncCallback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (callbackInfo == nullptr) {
|
||||
isAsyncCallback = false;
|
||||
OnStop();
|
||||
@ -263,7 +263,7 @@ void JsAutoFillExtension::OnStop(AppExecFwk::AbilityTransactionCallbackInfo<> *c
|
||||
|
||||
void JsAutoFillExtension::OnStopCallBack()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
auto context = GetContext();
|
||||
if (context == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Failed to get context.");
|
||||
@ -346,7 +346,7 @@ bool JsAutoFillExtension::CallPromise(napi_value result, AppExecFwk::AbilityTran
|
||||
void JsAutoFillExtension::OnCommandWindow(
|
||||
const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Session info is nullptr.");
|
||||
return;
|
||||
@ -373,7 +373,7 @@ void JsAutoFillExtension::OnCommandWindow(
|
||||
|
||||
void JsAutoFillExtension::OnCommandWindowDone(const sptr<AAFwk::SessionInfo> &sessionInfo, AAFwk::WindowCommand winCmd)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
auto context = GetContext();
|
||||
if (context == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Failed to get context.");
|
||||
@ -412,7 +412,7 @@ void JsAutoFillExtension::OnCommand(const AAFwk::Want &want, bool restart, int s
|
||||
|
||||
void JsAutoFillExtension::OnForeground(const Want &want, sptr<AAFwk::SessionInfo> sessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
Extension::OnForeground(want, sessionInfo);
|
||||
ForegroundWindow(want, sessionInfo);
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
@ -421,7 +421,7 @@ void JsAutoFillExtension::OnForeground(const Want &want, sptr<AAFwk::SessionInfo
|
||||
|
||||
void JsAutoFillExtension::OnBackground()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
CallObjectMethod("onBackground");
|
||||
Extension::OnBackground();
|
||||
@ -429,7 +429,7 @@ void JsAutoFillExtension::OnBackground()
|
||||
|
||||
int32_t JsAutoFillExtension::OnReloadInModal(const sptr<AAFwk::SessionInfo> &sessionInfo, const CustomData &customData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (!isPopup_) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "The current window type is not popup.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -462,7 +462,7 @@ int32_t JsAutoFillExtension::OnReloadInModal(const sptr<AAFwk::SessionInfo> &ses
|
||||
|
||||
void JsAutoFillExtension::UpdateRequest(const AAFwk::WantParams &wantParams)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
napi_env env = jsRuntime_.GetNapiEnv();
|
||||
napi_value request = JsAutoFillExtensionUtil::WrapUpdateRequest(wantParams, env);
|
||||
@ -476,7 +476,7 @@ void JsAutoFillExtension::UpdateRequest(const AAFwk::WantParams &wantParams)
|
||||
|
||||
bool JsAutoFillExtension::HandleAutoFillCreate(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Invalid session info.");
|
||||
return false;
|
||||
@ -515,7 +515,7 @@ bool JsAutoFillExtension::HandleAutoFillCreate(const AAFwk::Want &want, const sp
|
||||
|
||||
void JsAutoFillExtension::ForegroundWindow(const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "sessionInfo is nullptr.");
|
||||
return;
|
||||
@ -553,7 +553,7 @@ void JsAutoFillExtension::ForegroundWindow(const AAFwk::Want &want, const sptr<A
|
||||
|
||||
void JsAutoFillExtension::BackgroundWindow(const sptr<AAFwk::SessionInfo> &sessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Invalid sessionInfo.");
|
||||
return;
|
||||
@ -572,7 +572,7 @@ void JsAutoFillExtension::BackgroundWindow(const sptr<AAFwk::SessionInfo> &sessi
|
||||
|
||||
void JsAutoFillExtension::DestroyWindow(const sptr<AAFwk::SessionInfo> &sessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr || sessionInfo->sessionToken == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Invalid sessionInfo.");
|
||||
return;
|
||||
@ -633,7 +633,7 @@ napi_value JsAutoFillExtension::CallObjectMethod(const char *name, napi_value co
|
||||
void JsAutoFillExtension::CallJsOnRequest(
|
||||
const AAFwk::Want &want, const sptr<AAFwk::SessionInfo> &sessionInfo, const sptr<Rosen::Window> &uiWindow)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (sessionInfo == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "sessionInfo is nullptr.");
|
||||
return;
|
||||
@ -684,7 +684,7 @@ void JsAutoFillExtension::CallJsOnRequest(
|
||||
|
||||
void JsAutoFillExtension::RegisterTransferComponentDataListener(const sptr<Rosen::Window> &uiWindow)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (uiWindow == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Invalid ui window object.");
|
||||
return;
|
||||
|
@ -31,7 +31,7 @@ constexpr size_t ARGC_ONE = 1;
|
||||
}
|
||||
void JsAutoFillExtensionContext::Finalizer(napi_env env, void *data, void *hint)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
std::unique_ptr<JsAutoFillExtensionContext>(static_cast<JsAutoFillExtensionContext*>(data));
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ napi_value JsAutoFillExtensionContext::ReloadInModal(napi_env env, napi_callback
|
||||
|
||||
napi_value JsAutoFillExtensionContext::OnReloadInModal(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Not enough params");
|
||||
ThrowError(env, AbilityErrorCode::ERROR_CODE_INVALID_PARAM);
|
||||
@ -94,7 +94,7 @@ napi_value JsAutoFillExtensionContext::OnReloadInModal(napi_env env, NapiCallbac
|
||||
napi_value JsAutoFillExtensionContext::CreateJsAutoFillExtensionContext(
|
||||
napi_env env, const std::shared_ptr<AutoFillExtensionContext> &context)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
std::shared_ptr<OHOS::AppExecFwk::AbilityInfo> abilityInfo = nullptr;
|
||||
if (context != nullptr) {
|
||||
abilityInfo = context->GetAbilityInfo();
|
||||
|
@ -59,7 +59,7 @@ constexpr uint32_t PAGE_NODE_COUNT_MAX = 100;
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapViewData(const napi_env env, const AbilityBase::ViewData &viewData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
napi_value jsValue = nullptr;
|
||||
@ -103,7 +103,7 @@ napi_value JsAutoFillExtensionUtil::WrapViewData(const napi_env env, const Abili
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapCustomData(const napi_env env, const AAFwk::WantParams ¶m)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
napi_value jsValue = nullptr;
|
||||
@ -114,7 +114,7 @@ napi_value JsAutoFillExtensionUtil::WrapCustomData(const napi_env env, const AAF
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapPageNodeInfo(const napi_env env, const AbilityBase::PageNodeInfo &pageNodeInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
napi_value jsValue = nullptr;
|
||||
@ -153,7 +153,7 @@ napi_value JsAutoFillExtensionUtil::WrapPageNodeInfo(const napi_env env, const A
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapRectData(const napi_env env, const AbilityBase::Rect &rect)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
napi_value jsValue = nullptr;
|
||||
@ -175,7 +175,7 @@ napi_value JsAutoFillExtensionUtil::WrapRectData(const napi_env env, const Abili
|
||||
void JsAutoFillExtensionUtil::UnwrapViewData(
|
||||
const napi_env env, const napi_value value, AbilityBase::ViewData &viewData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsViewData = GetPropertyValueByPropertyName(env, value, VIEW_DATA_VIEW_DATA, napi_object);
|
||||
if (jsViewData == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Get ViewData from JS failed");
|
||||
@ -216,7 +216,7 @@ void JsAutoFillExtensionUtil::UnwrapViewData(
|
||||
void JsAutoFillExtensionUtil::UnwrapPageNodeInfo(
|
||||
const napi_env env, const napi_value jsNode, AbilityBase::PageNodeInfo &node)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
UnwrapInt32ByPropertyName(env, jsNode, PAGE_INFO_ID, node.id);
|
||||
UnwrapInt32ByPropertyName(env, jsNode, PAGE_INFO_DEPTH, node.depth);
|
||||
int32_t type;
|
||||
@ -235,7 +235,7 @@ void JsAutoFillExtensionUtil::UnwrapPageNodeInfo(
|
||||
void JsAutoFillExtensionUtil::UnwrapRectData(
|
||||
const napi_env env, const napi_value value, AbilityBase::Rect &rect)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
int32_t position;
|
||||
UnwrapInt32ByPropertyName(env, value, RECT_POSITION_LEFT, position);
|
||||
rect.left = position;
|
||||
@ -252,7 +252,7 @@ void JsAutoFillExtensionUtil::UnwrapRectData(
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapFillRequest(const AAFwk::Want &want, const napi_env env)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
if (jsObject == nullptr) {
|
||||
@ -308,7 +308,7 @@ napi_value JsAutoFillExtensionUtil::WrapFillRequest(const AAFwk::Want &want, con
|
||||
|
||||
napi_value JsAutoFillExtensionUtil::WrapUpdateRequest(const AAFwk::WantParams &wantParams, const napi_env env)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value jsObject = nullptr;
|
||||
NAPI_CALL(env, napi_create_object(env, &jsObject));
|
||||
if (jsObject == nullptr) {
|
||||
@ -331,7 +331,7 @@ napi_value JsAutoFillExtensionUtil::WrapUpdateRequest(const AAFwk::WantParams &w
|
||||
|
||||
void JsAutoFillExtensionUtil::UnwrapFillResponse(const napi_env env, const napi_value value, FillResponse &response)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
UnwrapViewData(env, value, response.viewData);
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ napi_value JsFillRequestCallback::FillRequestAutoFillPopupConfig(napi_env env, n
|
||||
|
||||
napi_value JsFillRequestCallback::OnFillRequestSuccess(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (info.argc < ARGC_ONE || !IsTypeForNapiValue(env, info.argv[INDEX_ZERO], napi_object)) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "Failed to parse viewData JsonString!");
|
||||
ThrowError(env, static_cast<int32_t>(AbilityErrorCode::ERROR_CODE_INVALID_PARAM), ERROR_MSG_VIEWDATA_INVALID);
|
||||
@ -114,14 +114,14 @@ napi_value JsFillRequestCallback::OnFillRequestSuccess(napi_env env, NapiCallbac
|
||||
|
||||
napi_value JsFillRequestCallback::OnFillRequestFailed(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_FAILED, "");
|
||||
return CreateJsUndefined(env);
|
||||
}
|
||||
|
||||
napi_value JsFillRequestCallback::OnFillRequestCanceled(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (info.argc < ARGC_ONE) {
|
||||
SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_CANCEL, "");
|
||||
return CreateJsUndefined(env);
|
||||
@ -147,7 +147,7 @@ napi_value JsFillRequestCallback::OnFillRequestCanceled(napi_env env, NapiCallba
|
||||
|
||||
napi_value JsFillRequestCallback::OnFillRequestAutoFillPopupConfig(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
auto selfToken = IPCSkeleton::GetSelfTokenID();
|
||||
if (!Security::AccessToken::TokenIdKit::IsSystemAppByFullTokenID(selfToken)) {
|
||||
TAG_LOGE(AAFwkTag::CONTEXT, "This application is not system-app, can not use system-api");
|
||||
@ -207,7 +207,7 @@ bool JsFillRequestCallback::SetPopupConfigToWantParams(
|
||||
void JsFillRequestCallback::SendResultCodeAndViewData(
|
||||
const JsAutoFillExtensionUtil::AutoFillResultCode &resultCode, const std::string &jsString)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (uiWindow_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "UiWindow is nullptr.");
|
||||
return;
|
||||
@ -238,7 +238,7 @@ void JsFillRequestCallback::SendResultCodeAndViewData(
|
||||
napi_value JsFillRequestCallback::CreateJsFillRequestCallback(napi_env env,
|
||||
const sptr<AAFwk::SessionInfo> &sessionInfo, const sptr<Rosen::Window> &uiWindow)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value object = nullptr;
|
||||
napi_create_object(env, &object);
|
||||
if (object == nullptr) {
|
||||
|
@ -55,21 +55,21 @@ napi_value JsSaveRequestCallback::SaveRequestFailed(napi_env env, napi_callback_
|
||||
|
||||
napi_value JsSaveRequestCallback::OnSaveRequestSuccess(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_SUCESS);
|
||||
return CreateJsUndefined(env);
|
||||
}
|
||||
|
||||
napi_value JsSaveRequestCallback::OnSaveRequestFailed(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
SendResultCodeAndViewData(JsAutoFillExtensionUtil::AutoFillResultCode::CALLBACK_FAILED);
|
||||
return CreateJsUndefined(env);
|
||||
}
|
||||
|
||||
void JsSaveRequestCallback::SendResultCodeAndViewData(const JsAutoFillExtensionUtil::AutoFillResultCode &resultCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
if (uiWindow_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILL_EXT, "UI window is nullptr.");
|
||||
return;
|
||||
@ -91,7 +91,7 @@ void JsSaveRequestCallback::SendResultCodeAndViewData(const JsAutoFillExtensionU
|
||||
napi_value JsSaveRequestCallback::CreateJsSaveRequestCallback(napi_env env,
|
||||
const sptr<AAFwk::SessionInfo> &sessionInfo, const sptr<Rosen::Window> &uiWindow)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILL_EXT, "called");
|
||||
napi_value object = nullptr;
|
||||
napi_create_object(env, &object);
|
||||
if (object == nullptr) {
|
||||
|
@ -177,7 +177,7 @@ void ContinuationHandlerStage::HandleCompleteContinuation(int result)
|
||||
|
||||
void ContinuationHandlerStage::SetReversible(bool reversible)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "called");
|
||||
reversible_ = reversible;
|
||||
}
|
||||
|
||||
@ -191,13 +191,13 @@ void ContinuationHandlerStage::SetAbilityInfo(std::shared_ptr<AbilityInfo> &abil
|
||||
|
||||
void ContinuationHandlerStage::SetPrimaryStub(const sptr<IRemoteObject> &Primary)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "called");
|
||||
remotePrimaryStub_ = Primary;
|
||||
}
|
||||
|
||||
void ContinuationHandlerStage::ClearDeviceInfo(std::shared_ptr<AbilityInfo> &abilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "called");
|
||||
abilityInfo->deviceId = "";
|
||||
abilityInfo->deviceTypes.clear();
|
||||
}
|
||||
@ -270,13 +270,13 @@ Want ContinuationHandlerStage::SetWantParams(const WantParams &wantParams)
|
||||
|
||||
void ContinuationHandlerStage::CleanUpAfterReverse()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "called");
|
||||
remoteReplicaProxy_ = nullptr;
|
||||
}
|
||||
|
||||
void ContinuationHandlerStage::PassPrimary(const sptr<IRemoteObject> &Primary)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "Called.");
|
||||
TAG_LOGD(AAFwkTag::CONTINUATION, "called");
|
||||
remotePrimaryProxy_ = iface_cast<IReverseContinuationSchedulerPrimary>(Primary);
|
||||
}
|
||||
|
||||
|
@ -290,7 +290,7 @@ std::vector<std::string> DataAbilityHelper::GetFileTypes(Uri &uri, const std::st
|
||||
*/
|
||||
int DataAbilityHelper::OpenFile(Uri &uri, const std::string &mode)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::DATA_ABILITY, "OpenFile Called.");
|
||||
TAG_LOGI(AAFwkTag::DATA_ABILITY, "called");
|
||||
int fd = -1;
|
||||
auto dataAbilityHelperImpl = GetDataAbilityHelperImpl();
|
||||
if (dataAbilityHelperImpl) {
|
||||
|
@ -404,7 +404,7 @@ void ExtensionAbilityThread::ScheduleAbilityTransaction(
|
||||
|
||||
void ExtensionAbilityThread::ScheduleConnectAbility(const Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::EXT, "called");
|
||||
if (abilityHandler_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::EXT, "abilityHandler_ is nullptr.");
|
||||
return;
|
||||
@ -427,7 +427,7 @@ void ExtensionAbilityThread::ScheduleConnectAbility(const Want &want)
|
||||
void ExtensionAbilityThread::ScheduleDisconnectAbility(const Want &want)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::EXT, "called");
|
||||
if (abilityHandler_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::EXT, "abilityHandler_ is nullptr.");
|
||||
return;
|
||||
|
@ -469,7 +469,7 @@ void ExtensionImpl::SendResult(int requestCode, int resultCode, const Want &resu
|
||||
|
||||
void ExtensionImpl::SetLaunchParam(const AAFwk::LaunchParam &launchParam)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::EXT, "called");
|
||||
if (extension_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::EXT, "Extension is nullptr.");
|
||||
return;
|
||||
|
@ -1017,7 +1017,7 @@ std::vector<std::string> FAAbilityThread::GetFileTypes(const Uri &uri, const std
|
||||
|
||||
int FAAbilityThread::OpenFile(const Uri &uri, const std::string &mode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
@ -1027,7 +1027,7 @@ int FAAbilityThread::OpenFile(const Uri &uri, const std::string &mode)
|
||||
|
||||
int FAAbilityThread::OpenRawFile(const Uri &uri, const std::string &mode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
@ -1038,7 +1038,7 @@ int FAAbilityThread::OpenRawFile(const Uri &uri, const std::string &mode)
|
||||
|
||||
int FAAbilityThread::Insert(const Uri &uri, const NativeRdb::ValuesBucket &value)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
@ -1050,7 +1050,7 @@ int FAAbilityThread::Insert(const Uri &uri, const NativeRdb::ValuesBucket &value
|
||||
std::shared_ptr<AppExecFwk::PacMap> FAAbilityThread::Call(
|
||||
const Uri &uri, const std::string &method, const std::string &arg, const AppExecFwk::PacMap &pacMap)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return nullptr;
|
||||
@ -1062,7 +1062,7 @@ std::shared_ptr<AppExecFwk::PacMap> FAAbilityThread::Call(
|
||||
int FAAbilityThread::Update(
|
||||
const Uri &uri, const NativeRdb::ValuesBucket &value, const NativeRdb::DataAbilityPredicates &predicates)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
@ -1073,7 +1073,7 @@ int FAAbilityThread::Update(
|
||||
|
||||
int FAAbilityThread::Delete(const Uri &uri, const NativeRdb::DataAbilityPredicates &predicates)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
@ -1084,7 +1084,7 @@ int FAAbilityThread::Delete(const Uri &uri, const NativeRdb::DataAbilityPredicat
|
||||
std::shared_ptr<NativeRdb::AbsSharedResultSet> FAAbilityThread::Query(
|
||||
const Uri &uri, std::vector<std::string> &columns, const NativeRdb::DataAbilityPredicates &predicates)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return nullptr;
|
||||
@ -1095,7 +1095,7 @@ std::shared_ptr<NativeRdb::AbsSharedResultSet> FAAbilityThread::Query(
|
||||
|
||||
std::string FAAbilityThread::GetType(const Uri &uri)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
std::string type;
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
@ -1107,7 +1107,7 @@ std::string FAAbilityThread::GetType(const Uri &uri)
|
||||
|
||||
bool FAAbilityThread::Reload(const Uri &uri, const AppExecFwk::PacMap &extras)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return false;
|
||||
@ -1117,7 +1117,7 @@ bool FAAbilityThread::Reload(const Uri &uri, const AppExecFwk::PacMap &extras)
|
||||
|
||||
int FAAbilityThread::BatchInsert(const Uri &uri, const std::vector<NativeRdb::ValuesBucket> &values)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::FA, "Called.");
|
||||
TAG_LOGD(AAFwkTag::FA, "called");
|
||||
if (abilityImpl_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::FA, "abilityImpl_ is nullptr");
|
||||
return -1;
|
||||
|
@ -24,7 +24,7 @@ PhotoEditorExtensionModuleLoader::~PhotoEditorExtensionModuleLoader() = default;
|
||||
|
||||
Extension *PhotoEditorExtensionModuleLoader::Create(const std::unique_ptr<Runtime> &runtime) const
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
return PhotoEditorExtension::Create(runtime);
|
||||
}
|
||||
|
||||
|
@ -122,13 +122,13 @@ void UIAbility::Init(std::shared_ptr<AppExecFwk::AbilityLocalRecord> record,
|
||||
|
||||
std::shared_ptr<OHOS::AppExecFwk::LifeCycle> UIAbility::GetLifecycle()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
return lifecycle_;
|
||||
}
|
||||
|
||||
void UIAbility::RegisterAbilityLifecycleObserver(const std::shared_ptr<AppExecFwk::ILifecycleObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "register UIAbility lifecycle observer failed, observer is nullptr.");
|
||||
return;
|
||||
@ -142,7 +142,7 @@ void UIAbility::RegisterAbilityLifecycleObserver(const std::shared_ptr<AppExecFw
|
||||
|
||||
void UIAbility::UnregisterAbilityLifecycleObserver(const std::shared_ptr<AppExecFwk::ILifecycleObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "unregister UIAbility lifecycle observer failed, observer is nullptr.");
|
||||
return;
|
||||
@ -234,12 +234,12 @@ void UIAbility::OnStop(AppExecFwk::AbilityTransactionCallbackInfo<> *callbackInf
|
||||
|
||||
void UIAbility::OnStopCallback()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::DestroyInstance()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
bool UIAbility::IsRestoredInContinuation() const
|
||||
@ -296,7 +296,7 @@ bool UIAbility::ShouldDefaultRecoverState(const AAFwk::Want &want)
|
||||
|
||||
void UIAbility::NotifyContinuationResult(const AAFwk::Want &want, bool success)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
int sessionId = want.GetIntParam(DMS_SESSION_ID, DEFAULT_DMS_SESSION_ID);
|
||||
std::string originDeviceId = want.GetStringParam(DMS_ORIGIN_DEVICE_ID);
|
||||
|
||||
@ -361,7 +361,7 @@ void UIAbility::InitConfigurationProperties(const AppExecFwk::Configuration &cha
|
||||
|
||||
void UIAbility::OnMemoryLevel(int level)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
#ifdef SUPPORT_SCREEN
|
||||
if (scene_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "WindowScene is null.");
|
||||
@ -392,17 +392,17 @@ std::string UIAbility::GetModuleName()
|
||||
|
||||
void UIAbility::OnAbilityResult(int requestCode, int resultCode, const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnNewWant(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnRestoreAbilityState(const AppExecFwk::PacMap &inState)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::SetWant(const AAFwk::Want &want)
|
||||
@ -417,17 +417,17 @@ std::shared_ptr<AAFwk::Want> UIAbility::GetWant()
|
||||
|
||||
void UIAbility::OnConfigurationUpdated(const AppExecFwk::Configuration &configuration)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::Dump(const std::vector<std::string> ¶ms, std::vector<std::string> &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
AppExecFwk::AbilityLifecycleExecutor::LifecycleState UIAbility::GetState()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (abilityLifecycleExecutor_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "abilityLifecycleExecutor_ is nullptr.");
|
||||
return AppExecFwk::AbilityLifecycleExecutor::LifecycleState::UNINITIALIZED;
|
||||
@ -476,7 +476,7 @@ int32_t UIAbility::OnSaveState(int32_t reason, AAFwk::WantParams &wantParams)
|
||||
|
||||
void UIAbility::OnCompleteContinuation(int result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (continuationManager_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Continuation manager is nullptr.");
|
||||
return;
|
||||
@ -487,7 +487,7 @@ void UIAbility::OnCompleteContinuation(int result)
|
||||
|
||||
void UIAbility::OnRemoteTerminated()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::DispatchLifecycleOnForeground(const AAFwk::Want &want)
|
||||
@ -520,13 +520,13 @@ void UIAbility::HandleCreateAsRecovery(const AAFwk::Want &want)
|
||||
|
||||
void UIAbility::SetStartAbilitySetting(std::shared_ptr<AppExecFwk::AbilityStartSetting> setting)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
setting_ = setting;
|
||||
}
|
||||
|
||||
void UIAbility::SetLaunchParam(const AAFwk::LaunchParam &launchParam)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
launchParam_ = launchParam;
|
||||
}
|
||||
|
||||
@ -579,22 +579,22 @@ void UIAbility::SetIsSilentForeground(bool isSilentForeground)
|
||||
#ifdef SUPPORT_SCREEN
|
||||
void UIAbility::OnSceneCreated()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnSceneRestored()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnSceneWillDestroy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::onSceneDestroyed()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnForeground(const AAFwk::Want &want)
|
||||
@ -663,13 +663,13 @@ void UIAbility::OnBackground()
|
||||
|
||||
bool UIAbility::OnPrepareTerminate()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
return false;
|
||||
}
|
||||
|
||||
const sptr<Rosen::Window> UIAbility::GetWindow()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -680,7 +680,7 @@ std::shared_ptr<Rosen::WindowScene> UIAbility::GetScene()
|
||||
|
||||
void UIAbility::OnLeaveForeground()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
std::string UIAbility::GetContentInfo()
|
||||
@ -720,12 +720,12 @@ void UIAbility::SetSceneListener(const sptr<Rosen::IWindowLifeCycle> &listener)
|
||||
|
||||
void UIAbility::DoOnForeground(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
int32_t UIAbility::GetCurrentWindowMode()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
auto windowMode = static_cast<int>(Rosen::WindowMode::WINDOW_MODE_UNDEFINED);
|
||||
if (scene_ == nullptr) {
|
||||
return windowMode;
|
||||
@ -739,7 +739,7 @@ int32_t UIAbility::GetCurrentWindowMode()
|
||||
|
||||
ErrCode UIAbility::SetMissionLabel(const std::string &label)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (!abilityInfo_ || abilityInfo_->type != AppExecFwk::AbilityType::PAGE) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Invalid ability info.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -764,7 +764,7 @@ ErrCode UIAbility::SetMissionLabel(const std::string &label)
|
||||
|
||||
ErrCode UIAbility::SetMissionIcon(const std::shared_ptr<OHOS::Media::PixelMap> &icon)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (!abilityInfo_ || abilityInfo_->type != AppExecFwk::AbilityType::PAGE) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "abilityInfo_ is nullptr or not page type.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -789,7 +789,7 @@ ErrCode UIAbility::SetMissionIcon(const std::shared_ptr<OHOS::Media::PixelMap> &
|
||||
|
||||
void UIAbility::GetWindowRect(int32_t &left, int32_t &top, int32_t &width, int32_t &height)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (scene_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Scene is nullptr.");
|
||||
return;
|
||||
@ -809,7 +809,7 @@ void UIAbility::GetWindowRect(int32_t &left, int32_t &top, int32_t &width, int32
|
||||
|
||||
Ace::UIContent *UIAbility::GetUIContent()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (scene_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Get window scene failed.");
|
||||
return nullptr;
|
||||
@ -824,12 +824,12 @@ Ace::UIContent *UIAbility::GetUIContent()
|
||||
|
||||
void UIAbility::OnCreate(Rosen::DisplayId displayId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnDestroy(Rosen::DisplayId displayId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnDisplayInfoChange(const sptr<IRemoteObject>& token, Rosen::DisplayId displayId, float density,
|
||||
@ -981,12 +981,12 @@ void UIAbility::UpdateConfiguration(Rosen::DisplayId to, float density, int32_t
|
||||
|
||||
void UIAbility::RequestFocus(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::InitWindow(int32_t displayId, sptr<Rosen::WindowOption> option)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
sptr<Rosen::WindowOption> UIAbility::GetWindowOption(const AAFwk::Want &want)
|
||||
@ -1024,7 +1024,7 @@ sptr<Rosen::WindowOption> UIAbility::GetWindowOption(const AAFwk::Want &want)
|
||||
|
||||
void UIAbility::ContinuationRestore(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
}
|
||||
|
||||
void UIAbility::OnStartForSupportGraphics(const AAFwk::Want &want)
|
||||
|
@ -154,13 +154,13 @@ int32_t UIAbilityImpl::Share(AAFwk::WantParams &wantParam)
|
||||
|
||||
void UIAbilityImpl::DispatchSaveAbilityState()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
needSaveDate_ = true;
|
||||
}
|
||||
|
||||
void UIAbilityImpl::DispatchRestoreAbilityState(const AppExecFwk::PacMap &inState)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
hasSaveData_ = true;
|
||||
restoreData_ = inState;
|
||||
}
|
||||
@ -471,7 +471,7 @@ void UIAbilityImpl::WindowLifeCycleImpl::AfterForeground()
|
||||
void UIAbilityImpl::WindowLifeCycleImpl::AfterBackground()
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
FreezeUtil::LifecycleFlow flow = { token_, FreezeUtil::TimeoutState::BACKGROUND };
|
||||
std::string entry = std::to_string(TimeUtil::SystemTimeMillisecond()) +
|
||||
"; UIAbilityImpl::WindowLifeCycleImpl::AfterBackground; the background lifecycle.";
|
||||
@ -563,7 +563,7 @@ void UIAbilityImpl::Foreground(const AAFwk::Want &want)
|
||||
|
||||
void UIAbilityImpl::WindowLifeCycleImpl::BackgroundFailed(int32_t type)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (type == static_cast<int32_t>(OHOS::Rosen::WMError::WM_DO_NOTHING)) {
|
||||
AppExecFwk::PacMap restoreData;
|
||||
AAFwk::AbilityManagerClient::GetInstance()->AbilityTransitionDone(
|
||||
|
@ -79,7 +79,7 @@ std::shared_ptr<AppExecFwk::ContextDeal> UIAbilityThread::CreateAndInitContextDe
|
||||
const std::shared_ptr<AppExecFwk::AbilityLocalRecord> &abilityRecord,
|
||||
const std::shared_ptr<AppExecFwk::AbilityContext> &abilityObject)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
std::shared_ptr<AppExecFwk::ContextDeal> contextDeal = nullptr;
|
||||
if (application == nullptr || abilityRecord == nullptr || abilityObject == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "Application or abilityRecord or abilityObject is nullptr.");
|
||||
@ -507,7 +507,7 @@ std::shared_ptr<AbilityContext> UIAbilityThread::BuildAbilityContext(
|
||||
|
||||
void UIAbilityThread::DumpAbilityInfo(const std::vector<std::string> ¶ms, std::vector<std::string> &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (token_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::UIABILITY, "token_ is nullptr.");
|
||||
return;
|
||||
@ -562,7 +562,7 @@ void UIAbilityThread::DumpAbilityInfoInner(const std::vector<std::string> ¶m
|
||||
#else
|
||||
void UIAbilityThread::DumpAbilityInfoInner(const std::vector<std::string> ¶ms, std::vector<std::string> &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UIABILITY, "called");
|
||||
if (currentAbility_ != nullptr) {
|
||||
currentAbility_->Dump(params, info);
|
||||
}
|
||||
|
@ -474,7 +474,7 @@ napi_value JsUIExtensionContext::OnTerminateSelfWithResult(napi_env env, NapiCal
|
||||
|
||||
napi_value JsUIExtensionContext::OnStartAbilityForResultAsCaller(napi_env env, NapiCallbackInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
if (info.argc == ARGC_ZERO) {
|
||||
ThrowTooFewParametersError(env);
|
||||
return CreateJsUndefined(env);
|
||||
|
@ -133,7 +133,7 @@ void UIExtensionContext::InsertResultCallbackTask(int requestCode, RuntimeTask &
|
||||
|
||||
void UIExtensionContext::RemoveResultCallbackTask(int requestCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutexlock_);
|
||||
resultCallbacks_.erase(requestCode);
|
||||
@ -159,7 +159,7 @@ ErrCode UIExtensionContext::StartAbilityForResult(
|
||||
|
||||
ErrCode UIExtensionContext::StartAbilityForResultAsCaller(const AAFwk::Want &want, int requestCode, RuntimeTask &&task)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutexlock_);
|
||||
resultCallbacks_.insert(make_pair(requestCode, std::move(task)));
|
||||
@ -176,7 +176,7 @@ ErrCode UIExtensionContext::StartAbilityForResultAsCaller(const AAFwk::Want &wan
|
||||
ErrCode UIExtensionContext::StartAbilityForResultAsCaller(
|
||||
const AAFwk::Want &want, const AAFwk::StartOptions &startOptions, int requestCode, RuntimeTask &&task)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutexlock_);
|
||||
resultCallbacks_.insert(make_pair(requestCode, std::move(task)));
|
||||
@ -279,7 +279,7 @@ ErrCode UIExtensionContext::OpenAtomicService(AAFwk::Want& want, const AAFwk::St
|
||||
|
||||
ErrCode UIExtensionContext::OpenLink(const AAFwk::Want& want, int requestCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::UI_EXT, "called");
|
||||
return AAFwk::AbilityManagerClient::GetInstance()->OpenLink(want, token_, -1, requestCode);
|
||||
}
|
||||
|
||||
|
@ -35,7 +35,7 @@ BundleMgrHelper::~BundleMgrHelper()
|
||||
|
||||
ErrCode BundleMgrHelper::GetNameForUid(const int32_t uid, std::string &name)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -49,7 +49,7 @@ ErrCode BundleMgrHelper::GetNameForUid(const int32_t uid, std::string &name)
|
||||
bool BundleMgrHelper::GetBundleInfo(const std::string &bundleName, const BundleFlag flag, BundleInfo &bundleInfo,
|
||||
int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -63,7 +63,7 @@ bool BundleMgrHelper::GetBundleInfo(const std::string &bundleName, const BundleF
|
||||
ErrCode BundleMgrHelper::InstallSandboxApp(const std::string &bundleName, int32_t dlpType, int32_t userId,
|
||||
int32_t &appIndex)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The bundleName is empty.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -80,7 +80,7 @@ ErrCode BundleMgrHelper::InstallSandboxApp(const std::string &bundleName, int32_
|
||||
|
||||
ErrCode BundleMgrHelper::UninstallSandboxApp(const std::string &bundleName, int32_t appIndex, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (bundleName.empty() || appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The params are invalid.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -97,7 +97,7 @@ ErrCode BundleMgrHelper::UninstallSandboxApp(const std::string &bundleName, int3
|
||||
|
||||
ErrCode BundleMgrHelper::GetUninstalledBundleInfo(const std::string bundleName, BundleInfo &bundleInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -111,7 +111,7 @@ ErrCode BundleMgrHelper::GetUninstalledBundleInfo(const std::string bundleName,
|
||||
ErrCode BundleMgrHelper::GetSandboxBundleInfo(
|
||||
const std::string &bundleName, int32_t appIndex, int32_t userId, BundleInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (bundleName.empty() || appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The params are invalid.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -129,7 +129,7 @@ ErrCode BundleMgrHelper::GetSandboxBundleInfo(
|
||||
ErrCode BundleMgrHelper::GetSandboxAbilityInfo(const Want &want, int32_t appIndex, int32_t flags, int32_t userId,
|
||||
AbilityInfo &abilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The params are invalid.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -150,7 +150,7 @@ ErrCode BundleMgrHelper::GetSandboxAbilityInfo(const Want &want, int32_t appInde
|
||||
ErrCode BundleMgrHelper::GetSandboxExtAbilityInfos(const Want &want, int32_t appIndex, int32_t flags,
|
||||
int32_t userId, std::vector<ExtensionAbilityInfo> &extensionInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The params are invalid.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -168,7 +168,7 @@ ErrCode BundleMgrHelper::GetSandboxExtAbilityInfos(const Want &want, int32_t app
|
||||
ErrCode BundleMgrHelper::GetSandboxHapModuleInfo(const AbilityInfo &abilityInfo, int32_t appIndex, int32_t userId,
|
||||
HapModuleInfo &hapModuleInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (appIndex <= AbilityRuntime::GlobalConstant::MAX_APP_CLONE_INDEX) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The params are invalid.");
|
||||
return ERR_APPEXECFWK_SANDBOX_INSTALL_PARAM_ERROR;
|
||||
@ -186,7 +186,7 @@ ErrCode BundleMgrHelper::GetSandboxHapModuleInfo(const AbilityInfo &abilityInfo,
|
||||
sptr<IBundleMgr> BundleMgrHelper::Connect()
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (bundleMgr_ == nullptr) {
|
||||
sptr<ISystemAbilityManager> systemAbilityManager =
|
||||
@ -225,7 +225,7 @@ sptr<IBundleMgr> BundleMgrHelper::Connect()
|
||||
|
||||
sptr<IBundleInstaller> BundleMgrHelper::ConnectBundleInstaller()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (bundleInstaller_ != nullptr) {
|
||||
@ -251,7 +251,7 @@ sptr<IBundleInstaller> BundleMgrHelper::ConnectBundleInstaller()
|
||||
|
||||
void BundleMgrHelper::OnDeath()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
if (bundleMgr_ == nullptr || bundleMgr_->AsObject() == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "bundleMgr_ is nullptr.");
|
||||
@ -265,7 +265,7 @@ void BundleMgrHelper::OnDeath()
|
||||
bool BundleMgrHelper::GetBundleInfo(const std::string &bundleName, int32_t flags,
|
||||
BundleInfo &bundleInfo, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -278,7 +278,7 @@ bool BundleMgrHelper::GetBundleInfo(const std::string &bundleName, int32_t flags
|
||||
|
||||
bool BundleMgrHelper::GetHapModuleInfo(const AbilityInfo &abilityInfo, HapModuleInfo &hapModuleInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -291,7 +291,7 @@ bool BundleMgrHelper::GetHapModuleInfo(const AbilityInfo &abilityInfo, HapModule
|
||||
|
||||
std::string BundleMgrHelper::GetAbilityLabel(const std::string &bundleName, const std::string &abilityName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -304,7 +304,7 @@ std::string BundleMgrHelper::GetAbilityLabel(const std::string &bundleName, cons
|
||||
|
||||
std::string BundleMgrHelper::GetAppType(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -319,7 +319,7 @@ ErrCode BundleMgrHelper::GetBaseSharedBundleInfos(
|
||||
const std::string &bundleName, std::vector<BaseSharedBundleInfo> &baseSharedBundleInfos,
|
||||
GetDependentBundleInfoFlag flag)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -332,7 +332,7 @@ ErrCode BundleMgrHelper::GetBaseSharedBundleInfos(
|
||||
|
||||
ErrCode BundleMgrHelper::GetBundleInfoForSelf(int32_t flags, BundleInfo &bundleInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -346,7 +346,7 @@ ErrCode BundleMgrHelper::GetBundleInfoForSelf(int32_t flags, BundleInfo &bundleI
|
||||
ErrCode BundleMgrHelper::GetDependentBundleInfo(const std::string &sharedBundleName, BundleInfo &sharedBundleInfo,
|
||||
GetDependentBundleInfoFlag flag)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -359,7 +359,7 @@ ErrCode BundleMgrHelper::GetDependentBundleInfo(const std::string &sharedBundleN
|
||||
|
||||
bool BundleMgrHelper::GetGroupDir(const std::string &dataGroupId, std::string &dir)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -372,7 +372,7 @@ bool BundleMgrHelper::GetGroupDir(const std::string &dataGroupId, std::string &d
|
||||
|
||||
sptr<IOverlayManager> BundleMgrHelper::GetOverlayManagerProxy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -385,7 +385,7 @@ sptr<IOverlayManager> BundleMgrHelper::GetOverlayManagerProxy()
|
||||
|
||||
bool BundleMgrHelper::QueryAbilityInfo(const Want &want, AbilityInfo &abilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -400,7 +400,7 @@ bool BundleMgrHelper::QueryAbilityInfo(const Want &want, AbilityInfo &abilityInf
|
||||
|
||||
bool BundleMgrHelper::QueryAbilityInfo(const Want &want, int32_t flags, int32_t userId, AbilityInfo &abilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -415,7 +415,7 @@ bool BundleMgrHelper::QueryAbilityInfo(const Want &want, int32_t flags, int32_t
|
||||
|
||||
bool BundleMgrHelper::GetBundleInfos(int32_t flags, std::vector<BundleInfo> &bundleInfos, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -428,7 +428,7 @@ bool BundleMgrHelper::GetBundleInfos(int32_t flags, std::vector<BundleInfo> &bun
|
||||
|
||||
bool BundleMgrHelper::GetBundleInfos(const BundleFlag flag, std::vector<BundleInfo> &bundleInfos, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -441,7 +441,7 @@ bool BundleMgrHelper::GetBundleInfos(const BundleFlag flag, std::vector<BundleIn
|
||||
|
||||
sptr<IQuickFixManager> BundleMgrHelper::GetQuickFixManagerProxy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -454,7 +454,7 @@ sptr<IQuickFixManager> BundleMgrHelper::GetQuickFixManagerProxy()
|
||||
|
||||
bool BundleMgrHelper::ProcessPreload(const Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -469,7 +469,7 @@ bool BundleMgrHelper::ProcessPreload(const Want &want)
|
||||
|
||||
sptr<IAppControlMgr> BundleMgrHelper::GetAppControlProxy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -483,7 +483,7 @@ sptr<IAppControlMgr> BundleMgrHelper::GetAppControlProxy()
|
||||
bool BundleMgrHelper::QueryExtensionAbilityInfos(const Want &want, const int32_t &flag, const int32_t &userId,
|
||||
std::vector<ExtensionAbilityInfo> &extensionInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -499,7 +499,7 @@ bool BundleMgrHelper::QueryExtensionAbilityInfos(const Want &want, const int32_t
|
||||
ErrCode BundleMgrHelper::GetBundleInfoV9(
|
||||
const std::string &bundleName, int32_t flags, BundleInfo &bundleInfo, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -513,7 +513,7 @@ ErrCode BundleMgrHelper::GetBundleInfoV9(
|
||||
bool BundleMgrHelper::GetApplicationInfo(
|
||||
const std::string &appName, const ApplicationFlag flag, const int32_t userId, ApplicationInfo &appInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -527,7 +527,7 @@ bool BundleMgrHelper::GetApplicationInfo(
|
||||
bool BundleMgrHelper::GetApplicationInfo(
|
||||
const std::string &appName, int32_t flags, int32_t userId, ApplicationInfo &appInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -577,7 +577,7 @@ bool BundleMgrHelper::GetApplicationInfoWithAppIndex(
|
||||
|
||||
bool BundleMgrHelper::UnregisterBundleEventCallback(const sptr<IBundleEventCallback> &bundleEventCallback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (bundleEventCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The bundleEventCallback is nullptr.");
|
||||
return false;
|
||||
@ -596,7 +596,7 @@ bool BundleMgrHelper::UnregisterBundleEventCallback(const sptr<IBundleEventCallb
|
||||
bool BundleMgrHelper::QueryExtensionAbilityInfoByUri(
|
||||
const std::string &uri, int32_t userId, ExtensionAbilityInfo &extensionAbilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -610,7 +610,7 @@ bool BundleMgrHelper::QueryExtensionAbilityInfoByUri(
|
||||
bool BundleMgrHelper::ImplicitQueryInfoByPriority(
|
||||
const Want &want, int32_t flags, int32_t userId, AbilityInfo &abilityInfo, ExtensionAbilityInfo &extensionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -624,7 +624,7 @@ bool BundleMgrHelper::ImplicitQueryInfoByPriority(
|
||||
|
||||
bool BundleMgrHelper::QueryAbilityInfoByUri(const std::string &abilityUri, int32_t userId, AbilityInfo &abilityInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -638,7 +638,7 @@ bool BundleMgrHelper::QueryAbilityInfoByUri(const std::string &abilityUri, int32
|
||||
bool BundleMgrHelper::QueryAbilityInfo(
|
||||
const Want &want, int32_t flags, int32_t userId, AbilityInfo &abilityInfo, const sptr<IRemoteObject> &callBack)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -653,7 +653,7 @@ bool BundleMgrHelper::QueryAbilityInfo(
|
||||
|
||||
void BundleMgrHelper::UpgradeAtomicService(const Want &want, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -669,7 +669,7 @@ void BundleMgrHelper::UpgradeAtomicService(const Want &want, int32_t userId)
|
||||
bool BundleMgrHelper::ImplicitQueryInfos(const Want &want, int32_t flags, int32_t userId, bool withDefault,
|
||||
std::vector<AbilityInfo> &abilityInfos, std::vector<ExtensionAbilityInfo> &extensionInfos, bool &findDefaultApp)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -687,7 +687,7 @@ bool BundleMgrHelper::ImplicitQueryInfos(const Want &want, int32_t flags, int32_
|
||||
|
||||
bool BundleMgrHelper::CleanBundleDataFiles(const std::string &bundleName, int32_t userId, int32_t appCloneIndex)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -701,7 +701,7 @@ bool BundleMgrHelper::CleanBundleDataFiles(const std::string &bundleName, int32_
|
||||
bool BundleMgrHelper::QueryDataGroupInfos(
|
||||
const std::string &bundleName, int32_t userId, std::vector<DataGroupInfo> &infos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -714,7 +714,7 @@ bool BundleMgrHelper::QueryDataGroupInfos(
|
||||
|
||||
bool BundleMgrHelper::RegisterBundleEventCallback(const sptr<IBundleEventCallback> &bundleEventCallback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
if (bundleEventCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "The bundleEventCallback is nullptr.");
|
||||
return false;
|
||||
@ -732,7 +732,7 @@ bool BundleMgrHelper::RegisterBundleEventCallback(const sptr<IBundleEventCallbac
|
||||
|
||||
bool BundleMgrHelper::GetHapModuleInfo(const AbilityInfo &abilityInfo, int32_t userId, HapModuleInfo &hapModuleInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -745,7 +745,7 @@ bool BundleMgrHelper::GetHapModuleInfo(const AbilityInfo &abilityInfo, int32_t u
|
||||
|
||||
bool BundleMgrHelper::QueryAppGalleryBundleName(std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -758,7 +758,7 @@ bool BundleMgrHelper::QueryAppGalleryBundleName(std::string &bundleName)
|
||||
|
||||
ErrCode BundleMgrHelper::GetUidByBundleName(const std::string &bundleName, int32_t userId, int32_t appCloneIndex)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -772,7 +772,7 @@ ErrCode BundleMgrHelper::GetUidByBundleName(const std::string &bundleName, int32
|
||||
ErrCode BundleMgrHelper::QueryExtensionAbilityInfosOnlyWithTypeName(const std::string &extensionTypeName,
|
||||
const uint32_t flag, const int32_t userId, std::vector<ExtensionAbilityInfo> &extensionInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -785,7 +785,7 @@ ErrCode BundleMgrHelper::QueryExtensionAbilityInfosOnlyWithTypeName(const std::s
|
||||
|
||||
sptr<IDefaultApp> BundleMgrHelper::GetDefaultAppProxy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -799,7 +799,7 @@ sptr<IDefaultApp> BundleMgrHelper::GetDefaultAppProxy()
|
||||
ErrCode BundleMgrHelper::GetJsonProfile(ProfileType profileType, const std::string &bundleName,
|
||||
const std::string &moduleName, std::string &profile, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -812,7 +812,7 @@ ErrCode BundleMgrHelper::GetJsonProfile(ProfileType profileType, const std::stri
|
||||
|
||||
ErrCode BundleMgrHelper::GetLaunchWantForBundle(const std::string &bundleName, Want &want, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -827,7 +827,7 @@ ErrCode BundleMgrHelper::GetLaunchWantForBundle(const std::string &bundleName, W
|
||||
ErrCode BundleMgrHelper::QueryCloneAbilityInfo(const ElementName &element, int32_t flags, int32_t appCloneIndex,
|
||||
AbilityInfo &abilityInfo, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -841,7 +841,7 @@ ErrCode BundleMgrHelper::QueryCloneAbilityInfo(const ElementName &element, int32
|
||||
ErrCode BundleMgrHelper::GetCloneBundleInfo(const std::string &bundleName, int32_t flags, int32_t appCloneIndex,
|
||||
BundleInfo &bundleInfo, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
@ -855,7 +855,7 @@ ErrCode BundleMgrHelper::GetCloneBundleInfo(const std::string &bundleName, int32
|
||||
ErrCode BundleMgrHelper::QueryCloneExtensionAbilityInfoWithAppIndex(const ElementName &element, int32_t flags,
|
||||
int32_t appCloneIndex, ExtensionAbilityInfo &extensionInfo, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "Called.");
|
||||
TAG_LOGD(AAFwkTag::BUNDLEMGRHELPER, "called");
|
||||
auto bundleMgr = Connect();
|
||||
if (bundleMgr == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::BUNDLEMGRHELPER, "Failed to connect.");
|
||||
|
@ -249,7 +249,7 @@ AppExecFwk::AbilityType ServiceExtensionContext::GetAbilityInfoType() const
|
||||
ErrCode ServiceExtensionContext::PreStartMission(const std::string& bundleName, const std::string& moduleName,
|
||||
const std::string& abilityName, const std::string& startTime)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "called");
|
||||
ErrCode err = AAFwk::AbilityManagerClient::GetInstance()->PreStartMission(
|
||||
bundleName, moduleName, abilityName, startTime);
|
||||
if (err != ERR_OK) {
|
||||
|
@ -72,7 +72,7 @@ Assert_Status ConvertAssertResult(AAFwk::UserStatus status)
|
||||
|
||||
static Assert_Status AssertCallback(AssertFailureInfo assertFail)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
auto instance = DelayedSingleton<AbilityRuntime::AssertFaultTaskThread>::GetInstance();
|
||||
if (instance == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "Invalid Instance.");
|
||||
|
@ -3252,19 +3252,19 @@ int32_t MainThread::ChangeAppGcState(int32_t state)
|
||||
|
||||
void MainThread::AttachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
SetAppDebug(AbilityRuntime::AppFreezeState::AppFreezeFlag::ATTACH_DEBUG_MODE, true);
|
||||
}
|
||||
|
||||
void MainThread::DetachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
SetAppDebug(AbilityRuntime::AppFreezeState::AppFreezeFlag::ATTACH_DEBUG_MODE, false);
|
||||
}
|
||||
|
||||
bool MainThread::NotifyDeviceDisConnect()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
bool isLastProcess = appMgr_->IsFinalAppProcess();
|
||||
ScheduleTerminateApplication(isLastProcess);
|
||||
return true;
|
||||
@ -3272,7 +3272,7 @@ bool MainThread::NotifyDeviceDisConnect()
|
||||
|
||||
void MainThread::AssertFaultPauseMainThreadDetection()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
SetAppDebug(AbilityRuntime::AppFreezeState::AppFreezeFlag::ASSERT_DEBUG_MODE, true);
|
||||
if (appMgr_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "appMgr is nullptr.");
|
||||
@ -3283,7 +3283,7 @@ void MainThread::AssertFaultPauseMainThreadDetection()
|
||||
|
||||
void MainThread::AssertFaultResumeMainThreadDetection()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
SetAppDebug(AbilityRuntime::AppFreezeState::AppFreezeFlag::ASSERT_DEBUG_MODE, false);
|
||||
if (appMgr_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "appMgr is nullptr.");
|
||||
@ -3317,7 +3317,7 @@ void MainThread::HandleInitAssertFaultTask(bool isDebugModule, bool isDebugApp)
|
||||
|
||||
void MainThread::SetAppDebug(uint32_t modeFlag, bool isDebug)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "called");
|
||||
auto state = DelayedSingleton<AbilityRuntime::AppFreezeState>::GetInstance();
|
||||
if (state == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "Get app freeze state instance is nullptr.");
|
||||
|
@ -82,7 +82,7 @@ int32_t JsStartupTask::RunTaskInit(std::unique_ptr<StartupTaskResultCallback> ca
|
||||
|
||||
int32_t JsStartupTask::LoadJsAsyncTaskExcutor()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
auto env = jsRuntime_.GetNapiEnv();
|
||||
|
||||
@ -100,7 +100,7 @@ int32_t JsStartupTask::LoadJsAsyncTaskExcutor()
|
||||
|
||||
void JsStartupTask::LoadJsAsyncTaskCallback()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
HandleScope handleScope(jsRuntime_);
|
||||
auto env = jsRuntime_.GetNapiEnv();
|
||||
|
||||
@ -122,7 +122,7 @@ void JsStartupTask::LoadJsAsyncTaskCallback()
|
||||
|
||||
void JsStartupTask::OnAsyncTaskCompleted(const std::shared_ptr<StartupTaskResult> &result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
if (startupTaskResultCallback_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::STARTUP, "Startup task result callback object is nullptr.");
|
||||
return;
|
||||
@ -188,7 +188,7 @@ napi_value JsStartupTask::GetDependencyResult(napi_env env, const std::string &d
|
||||
|
||||
napi_value AsyncTaskCallBack::AsyncTaskCompleted(napi_env env, napi_callback_info info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
size_t argc = ARGC_TWO;
|
||||
napi_value argv[ARGC_TWO] = { nullptr };
|
||||
napi_value thisVar = nullptr;
|
||||
@ -223,7 +223,7 @@ napi_value AsyncTaskCallBack::AsyncTaskCompleted(napi_env env, napi_callback_inf
|
||||
|
||||
napi_value AsyncTaskCallBack::Constructor(napi_env env, napi_callback_info cbinfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
return CreateJsUndefined(env);
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
|
@ -49,7 +49,7 @@ int32_t JsStartupTaskExecutor::RunOnTaskPool(
|
||||
const std::unique_ptr<NativeReference> &asyncTaskCallback,
|
||||
const std::string &startupName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::STARTUP, "called");
|
||||
HandleScope handleScope(jsRuntime);
|
||||
auto env = jsRuntime.GetNapiEnv();
|
||||
|
||||
|
@ -32,7 +32,7 @@ AbilityFirstFrameStateObserverStub::~AbilityFirstFrameStateObserverStub() {}
|
||||
int32_t AbilityFirstFrameStateObserverStub::OnRemoteRequest(
|
||||
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::u16string descriptor = AbilityFirstFrameStateObserverStub::GetDescriptor();
|
||||
std::u16string remoteDescriptor = data.ReadInterfaceToken();
|
||||
if (descriptor != remoteDescriptor) {
|
||||
|
@ -30,7 +30,7 @@ AbilityForegroundStateObserverStub::~AbilityForegroundStateObserverStub() {}
|
||||
int32_t AbilityForegroundStateObserverStub::OnRemoteRequest(
|
||||
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::u16string descriptor = AbilityForegroundStateObserverStub::GetDescriptor();
|
||||
std::u16string remoteDescriptor = data.ReadInterfaceToken();
|
||||
if (descriptor != remoteDescriptor) {
|
||||
|
@ -40,20 +40,20 @@ bool AbilityDebugResponseProxy::WriteInterfaceToken(MessageParcel &data)
|
||||
|
||||
void AbilityDebugResponseProxy::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
SendRequest(IAbilityDebugResponse::Message::ON_ABILITYS_DEBUG_STARTED, tokens);
|
||||
}
|
||||
|
||||
void AbilityDebugResponseProxy::OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
SendRequest(IAbilityDebugResponse::Message::ON_ABILITYS_DEBUG_STOPED, tokens);
|
||||
}
|
||||
|
||||
void AbilityDebugResponseProxy::OnAbilitysAssertDebugChange(
|
||||
const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -95,7 +95,7 @@ void AbilityDebugResponseProxy::OnAbilitysAssertDebugChange(
|
||||
void AbilityDebugResponseProxy::SendRequest(
|
||||
const IAbilityDebugResponse::Message &message, const std::vector<sptr<IRemoteObject>> &tokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
|
@ -30,7 +30,7 @@ AbilityForegroundStateObserverStub::~AbilityForegroundStateObserverStub() {}
|
||||
int32_t AbilityForegroundStateObserverStub::OnRemoteRequest(
|
||||
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::u16string descriptor = AbilityForegroundStateObserverStub::GetDescriptor();
|
||||
std::u16string remoteDescriptor = data.ReadInterfaceToken();
|
||||
if (descriptor != remoteDescriptor) {
|
||||
|
@ -767,7 +767,7 @@ int32_t AmsMgrProxy::GetBundleNameByPid(const int pid, std::string &bundleName,
|
||||
|
||||
int32_t AmsMgrProxy::RegisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -792,7 +792,7 @@ int32_t AmsMgrProxy::RegisterAppDebugListener(const sptr<IAppDebugListener> &lis
|
||||
|
||||
int32_t AmsMgrProxy::UnregisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -817,7 +817,7 @@ int32_t AmsMgrProxy::UnregisterAppDebugListener(const sptr<IAppDebugListener> &l
|
||||
|
||||
int32_t AmsMgrProxy::AttachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -842,7 +842,7 @@ int32_t AmsMgrProxy::AttachAppDebug(const std::string &bundleName)
|
||||
|
||||
int32_t AmsMgrProxy::DetachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -867,7 +867,7 @@ int32_t AmsMgrProxy::DetachAppDebug(const std::string &bundleName)
|
||||
|
||||
void AmsMgrProxy::SetKeepAliveEnableState(const std::string &bundleName, bool enable)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -892,7 +892,7 @@ void AmsMgrProxy::SetKeepAliveEnableState(const std::string &bundleName, bool en
|
||||
|
||||
int32_t AmsMgrProxy::SetAppWaitingDebug(const std::string &bundleName, bool isPersist)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -921,7 +921,7 @@ int32_t AmsMgrProxy::SetAppWaitingDebug(const std::string &bundleName, bool isPe
|
||||
|
||||
int32_t AmsMgrProxy::CancelAppWaitingDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -940,7 +940,7 @@ int32_t AmsMgrProxy::CancelAppWaitingDebug()
|
||||
|
||||
int32_t AmsMgrProxy::GetWaitingDebugApp(std::vector<std::string> &debugInfoList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -977,7 +977,7 @@ int32_t AmsMgrProxy::GetWaitingDebugApp(std::vector<std::string> &debugInfoList)
|
||||
|
||||
bool AmsMgrProxy::IsWaitingDebugApp(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1001,7 +1001,7 @@ bool AmsMgrProxy::IsWaitingDebugApp(const std::string &bundleName)
|
||||
|
||||
void AmsMgrProxy::ClearNonPersistWaitingDebugFlag()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1019,7 +1019,7 @@ void AmsMgrProxy::ClearNonPersistWaitingDebugFlag()
|
||||
|
||||
int32_t AmsMgrProxy::RegisterAbilityDebugResponse(const sptr<IAbilityDebugResponse> &response)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1044,7 +1044,7 @@ int32_t AmsMgrProxy::RegisterAbilityDebugResponse(const sptr<IAbilityDebugRespon
|
||||
|
||||
bool AmsMgrProxy::IsAttachDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
|
@ -518,7 +518,7 @@ int32_t AmsMgrStub::HandleGetBundleNameByPid(MessageParcel &data, MessageParcel
|
||||
|
||||
int32_t AmsMgrStub::HandleRegisterAppDebugListener(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appDebugLister = iface_cast<IAppDebugListener>(data.ReadRemoteObject());
|
||||
if (appDebugLister == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "App debug lister is null.");
|
||||
@ -535,7 +535,7 @@ int32_t AmsMgrStub::HandleRegisterAppDebugListener(MessageParcel &data, MessageP
|
||||
|
||||
int32_t AmsMgrStub::HandleUnregisterAppDebugListener(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appDebugLister = iface_cast<IAppDebugListener>(data.ReadRemoteObject());
|
||||
if (appDebugLister == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "App debug lister is nullptr.");
|
||||
@ -552,7 +552,7 @@ int32_t AmsMgrStub::HandleUnregisterAppDebugListener(MessageParcel &data, Messag
|
||||
|
||||
int32_t AmsMgrStub::HandleAttachAppDebug(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
@ -569,7 +569,7 @@ int32_t AmsMgrStub::HandleAttachAppDebug(MessageParcel &data, MessageParcel &rep
|
||||
|
||||
int32_t AmsMgrStub::HandleDetachAppDebug(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
@ -586,7 +586,7 @@ int32_t AmsMgrStub::HandleDetachAppDebug(MessageParcel &data, MessageParcel &rep
|
||||
|
||||
int32_t AmsMgrStub::HandleSetAppWaitingDebug(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
@ -603,7 +603,7 @@ int32_t AmsMgrStub::HandleSetAppWaitingDebug(MessageParcel &data, MessageParcel
|
||||
|
||||
int32_t AmsMgrStub::HandleCancelAppWaitingDebug(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto result = CancelAppWaitingDebug();
|
||||
if (!reply.WriteInt32(result)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Fail to write result.");
|
||||
@ -614,7 +614,7 @@ int32_t AmsMgrStub::HandleCancelAppWaitingDebug(MessageParcel &data, MessageParc
|
||||
|
||||
int32_t AmsMgrStub::HandleGetWaitingDebugApp(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::vector<std::string> debugInfoList;
|
||||
auto result = GetWaitingDebugApp(debugInfoList);
|
||||
if (!reply.WriteInt32(result)) {
|
||||
@ -642,7 +642,7 @@ int32_t AmsMgrStub::HandleGetWaitingDebugApp(MessageParcel &data, MessageParcel
|
||||
|
||||
int32_t AmsMgrStub::HandleIsWaitingDebugApp(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
@ -659,7 +659,7 @@ int32_t AmsMgrStub::HandleIsWaitingDebugApp(MessageParcel &data, MessageParcel &
|
||||
|
||||
int32_t AmsMgrStub::HandleSetKeepAliveEnableState(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
auto enable = data.ReadBool();
|
||||
SetKeepAliveEnableState(bundleName, enable);
|
||||
@ -668,14 +668,14 @@ int32_t AmsMgrStub::HandleSetKeepAliveEnableState(MessageParcel &data, MessagePa
|
||||
|
||||
int32_t AmsMgrStub::HandleClearNonPersistWaitingDebugFlag(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
ClearNonPersistWaitingDebugFlag();
|
||||
return NO_ERROR;
|
||||
}
|
||||
|
||||
int32_t AmsMgrStub::HandleRegisterAbilityDebugResponse(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto response = iface_cast<IAbilityDebugResponse>(data.ReadRemoteObject());
|
||||
if (response == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Response is nullptr.");
|
||||
@ -692,7 +692,7 @@ int32_t AmsMgrStub::HandleRegisterAbilityDebugResponse(MessageParcel &data, Mess
|
||||
|
||||
int32_t AmsMgrStub::HandleIsAttachDebug(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
@ -752,7 +752,7 @@ ErrCode AmsMgrStub::HandleBlockProcessCacheByPids(MessageParcel &data, MessagePa
|
||||
|
||||
int32_t AmsMgrStub::HandleIsKilledForUpgradeWeb(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto bundleName = data.ReadString();
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
|
@ -40,13 +40,13 @@ bool AppDebugListenerProxy::WriteInterfaceToken(MessageParcel &data)
|
||||
|
||||
void AppDebugListenerProxy::OnAppDebugStarted(const std::vector<AppDebugInfo> &debugInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
SendRequest(IAppDebugListener::Message::ON_APP_DEBUG_STARTED, debugInfos);
|
||||
}
|
||||
|
||||
void AppDebugListenerProxy::OnAppDebugStoped(const std::vector<AppDebugInfo> &debugInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
SendRequest(IAppDebugListener::Message::ON_APP_DEBUG_STOPED, debugInfos);
|
||||
}
|
||||
|
||||
|
@ -30,7 +30,7 @@ AppForegroundStateObserverStub::~AppForegroundStateObserverStub() {}
|
||||
int32_t AppForegroundStateObserverStub::OnRemoteRequest(
|
||||
uint32_t code, MessageParcel &data, MessageParcel &reply, MessageOption &option)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::u16string descriptor = AppForegroundStateObserverStub::GetDescriptor();
|
||||
std::u16string remoteDescriptor = data.ReadInterfaceToken();
|
||||
if (descriptor != remoteDescriptor) {
|
||||
|
@ -521,7 +521,7 @@ int AppMgrProxy::UnregisterApplicationStateObserver(
|
||||
|
||||
int32_t AppMgrProxy::RegisterAbilityForegroundStateObserver(const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Observer is null.");
|
||||
@ -542,7 +542,7 @@ int32_t AppMgrProxy::RegisterAbilityForegroundStateObserver(const sptr<IAbilityF
|
||||
|
||||
int32_t AppMgrProxy::UnregisterAbilityForegroundStateObserver(const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Observer is null.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -1509,7 +1509,7 @@ int32_t AppMgrProxy::UnregisterAppForegroundStateObserver(const sptr<IAppForegro
|
||||
int32_t AppMgrProxy::IsApplicationRunning(const std::string &bundleName, bool &isRunning)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
isRunning = false;
|
||||
MessageParcel data;
|
||||
MessageParcel reply;
|
||||
@ -1528,7 +1528,7 @@ int32_t AppMgrProxy::IsApplicationRunning(const std::string &bundleName, bool &i
|
||||
int32_t AppMgrProxy::IsAppRunning(const std::string &bundleName, int32_t appCloneIndex, bool &isRunning)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1628,7 +1628,7 @@ void AppMgrProxy::ExitChildProcessSafely()
|
||||
|
||||
bool AppMgrProxy::IsFinalAppProcess()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1649,7 +1649,7 @@ bool AppMgrProxy::IsFinalAppProcess()
|
||||
|
||||
int32_t AppMgrProxy::RegisterRenderStateObserver(const sptr<IRenderStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1669,7 +1669,7 @@ int32_t AppMgrProxy::RegisterRenderStateObserver(const sptr<IRenderStateObserver
|
||||
|
||||
int32_t AppMgrProxy::UnregisterRenderStateObserver(const sptr<IRenderStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1689,7 +1689,7 @@ int32_t AppMgrProxy::UnregisterRenderStateObserver(const sptr<IRenderStateObserv
|
||||
|
||||
int32_t AppMgrProxy::UpdateRenderState(pid_t renderPid, int32_t state)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1707,7 +1707,7 @@ int32_t AppMgrProxy::UpdateRenderState(pid_t renderPid, int32_t state)
|
||||
|
||||
int32_t AppMgrProxy::SignRestartAppFlag(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
MessageParcel reply;
|
||||
MessageOption option;
|
||||
@ -1723,7 +1723,7 @@ int32_t AppMgrProxy::SignRestartAppFlag(const std::string &bundleName)
|
||||
|
||||
int32_t AppMgrProxy::GetAppRunningUniqueIdByPid(pid_t pid, std::string &appRunningUniqueId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
MessageParcel reply;
|
||||
MessageOption option;
|
||||
@ -1816,7 +1816,7 @@ int32_t AppMgrProxy::NotifyMemorySizeStateChanged(bool isMemorySizeSufficent)
|
||||
|
||||
int32_t AppMgrProxy::SetSupportedProcessCacheSelf(bool isSupport)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -1833,7 +1833,7 @@ int32_t AppMgrProxy::SetSupportedProcessCacheSelf(bool isSupport)
|
||||
|
||||
void AppMgrProxy::SetAppAssertionPauseState(bool flag)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
MessageParcel reply;
|
||||
MessageOption option;
|
||||
@ -1849,7 +1849,7 @@ void AppMgrProxy::SetAppAssertionPauseState(bool flag)
|
||||
int32_t AppMgrProxy::StartNativeChildProcess(const std::string &libName, int32_t childProcessCount,
|
||||
const sptr<IRemoteObject> &callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (libName.empty() || !callback) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Invalid params, libName:%{private}s", libName.c_str());
|
||||
return ERR_INVALID_VALUE;
|
||||
|
@ -1272,7 +1272,7 @@ int32_t AppMgrStub::HandleUnregisterAppForegroundStateObserver(MessageParcel &da
|
||||
int32_t AppMgrStub::HandleIsApplicationRunning(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::string bundleName = data.ReadString();
|
||||
bool isRunning = false;
|
||||
int32_t result = IsApplicationRunning(bundleName, isRunning);
|
||||
@ -1288,7 +1288,7 @@ int32_t AppMgrStub::HandleIsApplicationRunning(MessageParcel &data, MessageParce
|
||||
int32_t AppMgrStub::HandleIsAppRunning(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::string bundleName = data.ReadString();
|
||||
bool isRunning = false;
|
||||
int32_t appCloneIndex = data.ReadInt32();
|
||||
@ -1354,7 +1354,7 @@ int32_t AppMgrStub::HandleExitChildProcessSafely(MessageParcel &data, MessagePar
|
||||
|
||||
int32_t AppMgrStub::HandleIsFinalAppProcess(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!reply.WriteBool(IsFinalAppProcess())) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Fail to write bool result.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -1364,7 +1364,7 @@ int32_t AppMgrStub::HandleIsFinalAppProcess(MessageParcel &data, MessageParcel &
|
||||
|
||||
int32_t AppMgrStub::HandleRegisterRenderStateObserver(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto callback = iface_cast<AppExecFwk::IRenderStateObserver>(data.ReadRemoteObject());
|
||||
if (callback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Callback is null.");
|
||||
@ -1380,7 +1380,7 @@ int32_t AppMgrStub::HandleRegisterRenderStateObserver(MessageParcel &data, Messa
|
||||
|
||||
int32_t AppMgrStub::HandleUnregisterRenderStateObserver(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto callback = iface_cast<AppExecFwk::IRenderStateObserver>(data.ReadRemoteObject());
|
||||
if (callback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Callback is null.");
|
||||
@ -1396,7 +1396,7 @@ int32_t AppMgrStub::HandleUnregisterRenderStateObserver(MessageParcel &data, Mes
|
||||
|
||||
int32_t AppMgrStub::HandleUpdateRenderState(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int32_t pid = data.ReadInt32();
|
||||
int32_t state = data.ReadInt32();
|
||||
int32_t result = UpdateRenderState(pid, state);
|
||||
@ -1409,7 +1409,7 @@ int32_t AppMgrStub::HandleUpdateRenderState(MessageParcel &data, MessageParcel &
|
||||
|
||||
int32_t AppMgrStub::HandleSignRestartAppFlag(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::string bundleName = data.ReadString();
|
||||
auto ret = SignRestartAppFlag(bundleName);
|
||||
if (!reply.WriteInt32(ret)) {
|
||||
@ -1421,7 +1421,7 @@ int32_t AppMgrStub::HandleSignRestartAppFlag(MessageParcel &data, MessageParcel
|
||||
|
||||
int32_t AppMgrStub::HandleGetAppRunningUniqueIdByPid(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int32_t pid = data.ReadInt32();
|
||||
std::string appRunningUniqueId;
|
||||
int32_t result = GetAppRunningUniqueIdByPid(pid, appRunningUniqueId);
|
||||
@ -1492,7 +1492,7 @@ int32_t AppMgrStub::HandleNotifyMemorySizeStateChanged(MessageParcel &data, Mess
|
||||
|
||||
int32_t AppMgrStub::HandleSetSupportedProcessCacheSelf(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
bool isSupport = data.ReadBool();
|
||||
auto ret = SetSupportedProcessCacheSelf(isSupport);
|
||||
if (!reply.WriteInt32(ret)) {
|
||||
@ -1504,7 +1504,7 @@ int32_t AppMgrStub::HandleSetSupportedProcessCacheSelf(MessageParcel &data, Mess
|
||||
|
||||
int32_t AppMgrStub::HandleSetAppAssertionPauseState(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
bool flag = data.ReadBool();
|
||||
SetAppAssertionPauseState(flag);
|
||||
return NO_ERROR;
|
||||
@ -1512,7 +1512,7 @@ int32_t AppMgrStub::HandleSetAppAssertionPauseState(MessageParcel &data, Message
|
||||
|
||||
int32_t AppMgrStub::HandleStartNativeChildProcess(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::string libName = data.ReadString();
|
||||
int32_t childCount = data.ReadInt32();
|
||||
sptr<IRemoteObject> callback = data.ReadRemoteObject();
|
||||
@ -1527,7 +1527,7 @@ int32_t AppMgrStub::HandleStartNativeChildProcess(MessageParcel &data, MessagePa
|
||||
|
||||
int32_t AppMgrStub::HandleCheckCallingIsUserTestMode(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
pid_t pid = data.ReadInt32();
|
||||
bool isUserTest = false;
|
||||
int32_t ret = CheckCallingIsUserTestMode(pid, isUserTest);
|
||||
|
@ -587,7 +587,7 @@ int32_t AppSchedulerProxy::ScheduleChangeAppGcState(int32_t state)
|
||||
|
||||
void AppSchedulerProxy::AttachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
@ -605,7 +605,7 @@ void AppSchedulerProxy::AttachAppDebug()
|
||||
|
||||
void AppSchedulerProxy::DetachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Write interface token failed.");
|
||||
|
@ -27,7 +27,7 @@ AutoFillEventHandler::AutoFillEventHandler(const std::shared_ptr<AppExecFwk::Eve
|
||||
|
||||
void AutoFillEventHandler::ProcessEvent(const AppExecFwk::InnerEvent::Pointer &event)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (event == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Event is nullptr.");
|
||||
return;
|
||||
|
@ -93,7 +93,7 @@ void AutoFillExtensionCallback::OnError(int32_t errCode, const std::string &name
|
||||
|
||||
void AutoFillExtensionCallback::HandleReloadInModal(const AAFwk::WantParams &wantParams)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
SetModalUIExtensionProxy(nullptr);
|
||||
|
||||
auto oldWindowType = autoFillWindowType_;
|
||||
@ -119,7 +119,7 @@ void AutoFillExtensionCallback::HandleReloadInModal(const AAFwk::WantParams &wan
|
||||
|
||||
int32_t AutoFillExtensionCallback::ReloadInModal(const AAFwk::WantParams &wantParams)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(closeMutex_);
|
||||
auto uiContent = GetUIContent();
|
||||
if (uiContent == nullptr) {
|
||||
@ -154,7 +154,7 @@ int32_t AutoFillExtensionCallback::ReloadInModal(const AAFwk::WantParams &wantPa
|
||||
|
||||
void AutoFillExtensionCallback::OnReceive(const AAFwk::WantParams &wantParams)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
int32_t cmdValue = wantParams.GetIntParam(WANT_PARAMS_AUTO_FILL_CMD_KEY, 0);
|
||||
if (cmdValue == static_cast<int32_t>(AutoFill::AutoFillCommand::RELOAD_IN_MODAL)) {
|
||||
HandleReloadInModal(wantParams);
|
||||
@ -169,7 +169,7 @@ void AutoFillExtensionCallback::OnReceive(const AAFwk::WantParams &wantParams)
|
||||
|
||||
void AutoFillExtensionCallback::UpdateCustomPopupConfig(const AAFwk::WantParams &wantParams)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
AutoFill::AutoFillCustomConfig autoFillCustomConfig = autoFillCustomConfig_;
|
||||
if (wantParams.HasParam(WANT_PARAMS_UPDATE_POPUP_WIDTH) &&
|
||||
wantParams.HasParam(WANT_PARAMS_UPDATE_POPUP_HEIGHT)) {
|
||||
@ -200,7 +200,7 @@ void AutoFillExtensionCallback::UpdateCustomPopupConfig(const AAFwk::WantParams
|
||||
|
||||
void AutoFillExtensionCallback::onRemoteReady(const std::shared_ptr<Ace::ModalUIExtensionProxy> &modalUIExtensionProxy)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (modalUIExtensionProxy == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Proxy is nullptr.");
|
||||
return;
|
||||
@ -210,7 +210,7 @@ void AutoFillExtensionCallback::onRemoteReady(const std::shared_ptr<Ace::ModalUI
|
||||
|
||||
void AutoFillExtensionCallback::onDestroy()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (isReloadInModal_) {
|
||||
isReloadInModal_ = false;
|
||||
return;
|
||||
@ -338,7 +338,7 @@ void AutoFillExtensionCallback::UpdateCustomPopupUIExtension(const AbilityBase::
|
||||
|
||||
void AutoFillExtensionCallback::SendAutoFillSuccess(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(requestCallbackMutex_);
|
||||
if (fillCallback_ != nullptr) {
|
||||
std::string dataStr = want.GetStringParam(WANT_PARAMS_VIEW_DATA_KEY);
|
||||
@ -357,7 +357,7 @@ void AutoFillExtensionCallback::SendAutoFillSuccess(const AAFwk::Want &want)
|
||||
|
||||
void AutoFillExtensionCallback::SendAutoFillFailed(int32_t errCode, const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(requestCallbackMutex_);
|
||||
if (fillCallback_ != nullptr) {
|
||||
std::string fillContent = want.GetStringParam(WANT_PARAMS_FILL_CONTENT);
|
||||
|
@ -54,13 +54,13 @@ AutoFillManager::AutoFillManager()
|
||||
|
||||
AutoFillManager::~AutoFillManager()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
}
|
||||
|
||||
int32_t AutoFillManager::RequestAutoFill(Ace::UIContent *uiContent, const AutoFill::AutoFillRequest &request,
|
||||
const std::shared_ptr<IFillRequestCallback> &fillCallback, AutoFill::AutoFillResult &result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (uiContent == nullptr || fillCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "UIContent or fillCallback is nullptr.");
|
||||
return AutoFill::AUTO_FILL_OBJECT_IS_NULL;
|
||||
@ -76,7 +76,7 @@ int32_t AutoFillManager::RequestAutoFill(Ace::UIContent *uiContent, const AutoFi
|
||||
int32_t AutoFillManager::RequestAutoSave(Ace::UIContent *uiContent, const AutoFill::AutoFillRequest &request,
|
||||
const std::shared_ptr<ISaveRequestCallback> &saveCallback, AutoFill::AutoFillResult &result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (uiContent == nullptr || saveCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "UIContent or save callback is nullptr.");
|
||||
return AutoFill::AUTO_FILL_OBJECT_IS_NULL;
|
||||
@ -139,7 +139,7 @@ int32_t AutoFillManager::HandleRequestExecuteInner(Ace::UIContent *uiContent, co
|
||||
|
||||
void AutoFillManager::UpdateCustomPopupUIExtension(uint32_t autoFillSessionId, const AbilityBase::ViewData &viewData)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
auto extensionCallback = GetAutoFillExtensionCallback(autoFillSessionId);
|
||||
if (extensionCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Extension callback is nullptr.");
|
||||
@ -150,7 +150,7 @@ void AutoFillManager::UpdateCustomPopupUIExtension(uint32_t autoFillSessionId, c
|
||||
|
||||
void AutoFillManager::CloseUIExtension(uint32_t autoFillSessionId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
auto extensionCallback = GetAutoFillExtensionCallback(autoFillSessionId);
|
||||
if (extensionCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Extension callback is nullptr.");
|
||||
@ -162,7 +162,7 @@ void AutoFillManager::CloseUIExtension(uint32_t autoFillSessionId)
|
||||
void AutoFillManager::BindModalUIExtensionCallback(
|
||||
const std::shared_ptr<AutoFillExtensionCallback> &extensionCallback, Ace::ModalUIExtensionCallbacks &callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
callback.onResult = [extensionCallback](int32_t errCode, const AAFwk::Want& want) {
|
||||
extensionCallback->OnResult(errCode, want);
|
||||
};
|
||||
@ -271,7 +271,7 @@ bool AutoFillManager::ConvertAutoFillWindowType(const AutoFill::AutoFillRequest
|
||||
|
||||
void AutoFillManager::SetTimeOutEvent(uint32_t eventId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (eventHandler_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Eventhandler is nullptr.");
|
||||
return;
|
||||
@ -281,7 +281,7 @@ void AutoFillManager::SetTimeOutEvent(uint32_t eventId)
|
||||
|
||||
void AutoFillManager::RemoveEvent(uint32_t eventId)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (eventHandler_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Eventhandler is nullptr.");
|
||||
return;
|
||||
@ -291,7 +291,7 @@ void AutoFillManager::RemoveEvent(uint32_t eventId)
|
||||
|
||||
void AutoFillManager::HandleTimeOut(uint32_t eventId)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::AUTOFILLMGR, "called");
|
||||
auto extensionCallback = GetAutoFillExtensionCallback(eventId);
|
||||
if (extensionCallback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTOFILLMGR, "Extension callback is nullptr.");
|
||||
@ -302,7 +302,7 @@ void AutoFillManager::HandleTimeOut(uint32_t eventId)
|
||||
|
||||
bool AutoFillManager::IsNeedToCreatePopupWindow(const AbilityBase::AutoFillType &autoFillType)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTOFILLMGR, "called");
|
||||
if (autoFillType == AbilityBase::AutoFillType::PASSWORD ||
|
||||
autoFillType == AbilityBase::AutoFillType::USER_NAME ||
|
||||
autoFillType == AbilityBase::AutoFillType::NEW_PASSWORD) {
|
||||
|
@ -94,7 +94,7 @@ ErrCode AbilityAutoStartupClient::Connect()
|
||||
|
||||
ErrCode AbilityAutoStartupClient::SetApplicationAutoStartupByEDM(const AutoStartupInfo &info, bool flag)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->SetApplicationAutoStartupByEDM(info, flag);
|
||||
@ -102,7 +102,7 @@ ErrCode AbilityAutoStartupClient::SetApplicationAutoStartupByEDM(const AutoStart
|
||||
|
||||
ErrCode AbilityAutoStartupClient::CancelApplicationAutoStartupByEDM(const AutoStartupInfo &info, bool flag)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->CancelApplicationAutoStartupByEDM(info, flag);
|
||||
@ -110,7 +110,7 @@ ErrCode AbilityAutoStartupClient::CancelApplicationAutoStartupByEDM(const AutoSt
|
||||
|
||||
ErrCode AbilityAutoStartupClient::QueryAllAutoStartupApplications(std::vector<AutoStartupInfo> &infoList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->QueryAllAutoStartupApplications(infoList);
|
||||
|
@ -299,7 +299,7 @@ AutoStartupStatus AbilityAutoStartupDataManager::QueryAutoStartupData(const Auto
|
||||
int32_t AbilityAutoStartupDataManager::QueryAllAutoStartupApplications(std::vector<AutoStartupInfo> &infoList,
|
||||
int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(kvStorePtrMutex_);
|
||||
if (!CheckKvStore()) {
|
||||
@ -332,7 +332,7 @@ int32_t AbilityAutoStartupDataManager::QueryAllAutoStartupApplications(std::vect
|
||||
int32_t AbilityAutoStartupDataManager::GetCurrentAppAutoStartupData(
|
||||
const std::string &bundleName, std::vector<AutoStartupInfo> &infoList, const std::string &accessTokenId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(kvStorePtrMutex_);
|
||||
if (!CheckKvStore()) {
|
||||
|
@ -48,7 +48,7 @@ AbilityAutoStartupService::~AbilityAutoStartupService() {}
|
||||
|
||||
int32_t AbilityAutoStartupService::RegisterAutoStartupSystemCallback(const sptr<IRemoteObject> &callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
int32_t code = CheckPermissionForSystem();
|
||||
if (code != ERR_OK) {
|
||||
return code;
|
||||
@ -78,7 +78,7 @@ int32_t AbilityAutoStartupService::RegisterAutoStartupSystemCallback(const sptr<
|
||||
|
||||
int32_t AbilityAutoStartupService::UnregisterAutoStartupSystemCallback(const sptr<IRemoteObject> &callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
int32_t code = CheckPermissionForSystem();
|
||||
if (code != ERR_OK) {
|
||||
return code;
|
||||
@ -232,7 +232,7 @@ int32_t AbilityAutoStartupService::InnerCancelApplicationAutoStartup(const AutoS
|
||||
int32_t AbilityAutoStartupService::QueryAllAutoStartupApplications(std::vector<AutoStartupInfo> &infoList,
|
||||
int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
int32_t code = CheckPermissionForEDM();
|
||||
code = code == ERR_OK ? code : CheckPermissionForSystem();
|
||||
if (code != ERR_OK) {
|
||||
@ -247,7 +247,7 @@ int32_t AbilityAutoStartupService::QueryAllAutoStartupApplications(std::vector<A
|
||||
int32_t AbilityAutoStartupService::QueryAllAutoStartupApplicationsWithoutPermission(
|
||||
std::vector<AutoStartupInfo> &infoList, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (!system::GetBoolParameter(PRODUCT_APPBOOT_SETTING_ENABLED, false)) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "Product configuration item is disable.");
|
||||
return ERR_NOT_SUPPORTED_PRODUCT_TYPE;
|
||||
@ -259,7 +259,7 @@ int32_t AbilityAutoStartupService::QueryAllAutoStartupApplicationsWithoutPermiss
|
||||
|
||||
int32_t AbilityAutoStartupService::DeleteAutoStartupData(const std::string &bundleName, const int32_t uid)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
return DelayedSingleton<AbilityAutoStartupDataManager>::GetInstance()->DeleteAutoStartupData(bundleName, uid);
|
||||
}
|
||||
|
||||
@ -336,7 +336,7 @@ void AbilityAutoStartupService::ExecuteCallbacks(bool isCallOn, const AutoStartu
|
||||
void AbilityAutoStartupService::SetDeathRecipient(
|
||||
const sptr<IRemoteObject> &callback, const sptr<IRemoteObject::DeathRecipient> &deathRecipient)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (callback == nullptr || deathRecipient == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "The callerToken or the deathRecipient is empty.");
|
||||
return;
|
||||
@ -353,7 +353,7 @@ void AbilityAutoStartupService::SetDeathRecipient(
|
||||
|
||||
void AbilityAutoStartupService::CleanResource(const wptr<IRemoteObject> &remote)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
auto object = remote.promote();
|
||||
if (object == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "Remote object is nullptr.");
|
||||
@ -399,7 +399,7 @@ AbilityAutoStartupService::ClientDeathRecipient::ClientDeathRecipient(
|
||||
|
||||
void AbilityAutoStartupService::ClientDeathRecipient::OnRemoteDied(const wptr<IRemoteObject> &remote)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
auto abilityAutoStartupService = weakPtr_.lock();
|
||||
if (abilityAutoStartupService == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::AUTO_STARTUP, "abilityAutoStartupService is nullptr.");
|
||||
@ -435,7 +435,7 @@ bool AbilityAutoStartupService::CheckSelfApplication(const std::string &bundleNa
|
||||
bool AbilityAutoStartupService::GetBundleInfo(const std::string &bundleName,
|
||||
AppExecFwk::BundleInfo &bundleInfo, int32_t uid, int32_t &userId, int32_t appIndex)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
|
||||
if (uid == -1) {
|
||||
userId = IPCSkeleton::GetCallingUid() / AppExecFwk::Constants::BASE_USER_RANGE;
|
||||
@ -547,7 +547,7 @@ std::string AbilityAutoStartupService::GetExtensionTypeName(AppExecFwk::Extensio
|
||||
|
||||
std::shared_ptr<AppExecFwk::BundleMgrClient> AbilityAutoStartupService::GetBundleMgrClient()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AUTO_STARTUP, "called");
|
||||
if (bundleMgrClient_ == nullptr) {
|
||||
bundleMgrClient_ = DelayedSingleton<AppExecFwk::BundleMgrClient>::GetInstance();
|
||||
}
|
||||
|
@ -2217,7 +2217,7 @@ static bool CheckIsNumString(const std::string &numStr)
|
||||
|
||||
void AbilityConnectManager::HandleNotifyAssertFaultDialogDied(const std::shared_ptr<AbilityRecord> &abilityRecord)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_POINTER(abilityRecord);
|
||||
if (abilityRecord->GetAbilityInfo().name != ABILITY_NAME_ASSERT_FAULT_DIALOG ||
|
||||
abilityRecord->GetAbilityInfo().bundleName != BUNDLE_NAME_DIALOG) {
|
||||
|
@ -36,7 +36,7 @@ void AbilityDebugDeal::RegisterAbilityDebugResponse()
|
||||
|
||||
void AbilityDebugDeal::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
for (auto &token : tokens) {
|
||||
auto abilityRecord = Token::GetAbilityRecordByToken(token);
|
||||
if (abilityRecord == nullptr) {
|
||||
@ -49,7 +49,7 @@ void AbilityDebugDeal::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObje
|
||||
|
||||
void AbilityDebugDeal::OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
for (auto &token : tokens) {
|
||||
auto abilityRecord = Token::GetAbilityRecordByToken(token);
|
||||
if (abilityRecord == nullptr) {
|
||||
|
@ -51,7 +51,7 @@ int32_t AbilityFirstFrameStateObserverSet::AddAbilityFirstFrameStateObserver(
|
||||
|
||||
void AbilityFirstFrameStateObserverSet::AddObserverDeathRecipient(const sptr<IRemoteBroker> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (observer == nullptr || observer->AsObject() == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "The param observer or observer->AsObject is nullptr.");
|
||||
return;
|
||||
@ -157,7 +157,7 @@ void AbilityFirstFrameStateObserverManager::Init()
|
||||
int32_t AbilityFirstFrameStateObserverManager::RegisterAbilityFirstFrameStateObserver(
|
||||
const sptr<IAbilityFirstFrameStateObserver> &observer, const std::string &targetBundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!PermissionVerification::GetInstance()->IsSystemAppCall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "verify system app failed");
|
||||
return ERR_NOT_SYSTEM_APP;
|
||||
@ -177,7 +177,7 @@ int32_t AbilityFirstFrameStateObserverManager::RegisterAbilityFirstFrameStateObs
|
||||
int32_t AbilityFirstFrameStateObserverManager::UnregisterAbilityFirstFrameStateObserver(
|
||||
const sptr<IAbilityFirstFrameStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!PermissionVerification::GetInstance()->IsSystemAppCall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "verify system app failed");
|
||||
return ERR_NOT_SYSTEM_APP;
|
||||
|
@ -1658,7 +1658,7 @@ ErrCode AbilityManagerClient::UnregisterIAbilityManagerCollaborator(int32_t type
|
||||
|
||||
ErrCode AbilityManagerClient::RegisterStatusBarDelegate(sptr<AbilityRuntime::IStatusBarDelegate> delegate)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->RegisterStatusBarDelegate(delegate);
|
||||
@ -1666,7 +1666,7 @@ ErrCode AbilityManagerClient::RegisterStatusBarDelegate(sptr<AbilityRuntime::ISt
|
||||
|
||||
ErrCode AbilityManagerClient::KillProcessWithPrepareTerminate(const std::vector<int32_t>& pids)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->KillProcessWithPrepareTerminate(pids);
|
||||
@ -1674,7 +1674,7 @@ ErrCode AbilityManagerClient::KillProcessWithPrepareTerminate(const std::vector<
|
||||
|
||||
ErrCode AbilityManagerClient::RegisterAutoStartupSystemCallback(sptr<IRemoteObject> callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->RegisterAutoStartupSystemCallback(callback);
|
||||
@ -1682,7 +1682,7 @@ ErrCode AbilityManagerClient::RegisterAutoStartupSystemCallback(sptr<IRemoteObje
|
||||
|
||||
ErrCode AbilityManagerClient::UnregisterAutoStartupSystemCallback(sptr<IRemoteObject> callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->UnregisterAutoStartupSystemCallback(callback);
|
||||
@ -1690,7 +1690,7 @@ ErrCode AbilityManagerClient::UnregisterAutoStartupSystemCallback(sptr<IRemoteOb
|
||||
|
||||
ErrCode AbilityManagerClient::SetApplicationAutoStartup(const AutoStartupInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->SetApplicationAutoStartup(info);
|
||||
@ -1698,7 +1698,7 @@ ErrCode AbilityManagerClient::SetApplicationAutoStartup(const AutoStartupInfo &i
|
||||
|
||||
ErrCode AbilityManagerClient::CancelApplicationAutoStartup(const AutoStartupInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->CancelApplicationAutoStartup(info);
|
||||
@ -1706,7 +1706,7 @@ ErrCode AbilityManagerClient::CancelApplicationAutoStartup(const AutoStartupInfo
|
||||
|
||||
ErrCode AbilityManagerClient::QueryAllAutoStartupApplications(std::vector<AutoStartupInfo> &infoList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->QueryAllAutoStartupApplications(infoList);
|
||||
@ -1731,7 +1731,7 @@ ErrCode AbilityManagerClient::RegisterSessionHandler(sptr<IRemoteObject> object)
|
||||
|
||||
ErrCode AbilityManagerClient::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->RegisterAppDebugListener(listener);
|
||||
@ -1739,7 +1739,7 @@ ErrCode AbilityManagerClient::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebu
|
||||
|
||||
ErrCode AbilityManagerClient::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->UnregisterAppDebugListener(listener);
|
||||
@ -1747,7 +1747,7 @@ ErrCode AbilityManagerClient::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDe
|
||||
|
||||
ErrCode AbilityManagerClient::AttachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->AttachAppDebug(bundleName);
|
||||
@ -1755,7 +1755,7 @@ ErrCode AbilityManagerClient::AttachAppDebug(const std::string &bundleName)
|
||||
|
||||
ErrCode AbilityManagerClient::DetachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->DetachAppDebug(bundleName);
|
||||
@ -1764,7 +1764,7 @@ ErrCode AbilityManagerClient::DetachAppDebug(const std::string &bundleName)
|
||||
ErrCode AbilityManagerClient::ExecuteIntent(uint64_t key, sptr<IRemoteObject> callerToken,
|
||||
const InsightIntentExecuteParam ¶m)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->ExecuteIntent(key, callerToken, param);
|
||||
@ -1784,7 +1784,7 @@ bool AbilityManagerClient::IsAbilityControllerStart(const Want &want)
|
||||
ErrCode AbilityManagerClient::ExecuteInsightIntentDone(sptr<IRemoteObject> token, uint64_t intentId,
|
||||
const InsightIntentExecuteResult &result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->ExecuteInsightIntentDone(token, intentId, result);
|
||||
@ -1792,7 +1792,7 @@ ErrCode AbilityManagerClient::ExecuteInsightIntentDone(sptr<IRemoteObject> token
|
||||
|
||||
int32_t AbilityManagerClient::GetForegroundUIAbilities(std::vector<AppExecFwk::AbilityStateData> &list)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_INVALID_VALUE(abms);
|
||||
return abms->GetForegroundUIAbilities(list);
|
||||
@ -1829,7 +1829,7 @@ int32_t AbilityManagerClient::NotifyDebugAssertResult(uint64_t assertFaultSessio
|
||||
int32_t AbilityManagerClient::UpdateSessionInfoBySCB(std::list<SessionInfo> &sessionInfos, int32_t userId,
|
||||
std::vector<int32_t> &sessionIds)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_NOT_CONNECTED(abms);
|
||||
return abms->UpdateSessionInfoBySCB(sessionInfos, userId, sessionIds);
|
||||
@ -1856,7 +1856,7 @@ ErrCode AbilityManagerClient::GetUIExtensionSessionInfo(const sptr<IRemoteObject
|
||||
int32_t AbilityManagerClient::RestartApp(const AAFwk::Want &want)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_INVALID_VALUE(abms);
|
||||
return abms->RestartApp(want);
|
||||
@ -1865,7 +1865,7 @@ int32_t AbilityManagerClient::RestartApp(const AAFwk::Want &want)
|
||||
int32_t AbilityManagerClient::OpenAtomicService(Want& want, const StartOptions &options,
|
||||
sptr<IRemoteObject> callerToken, int32_t requestCode, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_INVALID_VALUE(abms);
|
||||
return abms->OpenAtomicService(want, options, callerToken, requestCode, userId);
|
||||
@ -1873,7 +1873,7 @@ int32_t AbilityManagerClient::OpenAtomicService(Want& want, const StartOptions &
|
||||
|
||||
int32_t AbilityManagerClient::SetResidentProcessEnabled(const std::string &bundleName, bool enable)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto abms = GetAbilityManager();
|
||||
CHECK_POINTER_RETURN_INVALID_VALUE(abms);
|
||||
return abms->SetResidentProcessEnabled(bundleName, enable);
|
||||
|
@ -3113,7 +3113,7 @@ int AbilityManagerProxy::SendDialogResult(const Want &want, const std::string &d
|
||||
int32_t AbilityManagerProxy::RegisterAbilityFirstFrameStateObserver(
|
||||
const sptr<IAbilityFirstFrameStateObserver> &observer, const std::string &targetBundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -3143,7 +3143,7 @@ int32_t AbilityManagerProxy::RegisterAbilityFirstFrameStateObserver(
|
||||
int32_t AbilityManagerProxy::UnregisterAbilityFirstFrameStateObserver(
|
||||
const sptr<IAbilityFirstFrameStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -4640,7 +4640,7 @@ int AbilityManagerProxy::PrepareTerminateAbilityBySCB(const sptr<SessionInfo> &s
|
||||
|
||||
int32_t AbilityManagerProxy::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -4664,7 +4664,7 @@ int32_t AbilityManagerProxy::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebug
|
||||
|
||||
int32_t AbilityManagerProxy::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -4688,7 +4688,7 @@ int32_t AbilityManagerProxy::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDeb
|
||||
|
||||
int32_t AbilityManagerProxy::AttachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -4712,7 +4712,7 @@ int32_t AbilityManagerProxy::AttachAppDebug(const std::string &bundleName)
|
||||
|
||||
int32_t AbilityManagerProxy::DetachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write interface token failed.");
|
||||
@ -4737,7 +4737,7 @@ int32_t AbilityManagerProxy::DetachAppDebug(const std::string &bundleName)
|
||||
int32_t AbilityManagerProxy::ExecuteIntent(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
const InsightIntentExecuteParam ¶m)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
MessageParcel reply;
|
||||
MessageOption option;
|
||||
@ -4797,7 +4797,7 @@ bool AbilityManagerProxy::IsAbilityControllerStart(const Want &want)
|
||||
int32_t AbilityManagerProxy::ExecuteInsightIntentDone(const sptr<IRemoteObject> &token, uint64_t intentId,
|
||||
const InsightIntentExecuteResult &result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Write remote object failed.");
|
||||
@ -4826,7 +4826,7 @@ int32_t AbilityManagerProxy::ExecuteInsightIntentDone(const sptr<IRemoteObject>
|
||||
|
||||
int32_t AbilityManagerProxy::GetForegroundUIAbilities(std::vector<AppExecFwk::AbilityStateData> &list)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
MessageParcel data;
|
||||
if (!WriteInterfaceToken(data)) {
|
||||
return ERR_FLATTEN_OBJECT;
|
||||
|
@ -1542,7 +1542,7 @@ int AbilityManagerService::StartAbilityAsCaller(const Want &want, const StartOpt
|
||||
int AbilityManagerService::StartAbilityForResultAsCaller(
|
||||
const Want &want, const sptr<IRemoteObject> &callerToken, int requestCode, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_CALLER_IS_SYSTEM_APP;
|
||||
|
||||
AbilityUtil::RemoveShowModeKey(const_cast<Want &>(want));
|
||||
@ -1557,7 +1557,7 @@ int AbilityManagerService::StartAbilityForResultAsCaller(
|
||||
int AbilityManagerService::StartAbilityForResultAsCaller(const Want &want, const StartOptions &startOptions,
|
||||
const sptr<IRemoteObject> &callerToken, int requestCode, int32_t userId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_CALLER_IS_SYSTEM_APP;
|
||||
|
||||
AAFwk::Want newWant = want;
|
||||
@ -2831,7 +2831,7 @@ void AbilityManagerService::SetPickerElementName(const sptr<SessionInfo> &extens
|
||||
|
||||
void AbilityManagerService::SetAutoFillElementName(const sptr<SessionInfo> &extensionSessionInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_POINTER_IS_NULLPTR(extensionSessionInfo);
|
||||
std::vector<std::string> argList;
|
||||
if (extensionSessionInfo->want.GetStringParam(UIEXTENSION_TYPE_KEY) == AUTO_FILL_PASSWORD_TPYE) {
|
||||
@ -6567,7 +6567,7 @@ void AbilityManagerService::StartResidentApps()
|
||||
|
||||
void AbilityManagerService::StartAutoStartupApps()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (abilityAutoStartupService_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "abilityAutoStartupService_ is nullptr.");
|
||||
return;
|
||||
@ -6624,7 +6624,7 @@ void AbilityManagerService::RetryStartAutoStartupApps(
|
||||
|
||||
void AbilityManagerService::SubscribeScreenUnlockedEvent()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
// add listen screen unlocked.
|
||||
EventFwk::MatchingSkills matchingSkills;
|
||||
matchingSkills.AddEvent(EventFwk::CommonEventSupport::COMMON_EVENT_SCREEN_UNLOCKED);
|
||||
@ -6675,7 +6675,7 @@ void AbilityManagerService::SubscribeScreenUnlockedEvent()
|
||||
|
||||
void AbilityManagerService::UnSubscribeScreenUnlockedEvent()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
bool subResult = EventFwk::CommonEventManager::UnSubscribeCommonEvent(screenSubscriber_);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Screen unlocked event subscriber unsubscribe result is %{public}d.", subResult);
|
||||
}
|
||||
@ -9924,7 +9924,7 @@ int32_t AbilityManagerService::CheckProcessOptions(const Want &want, const Start
|
||||
|
||||
int32_t AbilityManagerService::RegisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Permission verification failed.");
|
||||
return CHECK_PERMISSION_FAILED;
|
||||
@ -9934,7 +9934,7 @@ int32_t AbilityManagerService::RegisterAppDebugListener(sptr<AppExecFwk::IAppDeb
|
||||
|
||||
int32_t AbilityManagerService::UnregisterAppDebugListener(sptr<AppExecFwk::IAppDebugListener> listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Permission verification failed.");
|
||||
return CHECK_PERMISSION_FAILED;
|
||||
@ -9966,7 +9966,7 @@ std::shared_ptr<AbilityDebugDeal> AbilityManagerService::ConnectInitAbilityDebug
|
||||
|
||||
int32_t AbilityManagerService::AttachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!system::GetBoolParameter(DEVELOPER_MODE_STATE, false)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Developer Mode is false.");
|
||||
return ERR_NOT_DEVELOPER_MODE;
|
||||
@ -9984,7 +9984,7 @@ int32_t AbilityManagerService::AttachAppDebug(const std::string &bundleName)
|
||||
|
||||
int32_t AbilityManagerService::DetachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall() &&
|
||||
!AAFwk::PermissionVerification::GetInstance()->IsShellCall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Permission verification failed.");
|
||||
@ -9997,7 +9997,7 @@ int32_t AbilityManagerService::DetachAppDebug(const std::string &bundleName)
|
||||
int32_t AbilityManagerService::ExecuteIntent(uint64_t key, const sptr<IRemoteObject> &callerToken,
|
||||
const InsightIntentExecuteParam ¶m)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto paramPtr = std::make_shared<InsightIntentExecuteParam>(param);
|
||||
int32_t ret = DelayedSingleton<InsightIntentExecuteManager>::GetInstance()->CheckAndUpdateParam(key, callerToken,
|
||||
paramPtr);
|
||||
@ -10199,7 +10199,7 @@ int32_t AbilityManagerService::CancelApplicationAutoStartupByEDM(const AutoStart
|
||||
|
||||
int32_t AbilityManagerService::GetForegroundUIAbilities(std::vector<AppExecFwk::AbilityStateData> &list)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_CALLER_IS_SYSTEM_APP;
|
||||
auto isPerm = AAFwk::PermissionVerification::GetInstance()->VerifyRunningInfoPerm();
|
||||
if (!isPerm) {
|
||||
@ -10344,7 +10344,7 @@ int32_t AbilityManagerService::GenerateEmbeddableUIAbilityRequest(
|
||||
|
||||
int32_t AbilityManagerService::CheckDebugAssertPermission()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
if (!system::GetBoolParameter(PRODUCT_ASSERT_FAULT_DIALOG_ENABLED, false)) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Product of assert fault dialog is not enabled.");
|
||||
@ -10389,7 +10389,7 @@ void AbilityManagerService::CloseAssertDialog(const std::string &assertSessionId
|
||||
|
||||
int32_t AbilityManagerService::SetResidentProcessEnabled(const std::string &bundleName, bool enable)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSystemAppCall()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Permission verification failed.");
|
||||
return ERR_NOT_SYSTEM_APP;
|
||||
@ -11031,7 +11031,7 @@ void AbilityManagerService::HandleRestartResidentProcessDependedOnWeb()
|
||||
int32_t AbilityManagerService::PreStartMission(const std::string& bundleName, const std::string& moduleName,
|
||||
const std::string& abilityName, const std::string& startTime)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_CALLER_IS_SYSTEM_APP;
|
||||
|
||||
if (!PermissionVerification::GetInstance()->VerifyPreStartAtomicServicePermission()) {
|
||||
@ -11070,7 +11070,7 @@ int32_t AbilityManagerService::PreStartMission(const std::string& bundleName, co
|
||||
|
||||
int32_t AbilityManagerService::PreStartInner(const FreeInstallInfo& taskInfo)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
|
||||
const Want& want = taskInfo.want;
|
||||
sptr<IRemoteObject> callerToken = taskInfo.callerToken;
|
||||
@ -11128,7 +11128,7 @@ int32_t AbilityManagerService::PreStartInner(const FreeInstallInfo& taskInfo)
|
||||
int32_t AbilityManagerService::StartUIAbilityByPreInstall(const FreeInstallInfo &taskInfo)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
if (!taskInfo.isFreeInstallFinished || !taskInfo.isInstalled) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "free install is not finished or has failed.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -11147,7 +11147,7 @@ int32_t AbilityManagerService::StartUIAbilityByPreInstall(const FreeInstallInfo
|
||||
auto bundleName = want.GetElement().GetBundleName();
|
||||
auto abilityName = want.GetElement().GetAbilityName();
|
||||
auto startTime = want.GetStringParam(Want::PARAM_RESV_START_TIME);
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called."
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called"
|
||||
"sessionId=%{public}s,bundleName=%{public}s,abilityName=%{public}s,startTime=%{public}s",
|
||||
sessionId.c_str(), bundleName.c_str(), abilityName.c_str(), startTime.c_str());
|
||||
sptr<SessionInfo> sessionInfo = nullptr;
|
||||
@ -11176,7 +11176,7 @@ int32_t AbilityManagerService::StartUIAbilityByPreInstall(const FreeInstallInfo
|
||||
int AbilityManagerService::StartUIAbilityByPreInstallInner(sptr<SessionInfo> sessionInfo,
|
||||
uint32_t specifyTokenId, bool &isColdStart)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
auto callerToken = sessionInfo->callerToken;
|
||||
const auto& want = sessionInfo->want;
|
||||
const auto userId = sessionInfo->userId;
|
||||
@ -11300,7 +11300,7 @@ int AbilityManagerService::StartUIAbilityByPreInstallInner(sptr<SessionInfo> ses
|
||||
void AbilityManagerService::NotifySCBToHandleAtomicServiceException(const std::string& sessionId, int32_t errCode,
|
||||
const std::string& reason)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
sptr<SessionInfo> sessionInfo = nullptr;
|
||||
{
|
||||
std::lock_guard<ffrt::mutex> guard(preStartSessionMapLock_);
|
||||
@ -11331,7 +11331,7 @@ void AbilityManagerService::RemovePreStartSession(const std::string& sessionId)
|
||||
ErrCode AbilityManagerService::OpenLink(const Want& want, sptr<IRemoteObject> callerToken,
|
||||
int32_t userId, int requestCode)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
std::string url = want.GetUriString();
|
||||
bool isAtomicServiceShortUrl = false;
|
||||
#ifdef APP_DOMAIN_VERIFY_ENABLED
|
||||
|
@ -3099,7 +3099,7 @@ int AbilityManagerStub::SendDialogResultInner(MessageParcel &data, MessageParcel
|
||||
|
||||
int AbilityManagerStub::RegisterAbilityFirstFrameStateObserverInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto callback = iface_cast<AppExecFwk::IAbilityFirstFrameStateObserver>(data.ReadRemoteObject());
|
||||
if (callback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Callback is null.");
|
||||
@ -3117,7 +3117,7 @@ int AbilityManagerStub::RegisterAbilityFirstFrameStateObserverInner(MessageParce
|
||||
|
||||
int AbilityManagerStub::UnregisterAbilityFirstFrameStateObserverInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto callback = iface_cast<AppExecFwk::IAbilityFirstFrameStateObserver>(data.ReadRemoteObject());
|
||||
if (callback == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Callback is null.");
|
||||
@ -3429,7 +3429,7 @@ int AbilityManagerStub::RegisterSessionHandlerInner(MessageParcel &data, Message
|
||||
|
||||
int32_t AbilityManagerStub::RegisterAppDebugListenerInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto appDebugLister = iface_cast<AppExecFwk::IAppDebugListener>(data.ReadRemoteObject());
|
||||
if (appDebugLister == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "App debug lister is nullptr.");
|
||||
@ -3446,7 +3446,7 @@ int32_t AbilityManagerStub::RegisterAppDebugListenerInner(MessageParcel &data, M
|
||||
|
||||
int32_t AbilityManagerStub::UnregisterAppDebugListenerInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto appDebugLister = iface_cast<AppExecFwk::IAppDebugListener>(data.ReadRemoteObject());
|
||||
if (appDebugLister == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "App debug lister is nullptr.");
|
||||
@ -3528,7 +3528,7 @@ int32_t AbilityManagerStub::ExecuteIntentInner(MessageParcel &data, MessageParce
|
||||
|
||||
int AbilityManagerStub::StartAbilityForResultAsCallerInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::unique_ptr<Want> want(data.ReadParcelable<Want>());
|
||||
if (want == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "The want is nullptr.");
|
||||
@ -3547,7 +3547,7 @@ int AbilityManagerStub::StartAbilityForResultAsCallerInner(MessageParcel &data,
|
||||
|
||||
int AbilityManagerStub::StartAbilityForResultAsCallerForOptionsInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::unique_ptr<Want> want(data.ReadParcelable<Want>());
|
||||
if (want == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "The want is nullptr.");
|
||||
@ -3592,7 +3592,7 @@ int32_t AbilityManagerStub::StartAbilityByInsightIntentInner(MessageParcel &data
|
||||
|
||||
int32_t AbilityManagerStub::ExecuteInsightIntentDoneInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto token = data.ReadRemoteObject();
|
||||
if (token == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Failed to get remote object.");
|
||||
@ -3680,7 +3680,7 @@ int32_t AbilityManagerStub::NotifyDebugAssertResultInner(MessageParcel &data, Me
|
||||
|
||||
int32_t AbilityManagerStub::GetForegroundUIAbilitiesInner(MessageParcel &data, MessageParcel &reply)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::vector<AppExecFwk::AbilityStateData> abilityStateDatas;
|
||||
int32_t result = GetForegroundUIAbilities(abilityStateDatas);
|
||||
if (result != ERR_OK) {
|
||||
|
@ -23,7 +23,7 @@ namespace OHOS {
|
||||
namespace AAFwk {
|
||||
void ConvertCallbackImpl::OnConvert(int resultCode, AAFwk::Want& want)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
std::unique_lock<ffrt::mutex> lock(taskMutex_);
|
||||
if (task_) {
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "resultCode:%{public}d", resultCode);
|
||||
@ -33,7 +33,7 @@ void ConvertCallbackImpl::OnConvert(int resultCode, AAFwk::Want& want)
|
||||
|
||||
void ConvertCallbackImpl::Cancel()
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
std::unique_lock<ffrt::mutex> lock(taskMutex_);
|
||||
task_ = nullptr;
|
||||
}
|
||||
|
@ -513,7 +513,7 @@ int32_t AppExitReasonDataManager::GetAbilitySessionId(uint32_t accessTokenId,
|
||||
int32_t AppExitReasonDataManager::SetUIExtensionAbilityExitReason(
|
||||
const std::string &bundleName, const std::vector<std::string> &extensionList, const AAFwk::ExitReason &exitReason)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGW(AAFwkTag::ABILITYMGR, "Invalid bundle name.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -548,7 +548,7 @@ int32_t AppExitReasonDataManager::SetUIExtensionAbilityExitReason(
|
||||
bool AppExitReasonDataManager::GetUIExtensionAbilityExitReason(const std::string &keyEx,
|
||||
AAFwk::ExitReason &exitReason)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(kvStorePtrMutex_);
|
||||
if (!CheckKvStore()) {
|
||||
@ -676,7 +676,7 @@ DistributedKv::Key AppExitReasonDataManager::GetAbilityRecoverInfoKey(uint32_t a
|
||||
DistributedKv::Value AppExitReasonDataManager::ConvertAppExitReasonInfoToValueOfExtensionName(
|
||||
const std::string &extensionListName, const AAFwk::ExitReason &exitReason)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::chrono::milliseconds nowMs =
|
||||
std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now().time_since_epoch());
|
||||
nlohmann::json jsonObject = nlohmann::json {
|
||||
|
@ -161,7 +161,7 @@ int32_t AppExitReasonHelper::RecordProcessExitReason(const int32_t pid, const st
|
||||
int32_t AppExitReasonHelper::RecordProcessExtensionExitReason(
|
||||
const int32_t pid, const std::string &bundleName, const ExitReason &exitReason)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
CHECK_POINTER_AND_RETURN(subManagersHelper_, ERR_NULL_OBJECT);
|
||||
auto connectManager = subManagersHelper_->GetCurrentConnectManager();
|
||||
CHECK_POINTER_AND_RETURN(connectManager, ERR_NULL_OBJECT);
|
||||
|
@ -36,7 +36,7 @@ AssertFaultCallbackDeathMgr::~AssertFaultCallbackDeathMgr()
|
||||
|
||||
void AssertFaultCallbackDeathMgr::AddAssertFaultCallback(sptr<IRemoteObject> &remote, CallbackTask callback)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
if (remote == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Params remote is nullptr.");
|
||||
@ -68,7 +68,7 @@ void AssertFaultCallbackDeathMgr::AddAssertFaultCallback(sptr<IRemoteObject> &re
|
||||
|
||||
void AssertFaultCallbackDeathMgr::RemoveAssertFaultCallback(const wptr<IRemoteObject> &remote, bool isCallbackDeath)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
auto callback = remote.promote();
|
||||
if (callback == nullptr) {
|
||||
@ -98,7 +98,7 @@ void AssertFaultCallbackDeathMgr::RemoveAssertFaultCallback(const wptr<IRemoteOb
|
||||
|
||||
void AssertFaultCallbackDeathMgr::CallAssertFaultCallback(uint64_t assertFaultSessionId, AAFwk::UserStatus status)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
DeathItem item;
|
||||
{
|
||||
|
@ -97,7 +97,7 @@ sptr<ModalSystemAssertUIExtension::AssertDialogConnection> ModalSystemAssertUIEx
|
||||
|
||||
bool ModalSystemAssertUIExtension::CreateModalUIExtension(const AAFwk::Want &want)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::unique_lock<std::mutex> lockAssertResult(assertResultMutex_);
|
||||
if (reqeustCount_++ != 0) {
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Task busy, waiting for processing.");
|
||||
@ -133,7 +133,7 @@ bool ModalSystemAssertUIExtension::CreateModalUIExtension(const AAFwk::Want &wan
|
||||
|
||||
bool ModalSystemAssertUIExtension::DisconnectSystemUI()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
bool retVal = true;
|
||||
do {
|
||||
auto abilityManagerClient = AAFwk::AbilityManagerClient::GetInstance();
|
||||
@ -190,7 +190,7 @@ void ModalSystemAssertUIExtension::AssertDialogConnection::SetReqeustAssertDialo
|
||||
void ModalSystemAssertUIExtension::AssertDialogConnection::OnAbilityConnectDone(
|
||||
const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remote, int resultCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (remote == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Input remote object is nullptr.");
|
||||
return;
|
||||
@ -224,7 +224,7 @@ void ModalSystemAssertUIExtension::AssertDialogConnection::OnAbilityConnectDone(
|
||||
void ModalSystemAssertUIExtension::AssertDialogConnection::OnAbilityDisconnectDone(
|
||||
const AppExecFwk::ElementName &element, int resultCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
ModalSystemAssertUIExtension::GetInstance().TryNotifyOneWaitingThread();
|
||||
}
|
||||
} // namespace AbilityRuntime
|
||||
|
@ -123,7 +123,7 @@ bool ExtensionRecordManager::IsBelongToManager(const AppExecFwk::AbilityInfo &ab
|
||||
|
||||
int32_t ExtensionRecordManager::GetActiveUIExtensionList(const int32_t pid, std::vector<std::string> &extensionList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
for (const auto &it : extensionRecords_) {
|
||||
if (it.second == nullptr || it.second->abilityRecord_ == nullptr ||
|
||||
@ -140,7 +140,7 @@ int32_t ExtensionRecordManager::GetActiveUIExtensionList(const int32_t pid, std:
|
||||
int32_t ExtensionRecordManager::GetActiveUIExtensionList(
|
||||
const std::string &bundleName, std::vector<std::string> &extensionList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
for (const auto &it : extensionRecords_) {
|
||||
if (it.second == nullptr || it.second->abilityRecord_ == nullptr ||
|
||||
@ -640,7 +640,7 @@ std::shared_ptr<ExtensionRecord> ExtensionRecordManager::GetExtensionRecordById(
|
||||
|
||||
void ExtensionRecordManager::LoadTimeout(int32_t extensionRecordId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto uiExtensionRecord = std::static_pointer_cast<UIExtensionRecord>(GetExtensionRecordById(extensionRecordId));
|
||||
if (uiExtensionRecord == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Parsing ui extension record failed.");
|
||||
@ -652,7 +652,7 @@ void ExtensionRecordManager::LoadTimeout(int32_t extensionRecordId)
|
||||
|
||||
void ExtensionRecordManager::ForegroundTimeout(int32_t extensionRecordId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto uiExtensionRecord = std::static_pointer_cast<UIExtensionRecord>(GetExtensionRecordById(extensionRecordId));
|
||||
if (uiExtensionRecord == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Parsing ui extension record failed.");
|
||||
@ -664,7 +664,7 @@ void ExtensionRecordManager::ForegroundTimeout(int32_t extensionRecordId)
|
||||
|
||||
void ExtensionRecordManager::BackgroundTimeout(int32_t extensionRecordId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto uiExtensionRecord = std::static_pointer_cast<UIExtensionRecord>(GetExtensionRecordById(extensionRecordId));
|
||||
if (uiExtensionRecord == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Parsing ui extension record failed.");
|
||||
@ -676,7 +676,7 @@ void ExtensionRecordManager::BackgroundTimeout(int32_t extensionRecordId)
|
||||
|
||||
void ExtensionRecordManager::TerminateTimeout(int32_t extensionRecordId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
auto uiExtensionRecord = std::static_pointer_cast<UIExtensionRecord>(GetExtensionRecordById(extensionRecordId));
|
||||
if (uiExtensionRecord == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Parsing ui extension record failed.");
|
||||
|
@ -189,7 +189,7 @@ int32_t ResidentProcessManager::SetResidentProcessEnabled(
|
||||
void ResidentProcessManager::UpdateResidentProcessesStatus(
|
||||
const std::string &bundleName, bool localEnable, bool updateEnable)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Bundle name is empty!");
|
||||
return;
|
||||
|
@ -56,28 +56,28 @@ void UIExtensionRecord::HandleNotifyUIExtensionTimeout(ErrorCode code)
|
||||
|
||||
void UIExtensionRecord::LoadTimeout()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HandleNotifyUIExtensionTimeout(ErrorCode::LOAD_TIMEOUT);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Notify wms, the uiextension load time out.");
|
||||
}
|
||||
|
||||
void UIExtensionRecord::ForegroundTimeout()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HandleNotifyUIExtensionTimeout(ErrorCode::FOREGROUND_TIMEOUT);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Notify wms, the uiextension move foreground time out.");
|
||||
}
|
||||
|
||||
void UIExtensionRecord::BackgroundTimeout()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HandleNotifyUIExtensionTimeout(ErrorCode::BACKGROUND_TIMEOUT);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Notify wms, the uiextension move background time out.");
|
||||
}
|
||||
|
||||
void UIExtensionRecord::TerminateTimeout()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
HandleNotifyUIExtensionTimeout(ErrorCode::TERMINATE_TIMEOUT);
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Notify wms, the uiextension terminate time out.");
|
||||
}
|
||||
|
@ -112,7 +112,7 @@ int32_t AppConfigDataManager::SetAppWaitingDebugInfo(const std::string &bundleNa
|
||||
|
||||
int32_t AppConfigDataManager::ClearAppWaitingDebugInfo()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(kvStorePtrMutex_);
|
||||
if (!CheckKvStore()) {
|
||||
@ -137,7 +137,7 @@ int32_t AppConfigDataManager::ClearAppWaitingDebugInfo()
|
||||
|
||||
int32_t AppConfigDataManager::GetAppWaitingDebugList(std::vector<std::string> &bundleNameList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(kvStorePtrMutex_);
|
||||
if (!CheckKvStore()) {
|
||||
|
@ -22,7 +22,7 @@ namespace OHOS {
|
||||
namespace AppExecFwk {
|
||||
int32_t AppDebugManager::RegisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (listener == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Listener is nullptr.");
|
||||
return ERR_INVALID_DATA;
|
||||
@ -48,7 +48,7 @@ int32_t AppDebugManager::RegisterAppDebugListener(const sptr<IAppDebugListener>
|
||||
|
||||
int32_t AppDebugManager::UnregisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (listener == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Listener is nullptr.");
|
||||
return ERR_INVALID_DATA;
|
||||
@ -70,7 +70,7 @@ int32_t AppDebugManager::UnregisterAppDebugListener(const sptr<IAppDebugListener
|
||||
|
||||
void AppDebugManager::StartDebug(const std::vector<AppDebugInfo> &infos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
std::vector<AppDebugInfo> incrementInfos;
|
||||
GetIncrementAppDebugInfos(infos, incrementInfos);
|
||||
@ -88,7 +88,7 @@ void AppDebugManager::StartDebug(const std::vector<AppDebugInfo> &infos)
|
||||
|
||||
void AppDebugManager::StopDebug(const std::vector<AppDebugInfo> &infos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
std::vector<AppDebugInfo> debugInfos;
|
||||
for (auto &it : infos) {
|
||||
@ -148,7 +148,7 @@ void AppDebugManager::GetIncrementAppDebugInfos(
|
||||
|
||||
void AppDebugManager::RemoveAppDebugInfo(const AppDebugInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(mutex_);
|
||||
auto isExist = [this, info](const AppDebugInfo &debugInfo) {
|
||||
return (debugInfo.bundleName == info.bundleName && debugInfo.pid == info.pid &&
|
||||
|
@ -318,7 +318,7 @@ int32_t AppLifeCycleDeal::ChangeAppGcState(int32_t state)
|
||||
|
||||
int32_t AppLifeCycleDeal::AttachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appThread is nullptr.");
|
||||
@ -330,7 +330,7 @@ int32_t AppLifeCycleDeal::AttachAppDebug()
|
||||
|
||||
int32_t AppLifeCycleDeal::DetachAppDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appThread is nullptr.");
|
||||
@ -342,7 +342,7 @@ int32_t AppLifeCycleDeal::DetachAppDebug()
|
||||
|
||||
int AppLifeCycleDeal::DumpIpcStart(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT))
|
||||
@ -356,7 +356,7 @@ int AppLifeCycleDeal::DumpIpcStart(std::string& result)
|
||||
|
||||
int AppLifeCycleDeal::DumpIpcStop(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STAT))
|
||||
@ -370,7 +370,7 @@ int AppLifeCycleDeal::DumpIpcStop(std::string& result)
|
||||
|
||||
int AppLifeCycleDeal::DumpIpcStat(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_STAT, strlen(MSG_DUMP_IPC_STAT))
|
||||
@ -384,7 +384,7 @@ int AppLifeCycleDeal::DumpIpcStat(std::string& result)
|
||||
|
||||
int AppLifeCycleDeal::DumpFfrt(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appThread = GetApplicationClient();
|
||||
if (appThread == nullptr) {
|
||||
result.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
|
@ -533,7 +533,7 @@ int32_t AppMgrService::UnregisterApplicationStateObserver(const sptr<IApplicatio
|
||||
int32_t AppMgrService::RegisterAbilityForegroundStateObserver(const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -543,7 +543,7 @@ int32_t AppMgrService::RegisterAbilityForegroundStateObserver(const sptr<IAbilit
|
||||
|
||||
int32_t AppMgrService::UnregisterAbilityForegroundStateObserver(const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -620,7 +620,7 @@ int AppMgrService::FinishUserTest(const std::string &msg, const int64_t &resultC
|
||||
|
||||
int AppMgrService::Dump(int fd, const std::vector<std::u16string>& args)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "not ready.");
|
||||
return ERR_APPEXECFWK_HIDUMP_ERROR;
|
||||
@ -638,7 +638,7 @@ int AppMgrService::Dump(int fd, const std::vector<std::u16string>& args)
|
||||
|
||||
int AppMgrService::Dump(const std::vector<std::u16string>& args, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto size = args.size();
|
||||
if (size == 0) {
|
||||
return ShowHelp(args, result);
|
||||
@ -672,7 +672,7 @@ int AppMgrService::ShowHelp(const std::vector<std::u16string>& args, std::string
|
||||
|
||||
int AppMgrService::DumpIpcAllInner(const AppMgrService::DumpIpcKey key, std::string& result)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "called");
|
||||
switch (key) {
|
||||
case KEY_DUMP_IPC_START:
|
||||
return DumpIpcAllStart(result);
|
||||
@ -692,7 +692,7 @@ int AppMgrService::DumpIpcAllInner(const AppMgrService::DumpIpcKey key, std::str
|
||||
int AppMgrService::DumpIpcWithPidInner(const AppMgrService::DumpIpcKey key,
|
||||
const std::string& optionPid, std::string& result)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "called");
|
||||
int32_t pid = -1;
|
||||
char* end = nullptr;
|
||||
pid = static_cast<int32_t>(std::strtol(optionPid.c_str(), &end, BASE_TEN));
|
||||
@ -840,37 +840,37 @@ int AppMgrService::DumpFfrt(const std::vector<std::u16string>& args, std::string
|
||||
|
||||
int AppMgrService::DumpIpcAllStart(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcAllStart(result);
|
||||
}
|
||||
|
||||
int AppMgrService::DumpIpcAllStop(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcAllStop(result);
|
||||
}
|
||||
|
||||
int AppMgrService::DumpIpcAllStat(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcAllStat(result);
|
||||
}
|
||||
|
||||
int AppMgrService::DumpIpcStart(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcStart(pid, result);
|
||||
}
|
||||
|
||||
int AppMgrService::DumpIpcStop(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcStop(pid, result);
|
||||
}
|
||||
|
||||
int AppMgrService::DumpIpcStat(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
return appMgrServiceInner_->DumpIpcStat(pid, result);
|
||||
}
|
||||
|
||||
@ -1294,7 +1294,7 @@ int32_t AppMgrService::NotifyPageHide(const sptr<IRemoteObject> &token, const Pa
|
||||
|
||||
int32_t AppMgrService::RegisterAppRunningStatusListener(const sptr<IRemoteObject> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -1304,7 +1304,7 @@ int32_t AppMgrService::RegisterAppRunningStatusListener(const sptr<IRemoteObject
|
||||
|
||||
int32_t AppMgrService::UnregisterAppRunningStatusListener(const sptr<IRemoteObject> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -1314,7 +1314,7 @@ int32_t AppMgrService::UnregisterAppRunningStatusListener(const sptr<IRemoteObje
|
||||
|
||||
int32_t AppMgrService::RegisterAppForegroundStateObserver(const sptr<IAppForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -1324,7 +1324,7 @@ int32_t AppMgrService::RegisterAppForegroundStateObserver(const sptr<IAppForegro
|
||||
|
||||
int32_t AppMgrService::UnregisterAppForegroundStateObserver(const sptr<IAppForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -1350,7 +1350,7 @@ int32_t AppMgrService::IsAppRunning(const std::string &bundleName, int32_t appCl
|
||||
|
||||
int32_t AppMgrService::StartChildProcess(pid_t &childPid, const ChildProcessRequest &request)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!IsReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "StartChildProcess failed, AppMgrService not ready.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
|
@ -2905,7 +2905,7 @@ AppDebugInfo AppMgrServiceInner::MakeAppDebugInfo(
|
||||
|
||||
void AppMgrServiceInner::ProcessAppDebug(const std::shared_ptr<AppRunningRecord> &appRecord, const bool &isDebugStart)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (appRecord == nullptr || appDebugManager_ == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appRecord or appDebugManager_ is nullptr.");
|
||||
return;
|
||||
@ -2967,7 +2967,7 @@ bool AppMgrServiceInner::SendProcessStartEvent(const std::shared_ptr<AppRunningR
|
||||
|
||||
void AppMgrServiceInner::SendReStartProcessEvent(AAFwk::EventInfo &eventInfo, int32_t appUid)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<ffrt::mutex> lock(killpedProcessMapLock_);
|
||||
int64_t restartTime = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::
|
||||
system_clock::now().time_since_epoch()).count();
|
||||
@ -4960,7 +4960,7 @@ void AppMgrServiceInner::InitWindowVisibilityChangedListener()
|
||||
|
||||
void AppMgrServiceInner::FreeWindowVisibilityChangedListener()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (windowVisibilityChangedListener_ == nullptr) {
|
||||
TAG_LOGW(AAFwkTag::APPMGR, "Visibility listener has been freed.");
|
||||
return;
|
||||
@ -4971,7 +4971,7 @@ void AppMgrServiceInner::FreeWindowVisibilityChangedListener()
|
||||
void AppMgrServiceInner::HandleWindowVisibilityChanged(
|
||||
const std::vector<sptr<OHOS::Rosen::WindowVisibilityInfo>> &windowVisibilityInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (windowVisibilityInfos.empty()) {
|
||||
TAG_LOGW(AAFwkTag::APPMGR, "Window visibility info is empty.");
|
||||
return;
|
||||
@ -5601,7 +5601,7 @@ void AppMgrServiceInner::SetCurrentUserId(const int32_t userId)
|
||||
|
||||
int32_t AppMgrServiceInner::GetBundleNameByPid(const int32_t pid, std::string &bundleName, int32_t &uid)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Permission verification failed.");
|
||||
return ERR_PERMISSION_DENIED;
|
||||
@ -5706,7 +5706,7 @@ int32_t AppMgrServiceInner::ChangeAppGcState(pid_t pid, int32_t state)
|
||||
|
||||
int32_t AppMgrServiceInner::RegisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Permission verification failed.");
|
||||
return ERR_PERMISSION_DENIED;
|
||||
@ -5721,7 +5721,7 @@ int32_t AppMgrServiceInner::RegisterAppDebugListener(const sptr<IAppDebugListene
|
||||
|
||||
int32_t AppMgrServiceInner::UnregisterAppDebugListener(const sptr<IAppDebugListener> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Permission verification failed.");
|
||||
return ERR_PERMISSION_DENIED;
|
||||
@ -5736,7 +5736,7 @@ int32_t AppMgrServiceInner::UnregisterAppDebugListener(const sptr<IAppDebugListe
|
||||
|
||||
int32_t AppMgrServiceInner::AttachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!system::GetBoolParameter(DEVELOPER_MODE_STATE, false)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Developer Mode is false.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -5765,7 +5765,7 @@ int32_t AppMgrServiceInner::AttachAppDebug(const std::string &bundleName)
|
||||
|
||||
int32_t AppMgrServiceInner::DetachAppDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsSACall() &&
|
||||
!AAFwk::PermissionVerification::GetInstance()->IsShellCall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Permission verification failed.");
|
||||
@ -5835,7 +5835,7 @@ int32_t AppMgrServiceInner::SetAppWaitingDebug(const std::string &bundleName, bo
|
||||
|
||||
int32_t AppMgrServiceInner::CancelAppWaitingDebug()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsShellCall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not shell call.");
|
||||
return ERR_PERMISSION_DENIED;
|
||||
@ -5855,7 +5855,7 @@ int32_t AppMgrServiceInner::CancelAppWaitingDebug()
|
||||
|
||||
int32_t AppMgrServiceInner::GetWaitingDebugApp(std::vector<std::string> &debugInfoList)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->IsShellCall()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not shell call.");
|
||||
return ERR_PERMISSION_DENIED;
|
||||
@ -5885,7 +5885,7 @@ int32_t AppMgrServiceInner::GetWaitingDebugApp(std::vector<std::string> &debugIn
|
||||
|
||||
void AppMgrServiceInner::InitAppWaitingDebugList()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
{
|
||||
std::lock_guard<ffrt::mutex> lock(waitingDebugLock_);
|
||||
if (isInitAppWaitingDebugListExecuted_) {
|
||||
@ -5907,7 +5907,7 @@ void AppMgrServiceInner::InitAppWaitingDebugList()
|
||||
|
||||
bool AppMgrServiceInner::IsWaitingDebugApp(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
|
||||
if (IPCSkeleton::GetCallingUid() != FOUNDATION_UID) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not foundation call.");
|
||||
@ -5932,7 +5932,7 @@ bool AppMgrServiceInner::IsWaitingDebugApp(const std::string &bundleName)
|
||||
|
||||
void AppMgrServiceInner::ClearNonPersistWaitingDebugFlag()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
|
||||
if (IPCSkeleton::GetCallingUid() != FOUNDATION_UID) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Not foundation call.");
|
||||
@ -6012,7 +6012,7 @@ int32_t AppMgrServiceInner::NotifyAbilitysAssertDebugChange(
|
||||
|
||||
bool AppMgrServiceInner::IsAttachDebug(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto isSaCall = AAFwk::PermissionVerification::GetInstance()->IsSACall();
|
||||
if (!isSaCall) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Caller token is not SA.");
|
||||
@ -6216,7 +6216,7 @@ int32_t AppMgrServiceInner::StartChildProcessPreCheck(const pid_t callingPid)
|
||||
int32_t AppMgrServiceInner::StartChildProcessImpl(const std::shared_ptr<ChildProcessRecord> childProcessRecord,
|
||||
const std::shared_ptr<AppRunningRecord> appRecord, pid_t &childPid, const ChildProcessArgs &args)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRecord) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "No such appRecord, childPid:%{public}d.", childPid);
|
||||
return ERR_NAME_NOT_FOUND;
|
||||
@ -6259,7 +6259,7 @@ int32_t AppMgrServiceInner::StartChildProcessImpl(const std::shared_ptr<ChildPro
|
||||
|
||||
int32_t AppMgrServiceInner::GetChildProcessInfoForSelf(ChildProcessInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appRunningManager_ is null");
|
||||
return ERR_NO_INIT;
|
||||
@ -6287,7 +6287,7 @@ int32_t AppMgrServiceInner::GetChildProcessInfoForSelf(ChildProcessInfo &info)
|
||||
int32_t AppMgrServiceInner::GetChildProcessInfo(const std::shared_ptr<ChildProcessRecord> childProcessRecord,
|
||||
const std::shared_ptr<AppRunningRecord> appRecord, ChildProcessInfo &info)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!childProcessRecord) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "No such child process record.");
|
||||
return ERR_NAME_NOT_FOUND;
|
||||
@ -6456,7 +6456,7 @@ void AppMgrServiceInner::KillAttachedChildProcess(const std::shared_ptr<AppRunni
|
||||
|
||||
int AppMgrServiceInner::DumpIpcAllStart(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6469,7 +6469,7 @@ int AppMgrServiceInner::DumpIpcAllStart(std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpIpcAllStop(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6482,7 +6482,7 @@ int AppMgrServiceInner::DumpIpcAllStop(std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpIpcAllStat(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_STAT, strlen(MSG_DUMP_IPC_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6495,7 +6495,7 @@ int AppMgrServiceInner::DumpIpcAllStat(std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpIpcStart(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6508,7 +6508,7 @@ int AppMgrServiceInner::DumpIpcStart(const int32_t pid, std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpIpcStop(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6521,7 +6521,7 @@ int AppMgrServiceInner::DumpIpcStop(const int32_t pid, std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpIpcStat(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_IPC_STAT, strlen(MSG_DUMP_IPC_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -6534,7 +6534,7 @@ int AppMgrServiceInner::DumpIpcStat(const int32_t pid, std::string& result)
|
||||
|
||||
int AppMgrServiceInner::DumpFfrt(const std::vector<int32_t>& pids, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!appRunningManager_) {
|
||||
result.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
.append(MSG_DUMP_FAIL_REASON_INTERNAL, strlen(MSG_DUMP_FAIL_REASON_INTERNAL));
|
||||
@ -6683,7 +6683,7 @@ int32_t AppMgrServiceInner::UnregisterRenderStateObserver(const sptr<IRenderStat
|
||||
void AppMgrServiceInner::SetAppAssertionPauseState(bool flag)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (!system::GetBoolParameter(PRODUCT_ASSERT_FAULT_DIALOG_ENABLED, false)) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Product of assert fault dialog is not enabled.");
|
||||
return;
|
||||
@ -6854,7 +6854,7 @@ int32_t AppMgrServiceInner::NotifyMemorySizeStateChanged(bool isMemorySizeSuffic
|
||||
|
||||
void AppMgrServiceInner::SetKeepAliveEnableState(const std::string &bundleName, bool enable)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (bundleName.empty()) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Bundle name is empty.");
|
||||
return;
|
||||
@ -6898,7 +6898,7 @@ void AppMgrServiceInner::NotifyStartResidentProcess(std::vector<AppExecFwk::Bund
|
||||
|
||||
int32_t AppMgrServiceInner::SetSupportedProcessCacheSelf(bool isSupport)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGI(AAFwkTag::APPMGR, "called");
|
||||
HITRACE_METER_NAME(HITRACE_TAG_APP, __PRETTY_FUNCTION__);
|
||||
if (!appRunningManager_) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appRunningManager_ is nullptr");
|
||||
|
@ -1164,7 +1164,7 @@ bool AppRunningManager::IsApplicationBackground(const std::string &bundleName)
|
||||
void AppRunningManager::OnWindowVisibilityChanged(
|
||||
const std::vector<sptr<OHOS::Rosen::WindowVisibilityInfo>> &windowVisibilityInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::set<int32_t> pids;
|
||||
for (const auto &info : windowVisibilityInfos) {
|
||||
if (info == nullptr) {
|
||||
@ -1216,7 +1216,7 @@ bool AppRunningManager::IsApplicationUnfocused(const std::string &bundleName)
|
||||
|
||||
void AppRunningManager::SetAttachAppDebug(const std::string &bundleName, const bool &isAttachDebug)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appRunningMap = GetAppRunningRecordMap();
|
||||
for (const auto &item : appRunningMap) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1233,7 +1233,7 @@ void AppRunningManager::SetAttachAppDebug(const std::string &bundleName, const b
|
||||
std::vector<AppDebugInfo> AppRunningManager::GetAppDebugInfosByBundleName(
|
||||
const std::string &bundleName, const bool &isDetachDebug)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard guard(runningRecordMapMutex_);
|
||||
std::vector<AppDebugInfo> debugInfos;
|
||||
for (const auto &item : appRunningRecordMap_) {
|
||||
@ -1259,7 +1259,7 @@ std::vector<AppDebugInfo> AppRunningManager::GetAppDebugInfosByBundleName(
|
||||
void AppRunningManager::GetAbilityTokensByBundleName(
|
||||
const std::string &bundleName, std::vector<sptr<IRemoteObject>> &abilityTokens)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard guard(runningRecordMapMutex_);
|
||||
for (const auto &item : appRunningRecordMap_) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1333,7 +1333,7 @@ std::shared_ptr<ChildProcessRecord> AppRunningManager::OnChildProcessRemoteDied(
|
||||
|
||||
int32_t AppRunningManager::SignRestartAppFlag(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard guard(runningRecordMapMutex_);
|
||||
for (const auto &item : appRunningRecordMap_) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1350,7 +1350,7 @@ int32_t AppRunningManager::SignRestartAppFlag(const std::string &bundleName)
|
||||
|
||||
int32_t AppRunningManager::GetAppRunningUniqueIdByPid(pid_t pid, std::string &appRunningUniqueId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appRecord = GetAppRunningRecordByPid(pid);
|
||||
if (appRecord == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appRecord is nullptr.");
|
||||
@ -1363,7 +1363,7 @@ int32_t AppRunningManager::GetAppRunningUniqueIdByPid(pid_t pid, std::string &ap
|
||||
|
||||
int32_t AppRunningManager::GetAllUIExtensionRootHostPid(pid_t pid, std::vector<pid_t> &hostPids)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard guard(uiExtensionMapLock_);
|
||||
for (auto &item: uiExtensionLauncherMap_) {
|
||||
auto temp = item.second.second;
|
||||
@ -1430,7 +1430,7 @@ int32_t AppRunningManager::RemoveUIExtensionLauncherItemById(int32_t uiExtension
|
||||
|
||||
int AppRunningManager::DumpIpcAllStart(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int errCode = DumpErrorCode::ERR_OK;
|
||||
for (const auto &item : GetAppRunningRecordMap()) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1448,7 +1448,7 @@ int AppRunningManager::DumpIpcAllStart(std::string& result)
|
||||
|
||||
int AppRunningManager::DumpIpcAllStop(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int errCode = DumpErrorCode::ERR_OK;
|
||||
for (const auto &item : GetAppRunningRecordMap()) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1466,7 +1466,7 @@ int AppRunningManager::DumpIpcAllStop(std::string& result)
|
||||
|
||||
int AppRunningManager::DumpIpcAllStat(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int errCode = DumpErrorCode::ERR_OK;
|
||||
for (const auto &item : GetAppRunningRecordMap()) {
|
||||
const auto &appRecord = item.second;
|
||||
@ -1484,7 +1484,7 @@ int AppRunningManager::DumpIpcAllStat(std::string& result)
|
||||
|
||||
int AppRunningManager::DumpIpcStart(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
const auto& appRecord = GetAppRunningRecordByPid(pid);
|
||||
if (!appRecord) {
|
||||
result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT))
|
||||
@ -1498,7 +1498,7 @@ int AppRunningManager::DumpIpcStart(const int32_t pid, std::string& result)
|
||||
|
||||
int AppRunningManager::DumpIpcStop(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
const auto& appRecord = GetAppRunningRecordByPid(pid);
|
||||
if (!appRecord) {
|
||||
result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STAT))
|
||||
@ -1512,7 +1512,7 @@ int AppRunningManager::DumpIpcStop(const int32_t pid, std::string& result)
|
||||
|
||||
int AppRunningManager::DumpIpcStat(const int32_t pid, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
const auto& appRecord = GetAppRunningRecordByPid(pid);
|
||||
if (!appRecord) {
|
||||
result.append(MSG_DUMP_IPC_STAT, strlen(MSG_DUMP_IPC_STAT))
|
||||
@ -1526,7 +1526,7 @@ int AppRunningManager::DumpIpcStat(const int32_t pid, std::string& result)
|
||||
|
||||
int AppRunningManager::DumpFfrt(const std::vector<int32_t>& pids, std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
int errCode = DumpErrorCode::ERR_OK;
|
||||
size_t count = 0;
|
||||
for (const auto& pid : pids) {
|
||||
|
@ -1917,7 +1917,7 @@ bool AppRunningRecord::IsAbilitytiesBackground()
|
||||
void AppRunningRecord::OnWindowVisibilityChanged(
|
||||
const std::vector<sptr<OHOS::Rosen::WindowVisibilityInfo>> &windowVisibilityInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (windowVisibilityInfos.empty()) {
|
||||
TAG_LOGW(AAFwkTag::APPMGR, "Window visibility info is empty.");
|
||||
return;
|
||||
@ -2067,7 +2067,7 @@ int32_t AppRunningRecord::ChangeAppGcState(const int32_t state)
|
||||
|
||||
void AppRunningRecord::SetAttachDebug(const bool &isAttachDebug)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
isAttachDebug_ = isAttachDebug;
|
||||
|
||||
if (appLifeCycleDeal_ == nullptr) {
|
||||
@ -2230,7 +2230,7 @@ std::string AppRunningRecord::GetExitMsg() const
|
||||
|
||||
int AppRunningRecord::DumpIpcStart(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (appLifeCycleDeal_ == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_START_STAT, strlen(MSG_DUMP_IPC_START_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -2243,7 +2243,7 @@ int AppRunningRecord::DumpIpcStart(std::string& result)
|
||||
|
||||
int AppRunningRecord::DumpIpcStop(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (appLifeCycleDeal_ == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_STOP_STAT, strlen(MSG_DUMP_IPC_STOP_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -2256,7 +2256,7 @@ int AppRunningRecord::DumpIpcStop(std::string& result)
|
||||
|
||||
int AppRunningRecord::DumpIpcStat(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (appLifeCycleDeal_ == nullptr) {
|
||||
result.append(MSG_DUMP_IPC_STAT, strlen(MSG_DUMP_IPC_STAT))
|
||||
.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
@ -2269,7 +2269,7 @@ int AppRunningRecord::DumpIpcStat(std::string& result)
|
||||
|
||||
int AppRunningRecord::DumpFfrt(std::string& result)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (appLifeCycleDeal_ == nullptr) {
|
||||
result.append(MSG_DUMP_FAIL, strlen(MSG_DUMP_FAIL))
|
||||
.append(MSG_DUMP_FAIL_REASON_INTERNAL, strlen(MSG_DUMP_FAIL_REASON_INTERNAL));
|
||||
|
@ -25,7 +25,7 @@ namespace OHOS {
|
||||
namespace AbilityRuntime {
|
||||
int32_t AppRunningStatusModule::RegisterListener(const sptr<AppRunningStatusListenerInterface> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (listener == nullptr || listener->AsObject() == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Listener is null.");
|
||||
return ERR_INVALID_OPERATION;
|
||||
@ -56,7 +56,7 @@ int32_t AppRunningStatusModule::RegisterListener(const sptr<AppRunningStatusList
|
||||
|
||||
int32_t AppRunningStatusModule::UnregisterListener(const sptr<AppRunningStatusListenerInterface> &listener)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (listener == nullptr || listener->AsObject() == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Input param invalid.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -68,7 +68,7 @@ int32_t AppRunningStatusModule::UnregisterListener(const sptr<AppRunningStatusLi
|
||||
void AppRunningStatusModule::NotifyAppRunningStatusEvent(
|
||||
const std::string &bundle, int32_t uid, RunningStatus runningStatus)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<std::mutex> lock(listenerMutex_);
|
||||
for (const auto &item : listeners_) {
|
||||
if (item.first == nullptr) {
|
||||
@ -87,7 +87,7 @@ AppRunningStatusModule::ClientDeathRecipient::ClientDeathRecipient(const std::we
|
||||
|
||||
void AppRunningStatusModule::ClientDeathRecipient::OnRemoteDied(const wptr<IRemoteObject> &remote)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto appRunningStatus = weakPtr_.lock();
|
||||
if (appRunningStatus == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "appRunningStatus is nullptr.");
|
||||
@ -98,7 +98,7 @@ void AppRunningStatusModule::ClientDeathRecipient::OnRemoteDied(const wptr<IRemo
|
||||
|
||||
int32_t AppRunningStatusModule::RemoveListenerAndDeathRecipient(const wptr<IRemoteObject> &remote)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
auto listener = remote.promote();
|
||||
if (listener == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Remote object is nullptr.");
|
||||
|
@ -104,7 +104,7 @@ int32_t AppStateObserverManager::UnregisterApplicationStateObserver(const sptr<I
|
||||
|
||||
int32_t AppStateObserverManager::RegisterAppForegroundStateObserver(const sptr<IAppForegroundStateObserver> &observer)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "The param observer is nullptr.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -127,7 +127,7 @@ int32_t AppStateObserverManager::RegisterAppForegroundStateObserver(const sptr<I
|
||||
int32_t AppStateObserverManager::UnregisterAppForegroundStateObserver(const sptr<IAppForegroundStateObserver> &observer)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Observer nullptr.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -151,7 +151,7 @@ int32_t AppStateObserverManager::RegisterAbilityForegroundStateObserver(
|
||||
const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "The param observer is nullptr.");
|
||||
return ERR_INVALID_VALUE;
|
||||
@ -175,7 +175,7 @@ int32_t AppStateObserverManager::UnregisterAbilityForegroundStateObserver(
|
||||
const sptr<IAbilityForegroundStateObserver> &observer)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (observer == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::APPMGR, "Observer nullptr.");
|
||||
return ERR_INVALID_VALUE;
|
||||
|
@ -40,7 +40,7 @@ ChildProcessRecord::ChildProcessRecord(pid_t hostPid, const std::string &libName
|
||||
|
||||
ChildProcessRecord::~ChildProcessRecord()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
}
|
||||
|
||||
std::shared_ptr<ChildProcessRecord> ChildProcessRecord::CreateChildProcessRecord(pid_t hostPid,
|
||||
|
@ -79,7 +79,7 @@ void ModalSystemAppFreezeUIExtension::ProcessAppFreeze(bool focusFlag, const Fau
|
||||
|
||||
bool ModalSystemAppFreezeUIExtension::CreateModalUIExtension(std::string pid, std::string bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "CreateModalUIExtension Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
AAFwk::Want want = CreateSystemDialogWant(pid, bundleName);
|
||||
std::unique_lock<std::mutex> lockAssertResult(appFreezeResultMutex_);
|
||||
auto callback = GetConnection();
|
||||
@ -130,7 +130,7 @@ void ModalSystemAppFreezeUIExtension::AppFreezeDialogConnection::SetReqeustAppFr
|
||||
void ModalSystemAppFreezeUIExtension::AppFreezeDialogConnection::OnAbilityConnectDone(
|
||||
const AppExecFwk::ElementName &element, const sptr<IRemoteObject> &remote, int resultCode)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::ABILITYMGR, "called");
|
||||
if (remote == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::ABILITYMGR, "Input remote object is nullptr.");
|
||||
return;
|
||||
@ -165,7 +165,7 @@ void ModalSystemAppFreezeUIExtension::AppFreezeDialogConnection::OnAbilityConnec
|
||||
void ModalSystemAppFreezeUIExtension::AppFreezeDialogConnection::OnAbilityDisconnectDone(
|
||||
const AppExecFwk::ElementName &element, int resultCode)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "OnAbilityDisconnectDone Called.");
|
||||
TAG_LOGI(AAFwkTag::ABILITYMGR, "called");
|
||||
}
|
||||
} // namespace AppExecFwk
|
||||
} // namespace OHOS
|
||||
|
@ -319,7 +319,7 @@ bool ModuleRunningRecord::RemoveTerminateAbilityTimeoutTask(const sptr<IRemoteOb
|
||||
|
||||
bool ModuleRunningRecord::IsAbilitiesBackgrounded()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
std::lock_guard<ffrt::mutex> lock(abilitiesMutex_);
|
||||
for (const auto &iter : abilities_) {
|
||||
const auto &ability = iter.second;
|
||||
|
@ -30,7 +30,7 @@ WindowVisibilityChangedListener::WindowVisibilityChangedListener(
|
||||
void WindowVisibilityChangedListener::OnWindowVisibilityChanged(
|
||||
const std::vector<sptr<WindowVisibilityInfo>> &windowVisibilityInfos)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::APPMGR, "called");
|
||||
if (windowVisibilityInfos.empty()) {
|
||||
TAG_LOGW(AAFwkTag::APPMGR, "Window visibility info is empty.");
|
||||
return;
|
||||
|
@ -123,7 +123,7 @@ int32_t QuickFixManagerService::GetApplyedQuickFixInfo(const std::string &bundle
|
||||
|
||||
int32_t QuickFixManagerService::RevokeQuickFix(const std::string &bundleName)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::QUICKFIX, "Called.");
|
||||
TAG_LOGD(AAFwkTag::QUICKFIX, "called");
|
||||
if (!AAFwk::PermissionVerification::GetInstance()->JudgeCallerIsAllowedToUseSystemAPI()) {
|
||||
TAG_LOGE(AAFwkTag::QUICKFIX, "The caller is not system-app, can not use system-api");
|
||||
return QUICK_FIX_NOT_SYSTEM_APP;
|
||||
|
@ -195,7 +195,7 @@ int32_t UriPermissionManagerStubImpl::GrantUriPermissionPrivileged(const std::ve
|
||||
int UriPermissionManagerStubImpl::GrantUriPermissionInner(const std::vector<Uri> &uriVec, unsigned int flag,
|
||||
const std::string targetBundleName, int32_t appIndex, uint32_t initiatorTokenId, int32_t abilityId)
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::URIPERMMGR, "Called.");
|
||||
TAG_LOGD(AAFwkTag::URIPERMMGR, "called");
|
||||
flag &= FLAG_READ_WRITE_URI;
|
||||
uint32_t targetTokenId = 0;
|
||||
auto ret = UPMSUtils::GetTokenIdByBundleName(targetBundleName, appIndex, targetTokenId);
|
||||
|
@ -721,7 +721,7 @@ pid_t AbilityManagerShellCommand::ConvertPid(std::string& inputPid)
|
||||
|
||||
ErrCode AbilityManagerShellCommand::RunAsAttachDebugCommand()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "called");
|
||||
std::string bundleName = "";
|
||||
ParseBundleName(bundleName);
|
||||
if (bundleName.empty()) {
|
||||
@ -742,7 +742,7 @@ ErrCode AbilityManagerShellCommand::RunAsAttachDebugCommand()
|
||||
|
||||
ErrCode AbilityManagerShellCommand::RunAsDetachDebugCommand()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "called");
|
||||
std::string bundleName = "";
|
||||
ParseBundleName(bundleName);
|
||||
if (bundleName.empty()) {
|
||||
@ -846,7 +846,7 @@ bool AbilityManagerShellCommand::ParseAppDebugParameter(
|
||||
|
||||
ErrCode AbilityManagerShellCommand::RunAsAppDebugDebugCommand()
|
||||
{
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "Called.");
|
||||
TAG_LOGD(AAFwkTag::AA_TOOL, "called");
|
||||
std::string bundleName;
|
||||
bool isPersist = false;
|
||||
bool isCancel = false;
|
||||
|
Loading…
Reference in New Issue
Block a user