/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | event_db_helper.cpp | 132 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 D | ohos_account_manager.cpp | 170 * @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 D | account_mgr_service.cpp | 90 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 D | ohos_account_manager.h | 100 * @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 D | account_mgr_service.h | 45 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 D | iaccount_context.h | 31 virtual void HandleNotificationEvents(const std::string &eventStr) = 0;
|
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/include/ |
H A D | event_write_handler.h | 41 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 D | export_json_file_writer.h | 43 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 D | mock_account_mgr_service.h | 33 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 D | ohos_account_kits.h | 97 * @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 D | iaccount.h | 36 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 D | ohos_account_kits_impl.h | 33 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 D | mock_account_mgr_service.cpp | 35 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 D | event_db_helper.h | 45 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 D | account_proxy.h | 32 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 D | appevent_packageholder_impl.cpp | 92 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 D | cmdupdateohosaccountinfostub_fuzzer.cpp | 53 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 D | account_proxy.cpp | 57 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 D | ohos_account_kits_impl.cpp | 101 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 D | cmdsetohosaccountinfostub_fuzzer.cpp | 91 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 D | power_mgr_shutdown_fast_test.h | 40 std::shared_ptr<CommonEventServiceSystemTest> OnRegisterEvent(const std::string& eventStr);
|
/base/account/os_account/test/fuzztest/account_stub/cmdsetohosaccountinfobyuseridstub_fuzzer/ |
H A D | cmdsetohosaccountinfobyuseridstub_fuzzer.cpp | 96 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 D | power_mgr_shutdown_fast_test.cpp | 82 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 D | napi_app_event_holder.cpp | 203 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 D | event_write_handler.cpp | 30 if (!writer->AppendEvent(sysEvent->domain, sysEvent->name, sysEvent->eventStr)) { in HandleRequest()
|