/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/componentmanager/ |
H A D | component_monitor.cpp | 48 void ComponentMonitor::CompSystemAbilityListener::OnAddSystemAbility(int32_t saId, const std::string &deviceId) in OnAddSystemAbility() argument 50 DHLOGI("OnAddSystemAbility, saId: %{public}d, deviceId: %{public}s", saId, GetAnonyString(deviceId).c_str()); in OnAddSystemAbility() 53 void ComponentMonitor::CompSystemAbilityListener::OnRemoveSystemAbility(int32_t saId, const std::string &deviceId) in OnRemoveSystemAbility() argument 55 DHLOGI("OnRemoveSystemAbility, saId: %{public}d, deviceId: %{public}s", saId, GetAnonyString(deviceId).c_str()); in OnRemoveSystemAbility() 56 DHType dhType = ComponentLoader::GetInstance().GetDHTypeBySrcSaId(saId); in OnRemoveSystemAbility() 58 DHLOGE("Can not find DHType by sa Id: %{public}d", saId); in OnRemoveSystemAbility() 62 auto processNameIter = saIdProcessNameMap_.find(saId); in OnRemoveSystemAbility() 64 DHLOGE("SaId not been find, SaId : %{public}d", saId); in OnRemoveSystemAbility() 74 AddSAMonitor(int32_t saId) AddSAMonitor() argument 102 RemoveSAMonitor(int32_t saId) RemoveSAMonitor() argument [all...] |
/foundation/communication/ipc/ipc/test/rpc/samgr/ |
H A D | rpc_samgr.c | 28 int32_t saId; member 41 static int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument 54 node->saId = saId; in AddSystemAbility() 60 static int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument 66 if (node->saId == saId) { in GetSystemAbility() 70 RPC_LOG_INFO("find sa, said = %d, handle = %d, cookie = %u", saId, sid->handle, sid->cookie); in GetSystemAbility() 77 static int32_t AddRemoteSystemAbility(int32_t saId, SvcIdentity *sid) in AddRemoteSystemAbility() argument 79 if (AddSystemAbility(saId, si in AddRemoteSystemAbility() 95 int32_t saId; GetRemoteSystemAbility() local 120 int32_t saId; RemoteRequest() local 128 int32_t saId; RemoteRequest() local 146 int32_t saId; RemoteRequest() local [all...] |
H A D | rpc_mini_samgr.c | 31 int32_t saId; member 47 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument 50 RPC_LOG_INFO("AddSystemAbility called.... cookie = %u, said = %d", sid->cookie, saId); in AddSystemAbility() 60 node->saId = saId; in AddSystemAbility() 80 RPC_LOG_INFO("GetSystemAbilityById %d", node->saId); in GetSystemAbilityById() 81 if (node->saId == systemAbility) { in GetSystemAbilityById() 93 int32_t saId; in AddRemoteSystemAbility() local 94 ReadInt32(data, &saId); in AddRemoteSystemAbility() 97 if (AddSystemAbility(saId, in AddRemoteSystemAbility() 111 GetRemoteSystemAbility(int32_t saId, const char* deviceId, IpcIo *reply) GetRemoteSystemAbility() argument [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentmanager/component_monitior/src/ |
H A D | component_monitor_test.cpp | 61 int32_t saId = static_cast<int32_t>(DHType::AUDIO); in HWTEST_F() local 62 compMonitorPtr_->AddSAMonitor(saId); in HWTEST_F() 77 int32_t saId = static_cast<int32_t>(DHType::CAMERA); in HWTEST_F() local 79 compMonitorPtr_->saListeners_.insert(std::make_pair(saId, listener)); in HWTEST_F() 80 compMonitorPtr_->AddSAMonitor(saId); in HWTEST_F() 95 int32_t saId = static_cast<int32_t>(DHType::GPS); in HWTEST_F() local 96 compMonitorPtr_->RemoveSAMonitor(saId); in HWTEST_F() 111 int32_t saId = static_cast<int32_t>(DHType::CAMERA); in HWTEST_F() local 113 compMonitorPtr_->saListeners_.insert(std::make_pair(saId, listener)); in HWTEST_F() 114 compMonitorPtr_->RemoveSAMonitor(saId); in HWTEST_F() 130 int32_t saId = static_cast<int32_t>(DHType::UNKNOWN); HWTEST_F() local 149 int32_t saId = static_cast<int32_t>(DHType::CAMERA); HWTEST_F() local [all...] |
/foundation/communication/ipc/ipc/test/unittest/rpc/samgr/ |
H A D | RpcSamgrTest.cpp | 30 int32_t saId; member 37 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument 39 if (saId <= INVALID_SAID) { in AddSystemAbility() 53 node->saId = saId; in AddSystemAbility() 59 int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument 65 if (node->saId == saId) { in GetSystemAbility() 69 RPC_LOG_INFO("find sa, said = %d, handle = %d, cookie = %u", saId, sid->handle, sid->cookie); in GetSystemAbility() 76 int32_t AddRemoteSystemAbility(int32_t saId, SvcIdentit argument 94 int32_t saId; GetRemoteSystemAbility() local 117 int32_t saId; GetSystemAbilityTransaction() local 127 int32_t saId; AddRemoteSystemAbilityTransaction() local 151 int32_t saId; RemoteRequest() local [all...] |
/foundation/systemabilitymgr/safwk/services/safwk/src/ |
H A D | local_ability_manager_stub.cpp | 104 int32_t saId = -1; in StartAbilityInner() local 105 bool ret = data.ReadInt32(saId); in StartAbilityInner() 107 HILOGW(TAG, "read saId failed!"); in StartAbilityInner() 110 if (!CheckInputSysAbilityId(saId)) { in StartAbilityInner() 111 HILOGW(TAG, "check SA:%{public}d id failed!", saId); in StartAbilityInner() 120 bool result = StartAbility(saId, eventStr); in StartAbilityInner() 122 result ? "suc" : "fail", saId, eventStr.length(), (GetTickCount() - begin)); in StartAbilityInner() 128 int32_t saId = -1; in StopAbilityInner() local 129 bool ret = data.ReadInt32(saId); in StopAbilityInner() 133 if (!CheckInputSysAbilityId(saId)) { in StopAbilityInner() 151 int32_t saId = -1; ActiveAbilityInner() local 174 int32_t saId = -1; IdleAbilityInner() local 207 int32_t saId = -1; SendStrategyToSAInner() local 272 int32_t saId = -1; SystemAbilityExtProcInner() local [all...] |
H A D | local_ability_manager.cpp | 100 void LocalAbilityManager::DoStartSAProcess(const std::string& profilePath, int32_t saId) in DoStartSAProcess() argument 103 HILOGD(TAG, "SA:%{public}d", saId); in DoStartSAProcess() 113 bool ret = InitSystemAbilityProfiles(realProfilePath, saId); in DoStartSAProcess() 125 ret = Run(saId); in DoStartSAProcess() 192 bool LocalAbilityManager::InitSystemAbilityProfiles(const std::string& profilePath, int32_t saId) in InitSystemAbilityProfiles() argument 211 return InitializeSaProfiles(saId); in InitSystemAbilityProfiles() 214 bool LocalAbilityManager::InitializeSaProfiles(int32_t saId) in InitializeSaProfiles() argument 216 if (saId != DEFAULT_SAID) { in InitializeSaProfiles() 217 return InitializeOnDemandSaProfile(saId); in InitializeSaProfiles() 234 if (saSets.find(saInfo.saId) in CheckTrustSa() 254 int32_t saId = ability->GetSystemAbilitId(); AddAbility() local 544 InitializeOnDemandSaProfile(int32_t saId) InitializeOnDemandSaProfile() argument 664 RegisterOnDemandSystemAbility(int32_t saId) RegisterOnDemandSystemAbility() argument 686 NeedRegisterOnDemand(const SaProfile& saProfile, int32_t saId) NeedRegisterOnDemand() argument 724 FindAndStartPhaseTasks(int32_t saId) FindAndStartPhaseTasks() argument 775 Run(int32_t saId) Run() argument 811 SetStartReason(int32_t saId, const nlohmann::json& event) SetStartReason() argument 817 SetStopReason(int32_t saId, const nlohmann::json& event) SetStopReason() argument 823 GetStartReason(int32_t saId) GetStartReason() argument 829 GetStopReason(int32_t saId) GetStopReason() argument 963 NoNeedCheckUnused(int32_t saId) NoNeedCheckUnused() argument 976 LimitUnusedTimeout(int32_t saId, int32_t timeout) LimitUnusedTimeout() argument 999 GetSaLastRequestTime(const sptr<ISystemAbilityManager>& samgr, int32_t saId, uint64_t& lastRequestTime) GetSaLastRequestTime() argument 1032 int32_t saId = it.first; IdentifyUnusedResident() local 1063 int32_t saId = it.first; IdentifyUnusedOndemand() local [all...] |
H A D | main.cpp | 111 int32_t saId = DEFAULT_SAID; in ParseArgv() local 127 if (!StrToInt(eventVec[0], saId)) { in ParseArgv() 136 return saId; in ParseArgv() 139 static bool CheckSaId(int32_t saId) in CheckSaId() argument 141 return (saId >= FIRST_SYS_ABILITY_ID) && (saId <= LAST_SYS_ABILITY_ID); in CheckSaId() 144 static int DoStartSAProcess(int argc, char *argv[], int32_t saId) in DoStartSAProcess() argument 178 LocalAbilityManager::GetInstance().DoStartSAProcess(profilePath, saId); in DoStartSAProcess() 227 int32_t saId = DEFAULT_SAID; in main() local 235 saId in main() [all...] |
/foundation/communication/ipc/ipc/test/unittest/ipc/samgr/ |
H A D | IpcSamgrTest.cpp | 27 int32_t saId; member 35 int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument 45 node->saId = saId; in AddSystemAbility() 53 int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument 59 if (node->saId == saId) { in GetSystemAbility() 76 int32_t saId; in RemoteRequest() local 77 ReadInt32(data, &saId); in RemoteRequest() 78 RPC_LOG_INFO("samgr pop said = %d....", saId); in RemoteRequest() 89 int32_t saId; RemoteRequest() local [all...] |
/foundation/communication/ipc/ipc/test/ipc/samgr/ |
H A D | samgr.c | 28 int32_t saId; member 34 static int32_t AddSystemAbility(int32_t saId, SvcIdentity *sid) in AddSystemAbility() argument 44 node->saId = saId; in AddSystemAbility() 50 static int32_t GetSystemAbility(int32_t saId, const char* deviceId, SvcIdentity *sid) in GetSystemAbility() argument 57 if (node->saId == saId) { in GetSystemAbility() 73 int32_t saId; in RemoteRequest() local 74 ReadInt32(data, &saId); in RemoteRequest() 77 result = AddSystemAbility(saId, si in RemoteRequest() 85 int32_t saId; RemoteRequest() local [all...] |
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/ |
H A D | ref_count_collect.cpp | 30 residentSaList_.push_back(saProfile.saId); in Init() 32 unrefUnloadSaList_.push_back(saProfile.saId); in Init() 76 for (const auto& saId : unrefUnloadSaList_) { in IdentifyUnrefOndemand() 77 sptr<IRemoteObject> object = samgr->CheckSystemAbility(saId); in IdentifyUnrefOndemand() 86 HILOGD("ondemand SA:%{public}d, ref count:%{public}u", saId, refCount); in IdentifyUnrefOndemand() 88 HILOGI("ondemand SA:%{public}d, ref count:1", saId); in IdentifyUnrefOndemand() 89 SaControlInfo control = { STOP_ON_DEMAND, saId }; in IdentifyUnrefOndemand() 107 for (const auto& saId : residentSaList_) { in IdentifyUnrefResident() 108 sptr<IRemoteObject> object = samgr->CheckSystemAbility(saId); in IdentifyUnrefResident() 117 HILOGD("resident SA:%{public}d, ref count:%{public}u", saId, refCoun in IdentifyUnrefResident() [all...] |
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/ |
H A D | mem_mgr_client_mock.cpp | 51 int32_t MemMgrClient::NotifyProcessStatus(pid_t pid, int32_t start, int32_t status, int32_t saId) in NotifyProcessStatus() argument 54 UNITTEST_INFO_LOG("pid:%d, status:%d, start:%d, saId:%d", pid, status, start, saId); in NotifyProcessStatus() 57 return mock->NotifyProcessStatus(pid, start, status, saId); in NotifyProcessStatus() 60 int32_t MemMgrClient::SetCritical(pid_t pid, bool flag, int32_t saId) in SetCritical() argument 63 UNITTEST_INFO_LOG("pid:%d, flag:%d, saId:%d", pid, flag, saId); in SetCritical() 66 return mock->SetCritical(pid, flag, saId); in SetCritical()
|
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/componentmanager/ |
H A D | component_monitor.h | 36 void AddSAMonitor(int32_t saId); 37 void RemoveSAMonitor(int32_t saId); 43 void OnAddSystemAbility(int32_t saId, const std::string &deviceId) override; 44 void OnRemoveSystemAbility(int32_t saId, const std::string &deviceId) override;
|
/foundation/systemabilitymgr/safwk/services/safwk/include/ |
H A D | local_ability_manager.h | 54 bool InitSystemAbilityProfiles(const std::string& profilePath, int32_t saId); 64 void DoStartSAProcess(const std::string& profilePath, int32_t saId); 81 void RegisterOnDemandSystemAbility(int32_t saId); 82 void FindAndStartPhaseTasks(int32_t saId); 100 bool InitializeSaProfiles(int32_t saId); 101 bool InitializeOnDemandSaProfile(int32_t saId); 104 bool Run(int32_t saId); 105 bool NeedRegisterOnDemand(const SaProfile& saProfile, int32_t saId); 115 bool NoNeedCheckUnused(int32_t saId); 116 void LimitUnusedTimeout(int32_t saId, int32_ [all...] |
/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_hichain_system_ability_monitor.cpp | 41 void OnAddSystemAbility(int32_t saId, const std::string &deviceId) override; 42 void OnRemoveSystemAbility(int32_t saId, const std::string &deviceId) override; 68 void SystemAbilityListener::OnAddSystemAbility(int32_t saId, const std::string &deviceId) in OnAddSystemAbility() argument 70 AUTH_LOGI(AUTH_INIT, "onSaStart saId=%{public}d", saId); in OnAddSystemAbility() 71 if (saId == DEVICE_AUTH_SERVICE_ID) { in OnAddSystemAbility() 82 void SystemAbilityListener::OnRemoveSystemAbility(int32_t saId, const std::string &deviceId) in OnRemoveSystemAbility() argument 84 AUTH_LOGI(AUTH_INIT, "onRemove saId=%{public}d", saId); in OnRemoveSystemAbility()
|
/foundation/distributedhardware/distributed_audio/services/audiomanager/test/fuzztest/sinkstubdaudiosinkstub_fuzzer/ |
H A D | sinkstubdaudiosinkstub_fuzzer.cpp | 37 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); in SinkStubDaudioSinkStubFuzzTest() local 39 auto dAudioSinkService = std::make_shared<DAudioSinkService>(saId, runOnCreate); in SinkStubDaudioSinkStubFuzzTest() 79 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); in SinkStubSubscribeLocalHardwareInnerFuzzTest() local 81 auto dAudioSinkService = std::make_shared<DAudioSinkService>(saId, runOnCreate); in SinkStubSubscribeLocalHardwareInnerFuzzTest() 104 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); in SinkStubUnsubscribeLocalHardwareInnerFuzzTest() local 106 auto dAudioSinkService = std::make_shared<DAudioSinkService>(saId, runOnCreate); in SinkStubUnsubscribeLocalHardwareInnerFuzzTest() 129 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); in SinkStubDAudioNotifyInnerFuzzTest() local 131 auto dAudioSinkService = std::make_shared<DAudioSinkService>(saId, runOnCreate); in SinkStubDAudioNotifyInnerFuzzTest() 154 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); in SinkStubPauseDistributedHardwareInnerFuzzTest() local 156 auto dAudioSinkService = std::make_shared<DAudioSinkService>(saId, runOnCreat in SinkStubPauseDistributedHardwareInnerFuzzTest() 179 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); SinkStubResumeDistributedHardwareInnerFuzzTest() local 204 int32_t saId = *(reinterpret_cast<const int32_t*>(data)); SinkStubStopDistributedHardwareInnerFuzzTest() local [all...] |
/foundation/systemabilitymgr/samgr/services/dfx/source/ |
H A D | hisysevent_adapter.cpp | 59 void ReportSaCrash(int32_t saId)
in ReportSaCrash() argument 64 SAID, saId);
in ReportSaCrash() 66 HILOGE("report sa crash failed! SA:%{public}d, ret:%{public}d.", saId, ret);
in ReportSaCrash() 70 void ReportSaUnLoadFail(int32_t saId, int32_t pid, int32_t uid, const std::string& reason)
in ReportSaUnLoadFail() argument 75 SAID, saId,
in ReportSaUnLoadFail() 80 HILOGE("report sa unload fail event failed! SA:%{public}d, ret %{public}d.", saId, ret);
in ReportSaUnLoadFail() 84 static void ReportSaDuration(const std::string& eventName, int32_t saId, int32_t keyStage, int64_t duration)
in ReportSaDuration() argument 89 SAID, saId,
in ReportSaDuration() 94 eventName.c_str(), saId, ret);
in ReportSaDuration() 109 void ReportSaLoadDuration(int32_t saId, int32_ argument 114 ReportSaUnLoadDuration(int32_t saId, int32_t keyStage, int64_t duration) ReportSaUnLoadDuration() argument [all...] |
/foundation/multimedia/av_codec/test/unittest/sa_avcodec_test/mock/include/ |
H A D | mem_mgr_client.h | 36 virtual int32_t NotifyProcessStatus(pid_t pid, int32_t status, int32_t start, int32_t saId) = 0; 37 virtual int32_t SetCritical(pid_t pid, bool flag, int32_t saId) = 0; 58 int32_t NotifyProcessStatus(pid_t pid, int32_t status, int32_t start, int32_t saId) override; 59 int32_t SetCritical(pid_t pid, bool flag, int32_t saId) override;
|
/foundation/distributedhardware/distributed_input/interfaces/ipc/test/clientunittest/ |
H A D | mock_samanager.cpp | 48 int32_t saId = 4809; in GetDInputSourceProxy() local 52 dInputSourceProxy_ = new DistributedInputSourceManager(saId, runOnCreate); in GetDInputSourceProxy() 75 int32_t saId = 4810; in GetDInputSinkProxy() local 79 dInputSinkProxy_ = new DistributedInputSinkManager(saId, runOnCreate); in GetDInputSinkProxy()
|
/foundation/distributedhardware/distributed_screen/common/test/unittest/src/ |
H A D | screen_common_test.cpp | 58 ReportSaFail(eventName, errCode, saId, errMsg); in HWTEST_F() 59 ReportSaFail(eventName, errCode, saId, errMsg); in HWTEST_F() 63 ReportSaEvent(eventName, saId, errMsg); in HWTEST_F() 67 ReportSaFail(longEventName, errCode, saId, errMsg); in HWTEST_F() 68 ReportSaFail(longEventName, errCode, saId, errMsg); in HWTEST_F() 72 ReportSaEvent(longEventName, saId, errMsg); in HWTEST_F()
|
/foundation/resourceschedule/memmgr/interface/innerkits/src/ |
H A D | mem_mgr_client.cpp | 24 int32_t notify_process_status(int32_t pid, int32_t type, int32_t status, int saId) in notify_process_status() argument 26 return OHOS::Memory::MemMgrClient::GetInstance().NotifyProcessStatus(pid, type, status, saId); in notify_process_status() 29 int32_t set_critical(int32_t pid, bool critical, int32_t saId) in set_critical() argument 31 return OHOS::Memory::MemMgrClient::GetInstance().SetCritical(pid, critical, saId); in set_critical() 258 int32_t MemMgrClient::NotifyProcessStatus(int32_t pid, int32_t type, int32_t status, int saId) in NotifyProcessStatus() argument 266 return dps->NotifyProcessStatus(pid, type, status, saId); in NotifyProcessStatus() 269 int32_t MemMgrClient::SetCritical(int32_t pid, bool critical, int32_t saId) in SetCritical() argument 277 return dps->SetCritical(pid, critical, saId); in SetCritical()
|
/foundation/distributedhardware/distributed_input/utils/src/ |
H A D | dinput_context.cpp | 175 sptr<IRemoteObject> DInputContext::GetRemoteObject(const int32_t saId) in GetRemoteObject() argument 180 if (remoteObjects_.find(saId) != remoteObjects_.end()) { in GetRemoteObject() 182 return remoteObjects_[saId]; in GetRemoteObject() 191 auto remoteObject = samgr->GetSystemAbility(saId); in GetRemoteObject() 199 void DInputContext::AddRemoteObject(const int32_t saId, const sptr<IRemoteObject> &remoteObject) in AddRemoteObject() argument 202 remoteObjects_[saId] = remoteObject; in AddRemoteObject() 205 void DInputContext::RemoveRemoteObject(const int32_t saId) in RemoveRemoteObject() argument 208 remoteObjects_.erase(saId); in RemoveRemoteObject()
|
/foundation/resourceschedule/memmgr/interface/innerkits/include/ |
H A D | mem_mgr_client.h | 24 int32_t notify_process_status(int32_t pid, int32_t type, int32_t status, int saId = -1); 25 int32_t set_critical(int32_t pid, bool critical, int32_t saId = -1); 49 int32_t NotifyProcessStatus(int32_t pid, int32_t type, int32_t status, int saId = -1); 50 int32_t SetCritical(int32_t pid, bool critical, int32_t saId = -1);
|
/foundation/systemabilitymgr/samgr/services/dfx/include/ |
H A D | hisysevent_adapter.h | 30 void ReportSaCrash(int32_t saId);
38 void ReportSaUnLoadFail(int32_t saId, int32_t pid, int32_t uid, const std::string& reason);
40 void ReportSaLoadDuration(int32_t saId, int32_t keyStage, int64_t duration);
42 void ReportSaUnLoadDuration(int32_t saId, int32_t keyStage, int64_t duration);
|
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/ |
H A D | ref_count_collect_test.cpp | 56 saProfile.saId = 1; in HWTEST_F() 62 saProfile.saId = 2; in HWTEST_F() 81 saProfile.saId = 1; in HWTEST_F() 87 saProfile.saId = 2; in HWTEST_F() 105 saProfile.saId = 1; in HWTEST_F()
|