Lines Matching refs:candidate
44 Candidate candidate;
74 candidate.autoIds_ = autoIds;
75 candidate.manualIds_ = manualIds;
76 AddMergedStatus(candidate);
77 HILOG_INFO("QueryAllForMerge mode is : %{public}d ", candidate.mergeMode_);
78 candidate.autoIds_.insert(rawId);
79 candidate.manualIds_.insert(rawId);
80 HILOG_INFO("QueryAllForMerge size is : %{public}zu ", candidate.autoIds_.size());
81 HILOG_INFO("QueryAllForMerge candidate.manualIds_ is : %{public}zu ", candidate.manualIds_.size());
82 return candidate;
85 void CandidateStatus::AddMergedStatus(Candidate &candidate)
87 if (!candidate.autoIds_.empty()) {
88 candidate.mergeMode_ = MERGE_MODE_AUTO;
89 } else if (!candidate.manualIds_.empty()) {
90 candidate.mergeMode_ = MERGE_MODE_MANUAL;
92 candidate.mergeMode_ = MERGE_MODE_DEFAULT;
97 * @brief Query operation for checking if candidate marging is needed
132 * @brief Check if the candidate has true merge_status
137 * @return True if the candidate is in the merged status; flase otherwise
167 * @brief Check if the candidate has been merged
172 * @return True if the candidate has been merged; false otherwise