Home
last modified time | relevance | path

Searched refs:getPred (Results 1 – 4 of 4) sorted by relevance

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DTernaryExpr.java32 public Expr getPred() { in getPred() method in TernaryExpr
51 if (getPred().isDynamic()) { in getInvertibleError()
53 getPred().toFullCode(); in getInvertibleError()
85 Expr predExpr = getPred(); in constructDependencies()
103 return getPred().getInvalidFlags(); in getPredicateInvalidFlags()
109 .app("", getPred().toCode(expand)) in generateCode()
118 .app("if (", getPred().toCode(true)) in toInverseCode()
DExpr.java730 return ternary.getPred() == this; in hasConditionalDependant()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprModelTest.java174 assertExactMatch(shouldRead, ternaryExpr.getPred()); in testReadConstantTernary()
176 assertExactMatch(first, ternaryExpr.getPred()); in testReadConstantTernary()
262 assertEquals(ternaryExpr.getPred(), toRead.get(0)); in testTernaryInsideTernary()
266 assertEquals(ternaryExpr.getPred(), readNow.get(0)); in testTernaryInsideTernary()
275 assertExactMatch(toRead, ternaryExpr.getIfFalse(), innerTernary.getPred()); in testTernaryInsideTernary()
377 Expr abCmp = abTernary.getPred(); in testPostConditionalDependencies()
378 Expr bcCmp = bcTernary.getPred(); in testPostConditionalDependencies()
379 Expr u1GetCondD = ((TernaryExpr) bcTernary.getIfTrue()).getPred(); in testPostConditionalDependencies()
456 assertExactMatch(shouldRead, a, abTernary.getPred()); in testCircularDependency()
477 assertExactMatch(shouldRead, a, a3Ternary.getPred()); in testNestedCircularDependency()
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java129 assertTrue(parsed.getPred() instanceof ComparisonExpr); in testTernary()
132 ComparisonExpr pred = (ComparisonExpr) parsed.getPred(); in testTernary()