Home
last modified time | relevance | path

Searched refs:zero_or_one (Results 1 – 25 of 27) sorted by relevance

12

/external/python/parse_type/parse_type/
Dcardinality.py30 zero_or_one = (r"(%s)?", 1) # SCHEMA: pattern variable in Cardinality
35 optional = zero_or_one
65 elif self is Cardinality.zero_or_one:
110 if cardinality is Cardinality.zero_or_one:
124 cardinality = Cardinality.zero_or_one
Dcardinality_field.py33 '?': Cardinality.zero_or_one,
/external/python/parse_type/tests/
Dtest_cardinality.py20 assert Cardinality.optional is Cardinality.zero_or_one
30 expected_pattern = Cardinality.zero_or_one.schema % pattern
63 (Cardinality.zero_or_one, r"\w+", None),
65 (Cardinality.optional, "XXX", Cardinality.zero_or_one.make_pattern("XXX")),
83 new_pattern = Cardinality.zero_or_one.make_pattern(pattern)
340 Cardinality.zero_or_one, parse_number)
Dtest_cardinality_field.py55 self.assertEqual(actual, ("Color", Cardinality.zero_or_one))
98 type_name2 = CardinalityField.make_type("Number", Cardinality.zero_or_one)
/external/skia/src/pathops/
DSkDLineIntersection.cpp17 bool startMatch = fT[0][0] == 0 || zero_or_one(fT[1][0]); in cleanUpParallelLines()
18 bool endMatch = fT[0][1] == 1 || zero_or_one(fT[1][1]); in cleanUpParallelLines()
21 if (startMatch && endMatch && (fT[0][0] != 0 || !zero_or_one(fT[1][0])) in cleanUpParallelLines()
22 && fT[0][1] == 1 && zero_or_one(fT[1][1])) { in cleanUpParallelLines()
DSkOpSpan.cpp256 SkASSERT(!zero_or_one(spanPtT->fT)); in merge()
339 if (!zero_or_one(inner->fT)) { in mergeMatches()
343 if (!zero_or_one(test->fT)) { in mergeMatches()
DSkOpCoincidence.cpp396 bool oOnEnd = zero_or_one(span->oppPtTStart()->fT); in addEndMovedSpans()
411 bool oOnEnd = zero_or_one(span->oppPtTEnd()->fT); in addEndMovedSpans()
1385 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in markCollapsed()
1388 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in markCollapsed()
DSkPathOpsConic.cpp56 if (zero_or_one(t)) { in dxdyAtT()
DSkPathOpsDebug.cpp1575 bool oOnEnd = zero_or_one(span->oppPtTStart()->fT); in debugAddEndMovedSpans()
1590 bool oOnEnd = zero_or_one(span->oppPtTEnd()->fT); in debugAddEndMovedSpans()
2078 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in debugMarkCollapsed()
2081 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in debugMarkCollapsed()
2504 if (!zero_or_one(inner->fT)) { in debugMergeMatches()
2508 if (!zero_or_one(test->fT)) { in debugMergeMatches()
DSkPathOpsQuad.cpp206 if (zero_or_one(t)) { in dxdyAtT()
DSkPathWriter.cpp228 if (!zero_or_one(opPtT->fT)) { in assemble()
DSkPathOpsAsWinding.cpp92 if (zero_or_one(tVals[index]) && Contour::Direction::kCCW != directions[index]) { in contains_edge()
DSkPathOpsTypes.h326 inline bool zero_or_one(double x) { in zero_or_one() function
DSkPathOpsCubic.cpp509 if (result.fX == 0 && result.fY == 0 && zero_or_one(t)) { in dxdyAtT()
/external/skqp/src/pathops/
DSkDLineIntersection.cpp17 bool startMatch = fT[0][0] == 0 || zero_or_one(fT[1][0]); in cleanUpParallelLines()
18 bool endMatch = fT[0][1] == 1 || zero_or_one(fT[1][1]); in cleanUpParallelLines()
21 if (startMatch && endMatch && (fT[0][0] != 0 || !zero_or_one(fT[1][0])) in cleanUpParallelLines()
22 && fT[0][1] == 1 && zero_or_one(fT[1][1])) { in cleanUpParallelLines()
DSkOpSpan.cpp256 SkASSERT(!zero_or_one(spanPtT->fT)); in merge()
339 if (!zero_or_one(inner->fT)) { in mergeMatches()
343 if (!zero_or_one(test->fT)) { in mergeMatches()
DSkOpCoincidence.cpp396 bool oOnEnd = zero_or_one(span->oppPtTStart()->fT); in addEndMovedSpans()
411 bool oOnEnd = zero_or_one(span->oppPtTEnd()->fT); in addEndMovedSpans()
1385 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in markCollapsed()
1388 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in markCollapsed()
DSkPathOpsConic.cpp56 if (zero_or_one(t)) { in dxdyAtT()
DSkPathOpsDebug.cpp1598 bool oOnEnd = zero_or_one(span->oppPtTStart()->fT); in debugAddEndMovedSpans()
1613 bool oOnEnd = zero_or_one(span->oppPtTEnd()->fT); in debugAddEndMovedSpans()
2101 if (zero_or_one(coin->coinPtTStart()->fT) && zero_or_one(coin->coinPtTEnd()->fT)) { in debugMarkCollapsed()
2104 if (zero_or_one(coin->oppPtTStart()->fT) && zero_or_one(coin->oppPtTEnd()->fT)) { in debugMarkCollapsed()
2527 if (!zero_or_one(inner->fT)) { in debugMergeMatches()
2531 if (!zero_or_one(test->fT)) { in debugMergeMatches()
DSkPathWriter.cpp231 if (!zero_or_one(opPtT->fT)) { in assemble()
DSkPathOpsQuad.cpp206 if (zero_or_one(t)) { in dxdyAtT()
DSkPathOpsTypes.h326 inline bool zero_or_one(double x) { in zero_or_one() function
DSkPathOpsAsWinding.cpp91 if (zero_or_one(tVals[index]) && Contour::Direction::kCCW != directions[index]) { in contains_edge()
DSkPathOpsCubic.cpp507 if (result.fX == 0 && result.fY == 0 && zero_or_one(t)) { in dxdyAtT()
/external/llvm-project/llvm/test/Transforms/Attributor/
Dpotential.ll97 ; int zero_or_one(int c) { return c < 2; }
98 ; int potential_test3() { return zero_or_one(iszero(0))+zero_or_one(iszero(1)); }

12