/* * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #include "mock_event_report.h" #include "base/log/event_report.h" namespace OHOS::Ace { DragInfo MockEventReport::dragInfo_; FRCSceneFpsInfo EventReport::curFRCSceneFpsInfo_; int64_t EventReport::calTime_ = 0; int32_t EventReport::calFrameRate_ = 0; void EventReport::SendEvent(const EventInfo& eventInfo) {} void EventReport::SendJsCardRenderTimeEvent( const std::string& sessionID, const std::string& timeType, uint64_t timeDelay) {} void EventReport::SendAppStartException(AppStartExcepType type) {} void EventReport::SendPageRouterException(PageRouterExcepType type, const std::string& pageUrl) {} void EventReport::SendComponentException(ComponentExcepType type) {} void EventReport::SendAPIChannelException(APIChannelExcepType type) {} void EventReport::SendRenderException(RenderExcepType type) {} void EventReport::SendJsException(JsExcepType type) {} void EventReport::SendAnimationException(AnimationExcepType type) {} void EventReport::SendEventException(EventExcepType type) {} void EventReport::SendInternalException(InternalExcepType type) {} void EventReport::SendAccessibilityException(AccessibilityExcepType type) {} void EventReport::ReportAccessibilityFailEvent(const std::string& actionName) {} void EventReport::SendFormException(FormExcepType type) {} void EventReport::JsEventReport(int32_t eventType, const std::string& jsonStr) {} void EventReport::JsErrReport(const std::string& packageName, const std::string& reason, const std::string& summary) {} void EventReport::ANRRawReport(RawEventType type, int32_t uid, const std::string& packageName, const std::string& processName, const std::string& msg) {} void EventReport::ANRShowDialog( int32_t uid, const std::string& packageName, const std::string& processName, const std::string& msg) {} void EventReport::SendEventInner(const EventInfo& eventInfo) {} void EventReport::ReportDoubleClickTitle(int32_t stateChange) {} void EventReport::ReportClickTitleMaximizeMenu(int32_t maxMenuItem, int32_t stateChange) {} void EventReport::ReportPageNodeOverflow(const std::string& pageUrl, int32_t nodeCount, int32_t threshold) {} void EventReport::ReportPageDepthOverflow(const std::string& pageUrl, int32_t depth, int32_t threshold) {} void EventReport::ReportFunctionTimeout(const std::string& functionName, int64_t time, int32_t threshold) {} void EventReport::ReportHoverStatusChange( int32_t foldStatus, int32_t time, bool isHoverMode, int32_t appRotation, int32_t windowMode) {} void EventReport::ReportNonManualPostCardActionInfo(const std::string& formName, const std::string& bundleName, const std::string& abilityName, const std::string& moduleName, int32_t dimension) {} void EventReport::ReportDragInfo(const DragInfo& dragInfo) { MockEventReport::dragInfo_ = dragInfo; return; } void EventReport::ReportScrollableErrorEvent( const std::string& nodeType, ScrollableErrorType errorType, const std::string& subErrorType) {} void EventReport::ReportRichEditorInfo(const RichEditorInfo& richEditorInfo) {} void EventReport::ReportTextFieldErrorEvent(int32_t frameNodeId, int32_t depth, const std::string& errorType) {} void EventReport::ReportClipboardFailEvent(const std::string& errorType) {} void EventReport::ReportPageSlidInfo(NG::SlidInfo &slidinfo) {} void EventReport::SendDiffFrameRatesDuring(const std::string& scene, const FRCSceneFpsInfo& curFRCSceneFpsInfo_) {} void EventReport::FrameRateDurationsStatistics(int32_t expectedRate, const std::string& scene, NG::SceneStatus status) {} void EventReport::AddFrameRateDuration(int32_t frameRate, int64_t duration) {} void EventReport::StopFormModifyTimeoutReportTimer(int64_t formId) {} void EventReport::StartFormModifyTimeoutReportTimer(int64_t formId, const std::string &bundleName, const std::string &formName) {} } // namespace OHOS::Ace