/third_party/mesa3d/src/gtest/include/gtest/ |
H A D | gtest-matchers.h | 85 explicit MatchResultListener(::std::ostream* os) : stream_(os) {} in MatchResultListener() 97 ::std::ostream* stream() { return stream_; } in stream() 106 ::std::ostream* const stream_; 125 virtual void DescribeTo(::std::ostream* os) const = 0; 133 virtual void DescribeNegationTo(::std::ostream* os) const { in DescribeNegationTo() 178 // virtual void DescribeTo(::std::ostream* os) const = 0; 179 // virtual void DescribeNegationTo(::std::ostream* os) const; 192 void DescribeTo(::std::ostream* os) const override { impl_->DescribeTo(os); } 194 void DescribeNegationTo(::std::ostream* os) const override { 248 explicit StreamMatchResultListener(::std 301 MatcherBase( const MatcherInterface<U>* impl, typename std::enable_if<!std::is_same<U, const U&>::value>::type* = nullptr) MatcherBase() argument 337 Matcher( const MatcherInterface<U>* impl, typename std::enable_if<!std::is_same<U, const U&>::value>::type* = nullptr) Matcher() argument [all...] |
/third_party/nghttp2/src/ |
H A D | shrpx_memcached_connection.cc | 103 std::mt19937 &gen) in MemcachedConnection() 121 void clear_request(std::deque<std::unique_ptr<MemcachedRequest>> &q) { in clear_request() 262 conn_.last_read = std::chrono::steady_clock::now(); in tls_handshake() 304 conn_.last_read = std::chrono::steady_clock::now(); in write_tls() 306 std::array<struct iovec, MAX_WR_IOVCNT> iov; in write_tls() 307 std::array<uint8_t, 16_k> buf; in write_tls() 311 auto p = std::begin(buf); in write_tls() 314 auto n = std::min(static_cast<size_t>(std in write_tls() [all...] |
/third_party/node/deps/icu-small/source/tools/toolutil/ |
H A D | udbgutil.cpp | 621 std::map< std::string, 622 std::map < std::string, std::set < std::string > > > fTable; 638 static std::string mapTicketId(const char *ticketStr) { in mapTicketId() 639 std::string ticket(ticketStr); in mapTicketId() 654 const std::string ticket = mapTicketId(ticketStr); in add() 657 fTable[ticket] = std in add() [all...] |
/third_party/node/deps/v8/src/profiler/ |
H A D | profile-generator.h | 58 std::vector<SourcePositionTuple> pc_offsets_to_lines_; 73 std::unique_ptr<SourcePositionTable> line_info = nullptr, 102 std::vector<CpuProfileDeoptFrame> inlined_frames); 158 std::size_t operator()(CodeEntry* e) const { return e->GetHash(); } in operator ()() 162 std::unordered_set<CodeEntry*, Hasher, Equals> inline_entries, 163 std::unordered_map<int, std::vector<CodeEntryAndLineNumber>> 165 const std::vector<CodeEntryAndLineNumber>* GetInlineStack( 205 std::unordered_map<int, std [all...] |
/third_party/skia/third_party/externals/angle2/src/compiler/translator/ |
H A D | blocklayout.cpp | 25 const std::string &instanceName, in BlockLayoutMapVisitor() 32 const std::string &name, 33 const std::string &mappedName) override 47 void GetInterfaceBlockInfo(const std::vector<VarT> &fields, in GetInterfaceBlockInfo() 48 const std::string &prefix, in GetInterfaceBlockInfo() 69 const std::vector<ShaderVariable> &fields = variable.fields; in TraverseStructVariable() 114 unsigned int count = std::max(currentArraySize, 1u); in TraverseArrayOfArraysVariable() 145 std::string CollapseNameStack(const std::vector<std [all...] |
/third_party/skia/third_party/externals/icu/source/tools/toolutil/ |
H A D | udbgutil.cpp | 618 std::map< std::string, 619 std::map < std::string, std::set < std::string > > > fTable; 635 static std::string mapTicketId(const char *ticketStr) { in mapTicketId() 636 std::string ticket(ticketStr); in mapTicketId() 651 const std::string ticket = mapTicketId(ticketStr); in add() 654 fTable[ticket] = std in add() [all...] |
/third_party/skia/third_party/externals/dawn/src/common/ |
H A D | Result.h | 45 // Result(std::unique_ptr<E> error); 56 // std::unique_ptr<E> AcquireError(); 64 Result(std::unique_ptr<E> error); 75 std::unique_ptr<E> AcquireError(); 78 std::unique_ptr<E> mError; 120 Result(std::unique_ptr<E> error); 134 std::unique_ptr<E> AcquireError(); 152 Result(std::unique_ptr<E> error); 163 std::unique_ptr<E> AcquireError(); 182 Result(std [all...] |
/base/msdp/device_status/test/unittest/intention/cooperate/src/ |
H A D | cooperate_plugin_test.cpp | 39 const std::string TEST_DEV_NODE { "/dev/input/TestDeviceNode" }; 49 std::shared_ptr<Context> g_context { nullptr }; 50 std::shared_ptr<Context> g_contextOne { nullptr }; 51 std::shared_ptr<HotplugObserver> g_observer { nullptr }; 54 std::shared_ptr<SocketSession> g_session { nullptr }; 60 std::unique_ptr<IDDMAdapter> g_ddm { nullptr }; 61 std::unique_ptr<IInputAdapter> g_input { nullptr }; 62 std::unique_ptr<IPluginManager> g_pluginMgr { nullptr }; 63 std::unique_ptr<IDSoftbusAdapter> g_dsoftbus { nullptr }; 64 std 133 CreatePointerItem(int32_t pointerId, int32_t deviceId, const std::pair<int32_t, int32_t> &displayLocation, bool isPressed) CreatePointerItem() argument [all...] |
/base/customization/enterprise_device_management/services/edm/src/database/ |
H A D | edm_rdb_data_manager.cpp | 23 std::shared_ptr<NativeRdb::RdbStore> EdmRdbDataManager::rdbStore_ = nullptr;
24 std::shared_ptr<EdmRdbDataManager> EdmRdbDataManager::instance_ = nullptr;
25 std::mutex EdmRdbDataManager::mutexLock_;
27 std::shared_ptr<EdmRdbDataManager> EdmRdbDataManager::GetInstance()
in GetInstance() 30 std::lock_guard<std::mutex> lock(mutexLock_);
in GetInstance() 32 instance_ = std::make_shared<EdmRdbDataManager>();
in GetInstance() 38 std::shared_ptr<NativeRdb::RdbStore> EdmRdbDataManager::GetRdbStore()
in GetRdbStore() 42 std::lock_guard<std in GetRdbStore() [all...] |
/base/hiviewdfx/hiview/base/test/unittest/common/ |
H A D | event_base_test.cpp | 27 auto now = std::chrono::system_clock::now(); in GetCurrentMillis() 28 auto millisecs = std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()); in GetCurrentMillis() 48 bool TestEventHandler::OnEvent(std::shared_ptr<OHOS::HiviewDFX::Event>& event) in OnEvent() 61 std::string TestEventListener::GetListenerName() in GetListenerName() 90 std::shared_ptr<Event> event = std::make_shared<Event>(""); 113 std::map<std::string, std [all...] |
/base/hiviewdfx/hiview/plugins/sysevent_source/control/config/ |
H A D | daily_config.cpp | 31 DailyConfig::DailyConfig(const std::string& configPath)
in DailyConfig() 36 bool DailyConfig::Parse(const std::string& configPath)
in Parse() 43 std::string version = Parameter::GetVersionTypeStr();
in Parse() 58 const std::string comKey = "Common";
in ParseCommonThreshold() 65 const std::unordered_map<std::string, int32_t> configMap = {
in ParseCommonThreshold() 83 const std::string customKey = "Custom";
in ParseCustomThreshold() 107 std::string domain = config->string;
in ParseThresholdOfDomain() 116 std::string name;
in ParseThresholdOfDomain() 121 customThresholds_[std in ParseThresholdOfDomain() [all...] |
/base/customization/enterprise_device_management/services/edm_plugin/src/ |
H A D | disallow_add_os_account_by_user_plugin.cpp | 30 std::shared_ptr<IPluginTemplate<DisallowAddOsAccountByUserPlugin, std::map<std::string, std::string>>> ptr) in InitPlugin() 39 ErrCode DisallowAddOsAccountByUserPlugin::OnSetPolicy(std::map<std::string, std::string> &data) in OnSetPolicy() 60 ErrCode DisallowAddOsAccountByUserPlugin::OnGetPolicy(std::string &policyData, MessageParcel &data, in OnGetPolicy() 72 std::vector<std in OnGetPolicy() 29 InitPlugin( std::shared_ptr<IPluginTemplate<DisallowAddOsAccountByUserPlugin, std::map<std::string, std::string>>> ptr) InitPlugin() argument [all...] |
/base/global/resource_management/interfaces/js/innerkits/core/include/ |
H A D | resource_manager_napi_utils.h | 59 static std::string GetResNameOrPath(napi_env env, size_t argc, napi_value *argv); 65 static int32_t GetResourceObject(napi_env env, std::shared_ptr<ResourceManager::Resource> &resourcePtr, 69 std::shared_ptr<ResourceManager> &resMgr, int32_t &resId); 73 static RState GetConfigObject(napi_env env, napi_value object, std::unique_ptr<ResMgrDataContext> &dataContext); 77 static const std::unordered_map<int32_t, std::string> ErrorCodeToMsg; 79 static std::string FindErrMsg(int32_t errCode); 81 static bool GetResourceObjectId(napi_env env, std::shared_ptr<ResourceManager::Resource> &resourcePtr, 84 static bool GetResourceObjectName(napi_env env, std::shared_ptr<ResourceManager::Resource> &resourcePtr, 87 static std [all...] |
/base/hiviewdfx/hicollie/frameworks/native/thread_sampler/include/ |
H A D | thread_sampler.h | 45 std::atomic<uint64_t> requestTime {0}; // begin sample
46 std::atomic<uint64_t> snapshotTime {0}; // end of stack copy in signal handler
47 std::atomic<uint64_t> processTime {0}; // end of unwind and unique stack
59 std::vector<DfxFrame> frameList;
77 bool CollectStack(std::string& stack, bool treeFormat = true);
95 static int GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg);
106 std::atomic<int32_t> writeIndex_ {0};
107 std::atomic<int32_t> readIndex_ {0};
110 std::shared_ptr<Unwinder> unwinder_ {nullptr};
111 std [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_instr_statistic.cpp | 35 void DfxInstrStatistic::SetCurrentStatLib(const std::string soName) in SetCurrentStatLib() 48 std::shared_ptr<std::vector<std::pair<uint64_t, uint64_t>>> stats; in AddInstrStatistic() 53 stats = std::make_shared<std::vector<std::pair<uint64_t, uint64_t>>>(); in AddInstrStatistic() 57 stats->push_back(std::make_pair(val, err)); in AddInstrStatistic() 61 void DfxInstrStatistic::DumpInstrStatResult(std::vector<std [all...] |
/base/powermgr/power_manager/test/unittest/src/ |
H A D | power_mgr_dump_test.cpp | 34 using namespace std; 68 std::vector<std::u16string> args; in HWTEST_F() 69 std::u16string arg = u"-i"; in HWTEST_F() 85 std::vector<std::u16string> args; in HWTEST_F() 86 std::u16string arg = u"-k"; in HWTEST_F() 102 std::vector<std::u16string> args; in HWTEST_F() 103 std in HWTEST_F() [all...] |
/base/powermgr/power_manager/services/native/src/ |
H A D | power_save_mode.cpp | 27 const std::string TAG_ROOT = "switch_policy"; 28 const std::string POWER_MODE_CONFIG_PATH = "etc/power_config/power_mode_config.xml"; 29 const std::string VENDOR_POWER_MODE_CONFIG_PATH = "/vendor/etc/power_config/power_mode_config.xml"; 30 const std::string SYSTEM_POWER_MODE_CONFIG_PATH = "/system/etc/power_config/power_mode_config.xml"; 53 bool IsNodeLegal(const xmlNodePtr nodePtr, const std::string& tagName) in IsNodeLegal() 59 bool PowerSaveMode::StartXMlParse(std::string path) in StartXMlParse() 61 std::unique_ptr<xmlDoc, decltype(&xmlFreeDoc)> docPtr( in StartXMlParse() 78 std::list<ModePolicy> listPolicy; in StartXMlParse() 91 std::pair<uint32_t, std in StartXMlParse() [all...] |
/base/print/print_fwk/frameworks/helper/print_helper/include/ |
H A D | printer_capability_helper.h | 30 static std::shared_ptr<PrinterCapability> BuildFromJs(napi_env env, napi_value jsValue); 32 std::shared_ptr<PrinterCapability> nativeObj); 34 std::shared_ptr<PrinterCapability> nativeObj); 45 std::shared_ptr<PrinterCapability> nativeObj); 47 std::shared_ptr<PrinterCapability> nativeObj); 49 std::shared_ptr<PrinterCapability> nativeObj); 51 std::shared_ptr<PrinterCapability> nativeObj); 53 std::shared_ptr<PrinterCapability> nativeObj); 55 std::shared_ptr<PrinterCapability> nativeObj); 57 std [all...] |
/base/request/request/frameworks/js/napi/include/upload/ |
H A D | curl_adp.h | 30 class CUrlAdp : public std::enable_shared_from_this<CUrlAdp> {
32 CUrlAdp(std::vector<FileData> &fileArray, std::shared_ptr<UploadConfig> &config);
34 uint32_t DoUpload(std::shared_ptr<IUploadTask> task);
43 void SplitHttpMessage(const std::string &stmp, FileData *&fData);
48 static void NotifyAPI5(FileData *fData, std::string &headers);
53 bool MultiAddHandle(CURLM *curlMulti, std::vector<CURL *> &curlArray);
65 std::string ReadCertification();
73 std::shared_ptr<IUploadTask> uploadTask_;
74 std [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | enabled_notification_callback_data_test.cpp | 43 std::string bundle = "Bundle"; in HWTEST_F() 46 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); in HWTEST_F() 59 std::string bundle = "Bundle"; in HWTEST_F() 62 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); in HWTEST_F() 75 std::string bundle = "Bundle"; in HWTEST_F() 78 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); in HWTEST_F() 91 std::string bundle = "Bundle"; in HWTEST_F() 94 std::string result = "EnabledNotificationCallbackData{ bundle = Bundle, uid = 10, enable = 1 }"; in HWTEST_F() 95 auto rrc = std::make_shared<EnabledNotificationCallbackData>(bundle, uid, enable); in HWTEST_F() 107 std in HWTEST_F() [all...] |
H A D | notification_media_content_test.cpp | 43 std::shared_ptr<AVToken> avToken = nullptr;
in HWTEST_F() 44 auto rrc = std::make_shared<NotificationMediaContent>();
in HWTEST_F() 57 std::vector<uint32_t> actions;
in HWTEST_F() 58 auto rrc = std::make_shared<NotificationMediaContent>();
in HWTEST_F() 71 auto rrc = std::make_shared<NotificationMediaContent>();
in HWTEST_F() 72 std::string ret = "NotificationMediaContent{ title = , text = , "
in HWTEST_F() 87 auto rrc = std::make_shared<NotificationMediaContent>();
in HWTEST_F() 101 auto rrc = std::make_shared<NotificationMediaContent>();
in HWTEST_F() 115 std::shared_ptr<NotificationMediaContent> result =
in HWTEST_F() 116 std in HWTEST_F() [all...] |
/base/request/request/frameworks/js/napi/src/upload/ |
H A D | obtain_file.cpp | 26 fileAdapter_ = std::make_shared<FileAdapter>();
in ObtainFile() 32 uint32_t ObtainFile::GetFile(FILE **file, const std::string &fileUri, unsigned int &fileSize,
in GetFile() 33 std::shared_ptr<OHOS::AbilityRuntime::Context> &context)
in GetFile() 36 std::string dataAbilityHead("dataability");
in GetFile() 37 std::string internalHead("internal");
in GetFile() 57 uint32_t ObtainFile::GetDataAbilityFile(FILE **file, const std::string &fileUri, uint32_t &fileSize,
in GetDataAbilityFile() 58 std::shared_ptr<OHOS::AbilityRuntime::Context> &context)
in GetDataAbilityFile() 94 bool ObtainFile::IsValidPath(const std::string &filePath)
in IsValidPath() 105 bool ObtainFile::SplitPath(const std::string &fileUri, std [all...] |
/base/msdp/device_status/tools/vdev/include/ |
H A D | virtual_device.h | 36 explicit VirtualDevice(const std::string &node); 53 std::string GetName() const; 54 std::string GetPhys() const; 56 void SetName(const std::string &name); 60 static bool FindDeviceNode(const std::string &name, std::string &node); 64 static void Execute(std::vector<std::string> &results); 65 static void GetInputDeviceNodes(std::map<std [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_long_text_content.cpp | 28 const std::size_t NotificationLongTextContent::MAX_LONGTEXT_LENGTH {1024}; 30 NotificationLongTextContent::NotificationLongTextContent(const std::string &longText) in NotificationLongTextContent() 35 void NotificationLongTextContent::SetExpandedTitle(const std::string &exTitle) in SetExpandedTitle() 40 std::string NotificationLongTextContent::GetExpandedTitle() const in GetExpandedTitle() 45 void NotificationLongTextContent::SetBriefText(const std::string &briefText) in SetBriefText() 50 std::string NotificationLongTextContent::GetBriefText() const in GetBriefText() 55 void NotificationLongTextContent::SetLongText(const std::string &longText) in SetLongText() 62 auto length = std::min(NotificationLongTextContent::MAX_LONGTEXT_LENGTH, longText.length()); in SetLongText() 66 std::string NotificationLongTextContent::GetLongText() const in GetLongText() 71 std [all...] |
/base/notification/common_event_service/tools/test/systemtest/cem/ |
H A D | common_event_command_dump_system_test.cpp | 27 const std::string STRING_EVENT = "com.ces.event"; 28 const std::string STRING_NO_SUBSCRIBERS = 35 std::string ExecuteCommand(const std::string &command) in ExecuteCommand() 37 std::string result = ""; in ExecuteCommand() 41 std::this_thread::sleep_for(std::chrono::seconds(TIME_DELAY_FOR_SERVICES)); in ExecuteCommand() 109 auto subscriberTestPtr = std::make_shared<CommonEventSubscriberTest>(subscribeInfo); in HWTEST_F() 114 std::string command = "cem dump -a"; in HWTEST_F() 115 std in HWTEST_F() [all...] |