1 /*
2  * Copyright (c) 2021 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #include "base/log/event_report.h"
17 
18 namespace OHOS::Ace {
19 
SendEvent(const EventInfo& eventInfo)20 void EventReport::SendEvent(const EventInfo& eventInfo) {}
21 
SendAppStartException(AppStartExcepType type)22 void EventReport::SendAppStartException(AppStartExcepType type) {}
23 
SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl)24 void EventReport::SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl) {}
25 
SendComponentException(ComponentExcepType type)26 void EventReport::SendComponentException(ComponentExcepType type) {}
27 
SendAPIChannelException(APIChannelExcepType type)28 void EventReport::SendAPIChannelException(APIChannelExcepType type) {}
29 
SendRenderException(RenderExcepType type)30 void EventReport::SendRenderException(RenderExcepType type) {}
31 
SendJsException(JsExcepType type)32 void EventReport::SendJsException(JsExcepType type) {}
33 
SendAnimationException(AnimationExcepType type)34 void EventReport::SendAnimationException(AnimationExcepType type) {}
35 
SendEventException(EventExcepType type)36 void EventReport::SendEventException(EventExcepType type) {}
37 
SendInternalException(InternalExcepType type)38 void EventReport::SendInternalException(InternalExcepType type) {}
39 
SendAccessibilityException(AccessibilityExcepType type)40 void EventReport::SendAccessibilityException(AccessibilityExcepType type) {}
41 
SendFormException(FormExcepType type)42 void EventReport::SendFormException(FormExcepType type) {}
43 
JsEventReport(int32_t eventType, const std::string& jsonStr)44 void EventReport::JsEventReport(int32_t eventType, const std::string& jsonStr) {}
45 
JsErrReport(const std::string& packageName, const std::string& reason, const std::string& summary)46 void EventReport::JsErrReport(const std::string& packageName,
47     const std::string& reason, const std::string& summary) {}
48 
ANRRawReport(RawEventType type, int32_t uid, const std::string& packageName, const std::string& processName, const std::string& msg)49 void EventReport::ANRRawReport(RawEventType type, int32_t uid, const std::string& packageName,
50                                const std::string& processName, const std::string& msg) {}
51 
ANRShowDialog(int32_t uid, const std::string& packageName, const std::string& processName, const std::string& msg)52 void EventReport::ANRShowDialog(int32_t uid, const std::string& packageName,
53                                 const std::string& processName, const std::string& msg) {}
54 
JankFrameReport(int64_t startTime, int64_t duration, const std::vector<uint16_t>& jank, const std::string& pageUrl, uint32_t jankStatusVersion)55 void EventReport::JankFrameReport(int64_t startTime, int64_t duration, const std::vector<uint16_t>& jank,
56                                   const std::string& pageUrl, uint32_t jankStatusVersion) {}
57 
SendEventInner(const EventInfo& eventInfo)58 void EventReport::SendEventInner(const EventInfo& eventInfo) {}
59 
ReportEventComplete(DataBase& data)60 void EventReport::ReportEventComplete(DataBase& data) {}
61 
ReportEventJankFrame(DataBase& data)62 void EventReport::ReportEventJankFrame(DataBase& data) {}
63 
ReportJankFrameApp(JankInfo& info)64 void EventReport::ReportJankFrameApp(JankInfo& info) {}
65 
ReportJankFrameFiltered(JankInfo& info)66 void EventReport::ReportJankFrameFiltered(JankInfo& info) {}
67 
ReportJankFrameUnFiltered(JankInfo& info)68 void EventReport::ReportJankFrameUnFiltered(JankInfo& info) {}
69 
ReportDoubleClickTitle(int32_t stateChange)70 void EventReport::ReportDoubleClickTitle(int32_t stateChange) {}
71 
ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange)72 void EventReport::ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange) {}
73 
ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold)74 void EventReport::ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold) {}
75 
ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold)76 void EventReport::ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold) {}
77 
ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold)78 void EventReport::ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold) {}
79 
ReportHoverStatusChange(int32_t foldStatus, int32_t time, bool isHoverMode, int32_t appRotation, int32_t windowMode)80 void EventReport::ReportHoverStatusChange(int32_t foldStatus, int32_t time, bool isHoverMode,
81                                           int32_t appRotation, int32_t windowMode) {}
82 
ReportPageShowMsg(const std::string& pageUrl, const std::string& bundleName, const std::string& pageName)83 void EventReport::ReportPageShowMsg(const std::string& pageUrl, const std::string& bundleName,
84                                     const std::string& pageName) {}
85 
ReportNonManualPostCardActionInfo(const std::string& formName, const std::string& bundleName, const std::string& abilityName, const std::string& moduleName, int32_t dimension)86 void EventReport::ReportNonManualPostCardActionInfo(const std::string& formName, const std::string& bundleName,
87     const std::string& abilityName, const std::string& moduleName, int32_t dimension)
88 {}
89 
ReportUiExtensionTransparentEvent(const std::string& pageUrl, const std::string& bundleName, const std::string& moduleName)90 void EventReport::ReportUiExtensionTransparentEvent(const std::string& pageUrl, const std::string& bundleName,
91     const std::string& moduleName)
92 {}
93 } // namespace OHOS::Ace
94