/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/mock/ |
H A D | datashare_helper.h | 41 DataSharePredicates *EqualTo(const std::string &field, const std::string &value); 49 static std::shared_ptr<DataShareHelper> Creator( 50 const std::string &strUri, const CreateOptions &options, const std::string &bundleName = "com.ohos.photos"); 51 std::shared_ptr<DataShareResultSet> Query(Uri &uri, const DataSharePredicates &predicates, 52 std::vector<std::string> &columns, DatashareBusinessError *businessError = nullptr); 59 static std::shared_ptr<DataShareHelper> instance_; 60 std [all...] |
/foundation/distributedhardware/distributed_screen/services/common/utils/include/ |
H A D | dscreen_hidumper.h | 46 bool Dump(const std::vector<std::string> &args, std::string &result); 58 void SaveFile(std::string file, const VideoData &video); 63 void ShowHelp(std::string &result); 64 int32_t ShowIllegalInfomation(std::string &result); 65 int32_t ProcessDump(const std::string &args, std::string &result); 67 int32_t DumpScreenData(std::string &result); 68 int32_t ReDumpScreenData(std [all...] |
/foundation/filemanagement/app_file_service/tests/mock/file_permission_native/src/ |
H A D | sandbox_mock.cpp | 22 const std::vector<PolicyInfo> &policy, std::vector<bool> &result) in CheckPersistPolicy() 27 int32_t SandboxManagerKit::PersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in PersistPolicy() 32 int32_t SandboxManagerKit::UnPersistPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in UnPersistPolicy() 37 int32_t SandboxManagerKit::StartAccessingPolicy(const std::vector<PolicyInfo> &policy, std::vector<uint32_t> &result) in StartAccessingPolicy() 42 int32_t SandboxManagerKit::StopAccessingPolicy(const std::vector<PolicyInfo> &policy, std [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_anony/ |
H A D | b_anony.cpp | 21 using namespace std;
23 std::string GetAnonyString(const std::string &value)
in GetAnonyString() 28 std::string result;
in GetAnonyString() 29 std::string tmpStr("******");
in GetAnonyString() 48 std::string GetAnonyPath(const std::string &value)
in GetAnonyPath() 50 std::string res;
in GetAnonyPath() 51 std::string sub;
in GetAnonyPath() 53 if (found == std in GetAnonyPath() [all...] |
/foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/ipc/ |
H A D | download_asset_callback_manager_test.cpp | 26 using namespace std; 38 std::cout << "SetUpTestCase" << std::endl; in SetUpTestCase() 43 std::cout << "TearDownTestCase" << std::endl; in TearDownTestCase() 48 std::cout << "SetUp" << std::endl; in SetUp() 53 std::cout << "TearDown" << std::endl; in TearDown() 106 std in HWTEST_F() [all...] |
/foundation/communication/bluetooth_service/services/bluetooth/service/src/hfp_ag/ |
H A D | hfp_ag_system_event_processer.h | 38 HfpAgSystemEventProcesser(HfpAgProfile &profile, const std::string &address); 67 static void SetAudioActive(const std::string &audioActive); 98 void ProcessDialOutCallEvent(const std::string &number, int dialType); 153 void ProcessAtUnknownEvent(const std::string &atString) const; 165 void ProcessATBindEvent(const std::string &atString) const; 207 void GetResponseHoldState(std::string address); 209 void SetResponseHold(std::string address, int btrh); 214 void HandlePhoneStateMock(std::string number, int state, int type); 222 static std::string GetEventType(int type); 229 std [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/effect/ |
H A D | filter.h | 41 void SetColorFilter(std::shared_ptr<ColorFilter> colorFilter); 42 std::shared_ptr<ColorFilter> GetColorFilter() const; 45 void SetImageFilter(std::shared_ptr<ImageFilter> imageFilter); 46 std::shared_ptr<ImageFilter> GetImageFilter() const; 49 void SetMaskFilter(std::shared_ptr<MaskFilter> maskFilter); 50 std::shared_ptr<MaskFilter> GetMaskFilter() const; 61 void Dump(std::string& out) const; 64 std::shared_ptr<ColorFilter> colorFilter_; 65 std::shared_ptr<ImageFilter> imageFilter_; 66 std [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/impl_interface/ |
H A D | font_mgr_impl.h | 33 virtual Typeface* LoadDynamicFont(const std::string& familyName, const uint8_t* data, size_t dataLength) = 0; 34 virtual Typeface* LoadThemeFont(const std::string& familyName, const std::string& themeName, 36 virtual void LoadThemeFont(const std::string& themeName, std::shared_ptr<Typeface> typeface) = 0; 46 virtual void GetFamilyName(int index, std::string& str) const = 0; 48 virtual int GetFontFullName(int fontFd, std::vector<FontByteArray>& fullnameVec) = 0; 49 virtual int ParseInstallFontConfig(const std::string& configPath, std::vector<std [all...] |
/third_party/gn/src/base/json/ |
H A D | json_reader.h | 96 static std::unique_ptr<Value> Read(std::string_view json, 104 static std::unique_ptr<Value> ReadAndReturnError( 105 std::string_view json, 108 std::string* error_msg_out, 114 static std::string ErrorCodeToString(JsonParseError error_code); 117 std::unique_ptr<Value> ReadToValue(std::string_view json); 125 std::string GetErrorMessage() const; 128 std [all...] |
/third_party/gn/src/gn/ |
H A D | scope_per_file_provider.h | 24 const Value* GetProgrammaticValue(std::string_view ident) override; 40 std::unique_ptr<Value> current_toolchain_; 41 std::unique_ptr<Value> default_toolchain_; 42 std::unique_ptr<Value> gn_version_; 43 std::unique_ptr<Value> python_path_; 44 std::unique_ptr<Value> root_build_dir_; 45 std::unique_ptr<Value> root_gen_dir_; 46 std::unique_ptr<Value> root_out_dir_; 47 std::unique_ptr<Value> target_gen_dir_; 48 std [all...] |
H A D | ninja_target_command_util_unittest.cc | 18 std::string FormatWithWriter(Writer writer, std::vector<Item> items) { in FormatWithWriter() 19 std::ostringstream out; in FormatWithWriter() 30 std::string expected, in TestWriter() 31 std::initializer_list<Item> items) { in TestWriter() 32 std::string formatted = in TestWriter() 33 FormatWithWriter(writer, std::vector<Item>(std::move(items))); in TestWriter() 39 std::ostringstream stream; in TestWriter() 41 std in TestWriter() [all...] |
/third_party/googletest/googletest/include/gtest/internal/ |
H A D | gtest-string.h | 114 static std::string ShowWideCString(const wchar_t* wide_c_str); 149 static bool EndsWithCaseInsensitive(const std::string& str, 150 const std::string& suffix); 153 static std::string FormatIntWidth2(int value); // "%02d" for width == 2 156 static std::string FormatIntWidthN(int value, int width); 159 static std::string FormatHexInt(int value); 162 static std::string FormatHexUInt32(uint32_t value); 165 static std::string FormatByte(unsigned char value); 171 // Gets the content of the stringstream's buffer as an std::string. Each '\0' 173 GTEST_API_ std [all...] |
/third_party/json/docs/examples/ |
H A D | nlohmann_define_type_intrusive_with_default_macro.cpp | 12 std::string name = "John Doe"; 13 std::string address = "123 Fake St"; 18 person(std::string name_, std::string address_, int age_) in person() 19 : name(std::move(name_)), address(std::move(address_)), age(age_) in person() 32 std::cout << "serialization: " << j << std::endl; in main() 41 std::cout << "roundtrip: " << json(p3) << std in main() [all...] |
H A D | nlohmann_define_type_intrusive_macro.cpp | 12 std::string name = "John Doe"; 13 std::string address = "123 Fake St"; 18 person(std::string name_, std::string address_, int age_) in person() 19 : name(std::move(name_)), address(std::move(address_)), age(age_) in person() 32 std::cout << "serialization: " << j << std::endl; in main() 46 std::cout << "deserialization failed: " << e.what() << std in main() [all...] |
H A D | type.cpp | 19 std::cout << std::boolalpha; in main() 20 std::cout << (j_null.type() == json::value_t::null) << '\n'; in main() 21 std::cout << (j_boolean.type() == json::value_t::boolean) << '\n'; in main() 22 std::cout << (j_number_integer.type() == json::value_t::number_integer) << '\n'; in main() 23 std::cout << (j_number_unsigned.type() == json::value_t::number_unsigned) << '\n'; in main() 24 std::cout << (j_number_float.type() == json::value_t::number_float) << '\n'; in main() 25 std::cout << (j_object.type() == json::value_t::object) << '\n'; in main() 26 std::cout << (j_array.type() == json::value_t::array) << '\n'; in main() 27 std in main() [all...] |
H A D | nlohmann_define_type_non_intrusive_with_default_macro.cpp | 11 std::string name = "John Doe"; 12 std::string address = "123 Fake St"; 16 person(std::string name_, std::string address_, int age_) in person() 17 : name(std::move(name_)), address(std::move(address_)), age(age_) in person() 30 std::cout << "serialization: " << j << std::endl; in main() 39 std::cout << "roundtrip: " << json(p3) << std in main() [all...] |
H A D | operator__value_t.cpp | 29 std::cout << std::boolalpha; in main() 30 std::cout << (t_null == json::value_t::null) << '\n'; in main() 31 std::cout << (t_boolean == json::value_t::boolean) << '\n'; in main() 32 std::cout << (t_number_integer == json::value_t::number_integer) << '\n'; in main() 33 std::cout << (t_number_unsigned == json::value_t::number_unsigned) << '\n'; in main() 34 std::cout << (t_number_float == json::value_t::number_float) << '\n'; in main() 35 std::cout << (t_object == json::value_t::object) << '\n'; in main() 36 std::cout << (t_array == json::value_t::array) << '\n'; in main() 37 std in main() [all...] |
/third_party/node/deps/v8/third_party/inspector_protocol/crdtp/ |
H A D | find_by_first.h | 23 // Together with std::inplace_merge and pre-sorting or std::sort, this can 29 T FindByFirst(const std::vector<std::pair<span<uint8_t>, T>>& sorted_by_first, in FindByFirst() argument 32 auto it = std::lower_bound( in FindByFirst() 34 [](const std::pair<span<uint8_t>, T>& left, span<uint8_t> right) { in FindByFirst() 43 // instantiated in std::unique_ptr, and we return either a T* or a nullptr. 45 T* FindByFirst(const std::vector<std::pair<span<uint8_t>, std argument [all...] |
/third_party/node/src/ |
H A D | inspector_socket.h | 22 virtual void OnHttpGet(const std::string& host, 23 const std::string& path) = 0; 24 virtual void OnSocketUpgrade(const std::string& host, 25 const std::string& path, 26 const std::string& accept_key) = 0; 27 virtual void OnWsFrame(const std::vector<char>& frame) = 0; 31 using DelegatePointer = std::unique_ptr<Delegate>; 32 using Pointer = std::unique_ptr<InspectorSocket>; 38 void AcceptUpgrade(const std::string& accept_key); 42 std [all...] |
/third_party/node/deps/googletest/include/gtest/internal/ |
H A D | gtest-string.h | 114 static std::string ShowWideCString(const wchar_t* wide_c_str); 149 static bool EndsWithCaseInsensitive(const std::string& str, 150 const std::string& suffix); 153 static std::string FormatIntWidth2(int value); // "%02d" for width == 2 156 static std::string FormatIntWidthN(int value, int width); 159 static std::string FormatHexInt(int value); 162 static std::string FormatHexUInt32(uint32_t value); 165 static std::string FormatByte(unsigned char value); 171 // Gets the content of the stringstream's buffer as an std::string. Each '\0' 173 GTEST_API_ std [all...] |
/third_party/mesa3d/src/tool/pps/ |
H A D | pps_driver.h | 27 static const std::unordered_map<std::string, std::unique_ptr<Driver>> &get_supported_drivers(); 30 static const std::vector<std::string> supported_device_names(); 36 static std::string default_driver_name(); 39 static std::string find_driver_name(const char *requested_name); 87 std::vector<CounterGroup> groups; 90 std::vector<Counter> counters; 93 std [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/ |
H A D | issue-1216-variadic-member.rs | 9 pub fn f(a: ::std::os::raw::c_int, ...); in f() 14 pub f: ::std::option::Option< 16 p: *mut ::std::os::raw::c_void, 17 obj: *mut ::std::os::raw::c_void, 18 a: ::std::os::raw::c_int, 25 const UNINIT: ::std::mem::MaybeUninit<Foo> = in bindgen_test_layout_Foo() 26 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_Foo() 29 ::std::mem::size_of::<Foo>(), in bindgen_test_layout_Foo() 34 ::std::mem::align_of::<Foo>(), in bindgen_test_layout_Foo() 39 unsafe { ::std in bindgen_test_layout_Foo() [all...] |
H A D | union_dtor.rs | 10 pub mFoo: ::std::os::raw::c_int, 11 pub mBar: *mut ::std::os::raw::c_void, 15 const UNINIT: ::std::mem::MaybeUninit<UnionWithDtor> = in bindgen_test_layout_UnionWithDtor() 16 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_UnionWithDtor() 19 ::std::mem::size_of::<UnionWithDtor>(), in bindgen_test_layout_UnionWithDtor() 24 ::std::mem::align_of::<UnionWithDtor>(), in bindgen_test_layout_UnionWithDtor() 29 unsafe { ::std::ptr::addr_of!((*ptr).mFoo) as usize - ptr as usize }, in bindgen_test_layout_UnionWithDtor() 39 unsafe { ::std::ptr::addr_of!((*ptr).mBar) as usize - ptr as usize }, in bindgen_test_layout_UnionWithDtor() 55 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default() 57 ::std in default() [all...] |
H A D | no-derive-debug.rs | 11 bar: ::std::os::raw::c_int, 20 pub baz: ::std::os::raw::c_int, 24 const UNINIT: ::std::mem::MaybeUninit<bar> = in bindgen_test_layout_bar() 25 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_bar() 28 ::std::mem::size_of::<bar>(), in bindgen_test_layout_bar() 33 ::std::mem::align_of::<bar>(), in bindgen_test_layout_bar() 38 unsafe { ::std::ptr::addr_of!((*ptr).foo) as usize - ptr as usize }, in bindgen_test_layout_bar() 43 unsafe { ::std::ptr::addr_of!((*ptr).baz) as usize - ptr as usize }, in bindgen_test_layout_bar() 50 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); in default() 52 ::std in default() [all...] |
/third_party/rust/crates/bindgen/bindgen-tests/tests/expectations/tests/libclang-9/ |
H A D | call-conv-field.rs | 12 pub GetVersion: ::std::option::Option< 14 env: *mut ::std::os::raw::c_void, 15 ) -> ::std::os::raw::c_int, 17 pub __hack: ::std::os::raw::c_ulonglong, 21 const UNINIT: ::std::mem::MaybeUninit<JNINativeInterface_> = in bindgen_test_layout_JNINativeInterface_() 22 ::std::mem::MaybeUninit::uninit(); in bindgen_test_layout_JNINativeInterface_() 25 ::std::mem::size_of::<JNINativeInterface_>(), in bindgen_test_layout_JNINativeInterface_() 30 ::std::mem::align_of::<JNINativeInterface_>(), in bindgen_test_layout_JNINativeInterface_() 36 ::std::ptr::addr_of!((*ptr).GetVersion) as usize - ptr as usize in bindgen_test_layout_JNINativeInterface_() 47 unsafe { ::std in bindgen_test_layout_JNINativeInterface_() [all...] |