Home
last modified time | relevance | path

Searched refs:candidate (Results 1 - 11 of 11) sorted by relevance

/foundation/arkui/ui_lite/frameworks/dock/
H A Dfocus_manager.cpp68 UIView* candidate = nullptr; in RequestFocusByDirection() local
69 if (GetNextFocus(focusView_, candidate, direction)) { in RequestFocusByDirection()
70 return RequestFocus(candidate); in RequestFocusByDirection()
76 bool FocusManager::CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint8_t direction) in CompareCandidates() argument
84 res = CompareCandidatesByUp(focusedView, candidate, current); in CompareCandidates()
88 res = CompareCandidatesByDown(focusedView, candidate, current); in CompareCandidates()
92 res = CompareCandidatesByLeft(focusedView, candidate, current); in CompareCandidates()
96 res = CompareCandidatesByRight(focusedView, candidate, current); in CompareCandidates()
115 bool FocusManager::CompareCandidatesByUp(UIView* focusedView, UIView*& candidate, UIView* current) in CompareCandidatesByUp() argument
122 if (candidate ! in CompareCandidatesByUp()
132 CompareCandidatesByDown(UIView* focusedView, UIView*& candidate, UIView* current) CompareCandidatesByDown() argument
149 CompareCandidatesByLeft(UIView* focusedView, UIView*& candidate, UIView* current) CompareCandidatesByLeft() argument
166 CompareCandidatesByRight(UIView* focusedView, UIView*& candidate, UIView* current) CompareCandidatesByRight() argument
183 CompareCandidatesDistance(const Rect& focused, const Rect& candidate, const Rect& current) CompareCandidatesDistance() argument
194 GetNextFocus(UIView* focusedView, UIView*& candidate, uint8_t direction) GetNextFocus() argument
234 GetNextFocus(UIView* focusedView, UIView*& candidate, UIView* view, uint8_t direction) GetNextFocus() argument
247 GetNextFocus(UIView* focusedView, UIView*& candidate, UIViewGroup* viewGroup, uint8_t direction) GetNextFocus() argument
[all...]
/foundation/arkui/ui_lite/interfaces/innerkits/dock/
H A Dfocus_manager.h92 bool GetNextFocus(UIView* focusedView, UIView*& candidate, uint8_t direction);
93 bool GetNextFocus(UIView* focusedView, UIView*& candidate, UIView* view, uint8_t direction);
94 bool GetNextFocus(UIView* focusedView, UIView*& candidate, UIViewGroup* viewGroup, uint8_t direction);
97 bool CompareCandidates(UIView* focusedView, UIView*& candidate, UIView* current, uint8_t direction);
98 bool CompareCandidatesByUp(UIView* focusedView, UIView*& candidate, UIView* current);
99 bool CompareCandidatesByDown(UIView* focusedView, UIView*& candidate, UIView* current);
100 bool CompareCandidatesByLeft(UIView* focusedView, UIView*& candidate, UIView* current);
101 bool CompareCandidatesByRight(UIView* focusedView, UIView*& candidate, UIView* current);
102 bool CompareCandidatesDistance(const Rect& focused, const Rect& candidate, const Rect& current);
/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf_thread_wrap.cpp177 "CONFIG", resStatusInfo_[resId]->candidate); in UpdateLimitStatus()
490 resStatus->candidate = Max(candidatePerfValue, candidatePowerValue, candidateThermalValue); in ProcessLimitCase()
492 resStatus->candidate = (candidatePowerValue == INVALID_VALUE) ? candidateThermalValue : in ProcessLimitCase()
497 resStatus->candidate = (candidateThermalValue != INVALID_VALUE) ? candidateThermalValue : in ProcessLimitCase()
500 resStatus->candidate = (candidatePowerValue != INVALID_VALUE) ? candidatePowerValue : in ProcessLimitCase()
504 resStatus->candidate = candidatePerfValue; in ProcessLimitCase()
506 resStatus->candidate = (candidatePowerValue == INVALID_VALUE) ? candidateThermalValue : in ProcessLimitCase()
529 resStatus->candidate = resStatus->candidatesValue[ACTION_TYPE_PERFLVL]; in ArbitratePairResInPerfLvl()
545 UpdateCurrentValue(resId, resStatusInfo_[resId]->candidate); in ArbitratePairRes()
550 UpdateCurrentValue(resId, resStatusInfo_[resId]->candidate); in ArbitratePairRes()
[all...]
/foundation/multimedia/media_foundation/engine/pipeline/filters/sink/output_sink/
H A Doutput_sink_filter.cpp63 for (const auto& candidate : candidatePlugins) { in Negotiate()
64 const auto& tmp = candidate.first->extra[PLUGIN_INFO_EXTRA_OUTPUT_TYPE]; in Negotiate()
70 selectedPluginInfo = candidate.first; in Negotiate()
71 negotiatedCap = candidate.second; in Negotiate()
72 } else if (candidate.first->rank > selectedPluginInfo->rank) { in Negotiate()
73 selectedPluginInfo = candidate.first; in Negotiate()
74 negotiatedCap = candidate.second; in Negotiate()
/foundation/filemanagement/storage_service/services/storage_daemon/crypto/src/
H A Dbase_key.cpp161 int candidate = -1; in GetCandidateVersion() local
166 if (IsNumericStr(str) && StrToInt(str, ver) && ver >= candidate) { in GetCandidateVersion()
167 candidate = ver; in GetCandidateVersion()
171 LOGI("candidate key version is %{public}d", candidate); in GetCandidateVersion()
172 return candidate; in GetCandidateVersion()
178 auto candidate = GetCandidateVersion(); in GetCandidateDir() local
179 // candidate is -1 means no version_xx dir. in GetCandidateDir()
180 if (candidate == -1) { in GetCandidateDir()
184 return dir_ + PATH_KEY_VERSION + std::to_string(candidate); in GetCandidateDir()
190 auto candidate = GetCandidateVersion(); GetNextCandidateDir() local
208 auto candidate = GetNextCandidateDir(); StoreKey() local
362 auto candidate = keypath.empty() ? GetCandidateDir() : keypath; StoreKey() local
485 auto candidate = GetCandidateDir(); StoreKey() local
957 auto candidate = GetCandidateDir(); StoreKey() local
990 auto candidate = GetNextCandidateDir(); StoreKey() local
[all...]
/foundation/multimedia/media_foundation/engine/pipeline/filters/muxer/
H A Dmuxer_filter.cpp113 auto candidate = FindAvailablePluginsByOutputMime(containerMime_, Plugin::PluginType::MUXER); in Negotiate() local
116 candidate = Intersections(candidate, tmp); in Negotiate()
117 if (candidate.empty()) { in Negotiate()
121 if (candidate.empty()) { in Negotiate()
131 // always use the first candidate plugin info in Negotiate()
132 return UpdateAndInitPluginByInfo(candidate[0]); in Negotiate()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/
H A Dcodec_filter_base.cpp194 for (const auto& candidate : candidatePlugins) { in Negotiate()
195 FALSE_LOG_MSG(!candidate.first->outCaps.empty(), in Negotiate()
196 "plugin " PUBLIC_LOG_S " has no out caps", candidate.first->name.c_str()); in Negotiate()
197 for (const auto& outCap : candidate.first->outCaps) { // each codec plugin should have at least one out cap in Negotiate()
203 MEDIA_LOG_W("one cap of plugin " PUBLIC_LOG_S " mismatch upstream cap", candidate.first->name.c_str()); in Negotiate()
210 negotiatedCap = candidate.second; in Negotiate()
211 selectedPluginInfo = candidate.first; in Negotiate()
212 MEDIA_LOG_I("use plugin " PUBLIC_LOG_S, candidate.first->name.c_str()); in Negotiate()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/audio_encoder/
H A Daudio_encoder_filter.cpp81 for (const auto& candidate : candidatePlugins) { in Negotiate()
82 FALSE_LOG_MSG(!candidate.first->outCaps.empty(), "encoder plugin must have out caps"); in Negotiate()
83 for (const auto& outCap : candidate.first->outCaps) { // each codec plugin should have at least one out cap in Negotiate()
90 MEDIA_LOG_I("one cap of plugin " PUBLIC_LOG_S " mismatch upstream cap", candidate.first->name.c_str()); in Negotiate()
96 capNegWithUpstream_ = candidate.second; in Negotiate()
97 selectedPluginInfo = candidate.first; in Negotiate()
98 MEDIA_LOG_I("use plugin " PUBLIC_LOG_S, candidate.first->name.c_str()); in Negotiate()
/foundation/multimedia/media_foundation/engine/pipeline/filters/codec/video_encoder/
H A Dvideo_encoder_filter.cpp174 for (const auto& candidate : candidatePlugins) { in Negotiate()
175 FALSE_LOG_MSG(!candidate.first->outCaps.empty(), "encoder plugin must have out caps"); in Negotiate()
176 for (const auto& outCap : candidate.first->outCaps) { // each codec plugin should have at least one out cap in Negotiate()
184 MEDIA_LOG_I("one cap of plugin " PUBLIC_LOG_S " mismatch upstream cap", candidate.first->name.c_str()); in Negotiate()
190 capNegWithUpstream_ = candidate.second; in Negotiate()
191 selectedPluginInfo = candidate.first; in Negotiate()
192 MEDIA_LOG_I("use plugin " PUBLIC_LOG_S, candidate.first->name.c_str()); in Negotiate()
/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dace_res_config.cpp75 for (auto& candidate : candidatesLocaleConfig) { in MatchLocaleConfig()
76 if (isDeclarative && candidate.language_ == "" && candidate.script_ == "") { in MatchLocaleConfig()
77 matchedLocaleConfigs.emplace_back(candidate); in MatchLocaleConfig()
80 std::string candidateLanguage = candidate.language_; in MatchLocaleConfig()
89 if (IsPseudoLocale(candidate)) { in MatchLocaleConfig()
91 matchedLocaleConfigs.emplace_back(candidate); in MatchLocaleConfig()
99 std::string candidateScript = candidate.script_.empty() ? ComputeScript(candidate) : candidate in MatchLocaleConfig()
[all...]
/foundation/resourceschedule/soc_perf/services/core/include/
H A Dsocperf_common.h208 int64_t candidate; member in OHOS::SOCPERF::ResStatus
228 candidate = NODE_DEFAULT_VALUE; in ResStatus()

Completed in 9 milliseconds