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 
ResSchedDataReport(const char *,const std::unordered_map<std::string,std::string> &)25 void ResSchedReport::ResSchedDataReport(
26     const char* /* name */, const std::unordered_map<std::string, std::string>& /* param */)
27 {
28     reportDataFunc_ = nullptr;
29 }
30 
ResSchedDataReport(uint32_t resType,int32_t value,const std::unordered_map<std::string,std::string> & payload)31 void ResSchedReport::ResSchedDataReport(
32     uint32_t resType, int32_t value, const std::unordered_map<std::string, std::string>& payload)
33 {}
34 
OnTouchEvent(const TouchEvent & touchEvent)35 void ResSchedReport::OnTouchEvent(const TouchEvent& touchEvent) {}
36 
ResSchedReportScope(const std::string & name,const std::unordered_map<std::string,std::string> & param)37 ResSchedReportScope::ResSchedReportScope(
38     const std::string& name, const std::unordered_map<std::string, std::string>& param)
39     : name_(name), payload_(param)
40 {}
41 
42 ResSchedReportScope::~ResSchedReportScope() = default;
43 } // namespace OHOS::Ace
44