Home
last modified time | relevance | path

Searched refs:eventStr (Results 1 - 25 of 30) sorted by relevance

12

/base/hiviewdfx/hiview/plugins/usage_event_report/cache/
H A Devent_db_helper.cpp132 for (auto eventStr : eventStrs) { in QueryPluginStatsEvent()
134 if (!JsonParser::ParsePluginStatsEvent(event, eventStr)) { in QueryPluginStatsEvent()
135 HIVIEW_LOGE("failed to parse the database records=%{public}s", eventStr.c_str()); in QueryPluginStatsEvent()
150 std::string eventStr; in QuerySysUsageEvent() local
151 if (QuerySysUsageTable(eventStr, table) != 0 || eventStr.empty()) { in QuerySysUsageEvent()
156 if (!JsonParser::ParseSysUsageEvent(event, eventStr)) { in QuerySysUsageEvent()
157 HIVIEW_LOGE("failed to parse the database record=%{public}s", eventStr.c_str()); in QuerySysUsageEvent()
220 int EventDbHelper::InsertPluginStatsTable(const std::string& pluginName, const std::string& eventStr) in InsertPluginStatsTable() argument
227 HIVIEW_LOGD("insert db=%{public}s with %{public}s", dbPath_.c_str(), eventStr in InsertPluginStatsTable()
239 InsertSysUsageTable(const std::string& table, const std::string& eventStr) InsertSysUsageTable() argument
257 UpdatePluginStatsTable(const std::string& pluginName, const std::string& eventStr) UpdatePluginStatsTable() argument
272 UpdateSysUsageTable(const std::string& table, const std::string& eventStr) UpdateSysUsageTable() argument
291 QuerySysUsageTable(std::string& eventStr, const std::string& table) QuerySysUsageTable() argument
[all...]
/base/account/os_account/services/accountmgr/src/
H A Dohos_account_manager.cpp170 * @param eventStr ohos account state change event
174 const std::string &eventStr) in OhosAccountStateChange()
176 auto itFunc = eventFuncMap_.find(eventStr); in OhosAccountStateChange()
178 ACCOUNT_LOGE("invalid event: %{public}s", eventStr.c_str()); in OhosAccountStateChange()
185 return (itFunc->second)(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange()
189 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in OhosAccountStateChange()
191 auto itFunc = eventFuncMap_.find(eventStr); in OhosAccountStateChange()
193 ACCOUNT_LOGE("invalid event: %{public}s", eventStr.c_str()); in OhosAccountStateChange()
196 return (itFunc->second)(userId, ohosAccountInfo, eventStr); in OhosAccountStateChange()
289 * @param eventStr oho
173 OhosAccountStateChange(const std::string &name, const std::string &uid, const std::string &eventStr) OhosAccountStateChange() argument
188 OhosAccountStateChange( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) OhosAccountStateChange() argument
292 HandleEvent(AccountInfo &curOhosAccount, const std::string &eventStr) HandleEvent() argument
322 LoginOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LoginOhosAccount() argument
392 LogoutOhosAccount( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LogoutOhosAccount() argument
437 LogoffOhosAccount( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) LogoffOhosAccount() argument
481 HandleOhosAccountTokenInvalidEvent( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) HandleOhosAccountTokenInvalidEvent() argument
[all...]
H A Daccount_mgr_service.cpp90 const std::string &accountName, const std::string &uid, const std::string &eventStr) in UpdateOhosAccountInfo()
92 if (OhosAccountManager::GetInstance().OhosAccountStateChange(accountName, uid, eventStr) != ERR_OK) { in UpdateOhosAccountInfo()
100 std::int32_t AccountMgrService::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo() argument
106 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId()
108 ErrCode res = OhosAccountManager::GetInstance().OhosAccountStateChange(userId, ohosAccountInfo, eventStr); in SetOhosAccountInfoByUserId()
426 void AccountMgrService::HandleNotificationEvents(const std::string &eventStr) in HandleNotificationEvents() argument
429 ACCOUNT_LOGW("service not running for handling event: %{public}s", eventStr.c_str()); in HandleNotificationEvents()
89 UpdateOhosAccountInfo( const std::string &accountName, const std::string &uid, const std::string &eventStr) UpdateOhosAccountInfo() argument
105 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfoByUserId() argument
/base/account/os_account/services/accountmgr/include/
H A Dohos_account_manager.h100 * @param eventStr ohos account state change event
103 bool HandleEvent(AccountInfo &curOhosAccount, const std::string &eventStr);
110 * @param eventStr ohos account state change event
113 ErrCode LoginOhosAccount(const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
120 * @param eventStr ohos account state change event
124 const std::string &eventStr);
131 * @param eventStr ohos account state change event
135 const std::string &eventStr);
142 * @param eventStr ohos account state change event
146 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr);
[all...]
H A Daccount_mgr_service.h45 const std::string &accountName, const std::string &uid, const std::string &eventStr) override;
47 const std::string &eventStr) override;
49 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override;
73 void HandleNotificationEvents(const std::string &eventStr) override;
H A Diaccount_context.h31 virtual void HandleNotificationEvents(const std::string &eventStr) = 0;
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/include/
H A Devent_write_handler.h41 std::string eventStr; member
43 CachedEvent(std::string& version, std::string& domain, std::string& name, std::string& eventStr) in CachedEvent()
44 : version(version), domain(domain), name(name), eventStr(eventStr) {} in CachedEvent()
H A Dexport_json_file_writer.h43 bool AppendEvent(const std::string& domain, const std::string& name, const std::string& eventStr);
/base/account/os_account/services/accountmgr/test/mock/include/
H A Dmock_account_mgr_service.h33 void HandleNotificationEvents(const std::string &eventStr) override;
36 const std::string &accountName, const std::string &uid, const std::string &eventStr) override;
46 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override
52 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/
H A Dohos_account_kits.h97 * @param eventStr Indicates the event of the OS account used for a distributed system.
102 const std::string& eventStr) = 0;
109 * @param eventStr Indicates the event of the OS account used for a distributed system.
114 const std::string &eventStr) = 0;
122 * @param eventStr Indicates the event of the OS account used for a distributed system.
127 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) = 0;
H A Diaccount.h36 const std::string &accountName, const std::string &uid, const std::string &eventStr) = 0;
38 const std::string &eventStr) = 0;
40 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) = 0;
H A Dohos_account_kits_impl.h33 const std::string& eventStr) final;
35 const std::string &eventStr) final;
37 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) final;
/base/account/os_account/services/accountmgr/test/mock/src/
H A Dmock_account_mgr_service.cpp35 void MockAccountMgrService::HandleNotificationEvents(const std::string &eventStr) in HandleNotificationEvents() argument
37 ACCOUNT_LOGI("Get event: %{public}s", eventStr.c_str()); in HandleNotificationEvents()
47 const std::string &accountName, const std::string &uid, const std::string &eventStr) in UpdateOhosAccountInfo()
46 UpdateOhosAccountInfo( const std::string &accountName, const std::string &uid, const std::string &eventStr) UpdateOhosAccountInfo() argument
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
H A Devent_db_helper.h45 int InsertPluginStatsTable(const std::string& pluginName, const std::string& eventStr);
46 int InsertSysUsageTable(const std::string& table, const std::string& eventStr);
47 int UpdatePluginStatsTable(const std::string& pluginName, const std::string& eventStr);
48 int UpdateSysUsageTable(const std::string& table, const std::string& eventStr);
50 int QuerySysUsageTable(std::string& eventStr, const std::string& table);
/base/account/os_account/frameworks/ohosaccount/native/include/
H A Daccount_proxy.h32 const std::string &accountName, const std::string &uid, const std::string &eventStr) override;
34 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override;
35 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override;
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/
H A Dappevent_packageholder_impl.cpp92 std::string eventStr = event->GetEventStr(); in TakeNext() local
93 if (static_cast<int>(totalSize + eventStr.size()) > takeSize_) { in TakeNext()
97 totalSize += eventStr.size(); in TakeNext()
98 eventStrs.emplace_back(eventStr); in TakeNext()
/base/account/os_account/test/fuzztest/account_stub/cmdupdateohosaccountinfostub_fuzzer/
H A Dcmdupdateohosaccountinfostub_fuzzer.cpp53 std::string eventStr = fuzzData.GenerateRandomString(); in CmdUpdateOhosAccountInfoStubFuzzTest() local
54 if (!dataTemp.WriteString16(Str8ToStr16(eventStr))) { in CmdUpdateOhosAccountInfoStubFuzzTest()
55 ACCOUNT_LOGE("Write eventStr failed!"); in CmdUpdateOhosAccountInfoStubFuzzTest()
/base/account/os_account/frameworks/ohosaccount/native/src/
H A Daccount_proxy.cpp57 const std::string &accountName, const std::string &uid, const std::string &eventStr) in UpdateOhosAccountInfo()
72 if (!data.WriteString16(Str8ToStr16(eventStr))) { in UpdateOhosAccountInfo()
73 ACCOUNT_LOGE("Write eventStr failed!"); in UpdateOhosAccountInfo()
96 std::int32_t AccountProxy::SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo() argument
107 if (!data.WriteString16(Str8ToStr16(eventStr))) { in SetOhosAccountInfo()
108 ACCOUNT_LOGE("Write eventStr failed!"); in SetOhosAccountInfo()
131 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfoByUserId()
146 if (!data.WriteString16(Str8ToStr16(eventStr))) { in SetOhosAccountInfoByUserId()
147 ACCOUNT_LOGE("Write eventStr failed!"); in SetOhosAccountInfoByUserId()
56 UpdateOhosAccountInfo( const std::string &accountName, const std::string &uid, const std::string &eventStr) UpdateOhosAccountInfo() argument
130 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfoByUserId() argument
H A Dohos_account_kits_impl.cpp101 const std::string& eventStr) in UpdateOhosAccountInfo()
108 return accountProxy->UpdateOhosAccountInfo(accountName, uid, eventStr); in UpdateOhosAccountInfo()
112 const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) in SetOhosAccountInfo()
123 return accountProxy->SetOhosAccountInfo(ohosAccountInfo, eventStr); in SetOhosAccountInfo()
127 const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) in SetOhosAccountInfoByUserId()
138 return accountProxy->SetOhosAccountInfoByUserId(userId, ohosAccountInfo, eventStr); in SetOhosAccountInfoByUserId()
100 UpdateOhosAccountInfo(const std::string& accountName, const std::string& uid, const std::string& eventStr) UpdateOhosAccountInfo() argument
111 SetOhosAccountInfo( const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) SetOhosAccountInfo() argument
126 SetOhosAccountInfoByUserId( const int32_t userId, const OhosAccountInfo& ohosAccountInfo, const std::string& eventStr) SetOhosAccountInfoByUserId() argument
/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfostub_fuzzer/
H A Dcmdsetohosaccountinfostub_fuzzer.cpp91 std::string eventStr = fuzzData.GenerateRandomString(); in CmdSetOhosAccountInfoStubFuzzTest() local
92 if (!dataTemp.WriteString16(Str8ToStr16(eventStr))) { in CmdSetOhosAccountInfoStubFuzzTest()
93 ACCOUNT_LOGE("Write eventStr failed!"); in CmdSetOhosAccountInfoStubFuzzTest()
/base/powermgr/power_manager/test/systemtest/include/
H A Dpower_mgr_shutdown_fast_test.h40 std::shared_ptr<CommonEventServiceSystemTest> OnRegisterEvent(const std::string& eventStr);
/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfobyuseridstub_fuzzer/
H A Dcmdsetohosaccountinfobyuseridstub_fuzzer.cpp96 std::string eventStr = fuzzData.GenerateRandomString(); in CmdSetOhosAccountInfoByUserIdStubFuzzTest() local
97 if (!dataTemp.WriteString16(Str8ToStr16(eventStr))) { in CmdSetOhosAccountInfoByUserIdStubFuzzTest()
98 ACCOUNT_LOGE("Write eventStr failed!"); in CmdSetOhosAccountInfoByUserIdStubFuzzTest()
/base/powermgr/power_manager/test/systemtest/src/
H A Dpower_mgr_shutdown_fast_test.cpp82 PowerMgrShutDownFast::CommonEventServiceSystemTest::OnRegisterEvent(const std::string& eventStr) in OnRegisterEvent() argument
86 matchingSkills.AddEvent(eventStr); in OnRegisterEvent()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
H A Dnapi_app_event_holder.cpp203 std::string eventStr = event->GetEventStr(); in TakeNext() local
204 if (shouldTakeSize && static_cast<int>(totalSize + eventStr.size()) > takeSize_) { in TakeNext()
209 totalSize += eventStr.size(); in TakeNext()
210 eventStrs.emplace_back(eventStr); in TakeNext()
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/export/
H A Devent_write_handler.cpp30 if (!writer->AppendEvent(sysEvent->domain, sysEvent->name, sysEvent->eventStr)) { in HandleRequest()

Completed in 11 milliseconds

12