Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 64) sorted by relevance

123

/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dglobal_utils.c45 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/services/native/src/
Dbattery_config.cpp139 bool BatteryConfig::SplitKey(const std::string& key, std::vector<std::string>& keys) const in SplitKey()
141 SplitStr(TrimStr(key), ".", keys); in SplitKey()
142 return (keys.size() < MIN_DEPTH || keys.size() > MAX_DEPTH) ? false : true; in SplitKey()
147 std::vector<std::string> keys; in GetValue() local
148 if (!SplitKey(key, keys)) { in GetValue()
153 Json::Value value = FindConf(keys[MAP_KEY_INDEX]); in GetValue()
155 BATTERY_HILOGW(COMP_SVC, "Value is empty. key=%{public}s", keys[MAP_KEY_INDEX].c_str()); in GetValue()
159 for (size_t i = 1; i < keys.size(); ++i) { in GetValue()
160 if (!value.isObject() || !value.isMember(keys[i])) { in GetValue()
161 BATTERY_HILOGW(COMP_SVC, "The key is not configured. key=%{public}s", keys[i].c_str()); in GetValue()
[all …]
/base/customization/enterprise_device_management/services/edm/src/utils/
Dmap_string_serializer.cpp79 std::vector<std::string> keys; in GetPolicy() local
82 keys.push_back(Str16ToStr8(key)); in GetPolicy()
87 for (uint64_t i = 0; i < keys.size(); ++i) { in GetPolicy()
88 result.insert(std::make_pair(keys.at(i), values.at(i))); in GetPolicy()
95 std::vector<std::u16string> keys; in WritePolicy() local
98 keys.push_back(Str8ToStr16(item.first)); in WritePolicy()
101 return reply.WriteString16Vector(keys) && reply.WriteString16Vector(values); in WritePolicy()
/base/account/os_account/test/fuzztest/iamaccount/getproperty_fuzzer/
Dgetproperty_fuzzer.cpp40 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/
Dgetallactivenotifications_fuzzer.cpp40 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/
Dnotification_sorting_map.cpp110 std::string keys = ""; in Dump() local
112 keys += key; in Dump()
113 keys += ", "; in Dump()
116 "sortedkey = [" + keys + "]" in Dump()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_hiappevent_config.cpp40 std::vector<std::string> keys; in Configure() local
41 NapiUtil::GetPropertyNames(env, configObj, keys); in Configure()
42 for (auto key : keys) { in Configure()
Dnapi_hiappevent_builder.cpp180 std::vector<std::string> keys; in AddParams2EventPack() local
181 NapiUtil::GetPropertyNames(env, paramObj, keys); in AddParams2EventPack()
182 for (auto key : keys) { in AddParams2EventPack()
/base/security/huks/
DREADME.md9 …agement and cryptographic operations on keys. HUKS also provides APIs for applications to import o…
16keys. 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/
Dgeneric_values.cpp79 std::vector<std::string> keys; in GetAllKeys() local
81 keys.emplace_back(it->first); in GetAllKeys()
83 return keys; in GetAllKeys()
/base/useriam/user_auth_framework/interfaces/inner_api/
Duser_auth_client_defines.h27 std::vector<Attributes::AttributeKey> keys {};
/base/useriam/user_auth_framework/test/fuzztest/services/userauthservice_fuzzer/
Duser_auth_service_fuzzer.cpp140 std::vector<Attributes::AttributeKey> keys; in FuzzGetProperty() local
142 keys.reserve(keysLen); in FuzzGetProperty()
144 keys.emplace_back(static_cast<Attributes::AttributeKey>(parcel.ReadInt32())); in FuzzGetProperty()
151 g_userAuthService.GetProperty(userId, authType, keys, callback); in FuzzGetProperty()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/include/
Dlog_utils.h52 std::vector<K> keys; in GetAllKeys() local
54 keys.push_back(it.first); in GetAllKeys()
56 return keys; in GetAllKeys()
/base/useriam/user_auth_framework/frameworks/native/ipc/src/
Duser_auth_stub.cpp100 std::vector<uint32_t> keys; in GetPropertyStub() local
110 if (!data.ReadUInt32Vector(&keys)) { in GetPropertyStub()
115 attrKeys.resize(keys.size()); in GetPropertyStub()
116 std::transform(keys.begin(), keys.end(), attrKeys.begin(), [](uint32_t key) { in GetPropertyStub()
Duser_auth_proxy.cpp71 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal… in GetProperty() argument
81 attrKeys.resize(keys.size()); in GetProperty()
82 std::transform(keys.begin(), keys.end(), attrKeys.begin(), [](Attributes::AttributeKey key) { in GetProperty()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/python/ohos/global/i18n/
Dgenerate_dat.py158 meta_num += len(val.keys())
159 locale_num = len(all_metas.keys())
173 locale_meta_num = len(val.keys())
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/
Dget_ram_info.cpp29 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/
Dvendor_script.py88 if len(self.__cmd_in_so_dict.keys()) != 0:
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/model/
DuserAuthModel.ts47 if ((result == 0) && extraInfo.token && (Object.keys(extraInfo.token).length > 0) ) {
/base/powermgr/battery_manager/services/native/include/
Dbattery_config.h48 bool SplitKey(const std::string& key, std::vector<std::string>& keys) const;
/base/useriam/user_auth_framework/test/unittest/services/mocks/
Dmock_user_auth_service.h30 void(int32_t userId, AuthType authType, const std::vector<Attributes::AttributeKey> &keys,
/base/account/os_account/services/accountmgr/src/account_iam/
Daccount_iam_mgr_stub.cpp406 std::vector<uint32_t> keys; in ProcGetProperty() local
407 if (!data.ReadUInt32Vector(&keys)) { in ProcGetProperty()
418 for (auto &key : keys) { in ProcGetProperty()
419 request.keys.push_back(static_cast<Attributes::AttributeKey>(key)); in ProcGetProperty()
/base/useriam/user_auth_framework/frameworks/native/ipc/common_defines/
Duser_auth_interface.h54 …const std::vector<Attributes::AttributeKey> &keys, sptr<GetExecutorPropertyCallbackInterface> &cal…
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/
Dget_ram_info.h45 uint64_t GetGroupMapValue(const GroupMap &infos, const std::vector<std::string> keys) const;
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_preferences_database.cpp674 std::vector<std::string> keys; in RemoveBundleFromDisturbeDB() local
676 keys.push_back(iter.first); in RemoveBundleFromDisturbeDB()
680 keys.push_back(bundleDBKey); in RemoveBundleFromDisturbeDB()
681 result = rdbDataManager_->DeleteBathchData(keys); in RemoveBundleFromDisturbeDB()
711 std::vector<std::string> keys; in RemoveSlotFromDisturbeDB() local
713 keys.push_back(iter.first); in RemoveSlotFromDisturbeDB()
716 result = rdbDataManager_->DeleteBathchData(keys); in RemoveSlotFromDisturbeDB()
744 std::vector<std::string> keys; in RemoveAllSlotsFromDisturbeDB() local
746 keys.push_back(iter.first); in RemoveAllSlotsFromDisturbeDB()
749 result = rdbDataManager_->DeleteBathchData(keys); in RemoveAllSlotsFromDisturbeDB()
[all …]

123