Home
last modified time | relevance | path

Searched refs:penalty (Results 1 – 6 of 6) sorted by relevance

/frameworks/layoutlib/bridge/src/android/text/
DPrimitive.java31 public final float penalty; field in Primitive
36 private Primitive(@NonNull PrimitiveType type, int location, float width, float penalty) { in Primitive() argument
40 this.penalty = penalty; in Primitive()
83 public Primitive getNewPrimitive(int location, float width, float penalty) { in getNewPrimitive() argument
85 return new Primitive(this, location, width, penalty); in getNewPrimitive()
DOptimizingLineBreaker.java82 finalBreak, p.penalty) + opt[pos].mDemerits; in computeBreaks()
99 if (p.penalty == -PENALTY_INFINITY) { in computeBreaks()
174 float penalty) { in computeDemerits() argument
176 return (deviation * deviation) + penalty; in computeDemerits()
DGreedyLineBreaker.java107 p.penalty < PENALTY_INFINITY) { in computeBreaks()
111 if (p.penalty == -PENALTY_INFINITY) { in computeBreaks()
/frameworks/minikin/libs/minikin/
DLineBreaker.cpp242 float penalty = hyphenPenalty * mWordBreaker.breakBadness(); in addStyleRun() local
243 addWordBreak(current, mWidth, postBreak, mSpaceCount, postSpaceCount, penalty, in addStyleRun()
258 size_t preSpaceCount, size_t postSpaceCount, float penalty, HyphenationType hyph) { in addWordBreak() argument
276 cand.penalty = SCORE_DESPERATE; in addWordBreak()
291 cand.penalty = penalty; in addWordBreak()
341 const float penalty = mCandidates[i].penalty; in addCandidate() local
342 if (penalty <= mBestScore) { in addCandidate()
344 mBestScore = penalty; in addCandidate()
354 if (cand.penalty <= mBestScore) { in addCandidate()
356 mBestScore = cand.penalty; in addCandidate()
[all …]
/frameworks/minikin/include/minikin/
DLineBreaker.h199 float penalty; // penalty of this break (for example, hyphen penalty) member
210 size_t preSpaceCount, size_t postSpaceCount, float penalty, HyphenationType hyph);
/frameworks/native/docs/
DDoxyfile348 # causing a significant performance penalty.