Home
last modified time | relevance | path

Searched full:current (Results 1 – 25 of 799) sorted by relevance

12345678910>>...32

/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 …]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_config_impl_test.cpp72 auto current = CreateResConfigImpl("fr", nullptr, "CA"); variable
73 EXPECT_TRUE(current->Match(other));
84 auto current = CreateResConfigImpl("fr", nullptr, "CA"); variable
85 EXPECT_FALSE(current->Match(other));
89 current->SetPreferredLocaleInfo(locale);
90 EXPECT_TRUE(current->Match(other));
101 auto current = CreateResConfigImpl("fil", nullptr, "PH"); variable
102 EXPECT_TRUE(current->Match(other));
106 current->SetPreferredLocaleInfo(locale);
107 EXPECT_FALSE(current->Match(other));
[all …]
/base/notification/common_event_service/interfaces/inner_api/
Dasync_common_event_result.h28 * @param resultCode Indicates the result code of the current ordered common event.
29 * @param resultData Indicates the result data of the current ordered common event.
30 * @param ordered Indicates the type of the current ordered common event is ordered or not.
31 * @param sticky Indicates the type of the current sticky common event is sticky or not.
32 * @param token Indicates the remote object of the current ordered common event.
40 * Sets the result code of the current ordered common event.
42 * @param code Indicates the result code of the current ordered common event
48 * Obtains the result code of the current ordered common event.
50 * @return Returns the result code of the current ordered common event
55 * Sets the result data of the current ordered common event.
[all …]
Dcommon_event_subscriber.h55 * Sets the result code of the current ordered common event.
57 * @param code Indicates the result code of the current ordered common event
63 * Obtains the result code of the current ordered common event.
65 * @return Returns the result code of the current ordered common event.
70 * Sets the result data of the current ordered common event.
72 * @param data Indicates the result data of the current ordered common event.
78 * Obtains the result data of the current ordered common event.
80 * @return Returns the result data of the current ordered common event
85 * Sets the result of the current ordered common event.
87 * @param code Indicates the result code of the current ordered common event.
[all …]
/base/global/i18n/frameworks/intl/src/
Dlocale_matcher.cpp44 int8_t LocaleMatcher::IsMoreSuitable(const LocaleInfo *current, const LocaleInfo *other, const Loca… in IsMoreSuitable() argument
48 if (current != nullptr && other == nullptr) { in IsMoreSuitable()
52 if (current == nullptr && other != nullptr) { in IsMoreSuitable()
53 // 1 means current is more suitable in IsMoreSuitable()
58 if (current == nullptr && other == nullptr) { in IsMoreSuitable()
61 bool isLangEqual = CompareLanguage(current, other); in IsMoreSuitable()
63 // current or other language is null, not null language is better in IsMoreSuitable()
64 bool result = CompareRegionWhenLangIsNotEqual(current, other, request); in IsMoreSuitable()
68 LocaleUtil::EncodeRegionByLocaleInfo(current); in IsMoreSuitable()
73 return CompareLanguageIgnoreOldNewCode(current, other, request); in IsMoreSuitable()
[all …]
/base/request/request/services/tests/
Dsearch.rs36 let current = get_current_timestamp() as i64; in sdv_search_user() localVariable
37 let v = agent.search(current, current - 3000, State::Any, Action::Any, Mode::Any); in sdv_search_user()
39 let v = agent.search(current + 3000, current, State::Any, Action::Any, Mode::Any); in sdv_search_user()
42 current, in sdv_search_user()
43 current - 3000, in sdv_search_user()
50 current, in sdv_search_user()
51 current - 3000, in sdv_search_user()
58 current, in sdv_search_user()
59 current - 3000, in sdv_search_user()
67 current, in sdv_search_user()
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Dlocale_matcher.cpp241 int8_t CompareRegionWhenQaag(const ResLocale *current, in CompareRegionWhenQaag() argument
247 if ((current != nullptr) && (Utils::EncodeLocale(current->GetLanguage(), nullptr, in CompareRegionWhenQaag()
248 current->GetRegion()) == LocaleMatcher::EN_GB_ENCODE)) { in CompareRegionWhenQaag()
264 * @param current
269 bool CompareLanguage(const ResLocale *current, const ResLocale *other) in CompareLanguage() argument
272 Utils::EncodeLanguageByResLocale(current); in CompareLanguage()
298 bool CompareScript(const ResLocale *current, const ResLocale *other) in CompareScript() argument
302 if ((current != nullptr) && (current->GetScript() == nullptr)) { in CompareScript()
303 currentEncodedScript = FindDefaultScriptEncode(current->GetLanguage(), in CompareScript()
304 current->GetRegion()); in CompareScript()
[all …]
/base/global/i18n/interfaces/native/inner_api/i18n/include/
Dlocale_matcher.h37 * @brief compare current and other locale which is more matching with request.
39 * @param current Represents current resource locale.
42 …* @return int8_t Return 1 represents current locale is more matching, Returning -1 is the opposite.
44 …static int8_t IsMoreSuitable(const LocaleInfo *current, const LocaleInfo *other, const LocaleInfo …
46 static bool Match(const LocaleInfo *current, const LocaleInfo *other);
65 * @param current locale to compare.
69 static bool CompareLanguage(const LocaleInfo *current, const LocaleInfo *other);
70 static bool CompareRegionWhenLangIsNotEqual(const LocaleInfo *current, const LocaleInfo *other,
72 …static int8_t CompareRegionWhenQaag(const LocaleInfo *current, const LocaleInfo *other, const Loca…
98 * @brief compare current and target region, which is better for request.
[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()
261 * @param current
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()
[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()
75 ParamTrieNode *current = GetTrieRoot(workSpace); in FindTrieNode_() local
76 PARAM_ONLY_CHECK(current != NULL, return NULL); in FindTrieNode_()
77 *matchLabel = current->labelIndex; in FindTrieNode_()
86 if (current->child != 0) { in FindTrieNode_()
87 ParamTrieNode *next = GetTrieNode(workSpace, current->child); in FindTrieNode_()
88 current = FindSubTrie(workSpace, next, remainingKey, subKeyLen, matchLabel); in FindTrieNode_()
90 current = FindSubTrie(workSpace, current, remainingKey, subKeyLen, matchLabel); in FindTrieNode_()
92 if (current == NULL) { in FindTrieNode_()
[all …]
Dparam_trie.c140 static ParamTrieNode *AddToSubTrie(WorkSpace *workSpace, ParamTrieNode *current, const char *key, u… in AddToSubTrie() argument
142 if (current == NULL) { in AddToSubTrie()
146 int ret = CompareParamTrieNode(current, key, keyLen); in AddToSubTrie()
148 return current; in AddToSubTrie()
151 subTrie = GetTrieNode(workSpace, current->left); in AddToSubTrie()
156 SaveIndex(&current->left, offset); in AddToSubTrie()
157 return GetTrieNode(workSpace, current->left); in AddToSubTrie()
160 subTrie = GetTrieNode(workSpace, current->right); in AddToSubTrie()
165 SaveIndex(&current->right, offset); in AddToSubTrie()
166 return GetTrieNode(workSpace, current->right); in AddToSubTrie()
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
29 * Whether the current ResLocale same to the other ResLocale
30 * @param current the current ResLocale
32 * @return true if the current ResLocale same to the other ResLocale, else false
34 static bool Match(const ResLocale *current, const ResLocale *other);
68 * Whether the current resLocale more specific than target resLocale
69 * @param current the current resLocale
71 * @return 0 means current resLocale same to target resLocale,
72 * 1 means current resLocale more specific than target resLocale, else -1
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,
29 * Whether the current ResLocale same to the other ResLocale
30 * @param current the current ResLocale
32 * @return true if the current ResLocale same to the other ResLocale, else false
34 static bool Match(const ResLocale *current, const ResLocale *other);
68 * Whether the current resLocale more specific than target resLocale
69 * @param current the current resLocale
71 * @return 0 means current resLocale same to target resLocale,
72 * 1 means current resLocale more specific than target resLocale, else -1
74 static int8_t IsMoreSpecificThan(const ResLocale *current, const ResLocale *target);
/base/account/os_account/services/accountmgr/test/unittest/common/account_mgr_service_test/
Daccount_state_machine_test.cpp58 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
74 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
81 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_LOGIN
97 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
104 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
120 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
127 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
143 * @tc.expected: step1. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
150 * @tc.expected: step2. The current state is AccountStateMachine::ACCOUNT_STATE_LOGIN
157 * @tc.expected: step3. The current state is AccountStateMachine::ACCOUNT_STATE_UNBOUND
[all …]
/base/security/device_auth/services/frameworks/src/plugin_adapter/ext_part/
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 %" LOG_PUB "d", current->plugin->pluginType); in ParsePlugins()
47 current = current->next; in ParsePlugins()
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace/
Dhitracechain.h31 * @param name name or description for current trace.
32 * @param flags trace flags to be set for current trace.
38 * @brief Stop process tracing and clear trace id of current thread
44 // Get trace id of current thread, and return a invalid trace id if no
45 // trace id belong to current thread.
49 * @brief Set id as trace id of current thread. Do nothing if id is invalid.
54 // Clear trace id of current thread and set it invalid.
57 // Create a new span id according to the trace id of current thread.
63 * @param id the trace id of current thread.
73 * @param id the trace id of current thread.
[all …]
/base/notification/distributed_notification_service/services/ans/include/
Dos_account_manager_helper.h51 * Gets operating system account local ID from current calling.
53 * @param id Indicates the current calling account ID.
59 * Gets operating system account local ID from current active.
61 * @param id Indicates the current active account ID.
69 * @param userId Indicates the current active account ID.
77 * @param userIds Indicates the current created account ID.
85 * @param userIds Indicates the current active account ID.
/base/powermgr/thermal_manager/application/protector/profile/
Dthermal_kernel_config.xml23 <current>35000</current>
28 <current>1500</current>
33 <current>1000</current>
/base/msdp/device_status/services/interaction/drag/src/
Ddrag_smooth_processor.cpp82 const std::vector<DragMoveEvent>& current, uint64_t nanoTimestamp) in GetResampleEvent() argument
84 auto event = Resample(history, current, nanoTimestamp); in GetResampleEvent()
85 DragMoveEvent nearestEvent = GetNearestEvent(current, nanoTimestamp); in GetResampleEvent()
114 const std::vector<DragMoveEvent>& current, uint64_t nanoTimestamp) in Resample() argument
116 if (history.empty() || current.empty()) { in Resample()
117 FI_HILOGW("history or current is empty, history size:%{public}zu, current size:%{public}zu," in Resample()
118 "nanoTimestamp:%{public}" PRId64, history.size(), current.size(), nanoTimestamp); in Resample()
122 for (auto const &event : current) { in Resample()
134 auto currentAvgEvent = GetAvgCoordinate(current); in Resample()
135 DumpMoveEvent(history, current, historyAvgEvent, currentAvgEvent, latestEvent); in Resample()
[all …]
/base/powermgr/thermal_manager/application/protector/src/action/
Dcurrent_action.cpp28 const std::string SIM_BATTERY_CURRENT_PATH = "/data/service/el0/thermal/cooling/battery/current";
43 THERMAL_HILOGE(FEATURE_PROTECTOR, "failed to set battery current"); in Execute()
51 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/global/resource_management/frameworks/resmgr/include/utils/
Ddate_utils.h25 * Returns the current time in milliseconds.
28 * the current time and midnight, January 1, 1970 UTC.
38 * Returns the current time in microseconds.
41 * the current time and midnight, January 1, 1970 UTC.
/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/utils/
Ddate_utils.h26 * Returns the current time in milliseconds.
29 * the current time and midnight, January 1, 1970 UTC.
39 * Returns the current time in microseconds.
42 * the current time and midnight, January 1, 1970 UTC.
/base/powermgr/battery_lite/interfaces/kits/js/
D@system.battery.d.ts172 * Battery state of charge (SoC) of the current device, in percent.
178 * Battery charging status of the current device.
184 * Battery health state of the current device.
190 * Charger type of the current device.
196 * Battery voltage of the current device.
202 * Battery technology of the current device.
208 * Battery temperature of the current device.
/base/inputmethod/imf/interfaces/inner_api/inputmethod_controller/include/
Dinput_method_controller.h214 * This function is used to show soft keyboard of current client.
224 * This function is used to show soft keyboard of current client.
234 * This function is used to hide soft keyboard of current client, and keep binding.
242 * @brief Hide current input method, clear text listener and unbind IMSA.
245 * hide current soft keyboard and unbind IMSA.
257 * @param cursorInfo Indicates the information of current cursor changes.
269 * @param start Indicates the coordinates of the current start.
270 * @param end Indicates the coordinates of the current end.
281 * @param info Indicates the current configuration.
345 * @brief List current input method subtypes.
[all …]

12345678910>>...32