/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A 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 configNum);
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, int32_t count);
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[ in FindOffsetByLanguage() 176 FindOffsetByLangWithScriptOrRegion(char **resConfig, const Key *keys, uint32_t configNum) FindOffsetByLangWithScriptOrRegion() argument 211 FindOffsetByAllParam(char **resConfig, const Key *keys, uint32_t configNum) FindOffsetByAllParam() argument 258 GetIdHeaderOffsetByCount(char **resConfig, const Key *keys, uint32_t configNum, int32_t count) GetIdHeaderOffsetByCount() argument 280 FreeKeyParams(Key *keys, int32_t count) FreeKeyParams() argument 294 GetKeyParams(int32_t file, Key *keys, uint32_t resConfigNum) GetKeyParams() argument 377 Key *keys = (Key *)malloc(size); GetOffsetByLocale() local 478 GetIdHeaderOffsetByLocale(const char *locale, const Key *keys, uint32_t configNum) GetIdHeaderOffsetByLocale() argument [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | map_string_serializer.cpp | 71 std::vector<std::string> keys; in GetPolicy() local 73 if (!data.ReadStringVector(&keys)) { in GetPolicy() 74 EDMLOGE("MapStringSerializer::read map keys fail."); 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/powermgr/battery_manager/charger/src/ |
H A D | battery_config.cpp | 184 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey() 186 SplitStr(TrimStr(key), ".", keys); in SplitKey() local 187 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey() 192 std::vector<std::string> keys; in GetValue() local 193 if (!SplitKey(key, keys)) { in GetValue() 198 Json::Value value = FindConf(keys[MAP_KEY_INDEX]); in GetValue() 204 for (size_t i = 1; i < keys.size(); ++i) { in GetValue() 205 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue() 206 BATTERY_HILOGW(FEATURE_CHARGING, "The key is not configured. key=%{public}s", keys[ in GetValue() [all...] |
/base/account/os_account/test/fuzztest/iamaccount_stub/getpropertystub_fuzzer/ |
H A D | getpropertystub_fuzzer.cpp | 49 std::vector<Attributes::AttributeKey> keys = { in GetPropertyStubFuzzTest() local 54 .keys = keys, in GetPropertyStubFuzzTest() 70 std::transform(request.keys.begin(), request.keys.end(), std::back_inserter(attrKeys), in GetPropertyStubFuzzTest()
|
/base/account/os_account/test/fuzztest/iamaccount/getproperty_fuzzer/ |
H A D | getproperty_fuzzer.cpp | 42 std::vector<Attributes::AttributeKey> keys = { in GetPropertyFuzzTest() local 46 .keys = keys, in GetPropertyFuzzTest()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A 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/powermgr/battery_manager/services/native/src/ |
H A D | battery_config.cpp | 223 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey() 225 SplitStr(TrimStr(key), ".", keys); in SplitKey() local 226 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey() 231 std::vector<std::string> keys; in GetValue() local 232 if (!SplitKey(key, keys)) { in GetValue() 237 Json::Value value = FindConf(keys[MAP_KEY_INDEX]); in GetValue() 243 for (size_t i = 1; i < keys.size(); ++i) { in GetValue() 244 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue() 245 BATTERY_HILOGW(COMP_SVC, "The key is not configured. key=%{public}s", keys[ in GetValue() [all...] |
/base/startup/appspawn/etc/sandbox/ |
H A D | appdata_sandbox_fixer.py | 61 def _is_same_data(data1, data2, keys): 62 for key in keys: 81 def _merge_scope_array(origin, new, keys): 85 if _is_same_data(data1, data2, keys): 99 for name, keys in field_infos.items(): 102 _merge_scope_array(data2[field], item, keys) 143 for name, keys in field_infos.items(): 146 _merge_scope_array(origin[0].get(name), item, keys)
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A 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()
|
H A D | napi_param_builder.cpp | 71 std::vector<std::string> keys; in AddParams2EventPack() local 72 NapiUtil::GetPropertyNames(env, paramObj, keys); in AddParams2EventPack() 73 for (auto key : keys) { in AddParams2EventPack()
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
H A 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/services/ans/test/unittest/ |
H A D | advanced_notification_utils_test.cpp | 159 std::vector<std::string> keys = {"key1"}; in HWTEST_F() local 161 ErrCode ret = advancedNotificationService_->FillRequestByKeys(oldRequest, keys, newRequest); in HWTEST_F() 195 std::vector<std::string> keys = {"key1"}; in HWTEST_F() local 199 ASSERT_EQ(ans.GetActiveNotificationByFilter(bundleOption, notificationId, label, keys, newRequest), in HWTEST_F() 212 std::vector<std::string> keys = {"key1"}; in HWTEST_F() local 217 bundle, notificationId, label, keys, newRequest), in HWTEST_F() 255 std::vector<std::string> keys; in HWTEST_F() local 258 notificationId, label, keys, newRequest), (int)ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 262 notificationId, label, keys, newRequest), (int)ERR_OK); in HWTEST_F() 264 keys in HWTEST_F() 315 auto keys = advancedNotificationService_->GetLocalNotificationKeys(bundle2); HWTEST_F() local [all...] |
/base/inputmethod/imf/test/unittest/cpp_test/common/src/ |
H A D | key_event_util.cpp | 42 bool KeyEventUtil::SimulateKeyEvents(const std::vector<int32_t> &keys) in SimulateKeyEvents() argument 44 if (keys.empty()) { in SimulateKeyEvents() 45 IMSA_HILOGE("keys is empty"); in SimulateKeyEvents() 50 for (auto &key : keys) { in SimulateKeyEvents()
|
/base/accesscontrol/sandbox_manager/services/common/database/src/ |
H A 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/security/access_token/services/common/database/src/ |
H A 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/include/ |
H A 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/ |
H A D | user_auth_service_fuzzer.cpp | 182 std::vector<Attributes::AttributeKey> keys; in FuzzGetProperty() local 184 keys.reserve(keysLen); in FuzzGetProperty() 186 keys.emplace_back(static_cast<Attributes::AttributeKey>(parcel.ReadInt32())); in FuzzGetProperty() 193 g_userAuthService.GetProperty(userId, authType, keys, callback); in FuzzGetProperty() 484 std::vector<Attributes::AttributeKey> keys = {Attributes::ATTR_NEXT_FAIL_LOCKOUT_DURATION}; in FuzzFillGetPropertyValue() local 486 g_userAuthService.FillGetPropertyValue(authType, keys, *values); in FuzzFillGetPropertyValue() 488 g_userAuthService.FillGetPropertyValue(authType, keys, *values); in FuzzFillGetPropertyValue() 496 std::vector<Attributes::AttributeKey> keys = {Attributes::ATTR_NEXT_FAIL_LOCKOUT_DURATION}; in FuzzFillGetPropertyKeys() local 498 g_userAuthService.FillGetPropertyKeys(authType, keys, uint32Keys); in FuzzFillGetPropertyKeys() 500 g_userAuthService.FillGetPropertyKeys(authType, keys, uint32Key in FuzzFillGetPropertyKeys() [all...] |
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/ |
H A 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/useriam/pin_auth/test/unittest/src/ |
H A D | pin_auth_all_in_one_hdi_unit_test.cpp | 437 std::vector<UserAuth::Attributes::AttributeKey> keys; in HWTEST_F() local 439 auto ret = allInOneHdi.GetProperty(templateIdList, keys, property); in HWTEST_F() 449 std::vector<UserAuth::Attributes::AttributeKey> keys = { UserAuth::Attributes::ATTR_SIGNATURE }; in HWTEST_F() local 451 auto ret = allInOneHdi.GetProperty(templateIdList, keys, property); in HWTEST_F() 467 std::vector<UserAuth::Attributes::AttributeKey> keys; in HWTEST_F() local 469 keys.push_back(UserAuth::Attributes::ATTR_PIN_SUB_TYPE); in HWTEST_F() 472 auto ret = allInOneHdi.GetProperty(templateIdList, keys, property); in HWTEST_F() 483 std::vector<UserAuth::Attributes::AttributeKey> keys = { UserAuth::Attributes::ATTR_NEXT_FAIL_LOCKOUT_DURATION }; in HWTEST_F() local 485 auto ret = allInOneHdi.GetProperty(templateIdList, keys, property); in HWTEST_F()
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/ |
H A 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/useriam/user_auth_framework/services/ipc/inc/ |
H A D | user_auth_service.h | 46 const std::vector<Attributes::AttributeKey> &keys, 105 void FillGetPropertyKeys(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, 107 void FillGetPropertyValue(AuthType authType, const std::vector<Attributes::AttributeKey> &keys, Attributes &values);
|
/base/useriam/user_auth_framework/frameworks/native/ipc/src/ |
H A D | user_auth_stub.cpp | 142 std::vector<uint32_t> keys; in GetPropertyStub() local 152 if (!data.ReadUInt32Vector(&keys)) { in GetPropertyStub() 153 IAM_LOGE("failed to read attribute keys"); in GetPropertyStub() 157 if (keys.empty()) { in GetPropertyStub() 161 if (keys.size() > MAX_ATTR_COUNT) { in GetPropertyStub() 165 attrKeys.resize(keys.size()); in GetPropertyStub() 166 std::transform(keys.begin(), keys.end(), attrKeys.begin(), [](uint32_t key) { in GetPropertyStub()
|
/base/powermgr/battery_manager/charger/include/ |
H A D | battery_config.h | 50 bool SplitKey(const std::string& key, std::vector<std::string>& keys) const;
|
/base/update/packaging_tools/ |
H A D | vendor_script.py | 87 if len(self.__cmd_in_so_dict.keys()) != 0:
|
/base/print/print_fwk/services/scan_service/src/ |
H A D | scan_mdns_service.cpp | 129 SCAN_HILOGD("GetScannerList startHandleServiceResolve keys [%{public}s]", textIt->first.c_str()); in HandleResolveResult() 149 std::vector<std::string> keys = {"UUID", "adminur", "button", "feeder", "mdl", "mfg", "mote", "txtvers", "ty"}; in ToMDnsScaner() local 150 for (auto key : keys) { in ToMDnsScaner()
|