Home
last modified time | relevance | path

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

/frameworks/layoutlib/bridge/src/android/graphics/text/
DOptimizingLineBreaker.java20 import android.graphics.text.Primitive.PrimitiveType;
27 import static android.graphics.text.Primitive.PrimitiveType.PENALTY_INFINITY;
51 assert p.type == PrimitiveType.PENALTY; in computeBreaks()
68 if (p.type == PrimitiveType.PENALTY) { in computeBreaks()
149 if (p.type == PrimitiveType.BOX || p.type == PrimitiveType.GLUE) { in computeMetrics()
151 if (p.type == PrimitiveType.BOX) { in computeMetrics()
154 } else if (p.type == PrimitiveType.VARIABLE) { in computeMetrics()
180 if (p.type == PrimitiveType.BOX || p.type == PrimitiveType.GLUE) { in desperateBreak()
182 if (p.type == PrimitiveType.BOX) { in desperateBreak()
185 } else if (p.type == PrimitiveType.VARIABLE) { in desperateBreak()
[all …]
DGreedyLineBreaker.java20 import android.graphics.text.Primitive.PrimitiveType;
24 import static android.graphics.text.Primitive.PrimitiveType.PENALTY_INFINITY;
56 if (p.type == PrimitiveType.BOX || p.type == PrimitiveType.GLUE) { in computeBreaks()
58 if (p.type == PrimitiveType.BOX) { in computeBreaks()
61 } else if (p.type == PrimitiveType.VARIABLE) { in computeBreaks()
108 if (p.type == PrimitiveType.PENALTY && in computeBreaks()
137 } else if (p.type == PrimitiveType.WORD_BREAK) { in computeBreaks()
DPrimitive.java24 public final @NonNull PrimitiveType type;
36 private Primitive(@NonNull PrimitiveType type, int location, float width, float penalty) { in Primitive()
43 public static enum PrimitiveType { enum in Primitive
DLineBreaker_Delegate.java28 import android.graphics.text.Primitive.PrimitiveType;
206 primitives.add(PrimitiveType.GLUE.getNewPrimitive(i, widths[i])); in computePrimitives()
208 primitives.add(PrimitiveType.VARIABLE.getNewPrimitive(i)); in computePrimitives()
216 p = PrimitiveType.PENALTY.getNewPrimitive(i, 0, 0); in computePrimitives()
218 p = PrimitiveType.WORD_BREAK.getNewPrimitive(i, 0); in computePrimitives()
223 primitives.add(PrimitiveType.BOX.getNewPrimitive(i, widths[i])); in computePrimitives()
228 PrimitiveType.PENALTY.getNewPrimitive(length, 0, -PrimitiveType.PENALTY_INFINITY)); in computePrimitives()
/frameworks/base/core/jni/
Dscoped_nullable_primitive_array.h53 template<typename JavaArrayType, typename PrimitiveType, class Traits, size_t preallocSize = 10> in ARRAY_TRAITS()
77 const PrimitiveType* get() const { return mRawArray; } in ARRAY_TRAITS()
78 const PrimitiveType& operator[](size_t n) const { return mRawArray[n]; } in ARRAY_TRAITS()
84 PrimitiveType* mRawArray; in ARRAY_TRAITS()
86 PrimitiveType mBuffer[preallocSize]; in ARRAY_TRAITS()
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/cpp/
Dcpp_unittest.cc1511 TEST_F(OneofTest, PrimitiveType) { in TEST_F() argument