/foundation/barrierfree/accessibility/frameworks/common/test/unittest/ |
D | accessibility_ability_info_test.cpp | 52 abilityInfo_ = std::make_shared<AccessibilityAbilityInfo>(params); in SetUp() 58 abilityInfo_ = nullptr; in TearDown() 61 std::shared_ptr<AccessibilityAbilityInfo> abilityInfo_ = nullptr; member in OHOS::Accessibility::AccessibilityAbilityInfoUnitTest 85 if (!abilityInfo_) { 90 abilityInfo_->SetPackageName(packageName); 91 EXPECT_STREQ(abilityInfo_->GetPackageName().c_str(), packageName.c_str()); 103 if (!abilityInfo_) { 107 abilityInfo_->SetAccessibilityAbilityType(1); 108 EXPECT_EQ(abilityInfo_->GetAccessibilityAbilityType(), 1); 120 if (!abilityInfo_) { [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/continuation/distributed/ |
D | continuation_handler.cpp | 42 if (abilityInfo_ == nullptr) { in HandleStartContinuationWithStack() 47 abilityInfo_->deviceId = deviceId; in HandleStartContinuationWithStack() 64 abilityInfo_->bundleName.c_str(), in HandleStartContinuationWithStack() 65 abilityInfo_->name.c_str(), in HandleStartContinuationWithStack() 71 …want.SetElementName(deviceId, abilityInfo_->bundleName, abilityInfo_->name, abilityInfo_->moduleNa… in HandleStartContinuationWithStack() 89 if (abilityInfo_ == nullptr) { in HandleStartContinuation() 94 abilityInfo_->deviceId = deviceId; in HandleStartContinuation() 107 abilityInfo_->bundleName.c_str(), in HandleStartContinuation() 108 abilityInfo_->name.c_str()); in HandleStartContinuation() 116 abilityInfo_->bundleName.c_str(), in HandleStartContinuation() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
D | ability.cpp | 102 abilityInfo_ = abilityInfo; in Init() 108 if (abilityInfo_->type == AbilityType::PAGE) { in Init() 109 if (!abilityInfo_->isStageBasedModel) { in Init() 127 continuationHandler_->SetAbilityInfo(abilityInfo_); in Init() 169 if (abilityInfo_ == nullptr) { in OnStart() 180 HILOG_INFO("%{public}s begin, ability is %{public}s.", __func__, abilityInfo_->name.c_str()); in OnStart() 182 if (abilityInfo_->type == AppExecFwk::AbilityType::PAGE) { in OnStart() 185 …HILOG_DEBUG("abilityName:%{public}s, displayId:%{public}d", abilityInfo_->name.c_str(), displayId); in OnStart() 239 if (!abilityInfo_->isStageBasedModel) { in OnStart() 301 if (abilityWindow_ != nullptr && abilityInfo_->type == AppExecFwk::AbilityType::PAGE) { in DestroyInstance() [all …]
|
D | extension.cpp | 36 abilityInfo_ = record->GetAbilityInfo(); in Init() 44 HILOG_INFO("extension:%{public}s.", abilityInfo_->name.c_str()); in OnStart() 52 HILOG_INFO("extension:%{public}s.", abilityInfo_->name.c_str()); in OnStart() 59 HILOG_DEBUG("extension:%{public}s.", abilityInfo_->name.c_str()); in OnStop() 75 HILOG_DEBUG("extension:%{public}s.", abilityInfo_->name.c_str()); in OnConnect() 89 HILOG_DEBUG("extension:%{public}s.", abilityInfo_->name.c_str()); in OnDisconnect() 116 HILOG_DEBUG("extension:%{public}s.", abilityInfo_->name.c_str()); in OnForeground() 122 HILOG_DEBUG("extension:%{public}s.", abilityInfo_->name.c_str()); in OnBackground()
|
D | ability_local_record.cpp | 24 : abilityInfo_(info), token_(token) {} in AbilityLocalRecord() 30 return abilityInfo_; in GetAbilityInfo()
|
D | js_service_extension.cpp | 140 std::string moduleName(Extension::abilityInfo_->moduleName); in Init() 141 moduleName.append("::").append(abilityInfo_->name); in Init() 148 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init() 424 if (!Extension::abilityInfo_->isModuleJson) { in GetSrcPath() 426 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath() 428 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath() 429 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath() 431 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPath() 435 if (!Extension::abilityInfo_->srcEntrance.empty()) { in GetSrcPath() 436 srcPath.append(Extension::abilityInfo_->moduleName + "/"); in GetSrcPath() [all …]
|
/foundation/ability/ability_lite/services/abilitymgr_lite/src/ |
D | page_ability_record.cpp | 45 AbilityInfoUtils::CopyAbilityInfo(&abilityInfo_, abilityInfo); in PageAbilityRecord() 57 ClearAbilityInfo(&abilityInfo_); in ~PageAbilityRecord() 74 appRecord_ = AppManager::GetInstance().GetAppRecordByBundleName(abilityInfo_.bundleName); in Initialize() 79 return abilityInfo_; in GetAbilityInfo() 104 if (abilityInfo_.bundleName == nullptr || abilityInfo_.name == nullptr) { in IsSamePageAbility() 107 if (strcmp(abilityInfo_.bundleName, want.element->bundleName) == 0 && in IsSamePageAbility() 108 strcmp(abilityInfo_.name, want.element->abilityName) == 0) { in IsSamePageAbility() 116 if (bundleName == nullptr || abilityInfo_.bundleName == nullptr) { in IsSamePageAbility() 119 return strcmp(bundleName, abilityInfo_.bundleName) == 0; in IsSamePageAbility() 252 return AbilityMsHelper::IsLauncherAbility(abilityInfo_.bundleName); in IsLauncherAbility() [all …]
|
/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/ |
D | continuation_test.cpp | 58 ContinuationTest() : continuationManager_(nullptr), ability_(nullptr), abilityInfo_(nullptr), in ContinuationTest() 66 std::shared_ptr<AbilityInfo> abilityInfo_; member in OHOS::AppExecFwk::ContinuationTest 104 abilityInfo_ = std::make_shared<AbilityInfo>(); in SetUp() 105 abilityInfo_->name = "ability"; in SetUp() 107 std::shared_ptr<EventRunner> eventRunner = EventRunner::Create(abilityInfo_->name); in SetUp() 110 ability_->Init(abilityInfo_, application, handler, continueToken_); in SetUp() 112 mockAbility_->Init(abilityInfo_, application, handler, continueToken_); in SetUp() 133 …bool result = continuationManager_->Init(ability, continueToken_, abilityInfo_, continuationHandle… 153 …bool result = continuationManager_->Init(ability_, continueToken, abilityInfo_, continuationHandle… 168 ability_->abilityInfo_ = nullptr; [all …]
|
/foundation/window/window_manager/extension/window_extension/src/ |
D | js_window_extension.cpp | 123 std::string moduleName(Extension::abilityInfo_->moduleName); in Init() 124 moduleName.append("::").append(abilityInfo_->name); in Init() 128 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init() 129 abilityInfo_->compileMode == AbilityRuntime::CompileMode::ES_MODULE); in Init() 188 if (!Extension::abilityInfo_) { in GetSrcPath() 193 if (!Extension::abilityInfo_->isModuleJson) { in GetSrcPath() 194 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath() 196 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath() 197 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath() 199 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPath() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/appkit/ability_runtime/ |
D | extension_context.cpp | 30 abilityInfo_ = abilityInfo; in SetAbilityInfo() 35 return abilityInfo_; in GetAbilityInfo()
|
D | form_extension_context.cpp | 77 return abilityInfo_; in GetAbilityInfo() 86 abilityInfo_ = abilityInfo; in SetAbilityInfo()
|
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/src/ |
D | ability_context.cpp | 40 return abilityInfo_; in GetAbilityInfo() 51 abilityInfo_ = std::make_shared<AppExecFwk::AbilityInfo>(options.abilityInfo); in SetOptions() 52 if (abilityInfo_ != nullptr) { in SetOptions() 53 abilityInfo_->bundleName = options_.bundleName; in SetOptions() 54 abilityInfo_->moduleName = options_.moduleName; in SetOptions()
|
/foundation/resourceschedule/work_scheduler/frameworks/extension/src/ |
D | js_work_scheduler_extension.cpp | 90 std::string moduleName(Extension::abilityInfo_->moduleName); in Init() 91 moduleName.append("::").append(abilityInfo_->name); in Init() 96 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init() 97 abilityInfo_->compileMode == AbilityRuntime::CompileMode::ES_MODULE); in Init() 362 if (!Extension::abilityInfo_->isStageBasedModel) { in GetSrcPath() 364 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath() 366 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath() 367 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath() 369 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPath() 373 if (!Extension::abilityInfo_->srcEntrance.empty()) { in GetSrcPath() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
D | context_deal.cpp | 101 return abilityInfo_; in GetAbilityInfo() 110 abilityInfo_ = info; in SetAbilityInfo() 196 if (abilityInfo_ == nullptr) { in GetBundleResourcePath() 202 … dir = std::regex_replace(abilityInfo_->resourcePath, std::regex(ABS_CODE_PATH), LOCAL_BUNDLES); in GetBundleResourcePath() 204 …std::regex pattern(std::string(ABS_CODE_PATH) + std::string(FILE_SEPARATOR) + abilityInfo_->bundle… in GetBundleResourcePath() 205 dir = std::regex_replace(abilityInfo_->resourcePath, pattern, LOCAL_CODE_PATH); in GetBundleResourcePath() 410 if (abilityInfo_ != nullptr) { in GetDisplayOrientation() 412 return static_cast<int>(abilityInfo_->orientation); in GetDisplayOrientation() 463 if (abilityInfo_ == nullptr) { in HapModuleInfoRequestInit() 469 if (!ptr->GetHapModuleInfo(*abilityInfo_.get(), *hapModuleInfoLocal_)) { in HapModuleInfoRequestInit()
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/form_runtime/ |
D | js_form_extension.cpp | 100 std::string moduleName(Extension::abilityInfo_->moduleName); in Init() 101 moduleName.append("::").append(abilityInfo_->name); in Init() 103 moduleName.c_str(), srcPath.c_str(), abilityInfo_->compileMode); in Init() 108 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init() 340 if (!Extension::abilityInfo_->isModuleJson) { in GetSrcPath() 342 srcPath.append(Extension::abilityInfo_->package); in GetSrcPath() 344 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPath() 345 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPath() 347 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPath() 351 if (!Extension::abilityInfo_->srcEntrance.empty()) { in GetSrcPath() [all …]
|
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/ |
D | mock_ability.cpp | 32 abilityInfo_ = abilityInfo; in REGISTER_AA() 37 if (abilityInfo_->type == AbilityType::PAGE) { in REGISTER_AA() 134 return abilityInfo_->name; in GetAbilityName() 182 if (abilityInfo_ == nullptr) { in SetResult() 186 HILOG_INFO("Ability::SetResult called type = %{public}d", abilityInfo_->type); in SetResult() 187 if (abilityInfo_->type == AppExecFwk::AbilityType::PAGE) { in SetResult()
|
/foundation/ability/ability_runtime/test/unittest/app_recovery_test/ |
D | ability_recovery_test.cpp | 46 std::shared_ptr<AppExecFwk::AbilityInfo> abilityInfo_ = std::make_shared<AbilityInfo>(); member in OHOS::AppExecFwk::AbilityRecoveryUnitTest 66 abilityRecovery_->abilityInfo_ = abilityInfo_; in SetUp() 164 EXPECT_TRUE(abilityRecovery_->InitAbilityInfo(ability_, abilityInfo_, token_)); 377 abilityRecovery_->abilityInfo_.reset(); 403 abilityRecovery_->abilityInfo_.reset(); 495 abilityRecovery_->abilityInfo_.reset(); 507 abilityRecovery_->abilityInfo_ = abilityInfo_;
|
D | app_recovery_test.cpp | 44 std::shared_ptr<AppExecFwk::AbilityInfo> abilityInfo_ = std::make_shared<AbilityInfo>(); member in OHOS::AppExecFwk::AppRecoveryUnitTest 177 bool ret = AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_); 192 bool ret = AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_); 205 bool ret = AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_); 326 AppRecovery::GetInstance().AddAbility(ability, abilityInfo_, token_); 509 EXPECT_TRUE(AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_)); 527 EXPECT_TRUE(AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_)); 546 EXPECT_TRUE(AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_)); 576 EXPECT_TRUE(AppRecovery::GetInstance().AddAbility(ability_, abilityInfo_, token_)); 620 AppRecovery::GetInstance().AddAbility(ability, abilityInfo_, token_);
|
/foundation/ability/ability_runtime/test/mock/services_appmgr_test/include/ |
D | mock_application.h | 94 abilityInfo_ = info; in LaunchAbility() 100 return (info.name == abilityInfo_.name); in CompareAbilityInfo() 118 AbilityInfo abilityInfo_; variable
|
/foundation/barrierfree/accessibility/interfaces/kits/napi/accessibility_extension_module_loader/src/ |
D | napi_accessibility_extension.cpp | 73 jsObj_ = jsRuntime_.LoadModule(moduleName, srcPath, abilityInfo_->hapPath, in Init() 74 abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init() 114 if (!Extension::abilityInfo_) { in GetSrcPathAndModuleName() 118 if (!Extension::abilityInfo_->isModuleJson) { in GetSrcPathAndModuleName() 119 srcPath.append(Extension::abilityInfo_->package); in GetSrcPathAndModuleName() 121 if (!Extension::abilityInfo_->srcPath.empty()) { in GetSrcPathAndModuleName() 122 srcPath.append(Extension::abilityInfo_->srcPath); in GetSrcPathAndModuleName() 124 srcPath.append("/").append(Extension::abilityInfo_->name).append(".abc"); in GetSrcPathAndModuleName() 125 } else if (!Extension::abilityInfo_->srcEntrance.empty()) { in GetSrcPathAndModuleName() 126 srcPath.append(Extension::abilityInfo_->moduleName + "/"); in GetSrcPathAndModuleName() [all …]
|
/foundation/filemanagement/app_file_service/frameworks/native/backup_ext/src/ |
D | ext_backup.cpp | 96 … BExcepUltils::BAssert(abilityInfo_, BError::Codes::EXT_BROKEN_FRAMEWORK, "Invalid abilityInfo_"); in GetUsrConfig() 97 const AppExecFwk::AbilityInfo &info = *abilityInfo_; in GetUsrConfig() 153 … BExcepUltils::BAssert(abilityInfo_, BError::Codes::EXT_BROKEN_FRAMEWORK, "Invalid abilityInfo_"); in OnConnect() 155 auto extAction = VerifyAndGetAction(want, abilityInfo_); in OnConnect()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
D | accessible_ability_connection.cpp | 29 : accountId_(accountId), connectionId_(connectionId), abilityInfo_(abilityInfo) in AccessibleAbilityConnection() 110 std::vector<std::string> filterBundleNames = abilityInfo_.GetFilterBundleNames(); in OnAccessibilityEvent() 127 if (!(abilityInfo_.GetCapabilityValues() & Capability::CAPABILITY_KEY_EVENT_OBSERVER)) { in OnKeyPressEvent() 139 abilityInfo_.SetFilterBundleNames(targetBundleNames); in SetAbilityInfoTargetBundleName() 145 if ((type & abilityInfo_.GetEventTypes()) != type) { in IsWantedEvent() 292 channel_ = new(std::nothrow) AccessibleAbilityChannel(accountId_, abilityInfo_.GetId()); in InitAbilityClient()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
D | ability_record.cpp | 189 …: want_(want), abilityInfo_(abilityInfo), applicationInfo_(applicationInfo), requestCode_(requestC… in AbilityRecord() 271 HILOG_DEBUG("name:%{public}s.", abilityInfo_.name.c_str()); in LoadAbility() 279 } else if (abilityInfo_.type != AppExecFwk::AbilityType::DATA) { in LoadAbility() 311 token_, callerToken_, abilityInfo_, applicationInfo_, want_); in LoadAbility() 349 HILOG_INFO("name:%{public}s.", abilityInfo_.name.c_str()); in ForegroundAbility() 377 HILOG_INFO("name:%{public}s.", abilityInfo_.name.c_str()); in ForegroundAbility() 444 if (abilityInfo_.resourcePath.empty()) { in GetLabel() 515 SetAbilityTransitionInfo(abilityInfo_, toInfo); in NotifyAnimationFromTerminatingAbility() 553 info->abilityName_ = abilityInfo_.name; in SetAbilityTransitionInfo() 554 info->bundleName_ = abilityInfo_.bundleName; in SetAbilityTransitionInfo() [all …]
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ui_extension_ability/ |
D | js_ui_extension_base.cpp | 110 if (abilityInfo_ == nullptr) { in Init() 114 if (abilityInfo_->srcEntrance.empty()) { in Init() 118 std::string srcPath(abilityInfo_->moduleName + "/"); in Init() 119 srcPath.append(abilityInfo_->srcEntrance); in Init() 123 std::string moduleName(abilityInfo_->moduleName); in Init() 124 moduleName.append("::").append(abilityInfo_->name); in Init() 129 … moduleName, srcPath, abilityInfo_->hapPath, abilityInfo_->compileMode == CompileMode::ES_MODULE); in Init() 533 abilityInfo_ = abilityInfo; in SetAbilityInfo()
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_test/ |
D | app_mgr_service_inner_test.cpp | 54 std::shared_ptr<AbilityInfo> abilityInfo_; member in OHOS::AppExecFwk::AppMgrServiceInnerTest 75 abilityInfo_ = std::make_shared<AbilityInfo>(abilityInfo); in InitAppInfo() 275 appMgrServiceInner->LoadAbility(token, nullptr, abilityInfo_, applicationInfo_, nullptr); 281 appMgrServiceInner1->LoadAbility(token, nullptr, abilityInfo_, applicationInfo_, nullptr); 286 appMgrServiceInner2->LoadAbility(token, nullptr, abilityInfo_, applicationInfo_, nullptr); 306 appMgrServiceInner->CheckLoadAbilityConditions(nullptr, abilityInfo_, nullptr); 312 appMgrServiceInner->CheckLoadAbilityConditions(token, abilityInfo_, nullptr); 314 appMgrServiceInner->CheckLoadAbilityConditions(nullptr, abilityInfo_, applicationInfo_); 318 appMgrServiceInner->CheckLoadAbilityConditions(token, abilityInfo_, applicationInfo_); 341 appMgrServiceInner->MakeProcessName(abilityInfo_, nullptr, hapModuleInfo, 1, processName); [all …]
|