mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 12:43:16 -04:00
log cut
Co-Authored-By: agent Signed-off-by: wlh2624_DS <1968860844@qq.com>
This commit is contained in:
@@ -24,12 +24,12 @@ class AppServiceExtensionContext extends ExtensionContext {
|
||||
}
|
||||
|
||||
connectServiceExtensionAbility(want, options) {
|
||||
hilog.sLogI(domainID, TAG, 'connectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'conSrvEA');
|
||||
return this.__context_impl__.connectServiceExtensionAbility(want, options);
|
||||
}
|
||||
|
||||
disconnectServiceExtensionAbility(connection) {
|
||||
hilog.sLogI(domainID, TAG, 'disconnectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'disConSrvEA');
|
||||
return this.__context_impl__.disconnectServiceExtensionAbility(connection);
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ class ServiceExtensionContext extends ExtensionContext {
|
||||
}
|
||||
|
||||
connectServiceExtensionAbility(want, options) {
|
||||
hilog.sLogI(domainID, TAG, 'connectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'conSrvEA');
|
||||
return this.__context_impl__.connectServiceExtensionAbility(want, options);
|
||||
}
|
||||
|
||||
@@ -110,7 +110,7 @@ class ServiceExtensionContext extends ExtensionContext {
|
||||
}
|
||||
|
||||
disconnectServiceExtensionAbility(connection, callback) {
|
||||
hilog.sLogI(domainID, TAG, 'disconnectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'disConSrvEA');
|
||||
return this.__context_impl__.disconnectServiceExtensionAbility(connection, callback);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,12 +40,12 @@ class UIServiceExtensionContext extends ExtensionContext {
|
||||
}
|
||||
|
||||
connectServiceExtensionAbility(want, options) {
|
||||
hilog.sLogI(domainID, TAG, 'connectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'conSrvEA');
|
||||
return this.__context_impl__.connectServiceExtensionAbility(want, options);
|
||||
}
|
||||
|
||||
disconnectServiceExtensionAbility(connection, callback) {
|
||||
hilog.sLogI(domainID, TAG, 'disconnectServiceExtensionAbility');
|
||||
hilog.sLogI(domainID, TAG, 'disConSrvEA');
|
||||
return this.__context_impl__.disconnectServiceExtensionAbility(connection, callback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -575,7 +575,7 @@ void JsWantAgent::SetOnGetBundleNameCallback(std::shared_ptr<WantAgent> wantAgen
|
||||
auto retCode = std::make_shared<int32_t>(NO_ERROR);
|
||||
auto bundleName = std::make_shared<std::string>();
|
||||
execute = [wantAgent, retCode, bundleName] () {
|
||||
TAG_LOGI(AAFwkTag::WANTAGENT, "get bundle name callback");
|
||||
TAG_LOGD(AAFwkTag::WANTAGENT, "get bundle name callback");
|
||||
*retCode = WantAgentHelper::GetBundleName(wantAgent, *bundleName);
|
||||
};
|
||||
complete = [retCode, bundleName](napi_env env, NapiAsyncTask &task, int32_t status) {
|
||||
|
||||
@@ -1122,7 +1122,7 @@ void ContextImpl::GetOverlayPath(std::shared_ptr<Global::Resource::ResourceManag
|
||||
std::vector<AppExecFwk::OverlayModuleInfo> overlayModuleInfos;
|
||||
auto res = GetOverlayModuleInfos(bundleName, moduleName, overlayModuleInfos);
|
||||
if (res != ERR_OK) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "Get overlay paths from bms failed.");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Get overlay paths from bms failed.");
|
||||
}
|
||||
if (overlayModuleInfos.size() == 0) {
|
||||
if (!resourceManager->AddResource(loadPath.c_str())) {
|
||||
|
||||
@@ -208,17 +208,17 @@ ErrCode ServiceExtensionContext::StopServiceExtensionAbility(const AAFwk::Want&
|
||||
ErrCode ServiceExtensionContext::ConnectAbilityWithAccount(
|
||||
const AAFwk::Want &want, int32_t accountId, const sptr<AbilityConnectCallback> &connectCallback) const
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "begin");
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "begin");
|
||||
ErrCode ret =
|
||||
ConnectionManager::GetInstance().ConnectAbilityWithAccount(token_, want, accountId, connectCallback);
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "ConnectAbilityWithAccount ErrorCode = %{public}d", ret);
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "ConAbiWithAcc:%{public}d", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
ErrCode ServiceExtensionContext::DisconnectAbility(const AAFwk::Want &want,
|
||||
const sptr<AbilityConnectCallback> &connectCallback, int32_t accountId) const
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "Disconnect c:%{public}s, t:%{public}s",
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "DisCon %{public}s,%{public}s",
|
||||
GetAbilityInfo() == nullptr ? "" : GetAbilityInfo()->name.c_str(), want.GetElement().GetAbilityName().c_str());
|
||||
ErrCode ret =
|
||||
ConnectionManager::GetInstance().DisconnectAbility(token_, want, connectCallback, accountId);
|
||||
|
||||
@@ -850,7 +850,7 @@ void MainThread::ScheduleLaunchAbility(const AbilityInfo &info, const sptr<IRemo
|
||||
const std::shared_ptr<AAFwk::Want> &want, int32_t abilityRecordId, const std::shared_ptr<AppUpdateInfo> updateInfo)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "%{public}s called, ability %{public}s, type is %{public}d.",
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "%{public}s called,ability %{public}s,%{public}d",
|
||||
__func__, info.name.c_str(), info.type);
|
||||
|
||||
bool skipAbilityStageLifecycle = false;
|
||||
@@ -1902,8 +1902,8 @@ void MainThread::HandleLaunchApplication(const AppLaunchData &appLaunchData, con
|
||||
options.enableWarmStartupSmartGC =
|
||||
(appLaunchData.GetAppPreloadMode() == AppExecFwk::PreloadMode::PRE_MAKE ||
|
||||
appLaunchData.GetAppPreloadMode() == AppExecFwk::PreloadMode::PRELOAD_MODULE);
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "SmartGC: process is start. enable warm startup SmartGC: %{public}d"
|
||||
" version:%{public}u", static_cast<int32_t>(options.enableWarmStartupSmartGC), bundleInfo.versionCode);
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "SmartGC:%{public}d version:%{public}u",
|
||||
static_cast<int32_t>(options.enableWarmStartupSmartGC), bundleInfo.versionCode);
|
||||
auto perfCmd = appLaunchData.GetPerfCmd();
|
||||
auto findPos = perfCmd.find(BASE_LINE_PERFCMD);
|
||||
if (findPos != std::string::npos && (appLaunchData.GetDebugFromLocal() || isDeveloperMode_)) {
|
||||
@@ -2850,7 +2850,7 @@ void MainThread::HandleLaunchAbility(const std::shared_ptr<AbilityLocalRecord> &
|
||||
|
||||
UpdateWorkProcessInfo(updateInfo);
|
||||
if (needNotifyApplicationPreAbilityCreate) {
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "NotifyApplicationPreAbilityCreate");
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "NtfyAppPreAbiCreate");
|
||||
AppExecFwk::AppImageObserverManager::GetInstance().NotifyApplicationPreAbilityCreate();
|
||||
}
|
||||
|
||||
@@ -2981,7 +2981,7 @@ void MainThread::HandleCleanAbility(const sptr<IRemoteObject> &token, bool isCac
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "null applicationInfo");
|
||||
return;
|
||||
}
|
||||
TAG_LOGI(AAFwkTag::APPKIT, "Handle clean ability start, app is %{public}s.", applicationInfo_->name.c_str());
|
||||
TAG_LOGD(AAFwkTag::APPKIT, "Handle clean ability start, app is %{public}s.", applicationInfo_->name.c_str());
|
||||
|
||||
if (!IsApplicationReady()) {
|
||||
TAG_LOGE(AAFwkTag::APPKIT, "should launch application first");
|
||||
|
||||
@@ -159,7 +159,7 @@ void ConnectServerManager::StoreDebuggerInfo(int32_t tid, void* vm, const panda:
|
||||
}
|
||||
|
||||
if (!isConnected_) {
|
||||
TAG_LOGW(AAFwkTag::JSRUNTIME, "not Connected");
|
||||
TAG_LOGW(AAFwkTag::JSRUNTIME, "disCon");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -308,7 +308,7 @@ void ConnectServerManager::RemoveInstance(int32_t instanceId)
|
||||
}
|
||||
|
||||
if (!isConnected_) {
|
||||
TAG_LOGW(AAFwkTag::JSRUNTIME, "not Connected");
|
||||
TAG_LOGW(AAFwkTag::JSRUNTIME, "disCon");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -490,4 +490,4 @@ void ConnectServerManager::SendInstanceMessageAll(std::function<void(int32_t, co
|
||||
}
|
||||
}
|
||||
}
|
||||
} // namespace OHOS::AbilityRuntime
|
||||
} // namespace OHOS::AbilityRuntime
|
||||
|
||||
@@ -7179,7 +7179,7 @@ std::string AbilityManagerService::GetPendingWantBundleName(const sptr<IWantSend
|
||||
|
||||
int AbilityManagerService::GetPendingWantCode(const sptr<IWantSender> &target)
|
||||
{
|
||||
TAG_LOGI(AAFwkTag::WANTAGENT, "%{public}s:begin", __func__);
|
||||
TAG_LOGD(AAFwkTag::WANTAGENT, "%{public}s:begin", __func__);
|
||||
if (target == nullptr) {
|
||||
TAG_LOGE(AAFwkTag::WANTAGENT, "%s, target null", __func__);
|
||||
return -1;
|
||||
|
||||
@@ -169,7 +169,7 @@ sptr<IWantSender> PendingWantManager::GetWantSenderLocked(const int32_t callingU
|
||||
int32_t publisherUid)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGI(AAFwkTag::WANTAGENT, "begin");
|
||||
TAG_LOGD(AAFwkTag::WANTAGENT, "begin");
|
||||
|
||||
bool needCreate = (static_cast<uint32_t>(wantSenderInfo.flags) &
|
||||
static_cast<uint32_t>(Flags::NO_BUILD_FLAG)) == 0;
|
||||
@@ -249,7 +249,7 @@ void PendingWantManager::MakeWantSenderCanceledLocked(PendingWantRecord &record)
|
||||
sptr<PendingWantRecord> PendingWantManager::GetPendingWantRecordByKey(const std::shared_ptr<PendingWantKey> &key)
|
||||
{
|
||||
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
|
||||
TAG_LOGI(AAFwkTag::WANTAGENT, "begin");
|
||||
TAG_LOGD(AAFwkTag::WANTAGENT, "begin");
|
||||
for (const auto &item : wantRecords_) {
|
||||
const auto pendingKey = item.first;
|
||||
const auto pendingRecord = item.second;
|
||||
|
||||
@@ -38,7 +38,7 @@ void PreLoadUIExtStateObserver::OnProcessDied(const AppExecFwk::ProcessData &pro
|
||||
}
|
||||
extensionRecord->UnloadUIExtensionAbility();
|
||||
} else {
|
||||
TAG_LOGW(AAFwkTag::UI_EXT, "extensionRecord null");
|
||||
TAG_LOGW(AAFwkTag::UI_EXT, "null");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -59,4 +59,4 @@ void PreLoadUIExtStateObserver::OnAppCacheStateChanged(const AppExecFwk::AppStat
|
||||
}
|
||||
}
|
||||
} // namespace AAFwk
|
||||
} // namespace OHOS
|
||||
} // namespace OHOS
|
||||
|
||||
@@ -239,6 +239,12 @@ static bool ConvertFileName(const std::string& fileBaseName, std::string& abbrFi
|
||||
abbrFileName = "AMSCHE";
|
||||
} else if (fileBaseName == "base_extension_record") {
|
||||
abbrFileName = "BER";
|
||||
} else if (fileBaseName == "napi_want_agent") {
|
||||
abbrFileName = "NWA";
|
||||
} else if (fileBaseName == "pending_want_manager") {
|
||||
abbrFileName = "PWM";
|
||||
} else if (fileBaseName == "want_agent_helper") {
|
||||
abbrFileName = "WAH";
|
||||
} else if (fileBaseName == "connection_manager") {
|
||||
abbrFileName = "CONM";
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user