Home
last modified time | relevance | path

Searched refs:std (Results 19301 - 19325 of 55309) sorted by relevance

1...<<771772773774775776777778779780>>...2213

/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/
H A Dprocess_system_api_adapter_impl.cpp30 ProcessSystemApiAdapterImpl::ProcessSystemApiAdapterImpl(std::shared_ptr<Endpoint> endpoint) in ProcessSystemApiAdapterImpl()
50 ProcessSystemApiAdapterImpl::DBStatus ProcessSystemApiAdapterImpl::SetSecurityOption(const std::string &filePath, in SetSecurityOption()
71 auto secLevel = std::string("s") + std::to_string(option.securityLabel - 1); in SetSecurityOption()
82 ProcessSystemApiAdapterImpl::DBStatus ProcessSystemApiAdapterImpl::GetSecurityOption(const std::string &filePath, in GetSecurityOption()
100 std::string value = SecurityLabel::GetSecurityLabel(filePath); in GetSecurityOption()
101 if (!std::regex_match(value, std::regex("s([01234])"))) { in GetSecurityOption()
109 bool ProcessSystemApiAdapterImpl::CheckDeviceSecurityAbility(const std::string &devId, const DBOption &option) const in CheckDeviceSecurityAbility()
/foundation/distributedhardware/device_manager/test/commonunittest/
H A DUTTest_dm_distributed_hardware_load.cpp75 std::shared_ptr<Crypto> crypto = std::make_shared<Crypto>(); in HWTEST_F()
76 std::string text; in HWTEST_F()
78 std::string ret = crypto->Sha256(text, isUpper); in HWTEST_F()
84 std::string soName = "soName"; in HWTEST_F()
91 std::string deviceId; in HWTEST_F()
99 std::string deviceId; in HWTEST_F()
107 std::string groupId = "123456789"; in HWTEST_F()
108 std::string str = Crypto::GetGroupIdHash(groupId); in HWTEST_F()
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/include/
H A Dnapi_queue.h32 using NapiCbInfoParser = std::function<void(size_t argc, napi_value *argv)>;
33 using NapiAsyncExecute = std::function<void(void)>;
34 using NapiAsyncComplete = std::function<void(napi_value &)>;
50 std::string error;
68 (ctxt)->error = std::string(message); \
80 (ctxt)->error = std::string(message); \
116 static napi_value AsyncWork(napi_env env, std::shared_ptr<ContextBase> ctxt, const std::string &name,
129 std::shared_ptr<ContextBase> ctx;
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/relationalstore/src/
H A Dnapi_rdb_store_observer.cpp28 NapiRdbStoreObserver::NapiRdbStoreObserver(napi_value callback, std::shared_ptr<UvQueue> uvQueue, int32_t mode) in NapiRdbStoreObserver()
38 void NapiRdbStoreObserver::OnChange(const std::vector<std::string> &devices) in OnChange()
62 RdbStoreObserver::OnChange(origin, fields, std::move(changeInfo)); in OnChange()
65 std::vector<JSChangeInfo> infos; in OnChange()
83 [infos = std::move(infos)](napi_env env, int &argc, napi_value *argv) { in OnChange()
111 inserted = std::move(info->second[CHG_TYPE_INSERT]); in JSChangeInfo()
112 updated = std::move(info->second[CHG_TYPE_UPDATE]); in JSChangeInfo()
113 deleted = std::move(info->second[CHG_TYPE_DELETE]); in JSChangeInfo()
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/
H A Ddcamera_sink_frame_info_test.cpp34 static const std::string TEST_SINK_FRAME_INFO_JSON_TYPE = R"({
44 static const std::string TEST_SINK_FRAME_INFO_JSON_INDEX = R"({
54 static const std::string TEST_SINK_FRAME_INFO_JSON_PTS = R"({
64 static const std::string TEST_SINK_FRAME_INFO_JSON_STARTENCODET = R"({
74 static const std::string TEST_SINK_FRAME_INFO_JSON_FINISHENCODET = R"({
84 static const std::string TEST_SINK_FRAME_INFO_JSON_SENDT = R"({
94 static const std::string TEST_SINK_FRAME_INFO_JSON_VER = R"({
104 static const std::string TEST_SINK_FRAME_INFO_JSON = R"({
139 std::string str = "0"; in HWTEST_F()
/foundation/distributeddatamgr/relational_store/frameworks/native/dataability/src/
H A Dishared_result_set_stub.cpp26 std::function<sptr<ISharedResultSet>(std::shared_ptr<AbsSharedResultSet>,
30 sptr<ISharedResultSet> ISharedResultSetStub::CreateStub(std::shared_ptr<AbsSharedResultSet> result, in CreateStub()
33 sptr<ISharedResultSet> stub = new (std::nothrow) ISharedResultSetStub(result); in CreateStub()
50 ISharedResultSetStub::ISharedResultSetStub(std::shared_ptr<AbsSharedResultSet> resultSet) in ISharedResultSetStub()
51 : resultSet_(std::move(resultSet)) in ISharedResultSetStub()
119 std::pair<int, std::vector<std::string>> ISharedResultSetStub::GetColumnNames() in GetColumnNames()
/foundation/distributedhardware/distributed_audio/interfaces/inner_kits/native_cpp/test/unittest/audiosinktest/src/
H A Ddaudio_sink_proxy_test.cpp44 dAudioProxy = std::make_shared<DAudioSinkProxy>(remoteObject); in SetUp()
58 const std::string dhId = "dhId"; in HWTEST_F()
59 const std::string param = "param"; in HWTEST_F()
77 std::string dhId; in HWTEST_F()
79 const std::string param = "param"; in HWTEST_F()
80 std::string devId = "devId"; in HWTEST_F()
82 const std::string eventContent = "eventContent"; in HWTEST_F()
106 const std::string params = "params"; in HWTEST_F()
123 std::string networkId = "123"; in HWTEST_F()
/foundation/distributedhardware/distributed_audio/services/common/test/unittest/audiodata/src/
H A Daudio_data_test.cpp34 audioData = std::make_shared<AudioData>(capacity); in SetUp()
77 const std::string name = "name"; in HWTEST_F()
80 audioData->int32Map_.insert(std::make_pair(name, value)); in HWTEST_F()
92 const std::string name = "name"; in HWTEST_F()
106 const std::string name = "name"; in HWTEST_F()
121 const std::string name = "name"; in HWTEST_F()
135 const std::string name = "name"; in HWTEST_F()
138 audioData->stringMap_.insert(std::make_pair(name, value)); in HWTEST_F()
150 const std::string name = "name"; in HWTEST_F()
/foundation/distributedhardware/distributed_screen/common/src/
H A Ddscreen_json_util.cpp23 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString()
32 bool IsUInt8(const nlohmann::json &jsonObj, const std::string &key) in IsUInt8()
41 bool IsInt32(const nlohmann::json &jsonObj, const std::string &key) in IsInt32()
51 bool IsUInt32(const nlohmann::json &jsonObj, const std::string &key) in IsUInt32()
60 bool IsInt64(const nlohmann::json &jsonObj, const std::string &key) in IsInt64()
70 bool IsUInt64(const nlohmann::json &jsonObj, const std::string &key) in IsUInt64()
79 bool IsFloat(const nlohmann::json &jsonObj, const std::string &key) in IsFloat()
88 bool IsArray(const nlohmann::json &jsonObj, const std::string &key) in IsArray()
97 bool IsBool(const nlohmann::json &jsonObj, const std::string &key) in IsBool()
/foundation/distributedhardware/distributed_input/sinkhandler/test/unittest/
H A Ddistributed_input_sinkhandler_test.cpp21 using namespace std;
50 std::string params = ""; in HWTEST_F()
56 std::string params = "params"; in HWTEST_F()
75 std::string dhId = "SubscribeLocalHardware02"; in HWTEST_F()
76 std::string params = "test2"; in HWTEST_F()
83 std::string dhId = "SubscribeLocalHardware03"; in HWTEST_F()
84 std::string params = "test3"; in HWTEST_F()
97 std::string dhId = "UnsubscribeLocalHardware02"; in HWTEST_F()
104 std::string dhId = "UnsubscribeLocalHardware03"; in HWTEST_F()
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/transport/
H A Ddh_transport_obj.cpp54 std::string keyNetworkId(CAPS_RSP_NETWORKID_KEY); in FromJson()
58 std::string keyCaps(CAPS_RSP_CAPS_KEY); in FromJson()
64 std::shared_ptr<CapabilityInfo> capPtr = std::make_shared<CapabilityInfo>(); in FromJson()
88 std::string keyCode(COMM_MSG_CODE_KEY); in FromJson()
92 std::string keyMsg(COMM_MSG_MSG_KEY); in FromJson()
98 std::string GetCommMsgString(const CommMsg &commMsg) in GetCommMsgString()
111 std::string msgStr = std::string(msg); in GetCommMsgString()
/foundation/filemanagement/app_file_service/interfaces/kits/ndk/fileuri/src/
H A Doh_file_uri.cpp24 using namespace std;
25 static FileManagement_ErrCode GetValue(std::string_view resultStr, char **result) in GetValue()
55 std::string pathStr(path, length); in OH_FileUri_GetUriFromPath()
65 std::string uriStr(uri, length); in OH_FileUri_GetPathFromUri()
75 std::string uriStr(uri, length); in OH_FileUri_GetFullDirectoryUri()
77 std::string resultStr = fileUri.GetFullDirectoryUri(); in OH_FileUri_GetFullDirectoryUri()
89 std::string uriStr(uri, length); in OH_FileUri_IsValidUri()
99 std::string uriStr(uri, length); in OH_FileUri_GetFileName()
101 std::string resultStr = fileUri.GetName(); in OH_FileUri_GetFileName()
/foundation/filemanagement/dfs_service/interfaces/inner_api/native/cloud_file_kit_inner/big_data_statistics/
H A Dcloud_file_fault_event.h110 std::string bundleName_;
114 std::string message_;
118 std::string bundleName_;
122 std::string message_;
125 const std::vector<FaultType> PERIODIC_REPORT_FAULT_TYPE = { FaultType::OPEN_CLOUD_FILE_TIMEOUT,
143 std::mutex timeMapLock_;
144 std::unordered_map<FaultType, int64_t> lastTimeMap_;
149 static int32_t CloudSyncFaultReport(const std::string &funcName,
153 static int32_t CloudFileFaultReport(const std::string &funcName,
/foundation/filemanagement/file_api/interfaces/kits/cj/src/
H A DrandomAccessFile_impl.cpp33 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> write_req = { in DoWriteRAF()
34 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in DoWriteRAF()
46 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> read_req = { in DoReadRAF()
47 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in DoReadRAF()
56 RandomAccessFileImpl::RandomAccessFileImpl(std::shared_ptr< in RandomAccessFileImpl()
85 std::unique_ptr<uv_fs_t, decltype(CommonFunc::FsReqCleanup)*> close_req = { in CloseSync()
86 new (std::nothrow) uv_fs_t, CommonFunc::FsReqCleanup }; in CloseSync()
98 std::tuple<int32_t, int64_t> RandomAccessFileImpl::WriteSync(char* buf, size_t len, int64_t offset) in WriteSync()
109 std::tuple<int32_t, int64_t> RandomAccessFileImpl::ReadSync(char* buf, size_t len, int64_t offset) in ReadSync()
/foundation/distributedhardware/distributed_screen/common/test/unittest/src/
H A Dscreen_common_test.cpp44 std::string networkId = "networkId"; in HWTEST_F()
76 std::string value = "Id"; in HWTEST_F()
77 std::string ret = GetAnonyString(value); in HWTEST_F()
90 std::string value = "Id"; in HWTEST_F()
91 std::string ret = GetInterruptString(value); in HWTEST_F()
104 std::string value = "Idvalues"; in HWTEST_F()
105 std::string ret = GetInterruptString(value); in HWTEST_F()
118 std::string key = "test"; in HWTEST_F()
137 std::string key = "test"; in HWTEST_F()
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_api/cloudsync_impl/
H A Dcloud_sync_callback_stub_test.cpp30 using namespace std;
47 std::cout << "SetUpTestCase" << std::endl; in SetUpTestCase()
52 std::cout << "TearDownTestCase" << std::endl; in TearDownTestCase()
57 std::cout << "SetUp" << std::endl; in SetUp()
62 std::cout << "TearDown" << std::endl; in TearDown()
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_hf/
H A Dhfp_hf_call_manager.cpp23 HfpHfCallManager::HfpHfCallManager(const std::string &address) : address_(address) in HfpHfCallManager()
34 std::map<int, HandsFreeUnitCalls>::iterator it = calls_.find(id); in GetCallById()
43 std::map<int, HandsFreeUnitCalls>::iterator it; in GetCallByState()
52 std::vector<HandsFreeUnitCalls> HfpHfCallManager::GetCurrentCalls() in GetCurrentCalls()
54 std::vector<HandsFreeUnitCalls> calls; in GetCurrentCalls()
55 std::map<int, HandsFreeUnitCalls>::iterator it; in GetCurrentCalls()
69 std::map<int, HandsFreeUnitCalls>::iterator iter; in UpdateCallDone()
70 std::map<int, HandsFreeUnitCalls>::iterator updateiter; in UpdateCallDone()
104 std::map<int, HandsFreeUnitCalls>::iterator it; in GetCallNumberByState()
/foundation/filemanagement/storage_service/services/storage_daemon/mtpfs/src/
H A Dmtpfs_type_dir.cpp20 MtpFsTypeDir::MtpFsTypeDir(uint32_t id, uint32_t parentId, uint32_t storageId, const std::string &name) in MtpFsTypeDir()
30 : MtpFsTypeBasic(file->item_id, file->parent_id, file->storage_id, std::string(file->filename)), in MtpFsTypeDir()
79 auto it = std::find(dirs_.begin(), dirs_.end(), dir); in RemoveDir()
92 auto it = std::find(files_.begin(), files_.end(), file); in RemoveFile()
105 auto it = std::find(files_.begin(), files_.end(), oldFile); in ReplaceFile()
125 const MtpFsTypeDir *MtpFsTypeDir::Dir(const std::string &name) const in Dir()
128 auto it = std::find(dirs_.begin(), dirs_.end(), name); in Dir()
136 const MtpFsTypeFile *MtpFsTypeDir::File(const std::string &name) const in File()
139 auto it = std::find(files_.begin(), files_.end(), name); in File()
/foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/test/unittest/
H A Drs_window_animation_target_test.cpp54 std::shared_ptr<RSSurfaceNode> animationSurfaceNode = RSSurfaceNode::Create(config, true); in HWTEST_F()
55 std::shared_ptr<RSWindowAnimationTarget> windowAnimationTarget = std::make_shared<RSWindowAnimationTarget>(); in HWTEST_F()
82 std::shared_ptr<RSSurfaceNode> animationSurfaceNode = RSSurfaceNode::Create(config, true); in HWTEST_F()
83 std::shared_ptr<RSWindowAnimationTarget> windowAnimationTarget = std::make_shared<RSWindowAnimationTarget>(); in HWTEST_F()
110 std::shared_ptr<RSSurfaceNode> animationSurfaceNode = RSSurfaceNode::Create(config, true); in HWTEST_F()
111 std::shared_ptr<RSWindowAnimationTarget> windowAnimationTarget = std::make_shared<RSWindowAnimationTarget>(); in HWTEST_F()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/effect/
H A Dpath_effect.h65 static std::shared_ptr<PathEffect> CreateDashPathEffect(const scalar intervals[], int count, scalar phase);
66 static std::shared_ptr<PathEffect> CreatePathDashEffect(
76 static std::shared_ptr<PathEffect> CreateCornerPathEffect(scalar radius);
95 static std::shared_ptr<PathEffect> CreateDiscretePathEffect(scalar segLength, scalar dev, uint32_t seedAssist = 0);
105 * @return std::shared_ptr<PathEffect>
107 static std::shared_ptr<PathEffect> CreateSumPathEffect(PathEffect& e1, PathEffect& e2);
115 static std::shared_ptr<PathEffect> CreateComposePathEffect(PathEffect& e1, PathEffect& e2);
136 std::shared_ptr<Data> Serialize() const;
137 bool Deserialize(std::shared_ptr<Data> data);
143 std
[all...]
/foundation/graphic/graphic_2d/rosen/modules/composer/hdi_backend/test/fuzztest/hdilayer_fuzzer/
H A Dhdilayer_fuzzer.cpp54 std::string GetStringFromData(int strlen) in GetStringFromData()
61 std::string str(cstr); in GetStringFromData()
65 std::shared_ptr<HdiLayerInfo> GetLayerInfoFromData() in GetLayerInfoFromData()
73 std::vector<GraphicIRect> visibleRegions; in GetLayerInfoFromData()
76 std::vector<GraphicIRect> dirtyRegions; in GetLayerInfoFromData()
85 std::shared_ptr<HdiLayerInfo> layerInfo = HdiLayerInfo::CreateHdiLayerInfo(); in GetLayerInfoFromData()
116 std::string result = GetStringFromData(STR_LEN); in DoSomethingInterestingWithMyAPI()
119 std::shared_ptr<HdiLayerInfo> layerInfo = GetLayerInfoFromData(); in DoSomethingInterestingWithMyAPI()
120 std::shared_ptr<HdiLayer> hdiLayer = HdiLayer::CreateHdiLayer(screenId); in DoSomethingInterestingWithMyAPI()
/foundation/window/window_manager/window_scene/screen_session_manager/src/fold_screen_controller/sensor_fold_state_manager/
H A Dsingle_display_sensor_fold_state_manager.cpp74 if (std::isless(angle, ANGLE_MIN_VAL)) { in GetNextFoldState()
80 if (std::islessequal(angle, OPEN_ALTA_HALF_FOLDED_MIN_THRESHOLD) && hall == HALL_FOLDED_THRESHOLD) { in GetNextFoldState()
82 } else if (std::isgreaterequal(angle, OPEN_ALTA_HALF_FOLDED_MIN_THRESHOLD + ALTA_HALF_FOLDED_BUFFER) && in GetNextFoldState()
85 } else if (std::islessequal(angle, ALTA_HALF_FOLDED_MAX_THRESHOLD - ALTA_HALF_FOLDED_BUFFER) && in GetNextFoldState()
88 } else if (std::isgreaterequal(angle, ALTA_HALF_FOLDED_MAX_THRESHOLD)) { in GetNextFoldState()
101 } else if (std::islessequal(angle, CLOSE_ALTA_HALF_FOLDED_MIN_THRESHOLD)) { in GetNextFoldState()
103 } else if (std::islessequal(angle, ALTA_HALF_FOLDED_MAX_THRESHOLD - ALTA_HALF_FOLDED_BUFFER) && in GetNextFoldState()
104 std::isgreater(angle, CLOSE_ALTA_HALF_FOLDED_MIN_THRESHOLD + ALTA_HALF_FOLDED_BUFFER)) { in GetNextFoldState()
106 } else if (std::isgreaterequal(angle, ALTA_HALF_FOLDED_MAX_THRESHOLD)) { in GetNextFoldState()
/foundation/window/window_manager/window_scene/screen_session_manager/src/publish/
H A Dscreen_session_publish.cpp23 const std::string CAST_PLUG_IN_FLAG_DATA = "1";
24 const std::string CAST_PLUG_OUT_FLAG_DATA = "0";
25 const std::string COMMON_EVENT_DISPLAY_ROTATION_CHANGED = "usual.event.dms.rotation_changed";
26 const std::string COMMON_EVENT_CAST_PLUGGED_CHANGED = "usual.event.dms.cast_plugged_changed";
32 std::map<std::string, sptr<EventFwk::Want>> ScreenSessionPublish::cesWantMap_ = {
49 publishInfo_ = new (std::nothrow) EventFwk::CommonEventPublishInfo(); in InitPublishEvents()
56 want = new (std::nothrow) EventFwk::Want(); in InitPublishEvents()
66 const EventFwk::CommonEventData &eventData, std::string bundleName) in PublishEvents()
/foundation/window/window_manager/window_scene/test/unittest/
H A Dscene_session_manager_proxy_lifecycle_test.cpp67 sptr<IRemoteObject> iRemoteObjectMocker = new (std::nothrow) IRemoteObjectMocker(); in HWTEST_F()
69 new (std::nothrow) SceneSessionManagerProxy(iRemoteObjectMocker); in HWTEST_F()
85 sptr<IRemoteObject> iRemoteObjectMocker = new (std::nothrow) IRemoteObjectMocker(); in HWTEST_F()
87 new (std::nothrow) SceneSessionManagerProxy(iRemoteObjectMocker); in HWTEST_F()
102 sptr<IRemoteObject> iRemoteObjectMocker = new (std::nothrow) IRemoteObjectMocker(); in HWTEST_F()
104 new (std::nothrow) SceneSessionManagerProxy(iRemoteObjectMocker); in HWTEST_F()
119 sptr<IRemoteObject> iRemoteObjectMocker = new (std::nothrow) IRemoteObjectMocker(); in HWTEST_F()
121 new (std::nothrow) SceneSessionManagerProxy(iRemoteObjectMocker); in HWTEST_F()
124 std::vector<sptr<WindowVisibilityInfo>> infos; in HWTEST_F()
/foundation/window/window_manager/wmserver/include/
H A Dwindow_inner_manager.h36 using InnerTask = std::function<void()>;
45 void CreateInnerWindow(std::string name, DisplayId displayId, Rect rect, WindowType type, WindowMode mode);
48 void PostTask(InnerTask &&callback, std::string name = "WindowInnerManagerTask",
56 void UpdateMissionSnapShot(const wptr<WindowNode>& node, std::shared_ptr<Media::PixelMap> pixelMap);
58 void ConsumePointerEvent(const std::shared_ptr<MMI::PointerEvent>& pointerEvent);
59 void NotifyDisplayLimitRectChange(const std::map<DisplayId, Rect>& limitRectMap);
80 std::shared_ptr<EventHandler> eventHandler_;
81 std::shared_ptr<EventRunner> eventLoop_;
83 const std::string INNER_WM_THREAD_NAME = "InnerWindowManager";

Completed in 43 milliseconds

1...<<771772773774775776777778779780>>...2213