/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
D | global_utils.c | 45 static uint32_t FindOffsetByLanguage(const char *language, const Key *keys, uint32_t configNum); 46 static uint32_t FindOffsetByLangWithScriptOrRegion(char **resConfig, const Key *keys, uint32_t conf… 47 static uint32_t FindOffsetByAllParam(char **resConfig, const Key *keys, uint32_t configNum); 48 static uint32_t GetIdHeaderOffsetByCount(char **resConfig, const Key *keys, uint32_t configNum, int… 53 static void FreeKeyParams(Key *keys, int32_t count); 54 static int32_t GetKeyParams(int32_t file, Key *keys, uint32_t resConfigNum); 55 static uint32_t GetIdHeaderOffsetByLocale(const char *locale, const Key *keys, uint32_t configNum); 139 static uint32_t FindOffsetByLanguage(const char *language, const Key *keys, uint32_t configNum) in FindOffsetByLanguage() argument 141 if (language == NULL || keys == NULL) { in FindOffsetByLanguage() 146 for (uint32_t j = 0; j < keys[i].keysCount; j++) { in FindOffsetByLanguage() [all …]
|
/base/powermgr/battery_manager/charger/src/ |
D | battery_config.cpp | 178 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey() 180 SplitStr(TrimStr(key), ".", keys); in SplitKey() 181 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey() 186 std::vector<std::string> keys; in GetValue() local 187 if (!SplitKey(key, keys)) { in GetValue() 192 Json::Value value = FindConf(keys[MAP_KEY_INDEX]); in GetValue() 194 … BATTERY_HILOGW(FEATURE_CHARGING, "Value is empty. key=%{public}s", keys[MAP_KEY_INDEX].c_str()); in GetValue() 198 for (size_t i = 1; i < keys.size(); ++i) { in GetValue() 199 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue() 200 … BATTERY_HILOGW(FEATURE_CHARGING, "The key is not configured. key=%{public}s", keys[i].c_str()); in GetValue() [all …]
|
/base/powermgr/battery_manager/services/native/src/ |
D | battery_config.cpp | 162 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey() 164 SplitStr(TrimStr(key), ".", keys); in SplitKey() 165 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey() 170 std::vector<std::string> keys; in GetValue() local 171 if (!SplitKey(key, keys)) { in GetValue() 176 Json::Value value = FindConf(keys[MAP_KEY_INDEX]); in GetValue() 178 BATTERY_HILOGW(COMP_SVC, "Value is empty. key=%{public}s", keys[MAP_KEY_INDEX].c_str()); in GetValue() 182 for (size_t i = 1; i < keys.size(); ++i) { in GetValue() 183 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue() 184 BATTERY_HILOGW(COMP_SVC, "The key is not configured. key=%{public}s", keys[i].c_str()); in GetValue() [all …]
|
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
D | map_string_serializer.cpp | 71 std::vector<std::string> keys; in GetPolicy() local 73 if (!data.ReadStringVector(&keys)) { in GetPolicy() 81 if (keys.size() != values.size()) { in GetPolicy() 84 for (uint64_t i = 0; i < keys.size(); ++i) { in GetPolicy() 85 result.insert(std::make_pair(keys.at(i), values.at(i))); in GetPolicy() 92 std::vector<std::string> keys; in WritePolicy() local 95 keys.push_back(item.first); in WritePolicy() 98 return reply.WriteStringVector(keys) && reply.WriteStringVector(values); in WritePolicy()
|
/base/account/os_account/test/fuzztest/iamaccount_stub/getpropertystub_fuzzer/ |
D | getpropertystub_fuzzer.cpp | 47 std::vector<Attributes::AttributeKey> keys = {static_cast<Attributes::AttributeKey>(size)}; in GetPropertyStubFuzzTest() local 50 .keys = keys, in GetPropertyStubFuzzTest() 68 std::transform(request.keys.begin(), request.keys.end(), std::back_inserter(attrKeys), in GetPropertyStubFuzzTest()
|
/base/account/os_account/test/fuzztest/iamaccount/getproperty_fuzzer/ |
D | getproperty_fuzzer.cpp | 40 std::vector<Attributes::AttributeKey> keys = {static_cast<Attributes::AttributeKey>(size)}; in GetPropertyFuzzTest() local 43 .keys = keys, in GetPropertyFuzzTest()
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
D | getallactivenotifications_fuzzer.cpp | 40 std::vector<std::string> keys; in DoSomethingInterestingWithMyAPI() local 41 keys.emplace_back(stringData); in DoSomethingInterestingWithMyAPI() 42 … return Notification::NotificationHelper::GetAllActiveNotifications(keys, notifications) == ERR_OK; in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_sorting_map.cpp | 112 std::string keys = ""; in Dump() local 114 keys += key; in Dump() 115 keys += ", "; in Dump() 118 "sortedkey = [" + keys + "]" in Dump()
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
D | napi_hiappevent_config.cpp | 40 std::vector<std::string> keys; in Configure() local 41 NapiUtil::GetPropertyNames(env, configObj, keys); in Configure() 42 for (auto key : keys) { in Configure()
|
/base/startup/appspawn/etc/sandbox/ |
D | appdata_sandbox_fixer.py | 58 def _is_same_data(data1, data2, keys): argument 59 for key in keys: 76 def _merge_scope_array(origin, new, keys): argument 80 if _is_same_data(data1, data2, keys): 93 for name, keys in field_infos.items(): 96 _merge_scope_array(data2[field], item, keys) 129 for name, keys in field_infos.items(): 132 _merge_scope_array(origin[0].get(name), item, keys)
|
/base/security/huks/ |
D | README.md | 9 …agement and cryptographic operations on keys. HUKS also provides APIs for applications to import o… 16 …keys. For devices running a standard system, this module of the commercial version must run in a s…
|
/base/security/access_token/services/common/database/src/ |
D | generic_values.cpp | 79 std::vector<std::string> keys; in GetAllKeys() local 81 keys.emplace_back(it->first); in GetAllKeys() 83 return keys; in GetAllKeys()
|
/base/inputmethod/imf/test/unittest/cpp_test/common/src/ |
D | key_event_util.cpp | 42 bool KeyEventUtil::SimulateKeyEvents(const std::vector<int32_t> &keys) in SimulateKeyEvents() argument 44 if (keys.empty()) { in SimulateKeyEvents() 50 for (auto &key : keys) { in SimulateKeyEvents()
|
/base/useriam/user_auth_framework/interfaces/inner_api/ |
D | user_auth_client_defines.h | 40 std::vector<Attributes::AttributeKey> keys {};
|
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
D | user_auth_stub.cpp | 112 std::vector<uint32_t> keys; in GetPropertyStub() local 122 if (!data.ReadUInt32Vector(&keys)) { in GetPropertyStub() 127 if (keys.empty()) { in GetPropertyStub() 131 if (keys.size() > MAX_ATTR_COUNT) { in GetPropertyStub() 135 attrKeys.resize(keys.size()); in GetPropertyStub() 136 std::transform(keys.begin(), keys.end(), attrKeys.begin(), [](uint32_t key) { in GetPropertyStub()
|
D | user_auth_proxy.cpp | 73 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal… in GetProperty() argument 83 if (keys.empty()) { in GetProperty() 87 if (keys.size() > MAX_ATTR_COUNT) { in GetProperty() 91 attrKeys.resize(keys.size()); in GetProperty() 92 std::transform(keys.begin(), keys.end(), attrKeys.begin(), [](Attributes::AttributeKey key) { in GetProperty()
|
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
D | log_utils.h | 52 std::vector<K> keys; in GetAllKeys() local 54 keys.push_back(it.first); in GetAllKeys() 56 return keys; in GetAllKeys()
|
/base/inputmethod/imf/test/unittest/cpp_test/common/include/ |
D | key_event_util.h | 26 static bool SimulateKeyEvents(const std::vector<int32_t> &keys);
|
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/ |
D | user_auth_service_fuzzer.cpp | 138 std::vector<Attributes::AttributeKey> keys; in FuzzGetProperty() local 140 keys.reserve(keysLen); in FuzzGetProperty() 142 keys.emplace_back(static_cast<Attributes::AttributeKey>(parcel.ReadInt32())); in FuzzGetProperty() 149 g_userAuthService.GetProperty(userId, authType, keys, callback); in FuzzGetProperty()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/ |
D | generate_dat.py | 158 meta_num += len(val.keys()) 159 locale_num = len(all_metas.keys()) 173 locale_meta_num = len(val.keys())
|
/base/startup/init/services/modules/seccomp/scripts/tools/ |
D | audit_log_analysis.py | 82 for arch in dict_src.keys(): 85 for arch in dict_src.keys():
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
D | get_ram_info.cpp | 29 uint64_t GetRamInfo::GetGroupMapValue(const GroupMap &infos, const vector<string> keys) const in GetGroupMapValue() 34 for (const auto &str : keys) { in GetGroupMapValue()
|
/base/update/packaging_tools/ |
D | vendor_script.py | 88 if len(self.__cmd_in_so_dict.keys()) != 0:
|
/base/powermgr/battery_manager/services/native/include/ |
D | battery_config.h | 48 bool SplitKey(const std::string& key, std::vector<std::string>& keys) const;
|
/base/useriam/face_auth/test/fuzztest/faceauthexecutorhdi_fuzzer/ |
D | face_auth_executor_hdi_fuzzer.cpp | 261 …d FillFuzzAttributeKeyVector(Parcel &parcel, std::vector<UserAuth::Attributes::AttributeKey> &keys) in FillFuzzAttributeKeyVector() argument 266 keys.push_back(static_cast<UserAuth::Attributes::AttributeKey>(val)); in FillFuzzAttributeKeyVector() 371 std::vector<UserAuth::Attributes::AttributeKey> keys; in FuzzGetProperty() local 372 FillFuzzAttributeKeyVector(parcel, keys); in FuzzGetProperty() 374 g_hdi->GetProperty(templateIdList, keys, property); in FuzzGetProperty()
|