• 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 #ifndef CONTROL_CALL_CMD_H
16 #define CONTROL_CALL_CMD_H
17 #include <iostream>
18 #include <fstream>
19 #include <sstream>
20 #include <string>
21 #include <vector>
22 namespace OHOS {
23 namespace SmartPerf {
24 class ControlCallCmd {
25 public:
26     double CompleteTime();
27     double ResponseTime();
28     std::string GetResult(const std::vector<std::string>& v);
29     std::string GetFrame();
30     std::string GetAppStartTime() const;
31     std::string SlideList();
32     std::string TimeDelay();
33     void IsohTest(const std::vector<std::string>& v);
34 
35 private:
36     bool isOhTest = false;
37     std::string result = "";
38     int ohType = 4;
39     int typeName = 2;
40     double time = 0.0;
41     double noNameType = -1.0;
42     std::ostringstream stream;
43     int two = 2;
44 };
45 }
46 }
47 #endif // SMARTPERF_COMMAND_H