1 /*
2  * Copyright (c) 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 #ifndef OHOS_DSCREEN_HITRACE_H
17 #define OHOS_DSCREEN_HITRACE_H
18 
19 #include <string>
20 
21 #include "hitrace_meter.h"
22 
23 namespace OHOS {
24 namespace DistributedHardware {
25 constexpr uint64_t DSCREEN_HITRACE_LABEL = HITRACE_TAG_DISTRIBUTED_SCREEN;
26 
27 const std::string DSCREEN_SOURCE_LOAD_SYSTEM_ABILITY_START = "DSCREEN_SOURCE_LOAD_SYSTEM_ABILITY_START";
28 const std::string DSCREEN_SINK_LOAD_SYSTEM_ABILITY_START = "DSCREEN_SINK_LOAD_SYSTEM_ABILITY_START";
29 const std::string DSCREEN_SOURCE_OPEN_SESSION_START = "DSCREEN_SOURCE_OPEN_SESSION_START";
30 const std::string DSCREEN_SOURCE_CLOSE_SESSION_START = "DSCREEN_SOURCE_CLOSE_SESSION_START";
31 const std::string DSCREEN_SOURCE_RELEASE_SESSION_START = "DSCREEN_SOURCE_RELEASE_SESSION_START";
32 const std::string DSCREEN_SINK_CLOSE_SESSION_START = "DSCREEN_SINK_CLOSE_SESSION_START";
33 const std::string DSCREEN_SINK_RELEASE_SESSION_START = "DSCREEN_SINK_RELEASE_SESSION_START";
34 const std::string DSCREEN_START_ENCODER_START = "DSCREEN_START_ENCODER_START";
35 const std::string DSCREEN_STOP_ENCODER_START =  "DSCREEN_STOP_ENCODER_START";
36 const std::string DSCREEN_RELESSE_ENCODER_START =  "DSCREEN_RELESSE_ENCODER_START";
37 const std::string DSCREEN_START_DECODER_START = "DSCREEN_START_DECODER_START";
38 const std::string DSCREEN_STOP_DECODER_START =  "DSCREEN_STOP_DECODER_START";
39 const std::string DSCREEN_RELEASE_DECODER_START =  "DSCREEN_RELEASE_DECODER_START";
40 const std::string DSCREEN_SINK_PUSH_DATA_TO_WINDOW_START =  "DSCREEN_SINK_PUSH_DATA_TO_WINDOW_START";
41 } // namespace DistributedHardware
42 } // namespace OHOS
43 #endif