/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/test/ |
H A D | rdb_cursor_test.cpp | 110 void GetColumnNames(std::vector<std::string> &columnNames) const override
123 DBStatus GetColumnIndex(const std::string &columnName, int &columnIndex) const override
131 DBStatus GetColumnName(int columnIndex, std::string &columnName) const override
139 DBStatus Get(int columnIndex, std::vector<uint8_t> &value) const override
147 DBStatus Get(int columnIndex, std::string &value) const override
179 DBStatus GetRow(std::map<std::string, DistributedDB::VariantData> &data) const override
193 static std::shared_ptr<MockResultSet> resultSet;
194 static std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/cloud/ |
H A D | cloud_meta_data.cpp | 31 std::lock_guard<std::mutex> lock(cloudMetaMutex_); in GetLocalWaterMark() 45 std::lock_guard<std::mutex> lock(cloudMetaMutex_); in GetLocalWaterMarkByType() 60 cloudMetaVals_[tableName].localMark = std::max(localMark, cloudMetaVals_[tableName].localMark); in GetLocalWaterMarkByType() 64 int CloudMetaData::GetCloudWaterMark(const TableName &tableName, std::string &cloudMark) in GetCloudWaterMark() 66 std::lock_guard<std::mutex> lock(cloudMetaMutex_); in GetCloudWaterMark() 80 std::lock_guard<std in SetLocalWaterMark() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_query_test.cpp | 24 using namespace std; 27 const std::string TEST_FIELD_NAME = "$.test"; 29 bool CheckQueryContainer(Query &query, std::list<QueryObjNode> &checkList) in CheckQueryContainer() 31 const std::list<QueryObjNode> queryList = GetQueryInfo::GetQueryExpression(query).GetQueryExpression(); in CheckQueryContainer() 53 std::list<QueryObjNode> CreateCheckList(QueryObjType operFlag, const std::string &fieldName, const T &queryValue) in CreateCheckList() 57 std::vector<FieldValue> values{fieldValue}; in CreateCheckList() 59 std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_BOOL, values}}; in CreateCheckList() 62 std::list<QueryObjNode> result{{operFlag, fieldName, QueryValueType::VALUE_TYPE_INTEGER, values}}; in CreateCheckList() 65 std in CreateCheckList() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/syncer/src/device/singlever/ |
H A D | single_ver_kv_syncer.cpp | 56 std::vector<std::string> devices; in EnableAutoSync() 86 std::vector<std::string> devices; in LocalDataChanged() 120 void SingleVerKVSyncer::RemoteDataChanged(const std::string &device) in RemoteDataChanged() 127 std::string userId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::USER_ID, ""); in RemoteDataChanged() 128 std::string appId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::APP_ID, ""); in RemoteDataChanged() 129 std::string storeId = syncInterface_->GetDbProperties().GetStringProp(KvDBProperties::STORE_ID, ""); in RemoteDataChanged() 136 std::vector<std in RemoteDataChanged() [all...] |
/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/src/distributedcameramgr/dcamerastate/ |
H A D | dcamera_source_config_stream_state.cpp | 25 DCameraSourceConfigStreamState::DCameraSourceConfigStreamState(std::shared_ptr<DCameraSourceStateMachine>& stateMachine) in DCameraSourceConfigStreamState() 40 int32_t DCameraSourceConfigStreamState::Execute(std::shared_ptr<DCameraSourceDev>& camDev, DCAMERA_EVENT eventType, in Execute() 91 int32_t DCameraSourceConfigStreamState::DoRegisterTask(std::shared_ptr<DCameraSourceDev>& camDev, in DoRegisterTask() 98 int32_t DCameraSourceConfigStreamState::DoUnregisterTask(std::shared_ptr<DCameraSourceDev>& camDev, in DoUnregisterTask() 101 std::shared_ptr<DCameraEvent> camEvent = std::make_shared<DCameraEvent>(); in DoUnregisterTask() 122 std::shared_ptr<DCameraRegistParam> param; in DoUnregisterTask() 132 std::shared_ptr<DCameraSourceStateMachine> stateMachine = stateMachine_.lock(); in DoUnregisterTask() 141 int32_t DCameraSourceConfigStreamState::DoOpenTask(std::shared_ptr<DCameraSourceDev>& camDev, DCameraSourceEvent& event) in DoOpenTask() 147 int32_t DCameraSourceConfigStreamState::DoCloseTask(std [all...] |
/foundation/filemanagement/file_api/interfaces/kits/js/src/mod_environment/ |
H A D | environment_n_exporter.cpp | 31 const std::string STORAGE_DATA_PATH = "/data"; 32 const std::string PC_STORAGE_PATH = "/storage/Users/"; 33 const std::string EXTERNAL_STORAGE_PATH = "/storage/External"; 34 const std::string USER_APP_DATA_PATH = "/appdata"; 35 const std::string READ_WRITE_DOWNLOAD_PERMISSION = "ohos.permission.READ_WRITE_DOWNLOAD_DIRECTORY"; 36 const std::string READ_WRITE_DESKTOP_PERMISSION = "ohos.permission.READ_WRITE_DESKTOP_DIRECTORY"; 37 const std::string READ_WRITE_DOCUMENTS_PERMISSION = "ohos.permission.READ_WRITE_DOCUMENTS_DIRECTORY"; 38 const std::string FILE_ACCESS_MANAGER_PERMISSION = "ohos.permission.FILE_ACCESS_MANAGER"; 39 const std::string DOWNLOAD_PATH = "/Download"; 40 const std [all...] |
/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | scene_persistence.cpp | 41 std::string ScenePersistence::snapshotDirectory_; 42 std::string ScenePersistence::updatedIconDirectory_; 43 std::shared_ptr<WSFFRTHelper> ScenePersistence::snapshotFfrtHelper_; 45 bool ScenePersistence::CreateSnapshotDir(const std::string& directory) in CreateSnapshotDir() 55 bool ScenePersistence::CreateUpdatedIconDir(const std::string& directory) in CreateUpdatedIconDir() 65 ScenePersistence::ScenePersistence(const std::string& bundleName, int32_t persistentId) in ScenePersistence() 70 std::to_string(persistentId) + ASTC_IMAGE_SUFFIX; in ScenePersistence() 73 std::to_string(persistentId) + IMAGE_SUFFIX; in ScenePersistence() 77 snapshotFfrtHelper_ = std::make_shared<WSFFRTHelper>(); in ScenePersistence() 87 std [all...] |
/test/ostest/wukong/component_event/src/ |
H A D | scene_delegate.cpp | 40 ErrCode SceneDelegate::GetCurrentComponentInfo(std::shared_ptr<ComponentTree> componentinfo, in GetCurrentComponentInfo() 41 std::vector<std::shared_ptr<ComponentTree>> &componentlist) in GetCurrentComponentInfo() 51 auto componenttree = std::static_pointer_cast<ComponentTree>(it); in GetCurrentComponentInfo() 71 std::static_pointer_cast<ComponentTree>(componentinfo)->IsVisible() && in GetCurrentComponentInfo() 72 IsComponentInScreen(std::static_pointer_cast<ComponentTree>(componentinfo))) { in GetCurrentComponentInfo() 74 componentType_.push_back(std::static_pointer_cast<ComponentTree>(componentinfo)->GetType()); in GetCurrentComponentInfo() 95 std::vector<std::shared_ptr<ComponentTree>> allcomponentlist; in ChooseScene() 103 std in ChooseScene() [all...] |
/third_party/benchmark/test/ |
H A D | benchmark_test.cc | 44 std::set<int64_t> ConstructRandomSet(int64_t size) { in ConstructRandomSet() 45 std::set<int64_t> s; in ConstructRandomSet() 50 std::mutex test_vector_mu; 51 std::vector<int>* test_vector = nullptr; 59 std::stringstream ss; in BM_Factorial() 69 std::stringstream ss; in BM_CalculatePiRange() 87 std::set<int64_t> data; in BM_SetInsert() 116 BENCHMARK_TEMPLATE2(BM_Sequential, std::vector<int>, int) 118 BENCHMARK_TEMPLATE(BM_Sequential, std::list<int>)->Range(1 << 0, 1 << 10); 121 BENCHMARK_TEMPLATE(BM_Sequential, std [all...] |
/third_party/node/deps/v8/src/diagnostics/ |
H A D | basic-block-profiler.cc | 23 void BasicBlockProfilerData::SetCode(const std::ostringstream& os) { in SetCode() 27 void BasicBlockProfilerData::SetFunctionName(std::unique_ptr<char[]> name) { in SetFunctionName() 31 void BasicBlockProfilerData::SetSchedule(const std::ostringstream& os) { in SetSchedule() 50 auto data = std::make_unique<BasicBlockProfilerData>(n_blocks); 52 data_list_.push_back(std::move(data)); 57 Handle<String> CopyStringToJSHeap(const std::string& source, Isolate* isolate) { 145 void BasicBlockProfiler::Print(std::ostream& os, Isolate* isolate) { in Print() 146 os << "---- Start Profiling Data ----" << std::endl; in Print() 153 std::unordered_set<std in Print() [all...] |
/third_party/skia/src/core/ |
H A D | SkRect.cpp | 13 void SkIRect::dump(std::string& desc, int depth) const { in dump() 14 std::string split(depth, '\t'); in dump() 16 desc += split + "\t fLeft:" + std::to_string(fLeft) + "\n"; in dump() 17 desc += split + "\t fTop:" + std::to_string(fTop) + "\n"; in dump() 18 desc += split + "\t fRight:" + std::to_string(fRight) + "\n"; in dump() 19 desc += split + "\t fBottom:" + std::to_string(fBottom) + "\n"; in dump() 25 std::max(a.fLeft, b.fLeft), in intersect() 26 std::max(a.fTop, b.fTop), in intersect() 27 std::min(a.fRight, b.fRight), in intersect() 28 std in intersect() [all...] |
/third_party/skia/third_party/externals/spirv-tools/source/ |
H A D | name_mapper.cpp | 34 std::string to_string(uint32_t id) { in to_string() 36 // std::to_string. in to_string() 37 std::stringstream os; in to_string() 57 std::string FriendlyNameMapper::NameForId(uint32_t id) { in NameForId() 68 std::string FriendlyNameMapper::Sanitize(const std::string& suggested_name) { in Sanitize() 71 std::string result; in Sanitize() 72 std::string valid = in Sanitize() 76 std::transform(suggested_name.begin(), suggested_name.end(), in Sanitize() 77 std in Sanitize() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/ |
H A D | name_mapper.cpp | 34 std::string to_string(uint32_t id) { in to_string() 36 // std::to_string. in to_string() 37 std::stringstream os; in to_string() 57 std::string FriendlyNameMapper::NameForId(uint32_t id) { in NameForId() 68 std::string FriendlyNameMapper::Sanitize(const std::string& suggested_name) { in Sanitize() 71 std::string result; in Sanitize() 72 std::string valid = in Sanitize() 76 std::transform(suggested_name.begin(), suggested_name.end(), in Sanitize() 77 std in Sanitize() [all...] |
/third_party/skia/src/sksl/dsl/ |
H A D | DSLVar.cpp | 28 : DSLVarBase(DSLModifiers(), std::move(type), name, std::move(initialValue), pos) {} in DSLVarBase() 31 : DSLVarBase(type, "var", std::move(initialValue), pos) {} in DSLVarBase() 35 : DSLVarBase(modifiers, type, "var", std::move(initialValue), pos) {} in DSLVarBase() 39 : fModifiers(std::move(modifiers)) in DSLVarBase() 40 , fType(std::move(type)) in DSLVarBase() 43 , fInitialValue(std::move(initialValue)) in DSLVarBase() 84 std::swap(fModifiers, other.fModifiers); in swap() 85 std::swap(fType, other.fType); in swap() 86 std in swap() [all...] |
/third_party/skia/third_party/externals/dawn/src/tests/perf_tests/ |
H A D | DawnPerfTest.cpp | 32 const std::vector<DawnPerfTestPlatform::TraceEvent>& traceEventBuffer, in DumpTraceEventsToJSONFile() 34 std::ofstream outFile; in DumpTraceEventsToJSONFile() 35 outFile.open(traceFile, std::ios_base::app); in DumpTraceEventsToJSONFile() 126 mPlatform = std::make_unique<DawnPerfTestPlatform>(); in SetUp() 131 std::ofstream outFile; in SetUp() 143 std::vector<DawnPerfTestPlatform::TraceEvent> traceEventBuffer = in TearDown() 149 std::ofstream outFile; in TearDown() 150 outFile.open(mTraceFile, std::ios_base::app); in TearDown() 152 outFile << std::endl; in TearDown() 193 mStepsToRun = std in RunTest() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | GraphWriter.h | 42 std::string EscapeString(const std::string &Label); 77 static_assert(std::is_pointer<NodeRef>::value, 90 std::string label = DTraits.getEdgeSourceLabel(Node, EI); in getEdgeSourceLabels() 114 void writeGraph(const std::string &Title = "") { in writeGraph() 128 void writeHeader(const std::string &Title) { in writeHeader() 129 std::string GraphName = DTraits.getGraphName(G); in writeHeader() 166 std::string NodeAttributes = DTraits.getNodeAttributes(Node, G); in writeNode() 176 std::string Id = DTraits.getNodeIdentifierLabel(Node, G); in writeNode() 180 std in writeNode() [all...] |
/third_party/skia/third_party/externals/tint/fuzzers/tint_spirv_tools_fuzzer/ |
H A D | cli.cc | 183 std::cout << help_message << std::endl << kMutatorParameters << std::endl; in PrintHelpMessage() 188 std::cout << "Invalid value for " << param << std::endl; in InvalidParameter() 195 if (value > static_cast<uint64_t>(std::numeric_limits<uint32_t>::max())) { in ParseUint32() 202 std::vector<spvtools::fuzz::fuzzerutil::ModuleSupplier> ParseDonors( in ParseDonors() 204 std::ifstream fin(file_name); in ParseDonors() 206 std::cout << "Can't open donors list file: " << file_name << std in ParseDonors() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | escaping.cc | 56 inline bool IsSurrogate(char32_t c, absl::string_view src, std::string* error) { in IsSurrogate() 85 char* dest, ptrdiff_t* dest_len, std::string* error) { in CUnescapeInternal() 131 std::string(octal_start, p + 1 - octal_start) + in CUnescapeInternal() 164 std::string(hex_start, p + 1 - hex_start) + in CUnescapeInternal() 187 std::string(hex_start, p + 1 - hex_start); in CUnescapeInternal() 198 std::string(hex_start, p + 1 - hex_start); in CUnescapeInternal() 223 std::string(hex_start, p + 1 - hex_start); in CUnescapeInternal() 236 std::string(hex_start, p + 1 - hex_start) + in CUnescapeInternal() 246 std::string(hex_start, p + 1 - hex_start); in CUnescapeInternal() 265 if (error) *error = std in CUnescapeInternal() [all...] |
/third_party/spirv-tools/source/ |
H A D | name_mapper.cpp | 34 std::string to_string(uint32_t id) { in to_string() 36 // std::to_string. in to_string() 37 std::stringstream os; in to_string() 57 std::string FriendlyNameMapper::NameForId(uint32_t id) { in NameForId() 68 std::string FriendlyNameMapper::Sanitize(const std::string& suggested_name) { in Sanitize() 71 std::string result; in Sanitize() 72 std::string valid = in Sanitize() 76 std::transform(suggested_name.begin(), suggested_name.end(), in Sanitize() 77 std in Sanitize() [all...] |
/third_party/skia/third_party/externals/angle2/src/common/ |
H A D | string_utils_unittest.cpp | 23 std::vector<std::string> r; in TEST() 25 r = SplitString(std::string(), ",:;", KEEP_WHITESPACE, SPLIT_WANT_ALL); in TEST() 63 std::vector<std::string> r; in TEST() 66 r = SplitString(std::string(), ",", KEEP_WHITESPACE, SPLIT_WANT_ALL); in TEST() 68 r = SplitString(std::string(), ",", KEEP_WHITESPACE, SPLIT_WANT_NONEMPTY); in TEST() 101 std::vector<std::string> r; in TEST() 108 std in TEST() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/ |
H A D | GLES1Renderer.h | 108 namespace std namespace 115 } // namespace std 158 const angle::HashMap<GLint, std::string> &attribLocs, 208 void addShaderDefine(std::stringstream &outStream, 211 void addShaderInt(std::stringstream &outStream, const char *name, int value); 212 void addShaderIntTexArray(std::stringstream &outStream, 215 void addShaderBoolTexArray(std::stringstream &outStream, 218 void addShaderBoolLightArray(std::stringstream &outStream, 221 void addShaderBoolClipPlaneArray(std::stringstream &outStream, 224 void addVertexShaderDefs(std [all...] |
/base/request/request/frameworks/js/napi/src/ |
H A D | js_task.cpp | 39 namespace fs = std::filesystem;
42 std::mutex JsTask::createMutex_;
44 std::mutex JsTask::requestMutex_;
46 std::mutex JsTask::requestFileMutex_;
48 std::mutex JsTask::getTaskCreateMutex_;
50 std::mutex JsTask::taskMutex_;
51 std::map<std::string, JsTask *> JsTask::taskMap_;
53 std::mutex JsTask::pathMutex_;
54 std [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_installer_test/ |
H A D | bms_bundle_app_service_fwk_installer.cpp | 41 using namespace std::chrono_literals; 53 const std::string BUNDLE_NAME = "com.example.appService"; 54 const std::string BUNDLE_NAME_WRONG = "com.example.appService.wrong"; 55 const std::string BUNDLE_NAME_TEST = "com.example.l3jsdemo"; 56 const std::string MODULE_NAME_TEST = "moduleName"; 57 const std::string MODULE_NAME_LIBRARY_ONE = "library_one"; 58 const std::string EMPTY_STRING = ""; 59 const std::string STRING = "string"; 60 const std::string HAP_PATH_TEST = "/data/test/resource/bms/app_service_test/right.hap"; 61 const std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils.cpp | 40 std::mutex SQLiteUtils::logMutex_; 41 std::string SQLiteUtils::lastErrorMsg_; 54 const std::string REPLACE_CHAIN = "***"; 55 const std::string DEFAULT_ANONYMOUS = "******"; 56 const std::string WAL_MODE_SQL = "PRAGMA journal_mode=WAL;"; 57 const std::string SYNC_MODE_FULL_SQL = "PRAGMA synchronous=FULL;"; 58 const std::string USER_VERSION_SQL = "PRAGMA user_version;"; 59 const std::string BEGIN_SQL = "BEGIN TRANSACTION"; 60 const std::string BEGIN_IMMEDIATE_SQL = "BEGIN IMMEDIATE TRANSACTION"; 61 const std [all...] |
/base/telephony/sms_mms/test/gtest/ |
H A D | cdma_sms_gtest.cpp | 107 std::string dest = "dest"; in HWTEST_F() 108 std::string sc = "sc"; in HWTEST_F() 109 std::string text = "text"; in HWTEST_F() 113 std::string pdu = "01000B818176251308F4000007E8B0BCFD76E701"; in HWTEST_F() 137 auto smsReceiveManager = std::make_shared<SmsReceiveManager>(DEFAULT_SIM_SLOT_ID); in HWTEST_F() 153 auto smsReceiveManager = std::make_shared<SmsReceiveManager>(DEFAULT_SIM_SLOT_ID); in HWTEST_F() 157 auto retMsg = std::make_shared<CdmaSmsMessage>(); in HWTEST_F() 160 auto cdmaMsg = std::make_shared<CdmaSmsMessage>(); in HWTEST_F() 161 cdmaMsg->transMsg_ = std::make_unique<struct CdmaTransportMsg>(); in HWTEST_F() 184 auto smsReceiveManager = std in HWTEST_F() [all...] |