Searched defs:penalty (Results 1 - 3 of 3) sorted by relevance

/frameworks/layoutlib/bridge/src/android/text/
H A DPrimitive.java28 // Penalty has both width and penalty.
29 // Word_break has penalty only.
31 public final float penalty; field in class:Primitive
36 private Primitive(@NonNull PrimitiveType type, int location, float width, float penalty) { argument
40 this.penalty = penalty;
53 * Aesthetic cost indicating how desirable breaking at this point will be. A penalty of
54 * {@link #PENALTY_INFINITY} means a forced non-break, whereas a penalty of negative
57 * Currently, it only stores penalty with values 0 or -infinity.
83 public Primitive getNewPrimitive(int location, float width, float penalty) { argument
[all...]
H A DOptimizingLineBreaker.java82 finalBreak, p.penalty) + opt[pos].mDemerits;
99 if (p.penalty == -PENALTY_INFINITY) {
174 float penalty) {
176 return (deviation * deviation) + penalty;
173 computeDemerits(float maxWidth, float width, boolean finalBreak, float penalty) argument
/frameworks/minikin/libs/minikin/
H A DOptimalLineBreaker.cpp45 // Multiplier for hyphen penalty on last line.
67 float penalty; // penalty of this break (for example, hyphen penalty) member in struct:minikin::__anon1302::Candidate
73 Candidate(uint32_t offset, ParaWidth preBreak, ParaWidth postBreak, float penalty, argument
79 penalty(penalty),
91 // The penalty for the number of lines.
109 float penalty, uint32_t spaceCount, HyphenationType type,
111 candidates.emplace_back(offset, preBreak, postBreak, penalty, spaceCoun
108 pushHyphenation(uint32_t offset, ParaWidth preBreak, ParaWidth postBreak, float penalty, uint32_t spaceCount, HyphenationType type, bool isRtl) argument
116 pushWordBreak(uint32_t offset, ParaWidth preBreak, ParaWidth postBreak, float penalty, uint32_t preSpaceCount, uint32_t postSpaceCount, bool isRtl) argument
259 const float penalty = hyphenPenalty * proc.wordBreakPenalty(); local
[all...]

Completed in 103 milliseconds