Lines Matching defs:cand
104 Candidate cand = {0, 0, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, HyphenationType::DONT_BREAK};
105 mCandidates.push_back(cand);
259 Candidate cand;
270 cand.offset = i;
271 cand.preBreak = width;
272 cand.postBreak = width;
274 cand.preSpaceCount = postSpaceCount;
275 cand.postSpaceCount = postSpaceCount;
276 cand.penalty = SCORE_DESPERATE;
277 cand.hyphenType = HyphenationType::BREAK_AND_DONT_INSERT_HYPHEN;
279 ALOGD("desperate cand: %zd %g:%g",
280 mCandidates.size(), cand.postBreak, cand.preBreak);
282 addCandidate(cand);
288 cand.offset = offset;
289 cand.preBreak = preBreak;
290 cand.postBreak = postBreak;
291 cand.penalty = penalty;
292 cand.preSpaceCount = preSpaceCount;
293 cand.postSpaceCount = postSpaceCount;
294 cand.hyphenType = hyph;
296 ALOGD("cand: %zd %g:%g", mCandidates.size(), cand.postBreak, cand.preBreak);
298 addCandidate(cand);
316 void LineBreaker::addCandidate(Candidate cand) {
318 mCandidates.push_back(cand);
323 if (cand.postBreak - mPreBreak > currentLineWidth()) {
332 while (mLastBreak != candIndex && cand.postBreak - mPreBreak > currentLineWidth()) {
354 if (cand.penalty <= mBestScore) {
356 mBestScore = cand.penalty;