/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/ |
D | ExprModel.java | 44 Map<String, Expr> mExprMap = new HashMap<String, Expr>(); 46 List<Expr> mBindingExpressions = new ArrayList<Expr>(); 67 private List<Expr> mPendingExpressions; 76 private List<Expr> mObservables; 98 public <T extends Expr> T register(T expr) { in register() 152 public Map<String, Expr> getExprMap() { in getExprMap() 160 public ComparisonExpr comparison(String op, Expr left, Expr right) { in comparison() 164 public InstanceOfExpr instanceOfOp(Expr expr, String type) { in instanceOfOp() 168 public FieldAccessExpr field(Expr parent, String name) { in field() 172 public FieldAccessExpr observableField(Expr parent, String name) { in observableField() [all …]
|
D | Dependency.java | 17 final Expr mDependant; 18 final Expr mOther; 19 final Expr mCondition; 29 public Dependency(Expr dependant, Expr other) { in Dependency() 37 public Dependency(Expr dependant, Expr other, Expr condition, boolean expectedOutput) { in Dependency() 57 public Expr getOther() { in getOther() 61 public Expr getDependant() { in getDependant() 69 public Expr getCondition() { in getCondition()
|
D | MathExpr.java | 28 public class MathExpr extends Expr { 32 MathExpr(Expr left, String op, Expr right) { in MathExpr() 60 public Expr getLeft() { in getLeft() 64 public Expr getRight() { in getRight() 83 final Expr left = getLeft(); in getInvertibleError() 84 final Expr right = getRight(); in getInvertibleError() 89 Expr dyn = left.isDynamic() ? left : right; in getInvertibleError() 91 Expr constExpr = left.isDynamic() ? right : left; in getInvertibleError() 107 public Expr generateInverse(ExprModel model, Expr value, String bindingClassName) { in generateInverse() 108 final Expr left = getLeft(); in generateInverse() [all …]
|
D | TernaryExpr.java | 28 public class TernaryExpr extends Expr { 30 TernaryExpr(Expr pred, Expr ifTrue, Expr ifFalse) { in TernaryExpr() 34 public Expr getPred() { in getPred() 38 public Expr getIfTrue() { in getIfTrue() 42 public Expr getIfFalse() { in getIfFalse() 67 final Expr ifTrue = getIfTrue(); in resolveType() 68 final Expr ifFalse = getIfFalse(); in resolveType() 78 private static boolean isNullLiteral(Expr expr) { in isNullLiteral() 87 Expr predExpr = getPred(); in constructDependencies() 92 Expr ifTrueExpr = getIfTrue(); in constructDependencies() [all …]
|
D | Expr.java | 40 abstract public class Expr implements VersionProvider, LocationScopeProvider { class 42 protected List<Expr> mChildren = new ArrayList<Expr>(); 45 private List<Expr> mParents = new ArrayList<Expr>(); 104 Expr(Iterable<Expr> children) { in Expr() method in Expr 105 for (Expr expr : children) { in Expr() 111 Expr(Expr... children) { in Expr() method in Expr 174 public Expr resolveListeners(ModelClass valueType, Expr parent) { in resolveListeners() 176 Expr child = mChildren.get(i); in resolveListeners() 183 public Expr resolveTwoWayExpressions(Expr parent) { in resolveTwoWayExpressions() 185 final Expr child = mChildren.get(i); in resolveTwoWayExpressions() [all …]
|
D | MethodCallExpr.java | 37 public class MethodCallExpr extends Expr { 43 static List<Expr> concat(Expr e, List<Expr> list) { in concat() 44 List<Expr> merged = new ArrayList<Expr>(); in concat() 50 MethodCallExpr(Expr target, String name, List<Expr> args) { in MethodCallExpr() 80 public Expr cloneToModel(ExprModel model) { in cloneToModel() 87 for (Expr arg : getArgs()) { in appendArgs() 106 Expr cmp = getModel() in toExecutionPath() 118 private List<ExecutionPath> toExecutionPathInOrder(ExecutionPath path, List<Expr> args) { in toExecutionPathInOrder() 126 for (Expr expr : getArgs()) { in resolveType() 130 Expr target = getTarget(); in resolveType() [all …]
|
D | FieldAccessExpr.java | 47 FieldAccessExpr(Expr parent, String name) { in FieldAccessExpr() 106 public Expr resolveListeners(ModelClass listener, Expr parent) { in resolveListeners() 114 Expr listenerExpr = resolveListenersAsMethodReference(listener, parent); in resolveListeners() 150 Expr target = getTarget(); in resolveType() 199 public Expr resolveTwoWayExpressions(Expr parent) { in resolveTwoWayExpressions() 200 final Expr child = getTarget(); in resolveTwoWayExpressions() 212 final Expr replacement = binding.getExpr(); in resolveTwoWayExpressions() 233 final Expr testExpr = binding.getExpr(); in resolveTwoWayExpressions() 254 private void replaceExpression(Expr parent, Expr replacement) { in replaceExpression() 256 List<Expr> children = parent.getChildren(); in replaceExpression() [all …]
|
D | CastExpr.java | 25 public class CastExpr extends Expr { 29 CastExpr(String type, Expr expr) { in CastExpr() 52 public Expr getCastExpr() { in getCastExpr() 75 public Expr generateInverse(ExprModel model, Expr value, String bindingClassName) { in generateInverse() 76 Expr castExpr = getCastExpr(); in generateInverse() 78 Expr castValue = model.castExpr(exprType.toJavaCode(), value); in generateInverse() 83 public Expr cloneToModel(ExprModel model) { in cloneToModel()
|
D | MethodReferenceExpr.java | 27 MethodReferenceExpr(Expr parent, String name) { in MethodReferenceExpr() 52 public Expr resolveListeners(ModelClass listener, Expr parent) { in resolveListeners() 70 public Expr generateInverse(ExprModel model, Expr value, String bindingClassName) { in generateInverse() 76 public Expr cloneToModel(ExprModel model) { in cloneToModel() 77 final Expr clonedTarget = getTarget().cloneToModel(model); in cloneToModel()
|
D | BracketExpr.java | 29 public class BracketExpr extends Expr { 39 BracketExpr(Expr target, Expr arg) { in BracketExpr() 69 Expr cmp = getModel().comparison("!=", getTarget(), in toExecutionPath() 103 public Expr getTarget() { in getTarget() 107 public Expr getArg() { in getArg() 157 public Expr generateInverse(ExprModel model, Expr value, String bindingClassName) { in generateInverse() 158 Expr arg = getArg().cloneToModel(model); in generateInverse() 171 List<Expr> args = Lists.newArrayList(getTarget().cloneToModel(model), arg, value); in generateInverse() 178 public Expr cloneToModel(ExprModel model) { in cloneToModel()
|
D | ComparisonExpr.java | 25 public class ComparisonExpr extends Expr { 27 ComparisonExpr(String op, Expr left, Expr right) { in ComparisonExpr() 51 public Expr getLeft() { in getLeft() 55 public Expr getRight() { in getRight() 75 public Expr cloneToModel(ExprModel model) { in cloneToModel()
|
D | BitShiftExpr.java | 25 public class BitShiftExpr extends Expr { 27 BitShiftExpr(Expr left, String op, Expr right) { in BitShiftExpr() 51 public Expr getLeft() { in getLeft() 55 public Expr getRight() { in getRight() 68 public Expr cloneToModel(ExprModel model) { in cloneToModel()
|
D | UnaryExpr.java | 25 public class UnaryExpr extends Expr { 27 UnaryExpr(String op, Expr expr) { in UnaryExpr() 43 public Expr generateInverse(ExprModel model, Expr value, String bindingClassName) { in generateInverse() 48 public Expr cloneToModel(ExprModel model) { in cloneToModel() 81 public Expr getExpr() { in getExpr()
|
D | FieldAssignmentExpr.java | 31 public class FieldAssignmentExpr extends Expr { 34 public FieldAssignmentExpr(Expr target, String name, Expr value) { in FieldAssignmentExpr() 44 public Expr getTarget() { in getTarget() 48 public Expr getValueExpr() { in getValueExpr() 70 public Expr cloneToModel(ExprModel model) { in cloneToModel() 81 Expr child = getTarget(); in toExecutionPath()
|
D | ObservableFieldExpr.java | 27 ObservableFieldExpr(Expr parent, String name) { in ObservableFieldExpr() 32 public Expr resolveListeners(ModelClass listener, Expr parent) { in resolveListeners() 44 Expr target = getTarget(); in resolveType() 71 public Expr cloneToModel(ExprModel model) { in cloneToModel() 72 final Expr clonedTarget = getTarget().cloneToModel(model); in cloneToModel()
|
D | MethodBaseExpr.java | 28 public abstract class MethodBaseExpr extends Expr { 31 MethodBaseExpr(Expr parent, String name) { in MethodBaseExpr() 36 public Expr getTarget() { in getTarget() 62 protected Expr resolveListenersAsMethodReference(ModelClass listener, Expr parent) { in resolveListenersAsMethodReference() 63 final Expr target = getTarget(); in resolveListenersAsMethodReference() 91 Expr listenerExpr = getModel().listenerExpr(getTarget(), mName, listener, in resolveListenersAsMethodReference()
|
D | LambdaExpr.java | 32 public class LambdaExpr extends Expr { 41 public LambdaExpr(Expr expr, CallbackExprModel callbackExprModel) { in LambdaExpr() 46 public Expr getExpr() { in getExpr() 71 public Expr resolveListeners(ModelClass valueType, Expr parent) { in resolveListeners() 101 public Expr cloneToModel(ExprModel model) { in cloneToModel()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/ |
D | ExpressionVisitor.java | 27 import android.databinding.tool.expr.Expr; 46 class ExpressionVisitor extends BindingExpressionBaseVisitor<Expr> { 90 public Expr visitRootLambda(@NonNull BindingExpressionParser.RootLambdaContext ctx) { in visitRootLambda() 107 public Expr visitSingleLambdaParameter( in visitSingleLambdaParameter() 122 public Expr visitLambdaParameterList( in visitLambdaParameterList() 144 public Expr visitStringLiteral(@NonNull BindingExpressionParser.StringLiteralContext ctx) { in visitStringLiteral() 163 public Expr visitRootExpr(@NonNull BindingExpressionParser.RootExprContext ctx) { in visitRootExpr() 178 public Expr visitGrouping(@NonNull BindingExpressionParser.GroupingContext ctx) { in visitGrouping() 190 public Expr visitDotOp(@NonNull BindingExpressionParser.DotOpContext ctx) { in visitDotOp() 210 public Expr visitFunctionRef(@NonNull BindingExpressionParser.FunctionRefContext ctx) { in visitFunctionRef() [all …]
|
D | MergedBinding.java | 20 import android.databinding.tool.expr.Expr; 47 List<Expr> children = getExpr().getChildren(); in resolveListeners() 48 final Expr expr = getExpr(); in resolveListeners() 50 final Expr child = children.get(i); in resolveListeners() 55 private static Expr createArgListExpr(ExprModel model, final Iterable<Binding> bindings) { in createArgListExpr() 56 List<Expr> args = new ArrayList<Expr>(); in createArgListExpr() 60 Expr expr = model.argListExpr(args); in createArgListExpr() 73 public Expr[] getComponentExpressions() { in getComponentExpressions() 75 return args.getChildren().toArray(new Expr[args.getChildren().size()]); in getComponentExpressions() 101 for (Expr expr : args.getChildren()) { in toJavaCode() [all …]
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/ |
D | ExprModelTest.java | 53 private static class DummyExpr extends Expr { 83 public Expr cloneToModel(ExprModel model) { in cloneToModel() 160 List<Expr> shouldRead = getShouldRead(); in testShouldRead() 163 final List<Expr> readFirst = getReadFirst(shouldRead, null); in testShouldRead() 165 final Expr first = readFirst.get(0); in testShouldRead() 180 List<Expr> shouldRead = getShouldRead(); in testReadConstantTernary() 182 List<Expr> first = getReadFirst(shouldRead); in testReadConstantTernary() 189 List<Expr> justRead = new ArrayList<Expr>(); in testReadConstantTernary() 206 List<Expr> toRead = getShouldRead(); in testTernaryWithPlus() 207 List<Expr> readNow = getReadFirst(toRead); in testTernaryWithPlus() [all …]
|
D | ExprTest.java | 36 private static class DummyExpr extends Expr { 64 public Expr cloneToModel(ExprModel model) { in cloneToModel() 86 Expr expr = new Expr() { in testBadExpr() 103 public Expr cloneToModel(ExprModel model) { in testBadExpr() 194 private void assertFlags(Expr a, Expr... exprs) { in assertFlags() 196 for (Expr expr : exprs) { in assertFlags() 204 for (Expr expr : exprs) { in assertFlags()
|
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/solver/ |
D | ExecutionPath.java | 18 import android.databinding.tool.expr.Expr; 36 private final Expr mExpr; 47 private Map<Expr, Boolean> mKnownValues = new HashMap<Expr, Boolean>(); 50 private Set<Expr> mScopeExpressions = new HashSet<Expr>(); 58 private ExecutionPath(@Nullable Expr expr, boolean isAlreadyEvaluated) { in ExecutionPath() 64 public ExecutionPath addBranch(Expr pred, boolean expectedValue) { in addBranch() 99 private ExecutionPath createPath(@Nullable Expr expr) { in createPath() 109 public ExecutionPath addPath(@Nullable Expr expr) { in addPath() 131 for (Map.Entry<Expr, Boolean> entry : mKnownValues.entrySet()) { in debug() 150 public Expr getExpr() { in getExpr() [all …]
|
D | ExecutionBranch.java | 18 import android.databinding.tool.expr.Expr; 28 private Expr mConditional; 35 public ExecutionBranch(@NotNull ExecutionPath path, @NotNull Expr conditional, in ExecutionBranch() 43 public Expr getConditional() { in getConditional()
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/ |
D | LayoutBinderTest.java | 17 import android.databinding.tool.expr.Expr; 52 final Map.Entry<String, Expr> entry = findIdentifier("test"); in testRegisterId() 53 final Expr value = entry.getValue(); in testRegisterId() 66 final Map.Entry<String, Expr> entry = findIdentifier("test"); in testRegisterImport() 67 final Expr value = entry.getValue(); in testRegisterImport() 83 final List<Expr> bindingExprs = mExprModel.getBindingExpressions(); in testParse() 98 Expr item = mExprModel.getBindingExpressions().get(0); in testParseWithMethods() 109 private Map.Entry<String, Expr> findIdentifier(String name) { in findIdentifier() 110 for (Map.Entry<String, Expr> entry : mExprModel.getExprMap().entrySet()) { in findIdentifier()
|
/frameworks/compile/slang/ |
D | slang_rs_foreach_lowering.cpp | 46 clang::Expr* expr) { in matchFunctionDesignator() 120 clang::Expr* arg0 = CE->getArg(0); in matchKernelLaunchCall() 198 clang::Expr* RSForEachLowering::CreateCalleeExprForInternalForEach() { in CreateCalleeExprForInternalForEach() 207 clang::Expr* calleeNew = clang::ImplicitCastExpr::Create( in CreateCalleeExprForInternalForEach() 249 clang::Expr* calleeNew = CreateCalleeExprForInternalForEach(); in VisitCallExpr() 255 const clang::Expr* arg0 = CE->getArg(0); in VisitCallExpr() 257 clang::Expr* IntSlotNum = in VisitCallExpr() 300 clang::Expr** args = CE->getArgs(); in VisitCallExpr() 314 llvm::ArrayRef<clang::Expr*>(args + allocArgIndexStart, numAllocations), in VisitCallExpr() 348 clang::Expr* IntNull = in VisitCallExpr() [all …]
|