Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 204) sorted by relevance

123456789

/base/hiviewdfx/hiview/plugins/freeze_detector/
Dfreeze_common.cpp50 for (auto const &pair : applicationPairs) { in IsApplicationEvent() local
51 if (stringId == pair.first && domain == pair.second.first) { in IsApplicationEvent()
65 for (auto const &pair : systemPairs) { in IsSystemEvent() local
66 if (stringId == pair.first && domain == pair.second.first) { in IsSystemEvent()
97 for (auto const &pair : applicationPairs) { in GetPrincipalStringIds() local
98 if (pair.second.second) { in GetPrincipalStringIds()
99 set.insert(pair.first); in GetPrincipalStringIds()
102 for (auto const &pair : systemPairs) { in GetPrincipalStringIds() local
103 if (pair.second.second) { in GetPrincipalStringIds()
104 set.insert(pair.first); in GetPrincipalStringIds()
/base/useriam/face_auth/test/unittest/
Dface_auth_executor_hdi_unit_test.cpp102 for (const auto &pair : RESULT_CODE_MAP) { variable
107 .WillOnce([&pair](FaceHdi::ExecutorInfo &info) { in __anonf068a1180302()
113 return static_cast<int32_t>(pair.first); in __anonf068a1180302()
118 EXPECT_TRUE(ret == pair.second);
124 static const std::map<FaceHdi::AuthType, pair<IamAuthType, IamResultCode>> data = {
131 for (const auto &pair : data) { variable
136 .WillOnce([&pair](FaceHdi::ExecutorInfo &info) { in __anonf068a1180402()
139 .authType = pair.first, in __anonf068a1180402()
147 EXPECT_TRUE(ret == pair.second.second);
149 EXPECT_TRUE(info.authType == pair.second.first);
[all …]
Dface_auth_executor_callback_hdi_unit_test.cpp93 for (const auto &pair : data) { variable
99 … .WillOnce([&pair, &testExtraInfo](int32_t result, const std::vector<uint8_t> &extraInfo) { in __anon0a6240840202()
100 EXPECT_TRUE(result == pair.second); in __anon0a6240840202()
105 callbackHdi.OnResult(pair.first, testExtraInfo);
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_executor_hdi_unit_test.cpp100 for (const auto &pair : RESULT_CODE_MAP) { variable
105 .WillOnce([&pair](PinHdi::ExecutorInfo &info) { in __anon8b044b7f0302()
111 return static_cast<int32_t>(pair.first); in __anon8b044b7f0302()
116 EXPECT_TRUE(ret == pair.second);
122 static const std::map<PinHdi::AuthType, pair<IamAuthType, IamResultCode>> data = {
129 for (const auto &pair : data) { variable
134 .WillOnce([&pair](PinHdi::ExecutorInfo &info) { in __anon8b044b7f0402()
137 .authType = pair.first, in __anon8b044b7f0402()
145 EXPECT_TRUE(ret == pair.second.second);
147 EXPECT_TRUE(info.authType == pair.second.first);
[all …]
Dpin_auth_executor_callback_hdi_unit_test.cpp70 for (const auto &pair : data) { variable
76 … .WillOnce([&pair, &testExtraInfo](int32_t result, const std::vector<uint8_t> &extraInfo) { in __anon67fd8ecb0102()
77 EXPECT_TRUE(result == pair.second); in __anon67fd8ecb0102()
84 callbackHdi.OnResult(pair.first, testExtraInfo);
/base/update/updater/test/unittest/updater_ui_test/view/
Dui_page_manager_unittest.cpp62 std::pair {"page1", "label_id_0"}, std::pair {"page1", "image_view"},
63 std::pair {"page1:subpage1", "label_id_0"}, std::pair {"page1:subpage1", "image_view"},
64 std::pair {"page1:subpage2", "image_view"}, std::pair {"page1:subpage3", "label_id_0"},
65 std::pair {"page2", "label_id_0"}, std::pair {"page2", "image_view"},
66 std::pair {"page2:subpage1", "label_id_0"}, std::pair {"page2:subpage2", "image_view"},
67 std::pair {"page3", "label_id_0"}, std::pair {"page3", "image_view"}
218 …for (auto [pageId, comId] : { std::pair {"page1", "label_id_0"}, std::pair {"page1:subpage1", "lab…
219 std::pair {"page1:subpage3", "label_id_0"}, std::pair {"page2", "label_id_0"},
220 std::pair {"page2:subpage1", "label_id_0"}, std::pair {"page3", "label_id_0"}}) {
224 …for (auto [pageId, comId] : { std::pair {"page1", "image_view"}, std::pair {"page1:subpage1", "ima…
[all …]
/base/telephony/sms_mms/test/gtest/
Dzero_branch_test.cpp165 mmsHeader->octetValueMap_.insert(pair<uint8_t, uint8_t>(1, 1));
166 mmsHeader->longValueMap_.insert(pair<uint8_t, int64_t>(1, 1));
167 mmsHeader->textValueMap_.insert(pair<uint8_t, std::string>(1, "1"));
168 mmsHeader->encodeStringsMap_.insert(pair<uint8_t, MmsEncodeString>(1, encodeString));
169 mmsHeader->addressMap_.insert(pair<uint8_t, std::vector<MmsAddress>>(1, addressValue));
176pair<uint8_t, MmsFieldValueType>(MMS_MESSAGE_TYPE, MmsFieldValueType::MMS_FIELD_OCTET_TYPE));
178 pair<uint8_t, MmsFieldValueType>(MMS_PRIORITY, MmsFieldValueType::MMS_FIELD_OCTET_TYPE));
180pair<uint8_t, MmsFieldValueType>(MMS_RESPONSE_STATUS, MmsFieldValueType::MMS_FIELD_OCTET_TYPE));
182pair<uint8_t, MmsFieldValueType>(MMS_SENDER_VISIBILITY, MmsFieldValueType::MMS_FIELD_OCTET_TYPE));
184 pair<uint8_t, MmsFieldValueType>(MMS_STATUS, MmsFieldValueType::MMS_FIELD_OCTET_TYPE));
[all …]
/base/hiviewdfx/hiview/adapter/plugins/eventlogger/log_catcher/impl/
Dlog_catcher_utils.cpp31 static std::map<int, std::shared_ptr<std::pair<bool, std::string>>> dumpMap;
40 dumpMap[pid] = std::make_shared<std::pair<bool, std::string>>( in GetDump()
41 std::pair<bool, std::string>(false, "")); in GetDump()
44 std::shared_ptr<std::pair<bool, std::string>> tmp = it->second; in GetDump()
65 std::shared_ptr<std::pair<bool, std::string>> tmp = it->second; in FinshDump()
/base/hiviewdfx/hiview/adapter/dbstore/
Ddata_query.cpp68 orderFields_.emplace_back(std::pair<bool, std::string>(true, field)); in OrderByAsc()
74 orderFields_.emplace_back(std::pair<bool, std::string>(false, field)); in OrderByDesc()
120 std::pair<bool, std::string> pair = orderFields_[index]; in ToString() local
121 std::string order = pair.first ? "asc" : "desc"; in ToString()
122 sql << order << " /" << pair.second << " "; in ToString()
/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/test/unittest/
Dbbox_detector_unit_test.cpp94 eventInfos.insert(std::pair("END_STACK", stack));
95 eventInfos.insert(std::pair("PNAME", "PANIC"));
96 eventInfos.insert(std::pair("Eventid", "901000002"));
/base/useriam/user_auth_framework/common/executors/src/
Ddriver_manager.cpp186 for (auto const &pair : serviceName2Driver_) { in OnAllHdiDisconnect() local
187 if (pair.second == nullptr) { in OnAllHdiDisconnect()
191 pair.second->OnHdiDisconnect(); in OnAllHdiDisconnect()
200 for (auto const &pair : serviceName2Driver_) { in OnFrameworkReady() local
201 if (pair.second == nullptr) { in OnFrameworkReady()
205 pair.second->OnFrameworkReady(); in OnFrameworkReady()
/base/request/request/download/dfx/dump/
Ddump_task_info.h57 std::vector<std::pair<int32_t, std::string>> summaryColumnTitle_ = {
63 std::vector<std::pair<int32_t, ColumnDumpFunc>> dumpSummaryCfg_ = {
69 std::vector<std::pair<int32_t, std::string>> detailColumnTitle_ = {
78 std::vector<std::pair<int32_t, ColumnDumpFunc>> dumpDetailCfg_ = {
/base/customization/enterprise_device_management/framework/extension/src/
Denterprise_admin_extension_module_loader.cpp33 params.insert(std::pair<std::string, std::string>("type", "11")); in GetParams()
35 params.insert(std::pair<std::string, std::string>("name", "EnterpriseAdminExtention")); in GetParams()
/base/theme/wallpaper_mgr/frameworks/kits/extension/src/
Dwallpaper_extension_module_loader.cpp32 params.insert(std::pair<std::string, std::string>("type", "8")); in GetParams()
33 params.insert(std::pair<std::string, std::string>("name", "WallpaperExtension")); in GetParams()
/base/inputmethod/imf/frameworks/kits/extension/src/
Dinputmethod_extension_module_loader.cpp34 params.insert(std::pair<std::string, std::string>("type", "2")); in GetParams()
35 params.insert(std::pair<std::string, std::string>("name", "InputMethodExtensionAbility")); in GetParams()
/base/global/i18n/frameworks/intl/src/
Dcollator.cpp285 options.insert(std::pair<std::string, std::string>("localeMatcher", localeMatcher)); in ResolvedOptions()
286 options.insert(std::pair<std::string, std::string>("locale", localeStr)); in ResolvedOptions()
287 options.insert(std::pair<std::string, std::string>("usage", usage)); in ResolvedOptions()
288 options.insert(std::pair<std::string, std::string>("sensitivity", sensitivity)); in ResolvedOptions()
289 options.insert(std::pair<std::string, std::string>("ignorePunctuation", ignorePunctuation)); in ResolvedOptions()
290 options.insert(std::pair<std::string, std::string>("numeric", numeric)); in ResolvedOptions()
291 options.insert(std::pair<std::string, std::string>("caseFirst", caseFirst)); in ResolvedOptions()
292 options.insert(std::pair<std::string, std::string>("collation", collation)); in ResolvedOptions()
/base/hiviewdfx/hiview/plugins/eventlogger/log_catcher/
Devent_log_task.cpp45 …captureList_.insert(std::pair<std::string, capture>("s", std::bind(&EventLogTask::AppStackCapture,… in EventLogTask()
46 …captureList_.insert(std::pair<std::string, capture>("S", std::bind(&EventLogTask::SystemStackCaptu… in EventLogTask()
47 …captureList_.insert(std::pair<std::string, capture>("b", std::bind(&EventLogTask::BinderLogCapture… in EventLogTask()
48 …captureList_.insert(std::pair<std::string, capture>("cmd:c", std::bind(&EventLogTask::CpuUsageCapt… in EventLogTask()
49 …captureList_.insert(std::pair<std::string, capture>("cmd:m", std::bind(&EventLogTask::MemoryUsageC… in EventLogTask()
50 …captureList_.insert(std::pair<std::string, capture>("cmd:w", std::bind(&EventLogTask::WMSUsageCapt… in EventLogTask()
51 …captureList_.insert(std::pair<std::string, capture>("cmd:a", std::bind(&EventLogTask::AMSUsageCapt… in EventLogTask()
52 …captureList_.insert(std::pair<std::string, capture>("cmd:p", std::bind(&EventLogTask::PMSUsageCapt… in EventLogTask()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_preferences_database_test.cpp497 std::pair<std::string, std::string> entry;
513 std::pair<std::string, std::string> entry;
529 std::pair<std::string, std::string> entry;
545 std::pair<std::string, std::string> entry;
561 std::pair<std::string, std::string> entry;
577 std::pair<std::string, std::string> entry;
593 std::pair<std::string, std::string> entry;
609 std::pair<std::string, std::string> entry;
625 std::pair<std::string, std::string> entry;
641 std::pair<std::string, std::string> entry;
[all …]
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/
Dlog_util.h47 std::tuple<std::pair<int, int>, std::vector<std::string>> ParseIpcInfo(
48 std::stringstream& buffer, const int offset, const std::pair<int, int>& pidTid);
71 std::map<std::string, std::pair<std::string, IpcTrans>> IpcInfo_;
/base/account/os_account/interfaces/innerkits/ohosaccount/native/include/
Dohos_account_kits.h46 virtual std::pair<bool, OhosAccountInfo> QueryOhosAccountInfo() = 0;
70 virtual std::pair<bool, OhosAccountInfo> QueryOhosAccountInfoByUserId(std::int32_t userId) = 0;
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
Dcompose_rule.h31 std::list<std::pair<std::string, std::map<std::string, std::string>>> GetComposeRule() const;
39 std::list<std::pair<std::string, std::map<std::string, std::string>>> composeRules_;
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/
Dlog_util.cpp54 tuple<pair<int, int>, vector<string>> LogUtil::ParseIpcInfo(stringstream& buffer, in ParseIpcInfo()
55 const int offset, const pair<int, int>& pidTid) in ParseIpcInfo()
59 return tuple<pair<int, int>, vector<string>> {}; in ParseIpcInfo()
68 return tuple<pair<int, int>, vector<string>> {}; in ParseIpcInfo()
84 pair<int, int> pidTidResult = make_pair(pid, tid); in ParseIpcInfo()
86 return tuple<pair<int, int>, vector<string>>(pidTidResult, resultIpcLine); in ParseIpcInfo()
137 pair<string, IpcTrans> IpcPair(bindStr.sIpcItem.pidTid, bindStr); in GetIpcInfo()
/base/hiviewdfx/hidumper/frameworks/native/include/util/zip/
Dzip_writer.h34 bool Write(const std::vector<std::pair<std::string, std::string>> &zipItems,
46 std::vector<std::pair<std::string, std::string>> zipItems_;
/base/hiviewdfx/hiview/utility/smart_parser/rule/
Dcompose_rule.cpp61 std::list<std::pair<std::string, std::map<std::string, std::string>>> ComposeRule::GetComposeRule()… in GetComposeRule()
71 composeRules_.emplace_back(pair<string, map<string, string>>(featureId, composeParams)); in ParseRule()
89 result.emplace(pair<std::string, std::string>(iter.key().asString(), (*iter).asString())); in GetMapFromJson()
/base/powermgr/battery_statistics/services/native/src/entities/
Dcamera_entity.cpp62 cameraPowerMap_.insert(std::pair<int32_t, double>(uid, cameraOnPowerMah)); in Calculate()
113 std::pair<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>>(uid, cmrTimer)); in GetOrCreateTimer()
119 … uidTimerMap.insert(std::pair<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>>(uid, cmrTimer)); in GetOrCreateTimer()
120 cameraTimerMap_.insert(std::pair<std::string, std::map<int32_t, in GetOrCreateTimer()

123456789