/test/ostest/wukong/common/include/ |
H A D | wukong_util.h | 46 uint32_t FindElement(std::vector<std::string> &bundleList, std::string key); 54 bool ContainsElement(std::vector<std::string> &bundleList, std::string key); 61 ErrCode SetAllowList(const std::string &optarg); 68 ErrCode SetBlockList(const std::string &optarg); 75 ErrCode SetBlockPageList(const std::string &optarg); 82 ErrCode SetBlockAbilityList(const std [all...] |
/test/xts/dcts/distributedhardware/distributedaudionewtest/ |
H A D | distributedaudiotest.cpp | 66 int32_t ParamCallback(AudioExtParamKey key, const std::string &condition, const std::string &value, 78 int32_t AudioParamCallbackImpl::ParamCallback(AudioExtParamKey key, const std::string &condition, in ParamCallback() 79 const std::string &value, int8_t &reserved, int8_t cookie) in ParamCallback() 121 static std::vector<AudioAdapterDescriptor> g_devices; 123 static std::string g_devId = ""; 134 static std::vector<uint8_t*> renderData; 139 static std::thread g_playingThread; 140 static std::thread g_capingThread; 145 std in GetNowTimeUs() [all...] |
/test/ostest/wukong/component_event/include/ |
H A D | tree_manager.h | 65 const std::shared_ptr<OHOS::Accessibility::AccessibilityElementInfo>& GetElementInfoByOrder() in GetElementInfoByOrder() 74 const std::vector<std::shared_ptr<OHOS::Accessibility::AccessibilityElementInfo>>& GetActiveElementInfos() in GetActiveElementInfos() 83 const std::vector<std::shared_ptr<ComponentTree>>& GetActiveComponentInfos() in GetActiveComponentInfos() 103 std::uint32_t FindInputComponentIndex(bool shouldScreenCap); 114 bool NeedFocus(const std::string & type) in NeedFocus() 129 void SetFocusNum(const std::string & focusNum) in SetFocusNum() 131 focusNum_ = std::stoi(focusNum); in SetFocusNum() 146 void SetFocusTypeList(const std [all...] |
/test/xts/hats/kernel/purgeableMem/ |
H A D | purgeable_cpp_test.cpp | 34 void ModifyPurgMemByBuilder(PurgeableMem *pdata, std::unique_ptr<PurgeableMemBuilder> mod); 55 std::cout << "rebuild addr("<< (unsigned long long)str <<") " << in Build() 56 start << "~" << end << ", data=[" << str << "]" << std::endl; in Build() 62 std::cout << "~TestDataBuilder" << std::endl; in ~TestDataBuilder() 90 std::cout << "~TestDataModifier" << std::endl; in ~TestDataModifier() 120 std::cout << "~TestBigDataBuilder" << std::endl; in ~TestBigDataBuilder() 154 std in HWTEST_F() [all...] |
/test/ostest/wukong/report/src/ |
H A D | report.cpp | 45 std::string crashDir = "/data/log/faultlog/faultlogger/"; 66 std::string destDir = Report::GetInstance()->GetReportExceptionDir(); in ListenCrashDir() 76 std::string targetFile(event->name); in ListenCrashDir() 91 std::thread listenerThread(&ListenCrashDir); in StartCrashDirListen() 106 const std::string DEFAULT_DIR = "/data/local/tmp/wukong/report/"; in EnvInit() 111 std::string maxValue = ""; in EnvInit() 112 std::string targetTimeDir; in EnvInit() 145 std::string currentStringName(dp->d_name); in EnvInit() 155 std::string targetDir_ = DEFAULT_DIR + targetTimeDir +"/screenshot/"; in EnvInit() 161 std in DataSetInit() [all...] |
H A D | statistics_event.cpp | 29 void StatisticsEvent::StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas, in StatisticsDetail() 30 std::map<std::string, std::shared_ptr<Table>> &destTables) in StatisticsDetail() 36 std::shared_ptr<EventStatisticsMsg> curEventStatisticsMsgPtr = bundle.second; in StatisticsDetail() 38 std::vector<std in StatisticsDetail() [all...] |
H A D | statistics_componment.cpp | 31 void StatisticsComponment::StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas, in StatisticsDetail() 32 std::map<std::string, std::shared_ptr<Table>> &destTables) in StatisticsDetail() 38 std::shared_ptr<ComponmentStatisticsMsg> curComponmentStatisticsMsgPtr = bundle.second; in StatisticsDetail() 40 std::vector<std in StatisticsDetail() [all...] |
H A D | statistics_ability.cpp | 33 void StatisticsAbility::StatisticsDetail(std::vector<std::map<std::string, std::string>> srcDatas, in StatisticsDetail() 34 std::map<std::string, std::shared_ptr<Table>> &destTables) in StatisticsDetail() 37 std::shared_ptr<AbilityStatisticsRecord> globalAbilityStatisticsRecordPtr = in StatisticsDetail() 38 std::make_shared<AbilityStatisticsRecord>(); in StatisticsDetail() 40 std in StatisticsDetail() [all...] |
/test/xts/dcts/distributedhardware/distributedaudiotest/ |
H A D | distributedaudiotest.cpp | 62 int32_t ParamCallback(AudioExtParamKey key, const std::string &condition, const std::string &value, 74 int32_t AudioParamCallbackImpl::ParamCallback(AudioExtParamKey key, const std::string &condition, in ParamCallback() 75 const std::string &value, int8_t &reserved, int8_t cookie) in ParamCallback() 117 static std::vector<AudioAdapterDescriptor> g_devices; 119 static std::string g_devId = ""; 130 static std::vector<uint8_t*> renderData; 135 static std::thread g_playingThread; 136 static std::thread g_capingThread; 141 std in GetNowTimeUs() [all...] |
/test/xts/hats/hdf/camera/cameraHdi/buffer_manager/ |
H A D | buffer_manager_utest.cpp | 40 std::cout << "Camera::BufferManager SetUpTestCase" << std::endl; in SetUpTestCase() 45 std::cout << "Camera::BufferManager TearDownTestCase" << std::endl; in TearDownTestCase() 50 std::cout << "Camera::BufferManager SetUp" << std::endl; in SetUp() 55 std::cout << "Camera::BufferManager TearDown.." << std::endl; in TearDown() 62 std::shared_ptr<OHOS::Surface> consumer = in HWTEST_F() 63 std in HWTEST_F() [all...] |
H A D | buffer_manager_utest.h | 49 bool Init(std::shared_ptr<OHOS::Surface>& producer); 56 void DequeueBuffer(std::shared_ptr<IBuffer>& buffer); 57 std::shared_ptr<IBufferPool> GetBufferPool() const; 68 std::mutex lock_; 70 std::shared_ptr<OHOS::Surface> producer_ = nullptr; 82 std::shared_ptr<IBufferPool> bufferPool_ = nullptr; 85 std::vector<std::pair<OHOS::SurfaceBuffer*, std::shared_ptr<IBuffer>>> bufferVec_ = {}; 87 std [all...] |
/test/xts/acts/hiviewdfx/utils/native/ |
H A D | file_utils.cpp | 36 int ExecCmdWithRet(std::string cmd, std::vector<std::string> &resvec) in ExecCmdWithRet() 42 std::cout<< "cmd is " + cmd <<std::endl; in ExecCmdWithRet() 43 if ((cmd.find("hilog") == std::string::npos) && (cmd.find("hidumper") == std::string::npos) in ExecCmdWithRet() 44 && (cmd.find("ps") == std::string::npos) && (cmd.find("rm") == std::string::npos) && in ExecCmdWithRet() 45 (cmd.find("hiperf") == std in ExecCmdWithRet() [all...] |
/test/ostest/wukong/report/include/ |
H A D | report.h | 35 std::map<std::string, uint32_t> componmentTypeCount; 36 std::map<uint32_t, std::vector<std::string>> pageIdComponments; 45 void SetSeed(std::string seed); 50 void SyncInputInfo(std::shared_ptr<InputedMsgObject> inputedMsgObject); 55 void SplitInputMode(std::shared_ptr<InputedMsgObject> &inputedMsgObject, std::map<std [all...] |
H A D | statistics_event.h | 30 std::string eventType_ = ""; 41 uint32_t ElementTypesIndex(const std::string &eventType) in ElementTypesIndex() 45 std::vector<std::string>::iterator eventTypesIter; in ElementTypesIndex() 54 std::vector<std::string> eventTypes_; 55 std::vector<std::shared_ptr<EventStatisticsRecord>> eventTypeRecord_; 63 void StatisticsDetail(std::vector<std [all...] |
H A D | statistics_componment.h | 29 std::string componmentType_ = ""; 42 uint32_t ComponmentTypesIndex(const std::string &componmentType) in ComponmentTypesIndex() 54 std::vector<std::string> componmentTypes_; 55 std::vector<std::shared_ptr<ComponmentStatisticsRecord>> componmentTypeRecord_; 62 void StatisticsDetail(std::vector<std::map<std::string, std [all...] |
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
H A D | camera_preview_test.cpp | 30 display_ = std::make_shared<TestDisplay>(); in SetUp() 48 std::cout << "==========[test log] Preview stream, expected success." << std::endl; in HWTEST_F() 71 std::cout << "==========[test log] Preview, format error, expected return errorCode." << std::endl; in HWTEST_F() 76 display_->streamCustomerPreview_ = std::make_shared<StreamCustomer>(); in HWTEST_F() 81 std::cout << "~~~~~~~" << std::endl; in HWTEST_F() 83 std::vector<StreamInfo> streamInfos; in HWTEST_F() 98 std in HWTEST_F() [all...] |
H A D | usb_camera_test.cpp | 17 using namespace std; 29 display_ = std::make_shared<TestDisplay>(); in SetUp() 47 std::cout << "==========[test log] Add USB Camera, getCameraID success."<< std::endl; in HWTEST_F() 48 std::vector<std::string> cameraIds; in HWTEST_F() 49 std::cout << "==========[test log] 1. get current system cameraID."<< std::endl; in HWTEST_F() 51 std::cout << "==========[test log] First cameraId.size = " << cameraIds.size() << std in HWTEST_F() [all...] |
/test/xts/acts/multimedia/av_codec/audio_encoder/include/ |
H A D | AudioEncoderDemoCommon.h | 74 std::mutex inMutex_; 75 std::mutex outMutex_; 76 std::condition_variable inCond_; 77 std::condition_variable outCond_; 78 std::queue<uint32_t> inQueue_; 79 std::queue<uint32_t> outQueue_; 80 std::queue<OH_AVMemory*> inBufferQueue_; 81 std::queue<OH_AVMemory*> outBufferQueue_; 82 std::queue<OH_AVCodecBufferAttr> attrQueue_; 83 std [all...] |
/test/testfwk/developer_test/aw/cxx/distributed/utils/ |
H A D | csv_transform_xml.h | 31 std::vector<std::string> csvFiles_; 32 std::vector<std::string> vecLines_; 33 std::string csvFileName_ = ""; 34 std::string xmlFileName_ = ""; 35 std::string fileName_ = ""; 39 explicit CsvTransformXml(std::string targetFile) in CsvTransformXml() 49 std::fstream csvIn = std in FileOperate() [all...] |
/test/xts/hats/hdf/camera/cameraMg/v1_3/include/ |
H A D | hdi_common_v1_3.h | 87 void DefaultPreview(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
88 void DefaultCapture(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
89 void DefaultSketch(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
90 void DefaultInfosPreview(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
91 void DefaultInfosPreviewV1_2(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
92 void DefaultInfosCapture(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
93 void DefaultInfosProfessionalCapture(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
94 void DefaultInfosAnalyze(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
95 void DefaultInfosVideo(std::shared_ptr<OHOS::HDI::Camera::V1_1::StreamInfo_V1_1> &infos);
96 void DefaultInfosSketch(std [all...] |
/test/xts/hats/hdf/bluetooth/hdiService/ |
H A D | bluetooth_hci_services_test.cpp | 60 std::cout << "g_iBtHci = " << g_iBtHci << std::endl;
in SetUpTestCase() 79 g_hciCallbacks = new (std::nothrow) HciCallbackImpl();
in HWTEST_F() 81 std::cout << "g_hciCallbacks = " << g_hciCallbacks << std::endl;
in HWTEST_F() 83 std::cout << "g_iBtHci0100 = " << g_iBtHci << std::endl;
in HWTEST_F() 97 std::cout << "g_iBtHci002 = " << g_iBtHci << std::endl;
in HWTEST_F() 99 std in HWTEST_F() [all...] |
/test/xts/acts/multimedia/media/media_cpp_standard/videoDecEncNdk/include/ |
H A D | VDecEncNdkSample.h | 41 std::mutex inMutexDec_; 42 std::mutex outMutexDec_; 43 std::condition_variable inCondDec_; 44 std::condition_variable outCondDec_; 45 std::queue<uint32_t> inQueueDec_; 46 std::queue<uint32_t> outQueueDec_; 47 std::queue<uint32_t> flagQueueDec_; 48 std::queue<OH_AVMemory *> inBufferQueueDec_; 49 std::queue<OH_AVMemory *> outBufferQueueDec_; 51 std [all...] |
/test/testfwk/arkxtest/uitest/record/ |
H A D | ui_record.h | 55 void RecordInitEnv(const std::string &modeOpt); 58 bool dealSpecialKey(std::shared_ptr<MMI::KeyEvent> keyEvent) const; 59 void OnInputEvent(std::shared_ptr<MMI::KeyEvent> keyEvent) const override; 65 void OnInputEvent(std::shared_ptr<MMI::PointerEvent> pointerEvent) const override; 66 void OnInputEvent(std::shared_ptr<MMI::AxisEvent> axisEvent) const override; 74 void SetAbcCallBack(std::function<void(nlohmann::json)> handler) in SetAbcCallBack() 85 static const std::string DEFAULT_DIR; 88 mutable shared_ptr<mutex> cout_lock = make_shared<std::mutex>(); 89 mutable shared_ptr<mutex> csv_lock = make_shared<std::mutex>(); 90 mutable std [all...] |
/test/testfwk/developer_test/aw/cxx/distributed/ |
H A D | distributed_major.h | 40 explicit DistributeTestEnvironment(std::string cfgFile);
43 bool RunTestCmd(size_t devNo, const std::string &strCommand, int cmdLen, const std::string &strExpectValue,
44 int expectValueLen, std::function<bool(const std::string &, int)> onProcessReturn);
46 bool SendMessage(size_t devNo, const std::string &strMsg, int msgLen,
47 std::function<bool(const std::string &, int)> onProcessReturnMsg) ;
49 bool Notify(size_t devNo, const std::string &strMsg, int msgLen);
54 void Init(std [all...] |
/test/xts/acts/global_lite/i18n_lite/resource_parse_load/src/ |
H A D | resource_manager_performance_test.cpp | 33 using namespace std; 54 int GetResId(std::string name, ResType resType) const; 57 int ResourceManagerPerformanceTest::GetResId(std::string name, ResType resType) const in GetResId() 124 auto t1 = std::chrono::high_resolution_clock::now(); in HWTEST_F() 126 auto t2 = std::chrono::high_resolution_clock::now(); in HWTEST_F() 127 total += std::chrono::duration_cast<std::chrono::microseconds>(t2 - t1).count(); in HWTEST_F() 159 auto t1 = std::chrono::high_resolution_clock::now(); in HWTEST_F() 161 auto t2 = std::chrono::high_resolution_clock::now(); in HWTEST_F() 162 total += std in HWTEST_F() [all...] |