/ohos5.0/foundation/systemabilitymgr/samgr/services/common/src/ |
H A D | parse_util.cpp | 109 saProfile.handle = nullptr; in CloseHandle() 115 CloseHandle(saProfile); in CloseSo() 123 CloseHandle(saProfile); in CloseSo() 138 if (saProfile.runOnCreate && saProfile.bootPhase == bootPhase) { in OpenSo() 139 OpenSo(saProfile); in OpenSo() 173 saProfile.handle = handle; in OpenSo() 183 OpenSo(saProfile); in LoadSaLib() 201 saProfile = *iter; in GetProfile() 358 if (std::find(saProfile.extension.begin(), saProfile.extension.end(), extension) == in ParseSystemAbilityGetExtension() 370 if (saProfile.saId == 0) { in ParseSystemAbilityGetSaBaseInfo() [all …]
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/common/test/unittest/ |
H A D | parse_util_test.cpp | 441 SaProfile saProfile; variable 461 SaProfile saProfile; variable 631 SaProfile saProfile; variable 657 SaProfile saProfile; variable 703 SaProfile saProfile; variable 729 SaProfile saProfile; variable 876 SaProfile saProfile; variable 924 SaProfile saProfile; variable 945 SaProfile saProfile; variable 1196 SaProfile saProfile; variable [all …]
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/ |
H A D | system_ability_mgr_util_test.cpp | 170 SaProfile saProfile; variable 171 saProfile.process = u""; 195 SaProfile saProfile; variable 196 saProfile.process = PROCESS_NAME; 221 SaProfile saProfile; variable 222 saProfile.startOnDemand.allowUpdate = true; 236 SaProfile saProfile; variable 237 saProfile.stopOnDemand.allowUpdate = true; 251 SaProfile saProfile; variable 252 saProfile.startOnDemand.allowUpdate = false; [all …]
|
H A D | device_timed_collect_test.cpp | 65 SaProfile saProfile; variable 68 saProfiles.push_back(saProfile); 84 SaProfile saProfile; variable 87 saProfiles.push_back(saProfile); 103 SaProfile saProfile; variable 106 saProfiles.push_back(saProfile); 122 SaProfile saProfile; variable 141 SaProfile saProfile; variable 160 SaProfile saProfile; variable 179 SaProfile saProfile; variable [all …]
|
H A D | system_ability_mgr_new_test.cpp | 112 SaProfile saProfile; in SaProfileExtensionTestPrevSet() local 194 SaProfile saProfile; variable 261 SaProfile saProfile; variable 278 SaProfile saProfile; variable 298 SaProfile saProfile; variable 317 SaProfile saProfile; variable 319 saProfile.saId = 1; 1069 saProfile.distributed = true; 1448 SaProfile saProfile; variable 1468 SaProfile saProfile; variable [all …]
|
H A D | device_param_collect_test.cpp | 70 SaProfile saProfile; variable 72 saProfile.startOnDemand.onDemandEvents.push_back(onDemandEvent); 73 SaProfiles.push_back(saProfile); 92 SaProfile saProfile; variable 94 saProfile.stopOnDemand.onDemandEvents.push_back(onDemandEvent); 95 SaProfiles.push_back(saProfile);
|
H A D | device_status_collect_manager_test.cpp | 109 SaProfile saProfile; variable 111 saProfile.startOnDemand.onDemandEvents.emplace_back(event); 112 saProfiles.emplace_back(saProfile); 116 saProfile.stopOnDemand.onDemandEvents.emplace_back(event1); 117 saProfiles.emplace_back(saProfile); 136 SaProfile saProfile; variable 141 collect->onDemandSaProfiles_.emplace_back(saProfile); 509 SaProfile saProfile; variable 514 collect->onDemandSaProfiles_.emplace_back(saProfile); 1005 SaProfile saProfile; variable [all …]
|
H A D | device_switch_collect_test.cpp | 129 SaProfile saProfile; variable 131 saProfile.startOnDemand.onDemandEvents.emplace_back(onDemandEvent); 132 saProfile.stopOnDemand.onDemandEvents.emplace_back(onDemandEvent); 133 saProfiles.emplace_back(saProfile); 389 SaProfile saProfile; variable 391 saProfile.startOnDemand.onDemandEvents.emplace_back(onDemandEvent); 392 saProfiles.emplace_back(saProfile); 411 SaProfile saProfile; variable 413 saProfile.startOnDemand.onDemandEvents.emplace_back(onDemandEvent); 414 saProfiles.emplace_back(saProfile);
|
H A D | system_ability_mgr_test.cpp | 1117 SaProfile saProfile; variable 1135 SaProfile saProfile; variable 1155 SaProfile saProfile; variable 1185 SaProfile saProfile; variable 2152 SaProfile saProfile; variable 2170 SaProfile saProfile; variable 2204 SaProfile saProfile; variable 2495 SaProfile saProfile; variable 2513 SaProfile saProfile; variable 2532 SaProfile saProfile; variable [all …]
|
H A D | system_ability_mgr_stub_test.cpp | 2147 SaProfile saProfile; variable 2163 SaProfile saProfile; variable 2182 SaProfile saProfile; variable 2183 saProfile.distributed = true; 2205 SaProfile saProfile; variable 2310 SaProfile saProfile; variable 2333 SaProfile saProfile; variable 2387 SaProfile saProfile; variable 2682 SaProfile saProfile; variable 2699 SaProfile saProfile; variable [all …]
|
H A D | common_event_collect_test.cpp | 124 SaProfile saProfile; variable 125 saProfile.startOnDemand.onDemandEvents.push_back({COMMON_EVENT, "", ""}); 126 saProfile.stopOnDemand.onDemandEvents.push_back({COMMON_EVENT, "", ""}); 128 onDemandSaProfiles.push_back(saProfile); 338 SaProfile saProfile; variable 347 saProfile.startOnDemand.onDemandEvents.push_back(event); 349 onDemandSaProfiles.push_back(saProfile);
|
H A D | system_ability_test_tool.cpp | 139 for (const auto& [said, saProfile] : manager->saProfileMap_) { in DoPasre() 140 …cout << "system ability profile said " << said << " process " << Str16ToStr8(saProfile.process) <<… in DoPasre()
|
/ohos5.0/foundation/systemabilitymgr/safwk/services/safwk/src/ |
H A D | local_ability_manager.cpp | 238 SaProfile saProfile; in AddAbility() local 250 ability->SetLibPath(saProfile.libPath); in AddAbility() 251 ability->SetRunOnCreate(saProfile.runOnCreate); in AddAbility() 252 ability->SetDependSa(saProfile.dependSa); in AddAbility() 255 ability->SetDumpLevel(saProfile.dumpLevel); in AddAbility() 256 ability->SetCapability(saProfile.capability); in AddAbility() 257 ability->SetPermission(saProfile.permission); in AddAbility() 538 SaProfile saProfile; in InitializeOnDemandSaProfile() local 559 if (saProfile.bootPhase > OTHER_START) { in InitializeSaProfilesInnerLocked() 660 for (const auto& saProfile : saProfileList) { in RegisterOnDemandSystemAbility() local [all …]
|
/ohos5.0/foundation/systemabilitymgr/safwk/test/services/safwk/unittest/ |
H A D | local_ability_manager_test.cpp | 682 SaProfile saProfile; variable 683 saProfile.saId = SAID; 696 SaProfile saProfile; variable 697 saProfile.saId = SAID; 710 SaProfile saProfile; variable 711 saProfile.saId = SAID; 727 SaProfile saProfile; variable 745 SaProfile saProfile; variable 806 SaProfile saProfile; variable 820 SaProfile saProfile; variable [all …]
|
/ohos5.0/foundation/systemabilitymgr/samgr/interfaces/innerkits/common/include/ |
H A D | parse_util.h | 32 bool GetProfile(int32_t saId, SaProfile& saProfile); 49 void OpenSo(SaProfile& saProfile); 50 void CloseHandle(SaProfile& saProfile); 53 bool ParseSystemAbilityGetSaBaseInfo(SaProfile& saProfile, nlohmann::json& systemAbilityJson); 54 bool ParseSystemAbilityGetSaExtInfo(SaProfile& saProfile, nlohmann::json& systemAbilityJson); 55 bool ParseSystemAbility(SaProfile& saProfile, nlohmann::json& systemAbilityJson); 63 bool ParseSystemAbilityGetExtension(SaProfile& saProfile, nlohmann::json& systemAbilityJson);
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/ |
H A D | system_ability_manager_util.cpp | 99 bool SamgrUtil::CheckCallerProcess(const SaProfile& saProfile) in CheckCallerProcess() argument 101 if (!CheckCallerProcess(Str16ToStr8(saProfile.process))) { in CheckCallerProcess() 103 saProfile.saId, Str16ToStr8(saProfile.process).c_str()); in CheckCallerProcess() 126 bool SamgrUtil::CheckAllowUpdate(OnDemandPolicyType type, const SaProfile& saProfile) in CheckAllowUpdate() argument 128 if (type == OnDemandPolicyType::START_POLICY && saProfile.startOnDemand.allowUpdate) { in CheckAllowUpdate() 130 } else if (type == OnDemandPolicyType::STOP_POLICY && saProfile.stopOnDemand.allowUpdate) { in CheckAllowUpdate()
|
H A D | system_ability_manager.cpp | 435 SaProfile saProfile; in GetOnDemandPolicy() local 472 SaProfile saProfile; in UpdateOnDemandPolicy() local 574 SaProfile saProfile; in CheckSystemAbility() local 1243 SaProfile saProfile; in IsDistributedSystemAbility() local 1333 SaProfile saProfile; in IsModuleUpdate() local 1431 SaProfile saProfile; in IsCacheCommonEvent() local 1687 SaProfile saProfile; in LoadSystemAbility() local 1706 SaProfile saProfile; in LoadSystemAbilityFromRpc() local 1728 SaProfile saProfile; in UnloadSystemAbility() local 1751 SaProfile saProfile; in CheckSaIsImmediatelyRecycle() local [all …]
|
/ohos5.0/foundation/systemabilitymgr/safwk/test/fuzztest/systemabilityfwk_fuzzer/ |
H A D | systemabilityfwk_fuzzer.cpp | 88 SaProfile saProfile = {Str8ToStr16(procName), systemAbilityId}; in FuzzLocalAbilityManager() local 89 std::list<SaProfile> saInfos = {saProfile}; in FuzzLocalAbilityManager() 120 LocalAbilityManager::GetInstance().InitializeSaProfilesInnerLocked(saProfile); in FuzzLocalAbilityManager() 123 LocalAbilityManager::GetInstance().NeedRegisterOnDemand(saProfile, systemAbilityId); in FuzzLocalAbilityManager()
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/ |
H A D | device_status_collect_manager.cpp | 77 for (auto& saProfile : saProfiles) { in FilterOnDemandSaProfiles() local 78 …if (saProfile.startOnDemand.onDemandEvents.empty() && saProfile.stopOnDemand.onDemandEvents.empty(… in FilterOnDemandSaProfiles() 81 onDemandSaProfiles_.emplace_back(saProfile); in FilterOnDemandSaProfiles() 407 …find_if(onDemandSaProfiles_.begin(), onDemandSaProfiles_.end(), [systemAbilityId](auto saProfile) { in GetOnDemandEvents() argument 408 return saProfile.saId == systemAbilityId; in GetOnDemandEvents() 548 [systemAbilityId](auto saProfile) { in UpdateOnDemandEvents() argument 549 return saProfile.saId == systemAbilityId; in UpdateOnDemandEvents()
|
H A D | device_param_collect.cpp | 56 for (auto saProfile : saProfiles) { in Init() local 57 for (auto onDemandEvent : saProfile.startOnDemand.onDemandEvents) { in Init() 62 for (auto onDemandEvent : saProfile.stopOnDemand.onDemandEvents) { in Init()
|
H A D | device_switch_collect.cpp | 78 for (auto saProfile : saProfiles) { in Init() local 79 for (auto onDemandEvent : saProfile.startOnDemand.onDemandEvents) { in Init() 85 for (auto onDemandEvent : saProfile.stopOnDemand.onDemandEvents) { in Init()
|
H A D | device_timed_collect.cpp | 49 for (auto& saProfile : saProfiles) { in Init() local 50 for (auto& onDemandEvent : saProfile.startOnDemand.onDemandEvents) { in Init() 53 for (auto& onDemandEvent : saProfile.stopOnDemand.onDemandEvents) { in Init()
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/include/ |
H A D | system_ability_manager_util.h | 36 static bool CheckCallerProcess(const SaProfile& saProfile); 38 static bool CheckAllowUpdate(OnDemandPolicyType type, const SaProfile& saProfile);
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/schedule/ |
H A D | system_ability_state_scheduler.cpp | 95 for (auto& saProfile : saProfiles) { in InitStateContext() local 96 if (saProfile.process.empty()) { in InitStateContext() 100 if (processContextMap_.count(saProfile.process) == 0) { in InitStateContext() 102 processContext->processName = saProfile.process; in InitStateContext() 108 processContextMap_[saProfile.process] = processContext; in InitStateContext() 110 processContextMap_[saProfile.process]->saList.push_back(saProfile.saId); in InitStateContext() 113 abilityContext->systemAbilityId = saProfile.saId; in InitStateContext() 114 abilityContext->isAutoRestart = saProfile.autoRestart; in InitStateContext() 115 int32_t delayUnloadTime = LimitDelayUnloadTime(saProfile.stopOnDemand.delayTime); in InitStateContext() 117 abilityContext->ownProcessContext = processContextMap_[saProfile.process]; in InitStateContext() [all …]
|
/ohos5.0/foundation/systemabilitymgr/safwk/services/safwk/include/ |
H A D | local_ability_manager.h | 101 bool InitializeSaProfilesInnerLocked(const SaProfile& saProfile); 103 bool NeedRegisterOnDemand(const SaProfile& saProfile, int32_t saId);
|