1 /*
2  * Copyright (c) 2023 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 {
SendEvent(const EventInfo & eventInfo)19 void EventReport::SendEvent(const EventInfo& eventInfo) {}
20 
SendJsCardRenderTimeEvent(const std::string & sessionID,const std::string & timeType,uint64_t timeDelay)21 void EventReport::SendJsCardRenderTimeEvent(
22     const std::string& sessionID, const std::string& timeType, uint64_t timeDelay)
23 {}
24 
SendAppStartException(AppStartExcepType type)25 void EventReport::SendAppStartException(AppStartExcepType type) {}
26 
SendPageRouterException(PageRouterExcepType type,const std::string & pageUrl)27 void EventReport::SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl) {}
28 
SendComponentException(ComponentExcepType type)29 void EventReport::SendComponentException(ComponentExcepType type) {}
30 
SendAPIChannelException(APIChannelExcepType type)31 void EventReport::SendAPIChannelException(APIChannelExcepType type) {}
32 
SendRenderException(RenderExcepType type)33 void EventReport::SendRenderException(RenderExcepType type) {}
34 
SendJsException(JsExcepType type)35 void EventReport::SendJsException(JsExcepType type) {}
36 
SendAnimationException(AnimationExcepType type)37 void EventReport::SendAnimationException(AnimationExcepType type) {}
38 
SendEventException(EventExcepType type)39 void EventReport::SendEventException(EventExcepType type) {}
40 
SendInternalException(InternalExcepType type)41 void EventReport::SendInternalException(InternalExcepType type) {}
42 
SendAccessibilityException(AccessibilityExcepType type)43 void EventReport::SendAccessibilityException(AccessibilityExcepType type) {}
44 
SendFormException(FormExcepType type)45 void EventReport::SendFormException(FormExcepType type) {}
46 
JsEventReport(int32_t eventType,const std::string & jsonStr)47 void EventReport::JsEventReport(int32_t eventType, const std::string& jsonStr) {}
48 
JsErrReport(const std::string & packageName,const std::string & reason,const std::string & summary)49 void EventReport::JsErrReport(const std::string& packageName, const std::string& reason, const std::string& summary) {}
50 
ANRRawReport(RawEventType type,int32_t uid,const std::string & packageName,const std::string & processName,const std::string & msg)51 void EventReport::ANRRawReport(RawEventType type, int32_t uid, const std::string& packageName,
52     const std::string& processName, const std::string& msg)
53 {}
54 
ANRShowDialog(int32_t uid,const std::string & packageName,const std::string & processName,const std::string & msg)55 void EventReport::ANRShowDialog(
56     int32_t uid, const std::string& packageName, const std::string& processName, const std::string& msg)
57 {}
58 
SendEventInner(const EventInfo & eventInfo)59 void EventReport::SendEventInner(const EventInfo& eventInfo) {}
60 
ReportDoubleClickTitle(int32_t stateChange)61 void EventReport::ReportDoubleClickTitle(int32_t stateChange) {}
62 
ReportClickTitleMaximizeMenu(int32_t maxMenuItem,int32_t stateChange)63 void EventReport::ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange) {}
64 
ReportPageNodeOverflow(const std::string & pageUrl,int32_t nodeCount,int32_t threshold)65 void EventReport::ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold) {}
66 
ReportPageDepthOverflow(const std::string & pageUrl,int32_t depth,int32_t threshold)67 void EventReport::ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold) {}
68 
ReportFunctionTimeout(const std::string & functionName,int64_t time,int32_t threshold)69 void EventReport::ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold) {}
70 
ReportHoverStatusChange(int32_t foldStatus,int32_t time,bool isHoverMode,int32_t appRotation,int32_t windowMode)71 void EventReport::ReportHoverStatusChange(
72     int32_t foldStatus, int32_t time, bool isHoverMode, int32_t appRotation, int32_t windowMode) {}
73 
ReportDragInfo(const DragInfo & dragInfo)74 void EventReport::ReportDragInfo(const DragInfo& dragInfo) {}
75 } // namespace OHOS::Ace
76