OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:PENALTY
(Results
1 - 4
of
4
) sorted by null
/frameworks/layoutlib/bridge/src/android/text/
Primitive.java
28
//
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
) {
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
[
all
...]
OptimizingLineBreaker.java
50
assert p.type == PrimitiveType.
PENALTY
;
65
if (p.type == PrimitiveType.
PENALTY
) {
82
finalBreak, p.
penalty
) + opt[pos].mDemerits;
99
if (p.
penalty
== -PENALTY_INFINITY) {
174
float
penalty
) {
176
return (deviation * deviation) +
penalty
;
207
(p.type == PrimitiveType.
PENALTY
|| p.type == PrimitiveType.WORD_BREAK)) {
StaticLayout_Delegate.java
153
p = PrimitiveType.
PENALTY
.getNewPrimitive(i, 0, 0);
165
PrimitiveType.
PENALTY
.getNewPrimitive(length, 0, -PrimitiveType.PENALTY_INFINITY));
GreedyLineBreaker.java
106
if (p.type == PrimitiveType.
PENALTY
&&
107
p.
penalty
< PENALTY_INFINITY) {
111
if (p.
penalty
== -PENALTY_INFINITY) {
Completed in 180 milliseconds