• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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,const std::string & uniqueId)51 void EventReport::JsErrReport(const std::string& packageName,
52     const std::string& reason, const std::string& summary, const std::string& uniqueId) {}
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 
ReportEventComplete(DataBase & data)65 void EventReport::ReportEventComplete(DataBase& data) {}
66 
ReportEventJankFrame(DataBase & data)67 void EventReport::ReportEventJankFrame(DataBase& data) {}
68 
ReportJankFrameApp(JankInfo & info)69 void EventReport::ReportJankFrameApp(JankInfo& info) {}
70 
ReportJankFrameFiltered(JankInfo & info)71 void EventReport::ReportJankFrameFiltered(JankInfo& info) {}
72 
ReportJankFrameUnFiltered(JankInfo & info)73 void EventReport::ReportJankFrameUnFiltered(JankInfo& info) {}
74 
ReportDoubleClickTitle(int32_t stateChange)75 void EventReport::ReportDoubleClickTitle(int32_t stateChange) {}
76 
ReportClickTitleMaximizeMenu(int32_t maxMenuItem,int32_t stateChange)77 void EventReport::ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange) {}
78 
ReportPageNodeOverflow(const std::string & pageUrl,int32_t nodeCount,int32_t threshold)79 void EventReport::ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold) {}
80 
ReportPageDepthOverflow(const std::string & pageUrl,int32_t depth,int32_t threshold)81 void EventReport::ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold) {}
82 
ReportFunctionTimeout(const std::string & functionName,int64_t time,int32_t threshold)83 void EventReport::ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold) {}
84 
ReportHoverStatusChange(int32_t foldStatus,int32_t time,bool isHoverMode,int32_t appRotation,int32_t windowMode)85 void EventReport::ReportHoverStatusChange(int32_t foldStatus, int32_t time, bool isHoverMode,
86                                           int32_t appRotation, int32_t windowMode) {}
87 
ReportPageShowMsg(const std::string & pageUrl,const std::string & bundleName,const std::string & pageName)88 void EventReport::ReportPageShowMsg(const std::string& pageUrl, const std::string& bundleName,
89                                     const std::string& pageName) {}
90 
ReportNonManualPostCardActionInfo(const std::string & formName,const std::string & bundleName,const std::string & abilityName,const std::string & moduleName,int32_t dimension)91 void EventReport::ReportNonManualPostCardActionInfo(const std::string& formName, const std::string& bundleName,
92     const std::string& abilityName, const std::string& moduleName, int32_t dimension)
93 {}
94 
ReportUiExtensionTransparentEvent(const std::string & pageUrl,const std::string & bundleName,const std::string & moduleName)95 void EventReport::ReportUiExtensionTransparentEvent(const std::string& pageUrl, const std::string& bundleName,
96     const std::string& moduleName)
97 {}
98 
ReportDragInfo(const DragInfo & dragInfo)99 void EventReport::ReportDragInfo(const DragInfo& dragInfo) {}
100 
ReportScrollableErrorEvent(const std::string & nodeType,ScrollableErrorType errorType,const std::string & subErrorType)101 void EventReport::ReportScrollableErrorEvent(
102     const std::string& nodeType, ScrollableErrorType errorType, const std::string& subErrorType)
103 {}
104 
ReportRichEditorInfo(const RichEditorInfo & richEditorInfo)105 void EventReport::ReportRichEditorInfo(const RichEditorInfo& richEditorInfo) {}
106 
ReportTextFieldErrorEvent(int32_t frameNodeId,int32_t depth,const std::string & errorType)107 void EventReport::ReportTextFieldErrorEvent(int32_t frameNodeId, int32_t depth, const std::string& errorType)
108 {}
109 
ReportClipboardFailEvent(const std::string & errorType)110 void EventReport::ReportClipboardFailEvent(const std::string& errorType)
111 {}
112 
SendDiffFrameRatesDuring(const std::string & scene,const FRCSceneFpsInfo & curFRCSceneFpsInfo_)113 void EventReport::SendDiffFrameRatesDuring(const std::string& scene, const FRCSceneFpsInfo& curFRCSceneFpsInfo_)
114 {}
115 
FrameRateDurationsStatistics(int32_t expectedRate,const std::string & scene,NG::SceneStatus status)116 void EventReport::FrameRateDurationsStatistics(int32_t expectedRate, const std::string& scene, NG::SceneStatus status)
117 {}
118 
AddFrameRateDuration(int32_t frameRate,int32_t duration)119 void EventReport::AddFrameRateDuration(int32_t frameRate, int32_t duration)
120 {}
121 } // namespace OHOS::Ace
122