1 /*
2 * Copyright (c) 2021-2022 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/ressched/ressched_report.h"
17
18 namespace OHOS::Ace {
GetInstance()19 ResSchedReport& ResSchedReport::GetInstance()
20 {
21 static ResSchedReport instance;
22 return instance;
23 }
24
ResSchedReport()25 ResSchedReport::ResSchedReport()
26 {}
27
ResSchedDataReport(const char *,const std::unordered_map<std::string,std::string> &)28 void ResSchedReport::ResSchedDataReport(
29 const char* /* name */, const std::unordered_map<std::string, std::string>& /* param */)
30 {
31 reportDataFunc_ = nullptr;
32 }
33
ResSchedDataReport(uint32_t resType,int32_t value,const std::unordered_map<std::string,std::string> & payload)34 void ResSchedReport::ResSchedDataReport(
35 uint32_t resType, int32_t value, const std::unordered_map<std::string, std::string>& payload)
36 {}
37
OnTouchEvent(const TouchEvent & touchEvent)38 void ResSchedReport::OnTouchEvent(const TouchEvent& touchEvent) {}
39
HandlePageTransition(const std::string & fromPage,const std::string & toPage,const std::string & mode)40 void ResSchedReport::HandlePageTransition(const std::string& fromPage,
41 const std::string& toPage, const std::string& mode)
42 {}
43
ResSchedReportScope(const std::string & name,const std::unordered_map<std::string,std::string> & param)44 ResSchedReportScope::ResSchedReportScope(
45 const std::string& name, const std::unordered_map<std::string, std::string>& param)
46 : name_(name), payload_(param)
47 {}
48
49 ResSchedReportScope::~ResSchedReportScope() = default;
50 } // namespace OHOS::Ace
51