Home
last modified time | relevance | path

Searched refs:std (Results 19701 - 19725 of 67801) sorted by relevance

1...<<781782783784785786787788789790>>...2713

/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/transport/
H A Dmessage_handler.h59 std::string srcNetworkId;
60 std::string dstNetworkId;
61 std::string uri;
82 std::string GetUri();
83 std::string GetSrcNetworkId();
84 std::string GetDstNetworkId();
88 std::string srcNetworkId_;
89 std::string dstNetworkId_;
90 std::string uri_;
/foundation/filemanagement/file_api/interfaces/kits/native/fileio/
H A Dfileio_native.cpp34 const std::string CLOUD_LOCATION_ATTR = "user.cloud.location";
36 bool CheckLocation(const std::string &location) in CheckLocation()
38 if (!std::all_of(location.begin(), location.end(), ::isdigit)) { in CheckLocation()
48 int GetLocationFromPath(const std::string &path) in GetLocationFromPath()
50 std::unique_ptr<char[]> value = std::make_unique<char[]>(MAX_ATTR_NAME); in GetLocationFromPath()
66 std::string location = std::string(value.get(), static_cast<size_t>(size)); in GetLocationFromPath()
81 std::string uriStr(uri, uriLength); in GetFileLocation()
/foundation/communication/dhcp/services/dhcp_client/include/
H A Ddhcp_thread.h36 using Callback = std::function<void()>;
38 explicit DhcpThread(const std::string &threadName);
63 bool PostAsyncTask(const Callback &callback, const std::string &name, int64_t delayTime = 0);
69 void RemoveAsyncTask(const std::string &name);
73 std::unique_ptr<DhcpThreadImpl> ptr_{nullptr};
81 using TimerCallback = std::function<void()>;
91 std::unique_ptr<DhcpThread> timer_{nullptr};
98 using TimerCallback = std::function<void()>;
108 std::unique_ptr<Utils::Timer> timer_{nullptr};
/foundation/communication/dhcp/services/utils/include/
H A Ddhcp_arp_checker.h44 bool Start(std::string& ifname, std::string& hwAddr, std::string& senderIp, std::string& targetIp);
47 void GetGwMacAddrList(int32_t timeoutMillis, bool isFillSenderIp, std::vector<std::string>& gwMacLists);
56 void SaveGwMacAddr(std::string gwMacAddr, std::vector<std::string>& gwMacLists);
/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/
H A Dvolume_external.cpp35 void VolumeExternal::SetFsUuid(std::string fsUuid) in SetFsUuid()
40 void VolumeExternal::SetPath(std::string path) in SetPath()
45 void VolumeExternal::SetDescription(std::string description) in SetDescription()
60 std::string VolumeExternal::GetFsTypeString() in GetFsTypeString()
69 std::string VolumeExternal::GetUuid() in GetUuid()
74 std::string VolumeExternal::GetPath() in GetPath()
79 std::string VolumeExternal::GetDescription() in GetDescription()
118 std::unique_ptr<VolumeExternal> VolumeExternal::Unmarshalling(Parcel &parcel) in Unmarshalling()
120 auto obj = std::make_unique<VolumeExternal>(*VolumeCore::Unmarshalling(parcel)); in Unmarshalling()
/foundation/filemanagement/storage_service/services/storage_manager/disk/src/
H A Ddisk_manager_service.cpp28 std::shared_ptr<Disk> DiskManagerService::GetDiskById(std::string diskId) in GetDiskById()
43 auto diskPtr = std::make_shared<Disk>(disk); in OnDiskCreated()
47 void DiskManagerService::OnDiskDestroyed(std::string diskId) in OnDiskDestroyed()
56 int32_t DiskManagerService::Partition(std::string diskId, int32_t type) in Partition()
62 std::shared_ptr<StorageDaemonCommunication> sdCommunication; in Partition()
68 std::vector<Disk> DiskManagerService::GetAllDisks() in GetAllDisks()
70 std::vector<Disk> result; in GetAllDisks()
78 int32_t DiskManagerService::GetDiskById(std::string diskId, Disk &disk) in GetDiskById()
/foundation/window/window_manager/window_scene/session/host/include/
H A Dscene_persistent_storage.h42 static void Insert(const std::string& key, const T& value, ScenePersistentStorageType storageType) in Insert()
69 static void Get(const std::string& key, T& value, ScenePersistentStorageType storageType) in Get()
94 static bool HasKey(const std::string& key, ScenePersistentStorageType storageType);
95 static void Delete(const std::string& key, ScenePersistentStorageType storageType);
96 static void InitDir(std::string dir);
100 static std::string saveDir_;
101 static std::shared_ptr<PersistentPerference> GetPreference(ScenePersistentStorageType storageType);
102 static std::map<ScenePersistentStorageType, std::string> storagePath_;
/foundation/window/window_manager/wmserver/include/zidl/
H A Dwindow_manager_lite_interface.h40 virtual WMError GetVisibilityWindowInfo(std::vector<sptr<WindowVisibilityInfo>>& infos) { return WMError::WM_OK; }; in GetVisibilityWindowInfo()
44 virtual WMError GetMainWindowInfos(int32_t topNum, std::vector<MainWindowInfo>& topNInfo) = 0;
45 virtual WMError GetAllMainWindowInfos(std::vector<MainWindowInfo>& infos) = 0;
46 virtual WMError ClearMainSessions(const std::vector<int32_t>& persistentIds,
47 std::vector<int32_t>& clearFailedIds) = 0;
51 virtual WMError CloseTargetFloatWindow(const std::string& bundleName) = 0;
52 virtual WMError CloseTargetPiPWindow(const std::string& bundleName) = 0;
53 virtual WMError GetCurrentPiPWindowInfo(std::string& bundleName) = 0;
55 virtual WMError GetAccessibilityWindowInfo(std::vector<sptr<AccessibilityWindowInfo>>& infos) = 0;
/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_adapter_lite_test.cpp58 std::shared_ptr<WindowAdapterLite> windowAdapterLite_ = std::make_shared<WindowAdapterLite>(); in HWTEST_F()
64 std::set<sptr<IWindowManagerAgent>> iWindowManagerAgent = {nullptr}; in HWTEST_F()
66 std::make_pair(WindowManagerAgentType::WINDOW_MANAGER_AGENT_TYPE_CAMERA_FLOAT, iWindowManagerAgent)); in HWTEST_F()
80 std::shared_ptr<WindowAdapterLite> windowAdapterLite_ = std::make_shared<WindowAdapterLite>(); in HWTEST_F()
88 sptr<WMSDeathRecipient> wmSDeathRecipient = new (std::nothrow) WMSDeathRecipient(); in HWTEST_F()
112 std::shared_ptr<WindowAdapterLite> windowAdapterLite_ = std::make_shared<WindowAdapterLite>(); in HWTEST_F()
/test/testfwk/arkxtest/uitest/test/
H A Dmock_controller.h26 static std::unique_ptr<PointerMatrix> touch_event_records_;
31 void GetUiWindows(std::vector<Window> &out) override
39 std::unique_ptr<ElementNodeIterator> &elementNodeIterator) override
43 elementNodeIterator = std::make_unique<MockElementNodeIterator>(eleCopy);
54 touch_event_records_ = std::make_unique<PointerMatrix>(events.GetFingers(), events.GetSteps());
62 void AddWindowsAndNode(Window in, std::vector<MockAccessibilityElementInfo> eles) in AddWindowsAndNode()
74 std::map<int, Window> testIn;
75 std::map<int, std::vector<MockAccessibilityElementInfo>> windowNodeMap;
/test/ostest/wukong/report/src/
H A Dexception_manager.cpp37 std::string DEFAULT_DIR = "/data/local/tmp/wukong";
54 bool InitCsvFile(std::ofstream &csvFile, std::string &filePath) in InitCsvFile()
62 csvFile.open(filePath, std::ios_base::out | std::ios_base::trunc); in InitCsvFile()
78 std::vector<ListenerRule> sysRules; in StartCatching()
79 std::string domain = ""; in StartCatching()
80 std::string eventName = ""; in StartCatching()
82 toolListener = std::make_shared<SysEventListener>(csvFile); in StartCatching()
/test/xts/hats/hdf/display/composer/common/
H A Dhdi_test_display.h37 std::shared_ptr<HdiTestLayer> CreateHdiTestLayer(LayerInfo& info);
38 std::shared_ptr<HdiTestLayer> CreateHdiTestLayer(uint32_t w, uint32_t h);
47 std::shared_ptr<HdiTestLayer> GetLayerFromId(uint32_t id);
48 std::unordered_map<uint32_t, std::shared_ptr<HdiTestLayer>> &GetLayers() in GetLayers()
71 std::vector<DisplayModeInfo> modes_;
72 std::unordered_map<uint32_t, std::shared_ptr<HdiTestLayer>> layerMaps_;
73 std::unique_ptr<HdiTestLayer> clientLayer_;
/third_party/gn/src/gn/
H A Dcommand_outputs.cc68 int RunOutputs(const std::vector<std::string>& args) { in RunOutputs()
84 std::vector<std::string> inputs(args.begin() + 1, args.end()); in RunOutputs()
102 std::vector<OutputFile> outputs; in RunOutputs()
105 std::vector<const Target*> all_targets = in RunOutputs()
108 std::vector<TargetContainingFile> targets; in RunOutputs()
126 std::vector<OutputFile> file_outputs; in RunOutputs()
136 std::vector<SourceFile> output_files; in RunOutputs()
/third_party/benchmark/test/
H A Dmap_test.cc8 std::map<int, int> ConstructRandomMap(int size) { in ConstructRandomMap()
9 std::map<int, int> m; in ConstructRandomMap()
11 m.insert(std::make_pair(std::rand() % size, std::rand() % size)); in ConstructRandomMap()
21 std::map<int, int> m; in BM_MapLookup()
27 auto it = m.find(std::rand() % size); in BM_MapLookup()
44 std::map<int, int> m;
51 auto it = m.find(std::rand() % size); in BENCHMARK_DEFINE_F()
/third_party/json/tests/thirdparty/Fuzzer/
H A DFuzzerIOPosix.cpp28 bool IsFile(const std::string &Path) { in IsFile()
35 void ListFilesInDirRecursive(const std::string &Dir, long *Epoch, in ListFilesInDirRecursive()
36 std::vector<std::string> *V, bool TopDir) { in ListFilesInDirRecursive()
47 std::string Path = DirPlusFile(Dir, E->d_name); in ListFilesInDirRecursive()
74 void RemoveFile(const std::string &Path) { in RemoveFile()
78 std::string DirName(const std::string &FileName) { in DirName()
81 std::string Res = dirname(Tmp); in DirName()
/third_party/json/include/nlohmann/
H A Dadl_serializer.hpp28 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), val)))
29 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), val), void())
31 ::nlohmann::from_json(std::forward<BasicJsonType>(j), val);
38 noexcept(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {})))
39 -> decltype(::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {}))
41 return ::nlohmann::from_json(std::forward<BasicJsonType>(j), detail::identity_tag<TargetType> {});
48 noexcept(::nlohmann::to_json(j, std::forward<TargetType>(val))))
49 -> decltype(::nlohmann::to_json(j, std::forward<TargetType>(val)), void())
51 ::nlohmann::to_json(j, std::forward<TargetType>(val));
/third_party/mesa3d/src/gallium/frontends/clover/util/
H A Dlazy.hpp50 deferred_lazy(G &&f) : f(new F(std::forward<G>(f))) { in deferred_lazy()
68 mutable std::shared_ptr<F> f;
76 strict_lazy(S &&x) : x(std::forward<S>(x)) { in strict_lazy()
100 class undefined_error : std::logic_error {
102 undefined_error() : std::logic_error("") { in undefined_error()
119 T, typename std::remove_reference<F>::type in lazy()
120 >(std::forward<F>(f))) { in lazy()
136 std::swap(obj, other.obj); in lazy()
145 std::swap(obj, other.obj); in operator =()
/third_party/nghttp2/src/
H A Dshrpx_connect_blocker.cc42 ConnectBlocker::ConnectBlocker(std::mt19937 &gen, struct ev_loop *loop, in ConnectBlocker()
43 std::function<void()> block_func, in ConnectBlocker()
44 std::function<void()> unblock_func) in ConnectBlocker()
46 block_func_(std::move(block_func)), in ConnectBlocker()
47 unblock_func_(std::move(unblock_func)), in ConnectBlocker()
85 util::int_pow(MULTIPLIER, std::min(MAX_BACKOFF_EXP, fail_count_)); in on_failure()
86 auto dist = std::uniform_real_distribution<>(-JITTER * base_backoff, in on_failure()
92 std::min(downstreamconf.timeout.max_backoff, base_backoff + dist(gen_)); in on_failure()
115 ev_timer_set(&timer_, std::numeric_limits<double>::max(), 0.); in offline()
/third_party/node/deps/v8/src/debug/wasm/gdb-server/
H A Dgdb-remote-util.cc6 using std::string;
57 std::vector<std::string> StringSplit(const string& instr, const char* delim) { in StringSplit()
58 std::vector<std::string> result; in StringSplit()
90 std::string Mem2Hex(const uint8_t* mem, size_t count) { in Mem2Hex()
91 std::vector<char> result(count * 2 + 1); in Mem2Hex()
97 std::string Mem2Hex(const std::string& str) { in Mem2Hex()
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/
H A Denum_and_vtable_mangling.rs24 pub i: ::std::os::raw::c_int,
28 const UNINIT: ::std::mem::MaybeUninit<C> = in bindgen_test_layout_C()
29 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_C()
32 ::std::mem::size_of::<C>(), in bindgen_test_layout_C()
37 ::std::mem::align_of::<C>(), in bindgen_test_layout_C()
42 unsafe { ::std::ptr::addr_of!((*ptr).i) as usize - ptr as usize }, in bindgen_test_layout_C()
49 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default()
51 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
58 pub fn C_match(this: *mut ::std::os::raw::c_void); in C_match()
H A Dforward_declared_complex_types_1_0.rs16 ::std::mem::size_of::<Foo_empty>(), in bindgen_test_layout_Foo_empty()
21 ::std::mem::align_of::<Foo_empty>(), in bindgen_test_layout_Foo_empty()
48 const UNINIT: ::std::mem::MaybeUninit<Bar> = in bindgen_test_layout_Bar()
49 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_Bar()
52 ::std::mem::size_of::<Bar>(), in bindgen_test_layout_Bar()
57 ::std::mem::align_of::<Bar>(), in bindgen_test_layout_Bar()
62 unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, in bindgen_test_layout_Bar()
75 let mut s: Self = ::std::mem::uninitialized(); in default()
76 ::std::ptr::write_bytes(&mut s, 0, 1); in default()
H A Dforward_declared_complex_types.rs16 ::std::mem::size_of::<Foo_empty>(), in bindgen_test_layout_Foo_empty()
21 ::std::mem::align_of::<Foo_empty>(), in bindgen_test_layout_Foo_empty()
38 const UNINIT: ::std::mem::MaybeUninit<Bar> = in bindgen_test_layout_Bar()
39 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_Bar()
42 ::std::mem::size_of::<Bar>(), in bindgen_test_layout_Bar()
47 ::std::mem::align_of::<Bar>(), in bindgen_test_layout_Bar()
52 unsafe { ::std::ptr::addr_of!((*ptr).f) as usize - ptr as usize }, in bindgen_test_layout_Bar()
59 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default()
61 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
H A Dobjc_interface_type.rs15 impl std::ops::Deref for Foo {
28 pub trait IFoo: Sized + std::ops::Deref {}
36 const UNINIT: ::std::mem::MaybeUninit<FooStruct> = in bindgen_test_layout_FooStruct()
37 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_FooStruct()
40 ::std::mem::size_of::<FooStruct>(), in bindgen_test_layout_FooStruct()
45 ::std::mem::align_of::<FooStruct>(), in bindgen_test_layout_FooStruct()
50 unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, in bindgen_test_layout_FooStruct()
62 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default()
64 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); in default()
/third_party/rust/crates/clap/src/builder/
H A Dstr.rs12 pub(crate) fn from_string(name: std::string::String) -> Self {
48 impl From<std::string::String> for Str { in from()
49 fn from(name: std::string::String) -> Self { in from()
55 impl From<&'_ std::string::String> for Str {
56 fn from(name: &'_ std::string::String) -> Self { in from()
85 impl From<Str> for std::ffi::OsString {
91 impl From<Str> for std::path::PathBuf {
97 impl std::fmt::Display for Str {
99 fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std
[all...]
/third_party/skia/third_party/externals/angle2/src/common/
H A Dmathutil.cpp49 const float red_c = std::max<float>(0, std::min(g_sharedexp_max, red)); in convertRGBFloatsTo999E5()
50 const float green_c = std::max<float>(0, std::min(g_sharedexp_max, green)); in convertRGBFloatsTo999E5()
51 const float blue_c = std::max<float>(0, std::min(g_sharedexp_max, blue)); in convertRGBFloatsTo999E5()
53 const float max_c = std::max<float>(std::max<float>(red_c, green_c), blue_c); in convertRGBFloatsTo999E5()
55 std::max<float>(-g_sharedexp_bias - 1, floor(log(max_c))) + 1 + g_sharedexp_bias; in convertRGBFloatsTo999E5()

Completed in 31 milliseconds

1...<<781782783784785786787788789790>>...2713