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 FRCSceneFpsInfo EventReport::curFRCSceneFpsInfo_;
20 int64_t EventReport::calTime_ = 0;
21 int32_t EventReport::calFrameRate_ = 0;
22
SendEvent(const EventInfo & eventInfo)23 void EventReport::SendEvent(const EventInfo& eventInfo) {}
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
ReportAccessibilityFailEvent(const std::string & actionName)45 void EventReport::ReportAccessibilityFailEvent(const std::string& actionName) {}
46
SendFormException(FormExcepType type)47 void EventReport::SendFormException(FormExcepType type) {}
48
JsEventReport(int32_t eventType,const std::string & jsonStr)49 void EventReport::JsEventReport(int32_t eventType, const std::string& jsonStr) {}
50
JsErrReport(const std::string & packageName,const std::string & reason,const std::string & summary)51 void EventReport::JsErrReport(const std::string& packageName,
52 const std::string& reason, const std::string& summary) {}
53
ANRRawReport(RawEventType type,int32_t uid,const std::string & packageName,const std::string & processName,const std::string & msg)54 void EventReport::ANRRawReport(RawEventType type, int32_t uid, const std::string& packageName,
55 const std::string& processName, const std::string& msg) {}
56
ANRShowDialog(int32_t uid,const std::string & packageName,const std::string & processName,const std::string & msg)57 void EventReport::ANRShowDialog(int32_t uid, const std::string& packageName,
58 const std::string& processName, const std::string& msg) {}
59
JankFrameReport(int64_t startTime,int64_t duration,const std::vector<uint16_t> & jank,const std::string & pageUrl,uint32_t jankStatusVersion)60 void EventReport::JankFrameReport(int64_t startTime, int64_t duration, const std::vector<uint16_t>& jank,
61 const std::string& pageUrl, uint32_t jankStatusVersion) {}
62
SendEventInner(const EventInfo & eventInfo)63 void EventReport::SendEventInner(const EventInfo& eventInfo) {}
64
ReportDoubleClickTitle(int32_t stateChange)65 void EventReport::ReportDoubleClickTitle(int32_t stateChange) {}
66
ReportClickTitleMaximizeMenu(int32_t maxMenuItem,int32_t stateChange)67 void EventReport::ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange) {}
68
ReportPageNodeOverflow(const std::string & pageUrl,int32_t nodeCount,int32_t threshold)69 void EventReport::ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold) {}
70
ReportPageDepthOverflow(const std::string & pageUrl,int32_t depth,int32_t threshold)71 void EventReport::ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold) {}
72
ReportFunctionTimeout(const std::string & functionName,int64_t time,int32_t threshold)73 void EventReport::ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold) {}
74
ReportHoverStatusChange(int32_t foldStatus,int32_t time,bool isHoverMode,int32_t appRotation,int32_t windowMode)75 void EventReport::ReportHoverStatusChange(int32_t foldStatus, int32_t time, bool isHoverMode,
76 int32_t appRotation, int32_t windowMode) {}
77
ReportNonManualPostCardActionInfo(const std::string & formName,const std::string & bundleName,const std::string & abilityName,const std::string & moduleName,int32_t dimension)78 void EventReport::ReportNonManualPostCardActionInfo(const std::string& formName, const std::string& bundleName,
79 const std::string& abilityName, const std::string& moduleName, int32_t dimension)
80 {}
81
ReportUiExtensionTransparentEvent(const std::string & pageUrl,const std::string & bundleName,const std::string & moduleName)82 void EventReport::ReportUiExtensionTransparentEvent(const std::string& pageUrl, const std::string& bundleName,
83 const std::string& moduleName)
84 {}
85
ReportDragInfo(const DragInfo & dragInfo)86 void EventReport::ReportDragInfo(const DragInfo& dragInfo) {}
87
ReportScrollableErrorEvent(const std::string & nodeType,ScrollableErrorType errorType,const std::string & subErrorType)88 void EventReport::ReportScrollableErrorEvent(
89 const std::string& nodeType, ScrollableErrorType errorType, const std::string& subErrorType)
90 {}
91
ReportRichEditorInfo(const RichEditorInfo & richEditorInfo)92 void EventReport::ReportRichEditorInfo(const RichEditorInfo& richEditorInfo) {}
93
ReportTextFieldErrorEvent(int32_t frameNodeId,int32_t depth,const std::string & errorType)94 void EventReport::ReportTextFieldErrorEvent(int32_t frameNodeId, int32_t depth, const std::string& errorType)
95 {}
96
ReportClipboardFailEvent(const std::string & errorType)97 void EventReport::ReportClipboardFailEvent(const std::string& errorType)
98 {}
99
ReportPageSlidInfo(NG::SlidInfo & slidInfo)100 void EventReport::ReportPageSlidInfo(NG::SlidInfo &slidInfo)
101 {}
102
SendDiffFrameRatesDuring(const std::string & scene,const FRCSceneFpsInfo & curFRCSceneFpsInfo_)103 void EventReport::SendDiffFrameRatesDuring(const std::string& scene, const FRCSceneFpsInfo& curFRCSceneFpsInfo_)
104 {}
105
FrameRateDurationsStatistics(int32_t expectedRate,const std::string & scene,NG::SceneStatus status)106 void EventReport::FrameRateDurationsStatistics(int32_t expectedRate, const std::string& scene, NG::SceneStatus status)
107 {}
108
AddFrameRateDuration(int32_t frameRate,int64_t duration)109 void EventReport::AddFrameRateDuration(int32_t frameRate, int64_t duration)
110 {}
111
StopFormModifyTimeoutReportTimer(int64_t formId)112 void EventReport::StopFormModifyTimeoutReportTimer(int64_t formId)
113 {}
114
StartFormModifyTimeoutReportTimer(int64_t formId,const std::string & bundleName,const std::string & formName)115 void EventReport::StartFormModifyTimeoutReportTimer(int64_t formId, const std::string &bundleName,
116 const std::string &formName)
117 {}
118 } // namespace OHOS::Ace
119