Home
last modified time | relevance | path

Searched refs:map (Results 1 - 25 of 1534) sorted by relevance

12345678910>>...62

/base/request/request/request_utils/src/
H A Dqueue_map.rs18 map: HashMap<N, T>,
26 map: HashMap::new(), in new()
35 let ret = self.map.remove(&n); in pop_front()
46 self.map.insert(n, t); in push_back()
50 self.map.contains_key(n) in contains_key()
54 if let Some(t) = self.map.remove(n) { in remove()
63 self.map.get(n) in get()
73 let mut map = QueueMap::new(); in ut_queue_map_fifo() variables
74 map.push_back(1, 1); in ut_queue_map_fifo()
75 map in ut_queue_map_fifo()
82 let mut map = QueueMap::new(); ut_queue_map_remove() variables
102 let mut map = QueueMap::new(); ut_queue_map_same_key() variables
[all...]
/base/security/access_token/services/privacymanager/src/common/
H A Dconstant.cpp21 const std::map<std::string, int32_t> Constant::PERMISSION_OPCODE_MAP = {
22 std::map<std::string, int32_t>::value_type("ohos.permission.ANSWER_CALL", Constant::OP_ANSWER_CALL),
23 std::map<std::string, int32_t>::value_type("ohos.permission.READ_CALENDAR", Constant::OP_READ_CALENDAR),
24 std::map<std::string, int32_t>::value_type("ohos.permission.READ_CALL_LOG", Constant::OP_READ_CALL_LOG),
25 std::map<std::string, int32_t>::value_type("ohos.permission.READ_CELL_MESSAGES", Constant::OP_READ_CELL_MESSAGES),
26 std::map<std::string, int32_t>::value_type("ohos.permission.READ_CONTACTS", Constant::OP_READ_CONTACTS),
27 std::map<std::string, int32_t>::value_type("ohos.permission.READ_MESSAGES", Constant::OP_READ_MESSAGES),
28 std::map<std::string, int32_t>::value_type("ohos.permission.RECEIVE_MMS", Constant::OP_RECEIVE_MMS),
29 std::map<std::string, int32_t>::value_type("ohos.permission.RECEIVE_SMS", Constant::OP_RECEIVE_SMS),
30 std::map<st
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddfx_hap.cpp43 bool DfxHap::ParseHapInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, in ParseHapInfo() argument
47 if (jsFunction == nullptr || map == nullptr) { in ParseHapInfo()
57 if (DfxMaps::IsArkHapMapItem(map->name)) { in ParseHapInfo()
58 if (!ParseHapFileInfo(pc, methodid, map, jsFunction)) { in ParseHapInfo()
63 if (!ParseHapMemInfo(pid, pc, methodid, map, jsFunction)) { in ParseHapInfo()
74 bool DfxHap::ParseHapFileInfo(uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, JsFunction *jsFunction) in ParseHapFileInfo() argument
77 if (jsFunction == nullptr || map == nullptr || map->name.empty()) { in ParseHapFileInfo()
81 if (DfxArk::ParseArkFileInfo(static_cast<uintptr_t>(pc), methodid, static_cast<uintptr_t>(map->begin), in ParseHapFileInfo()
82 map in ParseHapFileInfo()
92 ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map, JsFunction *jsFunction) ParseHapMemInfo() argument
142 ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map) ParseHapMemData() argument
[all...]
H A Ddfx_accessors.cpp46 bool DfxAccessors::GetMapByPcAndCtx(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) in GetMapByPcAndCtx() argument
52 if (ctx->map != nullptr && ctx->map->Contain(static_cast<uint64_t>(pc))) { in GetMapByPcAndCtx()
53 map = ctx->map; in GetMapByPcAndCtx()
54 DFXLOGU("map had matched by ctx, map name: %{public}s", map->name.c_str()); in GetMapByPcAndCtx()
58 if (ctx->maps == nullptr || !ctx->maps->FindMapByAddr(pc, map) || (map in GetMapByPcAndCtx()
155 GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) GetMapByPc() argument
253 GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) GetMapByPc() argument
285 GetMapByPc(uintptr_t pc, std::shared_ptr<DfxMap>& map, void *arg) GetMapByPc() argument
[all...]
H A Ddfx_maps.cpp62 DFXLOGU("Create maps(%{public}s) with not crash, will only parse exec map", path.c_str()); in Create()
115 auto map = std::make_shared<DfxMap>(); in Parse() local
116 if (!map->Parse(mapBuf, sizeof(mapBuf))) { in Parse()
117 DFXLOGU("Failed to parse map: %{public}s", mapBuf); in Parse()
121 DfxMap::FormatMapName(pid, map->name); in Parse()
122 if (IsArkHapMapItem(map->name) || IsArkCodeMapItem(map->name)) { in Parse()
123 AddMap(map, enableMapIndex_); in Parse()
126 if (map->name == "[stack]") { in Parse()
127 stackBottom_ = static_cast<uintptr_t>(map in Parse()
189 AddMap(std::shared_ptr<DfxMap> map, bool enableMapIndex) AddMap() argument
297 std::shared_ptr<DfxMap> map = nullptr; IsArkExecutedMap() local
[all...]
/base/security/device_auth/frameworks/deviceauth_lite/source/schedule/
H A Dbuild_object.c34 static void **get_object(const struct object_map *map, uint32_t n, int32_t modular, bool is_client);
35 static bool check_mutex_object_is_null(const struct object_map *map, uint32_t n, int32_t modular, bool is_client);
36 static bool check_depend_object_is_not_null(const struct object_map *map, uint32_t n, int32_t modular, bool is_client);
41 const struct object_map map[] = { { PAKE_MODULAR, true, (void **)&hichain->pake_client }, in build_object() local
47 void **object = get_object(map, sizeof(map) / sizeof(map[0]), modular, is_client); in build_object()
52 if (check_mutex_object_is_null(map, sizeof(map) / sizeof(map[ in build_object()
69 get_object(const struct object_map *map, uint32_t n, int32_t modular, bool is_client) get_object() argument
82 select_relation_map(const struct object_relation *map, uint32_t n, int32_t modular, bool is_client, object_relation_ptr *select_map) select_relation_map() argument
96 check_mutex_object_is_null(const struct object_map *map, uint32_t n, int32_t modular, bool is_client) check_mutex_object_is_null() argument
136 check_depend_object_is_not_null(const struct object_map *map, uint32_t n, int32_t modular, bool is_client) check_depend_object_is_not_null() argument
175 const struct build_sub_object_map map[] = { { PAKE_MODULAR, true, build_pake_client_object }, build_object_by_modular() local
[all...]
/base/powermgr/battery_statistics/services/native/include/
H A Dcpu_time_reader.h19 #include <map>
38 std::map<int32_t, int64_t> activeTimeMap_;
39 std::map<int32_t, std::vector<int64_t>> clusterTimeMap_;
40 std::map<int32_t, std::map<uint32_t, std::vector<int64_t>>> freqTimeMap_;
41 std::map<int32_t, std::vector<int64_t>> uidTimeMap_;
42 std::map<int32_t, int64_t> lastActiveTimeMap_;
43 std::map<int32_t, std::vector<int64_t>> lastClusterTimeMap_;
44 std::map<int32_t, std::map<uint32_
[all...]
/base/hiviewdfx/hiview/plugins/sysevent_source/include/
H A Dsys_event_stat.h19 #include <map>
47 std::map<std::string, std::map<std::string, int64_t>> d2es_;
48 std::map<std::string, std::string> d2ies_;
77 std::map<std::string, std::map<std::string, int64_t>> &d2es);
83 virtual void StatDomainEvent(int fd, std::map<std::string, int64_t> &events) const;
86 std::map<std::string, std::map<std::string, int64_t>> &d2es_;
90 int64_t GetEventCount(std::map<st
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Dmaps_test.cpp78 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() local
79 EXPECT_EQ(true, maps_->FindMapByAddr(validAddr, map)); in HWTEST_F()
80 EXPECT_EQ(false, maps_->FindMapByAddr(invalidAddr, map)); in HWTEST_F()
92 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() local
93 EXPECT_EQ(true, maps_->FindMapByFileInfo(VALID_MAP_NAME, 0, map)); in HWTEST_F()
94 EXPECT_EQ(false, maps_->FindMapByFileInfo(INVALID_MAP_NAME, 0, map)); in HWTEST_F()
96 EXPECT_EQ(false, maps_->FindMapByFileInfo(VALID_MAP_NAME, invalidOffset, map)); in HWTEST_F()
97 EXPECT_EQ(false, maps_->FindMapByFileInfo(INVALID_MAP_NAME, invalidOffset, map)); in HWTEST_F()
124 std::shared_ptr<DfxMap> map = nullptr; in HWTEST_F() local
125 map in HWTEST_F()
149 shared_ptr<DfxMap> map = DfxMap::Create(INVALID_MAP_ITEM, sizeof(INVALID_MAP_ITEM)); HWTEST_F() local
162 shared_ptr<DfxMap> map = DfxMap::Create(VALID_MAP_ITEM, sizeof(VALID_MAP_ITEM)); HWTEST_F() local
240 shared_ptr<DfxMap> map = DfxMap::Create(VDSO_MAP_ITEM, sizeof(VDSO_MAP_ITEM)); HWTEST_F() local
[all...]
H A Ddfx_hap_test.cpp48 auto map = std::make_shared<DfxMap>(); in HWTEST_F() local
51 bool res = dfxHap.ParseHapInfo(pid, pc, methodid, map, nullptr); in HWTEST_F()
53 res = dfxHap.ParseHapInfo(pid, pc, methodid, map, &jsFunction); in HWTEST_F()
55 map->name = "test.hap"; in HWTEST_F()
56 res = dfxHap.ParseHapInfo(pid, pc, methodid, map, &jsFunction); in HWTEST_F()
71 auto map = std::make_shared<DfxMap>(); in HWTEST_F() local
72 map->begin = 10001; // 10001 : simulate the begin value of DfxMap in HWTEST_F()
73 map->end = 10101; // 10101 : simulate the end value of DfxMap in HWTEST_F()
76 res = dfxHap.ParseHapMemData(pid, map); in HWTEST_F()
78 size_t abcDataSize = map in HWTEST_F()
119 auto map = std::make_shared<DfxMap>(); HWTEST_F() local
[all...]
/base/security/asset/interfaces/inner_kits/c/src/
H A Dlib.rs40 let mut map = AssetMap::with_capacity(attr_cnt as usize); in into_map() variables
50 map.insert(attr_tag, Value::Bool((*attr).value.boolean)); in into_map()
53 map.insert(attr_tag, Value::Number((*attr).value.uint32)); in into_map()
62 map.insert(attr_tag, Value::Bytes(blob_vec)); in into_map()
67 Some(map) in into_map()
73 let map = match into_map(attributes, attr_cnt) { in add_asset()
74 Some(map) => map, in add_asset()
83 if let Err(e) = manager.add(&map) { in add_asset()
93 let map in remove_asset()
[all...]
/base/global/i18n/interfaces/js/kits/include/
H A Dintl_addon.h35 std::map<std::string, std::string> &map);
37 std::map<std::string, std::string> &map);
39 std::map<std::string, std::string> &map);
40 void GetDateOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map);
41 void GetNumberOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map);
[all...]
/base/customization/enterprise_device_management/services/edm_plugin/include/utils/
H A Dclipboard_policy_serializer.h31 class ClipboardSerializer : public IPolicySerializer<std::map<int32_t, ClipboardPolicy>>,
35 bool Deserialize(const std::string &policy, std::map<int32_t, ClipboardPolicy> &dataObj) override;
37 bool Serialize(const std::map<int32_t, ClipboardPolicy> &dataObj, std::string &policy) override;
39 bool GetPolicy(MessageParcel &data, std::map<int32_t, ClipboardPolicy> &result) override;
41 bool WritePolicy(MessageParcel &reply, std::map<int32_t, ClipboardPolicy> &result) override;
43 bool MergePolicy(std::vector<std::map<int32_t, ClipboardPolicy>> &data,
44 std::map<int32_t, ClipboardPolicy> &result) override;
H A Dwatermark_image_serializer.h29 public IPolicySerializer<std::map<std::pair<std::string, int32_t>, WatermarkImageType>>,
33 std::map<std::pair<std::string, int32_t>, WatermarkImageType> &dataObj) override;
35 bool Serialize(const std::map<std::pair<std::string, int32_t>, WatermarkImageType> &dataObj,
39 std::map<std::pair<std::string, int32_t>, WatermarkImageType> &result) override;
42 std::map<std::pair<std::string, int32_t>, WatermarkImageType> &result) override;
44 bool MergePolicy(std::vector<std::map<std::pair<std::string, int32_t>, WatermarkImageType>> &data,
45 std::map<std::pair<std::string, int32_t>, WatermarkImageType> &result) override;
/base/global/i18n/interfaces/js/kits/src/
H A Dintl_addon.cpp174 std::map<std::string, std::string> &map) in GetOptionValue()
195 map.insert(make_pair(optionName, optionBuf.data())); in GetOptionValue()
201 std::map<std::string, std::string> &map) in GetIntegerOptionValue()
218 map.insert(make_pair(optionName, std::to_string(integerValue))); in GetIntegerOptionValue()
226 std::map<std::string, std::string> &map) in GetBoolOptionValue()
243 map.insert(make_pair(optionName, value)); in GetBoolOptionValue()
248 void GetDateOptionValues(napi_env env, napi_value options, std::map<st argument
173 GetOptionValue(napi_env env, napi_value options, const std::string &optionName, std::map<std::string, std::string> &map) GetOptionValue() argument
200 GetIntegerOptionValue(napi_env env, napi_value options, const std::string &optionName, std::map<std::string, std::string> &map) GetIntegerOptionValue() argument
225 GetBoolOptionValue(napi_env env, napi_value options, const std::string &optionName, std::map<std::string, std::string> &map) GetBoolOptionValue() argument
271 GetRelativeTimeOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetRelativeTimeOptionValues() argument
320 std::map<std::string, std::string> map = {}; LocaleConstructor() local
344 InitLocaleContext(napi_env env, napi_callback_info info, const std::string localeTag, std::map<std::string, std::string> &map) InitLocaleContext() argument
404 std::map<std::string, std::string> map = {}; DateTimeFormatConstructor() local
424 InitDateTimeFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, std::map<std::string, std::string> &map) InitDateTimeFormatContext() argument
467 std::map<std::string, std::string> map = {}; RelativeTimeFormatConstructor() local
487 InitRelativeTimeFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, std::map<std::string, std::string> &map) InitRelativeTimeFormatContext() argument
556 GetNumberOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetNumberOptionValues() argument
611 std::map<std::string, std::string> map = {}; NumberFormatConstructor() local
631 InitNumberFormatContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, std::map<std::string, std::string> &map) InitNumberFormatContext() argument
1166 GetCollatorLocaleMatcher(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorLocaleMatcher() argument
1181 GetCollatorUsage(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorUsage() argument
1196 GetCollatorSensitivity(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorSensitivity() argument
1211 GetCollatorIgnorePunctuation(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorIgnorePunctuation() argument
1226 GetCollatorNumeric(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorNumeric() argument
1239 GetCollatorCaseFirst(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorCaseFirst() argument
1252 GetCollatorCollation(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorCollation() argument
1281 GetCollatorOptionValue(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetCollatorOptionValue() argument
1344 std::map<std::string, std::string> map = {}; CollatorConstructor() local
1364 InitCollatorContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, std::map<std::string, std::string> &map) InitCollatorContext() argument
1575 GetPluralRulesType(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetPluralRulesType() argument
1590 GetPluralRulesInteger(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetPluralRulesInteger() argument
1607 GetPluralRulesFractions(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetPluralRulesFractions() argument
1634 GetPluralRulesSignificant(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetPluralRulesSignificant() argument
1667 GetPluralRulesOptionValues(napi_env env, napi_value options, std::map<std::string, std::string> &map) GetPluralRulesOptionValues() argument
1727 std::map<std::string, std::string> map = {}; PluralRulesConstructor() local
1747 InitPluralRulesContext(napi_env env, napi_callback_info info, std::vector<std::string> localeTags, std::map<std::string, std::string> &map) InitPluralRulesContext() argument
[all...]
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
H A Drule.h19 #include <map>
33 std::map<std::string, FeatureSet> GetExtractRule();
34 std::list<std::pair<std::string, std::map<std::string, std::string>>> GetComposeRule();
35 std::map<std::string, std::vector<std::string>> GetSegStatusCfg();
41 std::map<std::string, FeatureSet> extractRule_;
42 std::list<std::pair<std::string, std::map<std::string, std::string>>> composeRule_;
43 std::map<std::string, std::vector<std::string>> segStatusCfg_;
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/include/utils/
H A Dmap_string_serializer.h25 * Policy data serializer of type std::map<std::string, std::string>.
27 class MapStringSerializer : public IPolicySerializer<std::map<std::string, std::string>>,
30 bool Deserialize(const std::string &jsonString, std::map<std::string, std::string> &dataObj) override;
32 bool Serialize(const std::map<std::string, std::string> &dataObj, std::string &jsonString) override;
34 bool GetPolicy(MessageParcel &data, std::map<std::string, std::string> &result) override;
36 bool WritePolicy(MessageParcel &reply, std::map<std::string, std::string> &result) override;
38 bool MergePolicy(std::vector<std::map<std::string, std::string>> &data,
39 std::map<std::string, std::string> &result) override;
/base/telephony/cellular_call/services/utils/include/
H A Dcellular_call_config.h19 #include <map>
435 int32_t slotId, std::map<int32_t, bool> &config, OperatorConfig &poc, std::string configName);
459 static std::map<int32_t, int32_t> modeTempMap_;
460 static std::map<int32_t, int32_t> modeMap_;
461 static std::map<int32_t, std::vector<EmergencyCall>> eccListRadioMap_;
464 static std::map<int32_t, std::vector<EmergencyCall>> allEccList_;
465 static std::map<int32_t, int32_t> simState_;
466 static std::map<int32_t, std::string> curPlmn_;
471 static std::map<int32_t, bool> imsSwitchOnByDefault_;
472 static std::map<int32_
[all...]
/base/notification/distributed_notification_service/services/ans/include/
H A Dsmart_reminder_center.h22 #include <map>
56 map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice) const;
60 map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice) const;
64 map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice) const;
67 const map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice,
70 shared_ptr<map<string, shared_ptr<NotificationFlags>>> notificationFlagsOfDevices) const;
75 shared_ptr<map<string, shared_ptr<NotificationFlags>>> notificationFlagsOfDevices) const;
77 const map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice,
83 map<NotificationConstant::SlotType, shared_ptr<NotificationFlags>> currentReminderMethods_;
84 map<strin
[all...]
/base/hiviewdfx/hiview/utility/smart_parser/rule/
H A Drule.cpp27 std::map<std::string, FeatureSet> extractRule_;
28 std::list<std::pair<std::string, std::map<std::string, std::string>>> composeRule_;
29 std::map<std::string, std::vector<std::string>> segStatusCfg_;
44 std::map<std::string, FeatureSet> Rule::GetExtractRule() in GetExtractRule()
49 std::list<std::pair<std::string, std::map<std::string, std::string>>> Rule::GetComposeRule() in GetComposeRule()
54 std::map<std::string, std::vector<std::string>> Rule::GetSegStatusCfg() in GetSegStatusCfg()
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/
H A Dfold_event_cacher.h20 #include <map>
45 std::map<int, uint64_t>& durations);
47 void Accumulative(int foldStatus, uint64_t duration, std::map<int, uint64_t>& durations);
48 int64_t GetFoldStatusDuration(const int foldStatus, std::map<int, uint64_t>& durations);
49 void ProcessCountDurationEvent(AppEventRecord& appEventRecord, std::map<int, uint64_t>& durations);
53 std::map<std::string, std::string> foregroundApps_;
/base/powermgr/battery_statistics/services/native/include/entities/
H A Dcpu_entity.h19 #include <map>
40 std::map<int32_t, int64_t> cpuTimeMap_;
41 std::map<int32_t, double> cpuTotalPowerMap_;
42 std::map<int32_t, double> cpuActivePowerMap_;
43 std::map<int32_t, double> cpuClusterPowerMap_;
44 std::map<int32_t, double> cpuSpeedPowerMap_;
H A Dsensor_entity.h19 #include <map>
39 std::map<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>> gravityTimerMap_;
40 std::map<int32_t, std::shared_ptr<StatsHelper::ActiveTimer>> proximityTimerMap_;
41 std::map<int32_t, double> sensorTotalPowerMap_;
42 std::map<int32_t, double> gravityPowerMap_;
43 std::map<int32_t, double> proximityPowerMap_;
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Dclipboard_policy_plugin.h24 class ClipboardPolicyPlugin : public PluginSingleton<ClipboardPolicyPlugin, std::map<int32_t, ClipboardPolicy>> {
27 std::map<int32_t, ClipboardPolicy>>> ptr) override;
29 ErrCode OnSetPolicy(std::map<int32_t, ClipboardPolicy> &data,
30 std::map<int32_t, ClipboardPolicy> &currentData, int32_t userId);
34 ErrCode OnAdminRemove(const std::string &adminName, std::map<int32_t, ClipboardPolicy> &data, int32_t userId);
/base/powermgr/thermal_manager/services/native/include/thermal_policy/
H A Dfan_fault_detect.h19 #include <map>
32 using FanSensorInfo = std::map<std::string, int32_t>;
33 using FanFaultInfoMap = std::map<int32_t, FanSensorInfo>;
41 void SetFaultInfoMap(FanFaultInfoMap& map);
49 int32_t GetSensorValue(const FanSensorInfo& map, const std::string& name);

Completed in 11 milliseconds

12345678910>>...62