Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 96) sorted by relevance

1234

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_config_impl_test.cpp71 ResConfigImpl *current = CreateResConfigImpl("fr", nullptr, "CA"); variable
72 EXPECT_TRUE(current->Match(other));
73 delete current;
85 ResConfigImpl *current = CreateResConfigImpl("fr", nullptr, "CA"); variable
86 EXPECT_FALSE(current->Match(other));
87 delete current;
99 ResConfigImpl *current = CreateResConfigImpl("fil", nullptr, "PH"); variable
100 EXPECT_TRUE(current->Match(other));
101 delete current;
113 ResConfigImpl *current = CreateResConfigImpl("qaa", nullptr, "CA"); variable
[all …]
Dres_config_test.cpp68 ResConfigImpl *current = new ResConfigImpl; variable
69 current->SetLocaleInfo("en", nullptr, "GB");
72 EXPECT_TRUE(rc->Match(current));
75 delete current;
Dlocale_info_test.cpp72 std::string current = "en-US"; variable
73 FindAndSort(current, request, outValue);
95 std::string current = "zh-CN"; variable
96 FindAndSort(current, request, outValue);
115 std::string current = "en-CN"; variable
116 FindAndSort(current, request, outValue);
136 std::string current = "en-Qaag"; variable
137 FindAndSort(current, request, outValue);
158 std::string current = "en-AI"; variable
159 FindAndSort(current, request, outValue);
[all …]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_config_impl_test.cpp71 ResConfigImpl *current = CreateResConfigImpl("fr", nullptr, "CA"); variable
72 EXPECT_TRUE(current->Match(other));
73 delete current;
85 ResConfigImpl *current = CreateResConfigImpl("fr", nullptr, "CA"); variable
86 EXPECT_FALSE(current->Match(other));
87 delete current;
99 ResConfigImpl *current = CreateResConfigImpl("fil", nullptr, "PH"); variable
100 EXPECT_TRUE(current->Match(other));
101 delete current;
113 ResConfigImpl *current = CreateResConfigImpl("qaa", nullptr, "CA"); variable
[all …]
Dres_config_test.cpp68 ResConfigImpl *current = new ResConfigImpl; variable
69 current->SetLocaleInfo("en", nullptr, "GB");
72 EXPECT_TRUE(rc->Match(current));
75 delete current;
Dlocale_info_test.cpp71 std::string current = "en-US"; variable
72 FindAndSort(current, request, outValue);
94 std::string current = "zh-CN"; variable
95 FindAndSort(current, request, outValue);
114 std::string current = "en-CN"; variable
115 FindAndSort(current, request, outValue);
135 std::string current = "en-Qaag"; variable
136 FindAndSort(current, request, outValue);
157 std::string current = "en-AI"; variable
158 FindAndSort(current, request, outValue);
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dlocale_matcher.cpp238 int8_t CompareRegionWhenQaag(const ResLocale *current, in CompareRegionWhenQaag() argument
244 if ((current != nullptr) && (Utils::EncodeLocale(current->GetLanguage(), nullptr, in CompareRegionWhenQaag()
245 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag()
266 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage() argument
269 Utils::EncodeLanguageByResLocale(current); in CompareLanguage()
296 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() argument
300 if ((current != nullptr) && (current->GetScript() == nullptr)) { in CompareScript()
301 currentEncodedScript = FindDefaultScriptEncode(current->GetLanguage(), in CompareScript()
302 current->GetRegion()); in CompareScript()
304 currentEncodedScript = Utils::EncodeScriptByResLocale(current); in CompareScript()
[all …]
/base/startup/init/services/param/base/
Dparam_include.h39 ParamTrieNode *current, const char *key, uint32_t keyLen, uint32_t *matchLabel) in FindSubTrie() argument
41 ParamTrieNode *subTrie = current; in FindSubTrie()
74 ParamTrieNode *current = GetTrieRoot(workSpace); in FindTrieNode_() local
75 PARAM_CHECK(current != NULL, return NULL, "Invalid current param %s", key); in FindTrieNode_()
76 *matchLabel = current->labelIndex; in FindTrieNode_()
85 if (current->child != 0) { in FindTrieNode_()
86 ParamTrieNode *next = GetTrieNode(workSpace, current->child); in FindTrieNode_()
87 current = FindSubTrie(workSpace, next, remainingKey, subKeyLen, matchLabel); in FindTrieNode_()
89 current = FindSubTrie(workSpace, current, remainingKey, subKeyLen, matchLabel); in FindTrieNode_()
91 if (current == NULL) { in FindTrieNode_()
[all …]
Dparam_trie.c136 static ParamTrieNode *AddToSubTrie(WorkSpace *workSpace, ParamTrieNode *current, const char *key, u… in AddToSubTrie() argument
138 if (current == NULL) { in AddToSubTrie()
142 int ret = CompareParamTrieNode(current, key, keyLen); in AddToSubTrie()
144 return current; in AddToSubTrie()
147 subTrie = GetTrieNode(workSpace, current->left); in AddToSubTrie()
152 SaveIndex(&current->left, offset); in AddToSubTrie()
153 return GetTrieNode(workSpace, current->left); in AddToSubTrie()
156 subTrie = GetTrieNode(workSpace, current->right); in AddToSubTrie()
161 SaveIndex(&current->right, offset); in AddToSubTrie()
162 return GetTrieNode(workSpace, current->right); in AddToSubTrie()
[all …]
/base/security/device_auth/services/frameworks/src/plugin_adapter/
Dext_part_proxy.c30 ExtPluginNode *current = pluginList; in ParsePlugins() local
31 while (current != NULL) { in ParsePlugins()
32 if (current->plugin == NULL) { in ParsePlugins()
33 current = current->next; in ParsePlugins()
36 switch (current->plugin->pluginType) { in ParsePlugins()
38 SetAccountLifecyclePlugin(NULL, (AccountLifecyleExtPlug *)(current->plugin)); in ParsePlugins()
41 SetAccountAuthPlugin(NULL, (AccountAuthExtPlug *)(current->plugin)); in ParsePlugins()
44 LOGW("Invalid plugin type %d", current->plugin->pluginType); in ParsePlugins()
47 current = current->next; in ParsePlugins()
/base/global/resource_management/frameworks/resmgr/src/
Dlocale_matcher.cpp238 int8_t CompareRegionWhenQaag(const ResLocale *current, in CompareRegionWhenQaag() argument
244 if ((current != nullptr) && (Utils::EncodeLocale(current->GetLanguage(), nullptr, in CompareRegionWhenQaag()
245 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag()
266 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage() argument
269 Utils::EncodeLanguageByResLocale(current); in CompareLanguage()
295 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() argument
299 if ((current != nullptr) && (current->GetScript() == nullptr)) { in CompareScript()
300 currentEncodedScript = FindDefaultScriptEncode(current->GetLanguage(), in CompareScript()
301 current->GetRegion()); in CompareScript()
303 currentEncodedScript = Utils::EncodeScriptByResLocale(current); in CompareScript()
[all …]
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Djs_callback_manager.cpp35 …lback(CallbackContext* context, std::tuple<CallbackContext*, CALLBACK_FUNC, RELEASE_FUNC>& current) in RunCallback() argument
43 context->callback = std::get<CALLBACK_FUNC_INDEX>(current); in RunCallback()
44 context->release = std::get<RELEASE_FUNC_INDEX>(current); in RunCallback()
121 std::tuple<CallbackContext*, CALLBACK_FUNC, RELEASE_FUNC> current; in ImmediateRun() local
135 current = jsCallbacks.front(); in ImmediateRun()
136 context = std::get<CONTEXT_INDEX>(current); in ImmediateRun()
145 RunCallback(context, current); in ImmediateRun()
/base/msdp/device_status/rust/ipc/server/src/
Dfusion_ipc_delegator.rs97 let context = CallingContext::current(); in enable()
108 let context = CallingContext::current(); in disable()
119 let context = CallingContext::current(); in start()
130 let context = CallingContext::current(); in stop()
141 let context = CallingContext::current(); in add_watch()
152 let context = CallingContext::current(); in remove_watch()
163 let context = CallingContext::current(); in set_param()
174 let context = CallingContext::current(); in get_param()
185 let context = CallingContext::current(); in control()
/base/powermgr/thermal_manager/application/protector/src/action/
Dcurrent_action.cpp51 int32_t CurrentAction::BatteryCurrentActionRequest(uint32_t current) in BatteryCurrentActionRequest() argument
53 THERMAL_HILOGD(FEATURE_PROTECTOR, "%{public}d", current); in BatteryCurrentActionRequest()
58 std::string currentStr = std::to_string(current); in BatteryCurrentActionRequest()
/base/notification/eventhandler/test/fuzztest/nativeimplementeventhandler_fuzzer/
Dnativeimplementeventhandler_fuzzer.cpp28 bool current = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
29 if (current == 0) { in DoSomethingInterestingWithMyAPI()
31 EventRunnerNativeImplement eventRunnerNativeImplement(current); in DoSomethingInterestingWithMyAPI()
/base/notification/eventhandler/test/fuzztest/eventhandlerannex_fuzzer/
Deventhandlerannex_fuzzer.cpp28 bool current = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
29 if (current == 1) { in DoSomethingInterestingWithMyAPI()
30 EventRunnerNativeImplement eventRunnerNativeImplement(current); in DoSomethingInterestingWithMyAPI()
/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_entity.cpp57 auto current = static_cast<uint64_t>( in CheckTouchInfo() local
59 if (touchInfo.timestamp < current - MAX_TOUCH_INTERVAL || touchInfo.timestamp > current) { in CheckTouchInfo()
61 … static_cast<unsigned long long>(touchInfo.timestamp), static_cast<unsigned long long>(current)); in CheckTouchInfo()
/base/powermgr/thermal_manager/
DREADME_zh.md72 <item name="current"/>
80 <current charge="1">1500</current>
86 <current charge="1">1200</current>
92 <current charge="1">1000</current>
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
34 static bool Match(const ResLocale *current, const ResLocale *other);
74 static int8_t IsMoreSpecificThan(const ResLocale *current, const ResLocale *target);
/base/global/resource_management/frameworks/resmgr/include/
Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
34 static bool Match(const ResLocale *current, const ResLocale *other);
74 static int8_t IsMoreSpecificThan(const ResLocale *current, const ResLocale *target);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_user_data_decode.cpp112 uint8_t current = buffer.GetIndex(); in DecodeGsmHeadPduPartData() local
113 for (int i = 0; buffer.GetIndex() < current + udhl && i < MAX_UD_HEADER_NUM; i++) { in DecodeGsmHeadPduPartData()
175 uint16_t current = buffer.GetIndex(); in Decode8bitPdu() local
202 return Decode8bitPduPartData(buffer, bHeaderInd, userData, pTPUD, current, udl); in Decode8bitPdu()
206 struct SmsTpud *pTPUD, uint16_t current, uint8_t udl) in Decode8bitPduPartData() argument
222 current = buffer.GetIndex(); in Decode8bitPduPartData()
223 for (uint8_t i = 0; (buffer.GetIndex() - current) < udhl && i < MAX_UD_HEADER_NUM; i++) { in Decode8bitPduPartData()
264 uint16_t current = buffer.GetIndex(); in DecodeUcs2Pdu() local
296 return DecodeUcs2PduPartData(buffer, bHeaderInd, userData, current, udl); in DecodeUcs2Pdu()
300 …SmsReadBuffer &buffer, bool bHeaderInd, struct SmsUDPackage *userData, uint16_t current, uint8_t u… in DecodeUcs2PduPartData() argument
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Ddate_time_format_impl.cpp164 char current = pattern.at(i); in Format() local
165 if ((current != pre) && (count != 0)) { in Format()
169 if (current == QUOTE) { in Format()
176 …} else if (!inQuote && (((current >= 'a') && (current <= 'z')) || ((current >= 'A') && (current <=… in Format()
177 pre = current; in Format()
180 appendTo.append(1, current); in Format()
535 char current = pattern.at(i); in FormatElapsedDuration() local
536 if ((current != pre) && (count != 0)) { in FormatElapsedDuration()
540 if (current == QUOTE) { in FormatElapsedDuration()
547 …} else if (!inQuote && (((current >= 'a') && (current <= 'z')) || ((current >= 'A') && (current <=… in FormatElapsedDuration()
[all …]
Dstr_util.cpp103 int32_t current = 0; in Split() local
108 while (current < size) { in Split()
115 dst[current++] = std::string(src, begin, end - begin); in Split()
119 if (current < size && end > begin) { in Split()
120 dst[current++] = std::string(src, begin, end - begin); in Split()
/base/hiviewdfx/hiview/base/event_store/dao/
Dsys_event_query_wrapper.cpp28 time_t current; in GetCurTime() local
29 (void)time(&current); in GetCurTime()
30 return current; in GetCurTime()
189 time_t current; in IsQueryFrequenceValid() local
190 (void)time(&current); in IsQueryFrequenceValid()
194 lastQueries_[queryProcessId] = current; in IsQueryFrequenceValid()
198 if (abs(current - processIter->second) > queryFrequent) { in IsQueryFrequenceValid()
199 lastQueries_[queryProcessId] = current; in IsQueryFrequenceValid()
/base/hiviewdfx/faultloggerd/common/dfxutil/
Ddfx_util.cpp90 std::string GetCurrentTimeStr(uint64_t current) in GetCurrentTimeStr() argument
95 if (current > static_cast<uint64_t>(now)) { in GetCurrentTimeStr()
96 millsecond = current % ratio; in GetCurrentTimeStr()
97 now = static_cast<time_t>(current / ratio); in GetCurrentTimeStr()

1234