/external/python/parse_type/parse_type/ |
D | cardinality.py | 30 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
|
D | cardinality_field.py | 33 '?': Cardinality.zero_or_one,
|
/external/python/parse_type/tests/ |
D | test_cardinality.py | 20 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)
|
D | test_cardinality_field.py | 55 self.assertEqual(actual, ("Color", Cardinality.zero_or_one)) 98 type_name2 = CardinalityField.make_type("Number", Cardinality.zero_or_one)
|
/external/skia/src/pathops/ |
D | SkDLineIntersection.cpp | 17 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()
|
D | SkOpSpan.cpp | 256 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()
|
D | SkOpCoincidence.cpp | 396 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()
|
D | SkPathOpsConic.cpp | 56 if (zero_or_one(t)) { in dxdyAtT()
|
D | SkPathOpsDebug.cpp | 1575 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()
|
D | SkPathOpsQuad.cpp | 206 if (zero_or_one(t)) { in dxdyAtT()
|
D | SkPathWriter.cpp | 228 if (!zero_or_one(opPtT->fT)) { in assemble()
|
D | SkPathOpsAsWinding.cpp | 92 if (zero_or_one(tVals[index]) && Contour::Direction::kCCW != directions[index]) { in contains_edge()
|
D | SkPathOpsTypes.h | 326 inline bool zero_or_one(double x) { in zero_or_one() function
|
D | SkPathOpsCubic.cpp | 509 if (result.fX == 0 && result.fY == 0 && zero_or_one(t)) { in dxdyAtT()
|
/external/skqp/src/pathops/ |
D | SkDLineIntersection.cpp | 17 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()
|
D | SkOpSpan.cpp | 256 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()
|
D | SkOpCoincidence.cpp | 396 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()
|
D | SkPathOpsConic.cpp | 56 if (zero_or_one(t)) { in dxdyAtT()
|
D | SkPathOpsDebug.cpp | 1598 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()
|
D | SkPathWriter.cpp | 231 if (!zero_or_one(opPtT->fT)) { in assemble()
|
D | SkPathOpsQuad.cpp | 206 if (zero_or_one(t)) { in dxdyAtT()
|
D | SkPathOpsTypes.h | 326 inline bool zero_or_one(double x) { in zero_or_one() function
|
D | SkPathOpsAsWinding.cpp | 91 if (zero_or_one(tVals[index]) && Contour::Direction::kCCW != directions[index]) { in contains_edge()
|
D | SkPathOpsCubic.cpp | 507 if (result.fX == 0 && result.fY == 0 && zero_or_one(t)) { in dxdyAtT()
|
/external/llvm-project/llvm/test/Transforms/Attributor/ |
D | potential.ll | 97 ; int zero_or_one(int c) { return c < 2; } 98 ; int potential_test3() { return zero_or_one(iszero(0))+zero_or_one(iszero(1)); }
|