Home
last modified time | relevance | path

Searched refs:current (Results 1 – 25 of 80) 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/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/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_trie.c154 static ParamTrieNode *AddToSubTrie(WorkSpace *workSpace, ParamTrieNode *current, const char *key, u… in AddToSubTrie() argument
156 if (current == NULL || workSpace == NULL || key == NULL) { in AddToSubTrie()
160 int ret = workSpace->compareTrieNode(current, key, keyLen); in AddToSubTrie()
162 return current; in AddToSubTrie()
165 subTrie = GetTrieNode(workSpace, current->left); in AddToSubTrie()
170 SaveIndex(&current->left, offset); in AddToSubTrie()
171 return GetTrieNode(workSpace, current->left); in AddToSubTrie()
174 subTrie = GetTrieNode(workSpace, current->right); in AddToSubTrie()
179 SaveIndex(&current->right, offset); in AddToSubTrie()
180 return GetTrieNode(workSpace, current->right); in AddToSubTrie()
[all …]
/base/theme/wallpaper_mgr/utils/dfx/hisysevent_adapter/
Dstatistic_reporter.cpp67 time_t current = time(nullptr); in StartTimerThread() local
68 if (current == -1) { in StartTimerThread()
74 tm *result = localtime_r(&current, &localTime); in StartTimerThread()
88 current = time(nullptr); in StartTimerThread()
89 if (current == -1) { in StartTimerThread()
93 InvokeUsageTime(current); in StartTimerThread()
96 current = time(nullptr); in StartTimerThread()
97 if (current == -1) { in StartTimerThread()
101 InvokeUsageTime(current); in StartTimerThread()
/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/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/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/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/startup/init/services/param/manager/
Dparam_manager.c64 ParamTrieNode *current = (ParamTrieNode *)node; in ProcessParamTraversal() local
65 if (current == NULL) { in ProcessParamTraversal()
68 if (current->dataIndex == 0) { in ProcessParamTraversal()
71 ParamNode *entry = (ParamNode *)GetTrieNode(workSpace, current->dataIndex); in ProcessParamTraversal()
78 uint32_t index = GetParamHandle(workSpace, current->dataIndex, entry->data); in ProcessParamTraversal()
129 ParamTrieNode *current = (ParamTrieNode *)node; in DumpTrieDataNodeTraversal() local
130 if (current == NULL) { in DumpTrieDataNodeTraversal()
135 current->left, current->right, current->child, in DumpTrieDataNodeTraversal()
136 current->dataIndex, current->labelIndex, current->length, current->key); in DumpTrieDataNodeTraversal()
138 if (current->dataIndex != 0) { in DumpTrieDataNodeTraversal()
[all …]
/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/request/request/download/dfx/event/statistics/
Dtask_statistics.cpp44 time_t current = time(nullptr); in GetNextReportInterval() local
45 if (current == -1) { in GetNextReportInterval()
50 tm *result = localtime_r(&current, &localTime); in GetNextReportInterval()
/base/global/i18n/frameworks/intl/test/unittest/
Dlocale_config_test.cpp194 bool current = LocaleConfig::GetUsingLocalDigit(); variable
196 current = LocaleConfig::GetUsingLocalDigit();
197 EXPECT_TRUE(current);
208 bool current = LocaleConfig::Is24HourClock(); variable
210 current = LocaleConfig::Is24HourClock();
211 EXPECT_TRUE(current);
/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/
Dsys_event_query_wrapper.cpp28 time_t current; in GetCurTime() local
29 (void)time(&current); in GetCurTime()
30 return current; in GetCurTime()
197 time_t current; in IsQueryFrequenceValid() local
198 (void)time(&current); in IsQueryFrequenceValid()
202 lastQueries_[dbFile].insert(std::make_pair(queryProcessId, current)); in IsQueryFrequenceValid()
207 execIter->second[queryProcessId] = current; in IsQueryFrequenceValid()
211 if (abs(current - processIter->second) > queryFrequent) { in IsQueryFrequenceValid()
212 execIter->second[queryProcessId] = current; in IsQueryFrequenceValid()
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DStringPool.java41 int current = 0; in StringPool() local
60 offsetMap.put(currentIndex, new StringItem(current, stringLength)); in StringPool()
61 current += stringLength; in StringPool()
/base/hiviewdfx/faultloggerd/tools/process_dump/
Ddfx_util.cpp174 std::string GetCurrentTimeStr(uint64_t current) in GetCurrentTimeStr() argument
179 if (current > static_cast<uint64_t>(now)) { in GetCurrentTimeStr()
180 millsecond = current % ratio; in GetCurrentTimeStr()
181 now = static_cast<time_t>(current / ratio); in GetCurrentTimeStr()

1234