Home
last modified time | relevance | path

Searched refs:expr (Results 1 – 25 of 87) sorted by relevance

1234

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DExprModel.java17 package android.databinding.tool.expr;
98 public <T extends Expr> T register(T expr) { in register() argument
106 T existing = (T) mExprMap.get(expr.getUniqueKey()); in register()
108 Preconditions.check(expr.getParents().isEmpty(), in register()
114 expr.onSwappedWith(existing); in register()
120 mExprMap.put(expr.getUniqueKey(), expr); in register() local
121 expr.setModel(this); in register()
123 expr.addLocation(location); in register()
125 return expr; in register()
164 public InstanceOfExpr instanceOfOp(Expr expr, String type) { in instanceOfOp() argument
[all …]
DCallbackExprModel.java17 package android.databinding.tool.expr;
53 public <T extends Expr> T register(T expr) { in register() argument
57 return super.register(expr); in register()
63 for (Expr expr : mExprMap.values()) { in seal()
64 expr.getResolvedType(); in seal()
65 expr.markAsUsedInCallback(); in seal()
DExpr.java17 package android.databinding.tool.expr;
105 for (Expr expr : children) { in Expr()
106 mChildren.add(expr); in Expr()
263 for (Expr expr : mChildren) { in addParents()
264 expr.mParents.add(this); in addParents()
305 for (Expr expr : mChildren) { in isAnyChildDynamic()
306 if (expr.isDynamic()) { in isAnyChildDynamic()
371 for (Expr expr : order) { in toExecutionPathInOrder()
372 executionPaths = expr.toExecutionPath(executionPaths); in toExecutionPathInOrder()
548 final Expr expr = mModel.findFlagExpression(i); in markAsReadIfDone() local
[all …]
DTernaryExpr.java17 package android.databinding.tool.expr;
78 private static boolean isNullLiteral(Expr expr) { in isNullLiteral() argument
79 final ModelClass type = expr.getResolvedType(); in isNullLiteral()
80 return (type.isObject() && (expr instanceof SymbolExpr) && in isNullLiteral()
81 "null".equals(((SymbolExpr) expr).getText())); in isNullLiteral()
DUnaryExpr.java17 package android.databinding.tool.expr;
27 UnaryExpr(String op, Expr expr) { in UnaryExpr() argument
28 super(expr); in UnaryExpr()
DCastExpr.java17 package android.databinding.tool.expr;
29 CastExpr(String type, Expr expr) { in CastExpr() argument
30 super(expr); in CastExpr()
DListenerExpr.java17 package android.databinding.tool.expr;
41 ListenerExpr(Expr expr, String name, ModelClass listenerType, ModelMethod method) { in ListenerExpr() argument
42 super(expr); in ListenerExpr()
DLambdaExpr.java17 package android.databinding.tool.expr;
41 public LambdaExpr(Expr expr, CallbackExprModel callbackExprModel) { in LambdaExpr() argument
42 super(expr); in LambdaExpr()
/frameworks/support/room/compiler/
DSQLite.g493 : K_ATTACH K_DATABASE? expr K_AS database_name
108 ( K_LIMIT expr ( ( K_OFFSET | ',' ) expr )? )?
114 ( K_WHERE expr )?
129 ( K_FOR K_EACH K_ROW )? ( K_WHEN expr )?
146 ( K_WHERE expr )?
151 ( K_WHERE expr )?
153 K_LIMIT expr ( ( K_OFFSET | ',' ) expr )?
181 ( K_LIMIT expr ( ( K_OFFSET | ',' ) expr )? )?
193 ( K_VALUES '(' expr ( ',' expr )* ')' ( ',' '(' expr ( ',' expr )* ')' )*
225 ( K_LIMIT expr ( ( K_OFFSET | ',' ) expr )? )?
[all …]
/frameworks/data-binding/compiler/src/main/kotlin/android/databinding/tool/writer/
DLayoutBinderWriter.kt21 import android.databinding.tool.expr.Expr in <lambda>()
22 import android.databinding.tool.expr.ExprModel in <lambda>()
23 import android.databinding.tool.expr.FieldAccessExpr in <lambda>()
24 import android.databinding.tool.expr.IdentifierExpr in <lambda>()
25 import android.databinding.tool.expr.LambdaExpr in <lambda>()
26 import android.databinding.tool.expr.ListenerExpr in <lambda>()
27 import android.databinding.tool.expr.ResourceExpr in <lambda>()
28 import android.databinding.tool.expr.TernaryExpr in <lambda>()
29 import android.databinding.tool.expr.localizeGlobalVariables in <lambda>()
30 import android.databinding.tool.expr.shouldLocalizeInCallbacks in <lambda>()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DInverseBinding.java19 import android.databinding.tool.expr.CallbackArgExpr;
20 import android.databinding.tool.expr.CallbackExprModel;
21 import android.databinding.tool.expr.Expr;
22 import android.databinding.tool.expr.ExprModel;
23 import android.databinding.tool.expr.FieldAccessExpr;
24 import android.databinding.tool.expr.IdentifierExpr;
52 public InverseBinding(BindingTarget target, String name, Expr expr, String bindingClassName) { in InverseBinding() argument
55 mCallbackExprModel = new CallbackExprModel(expr.getModel()); in InverseBinding()
56 mExpr = expr.cloneToModel(mCallbackExprModel); in InverseBinding()
94 public void addChainedExpression(FieldAccessExpr expr) { in addChainedExpression() argument
[all …]
DMergedBinding.java19 import android.databinding.tool.expr.ArgListExpr;
20 import android.databinding.tool.expr.Expr;
21 import android.databinding.tool.expr.ExprModel;
48 final Expr expr = getExpr(); in resolveListeners() local
51 child.resolveListeners(parameters[i], expr); in resolveListeners()
60 Expr expr = model.argListExpr(args); in createArgListExpr() local
61 expr.setBindingExpression(true); in createArgListExpr()
62 return expr; in createArgListExpr()
101 for (Expr expr : args.getChildren()) { in toJavaCode()
102 newValues.add(expr.toCode().generate()); in toJavaCode()
[all …]
DBinding.java19 import android.databinding.tool.expr.Expr;
20 import android.databinding.tool.expr.ExprModel;
21 import android.databinding.tool.expr.LambdaExpr;
46 public Binding(BindingTarget target, String name, Expr expr) { in Binding() argument
47 this(target, name, expr, null); in Binding()
50 public Binding(BindingTarget target, String name, Expr expr, BindingSetterCall setterCall) { in Binding() argument
53 mExpr = expr; in Binding()
96 Expr expr = mExpr.resolveTwoWayExpressions(null); in resolveTwoWayExpressions() local
97 if (expr != mExpr) { in resolveTwoWayExpressions()
98 mExpr = expr; in resolveTwoWayExpressions()
DBindingTarget.java19 import android.databinding.tool.expr.Expr;
20 import android.databinding.tool.expr.ExprModel;
56 public void addBinding(String name, Expr expr) { in addBinding() argument
60 mBindings.add(new Binding(this, name, expr)); in addBinding()
67 public InverseBinding addInverseBinding(String name, Expr expr, String bindingClass) { in addInverseBinding() argument
68 expr.assertIsInvertible(); in addInverseBinding()
69 final InverseBinding inverseBinding = new InverseBinding(this, name, expr, bindingClass); in addInverseBinding()
DLayoutBinder.java19 import android.databinding.tool.expr.Dependency;
20 import android.databinding.tool.expr.Expr;
21 import android.databinding.tool.expr.ExprModel;
22 import android.databinding.tool.expr.IdentifierExpr;
224 Expr expr = parse(bindingBundle.getExpr(), in LayoutBinder() local
227 bindingTarget.addBinding(bindingBundle.getName(), expr); in LayoutBinder() local
229 bindingTarget.addInverseBinding(bindingBundle.getName(), expr, in LayoutBinder() local
DExpressionVisitor.java26 import android.databinding.tool.expr.CallbackExprModel;
27 import android.databinding.tool.expr.Expr;
28 import android.databinding.tool.expr.ExprModel;
29 import android.databinding.tool.expr.StaticIdentifierExpr;
200 StaticIdentifierExpr expr = mModel.staticIdentifier(name); in visitDotOp() local
201 expr.setUserDefinedType(name); in visitDotOp()
202 return expr; in visitDotOp()
/frameworks/compile/mclinker/lib/Script/
DRpnExpr.cpp81 RpnExpr* expr = RpnExpr::create(); in buildHelperExpr() local
82 expr->push_back(SectDescOperand::create(*pIter)); in buildHelperExpr()
83 expr->push_back(&Operator::create<Operator::ADDR>()); in buildHelperExpr()
84 expr->push_back(SectDescOperand::create(*pIter)); in buildHelperExpr()
85 expr->push_back(&Operator::create<Operator::SIZEOF>()); in buildHelperExpr()
86 expr->push_back(&Operator::create<Operator::ADD>()); in buildHelperExpr()
87 return expr; in buildHelperExpr()
92 RpnExpr* expr = RpnExpr::create(); in buildHelperExpr() local
93 expr->push_back(FragOperand::create(pFrag)); in buildHelperExpr()
94 return expr; in buildHelperExpr()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/solver/
DExecutionPath.java18 import android.databinding.tool.expr.Expr;
58 private ExecutionPath(@Nullable Expr expr, boolean isAlreadyEvaluated) { in ExecutionPath() argument
59 mExpr = expr; in ExecutionPath()
99 private ExecutionPath createPath(@Nullable Expr expr) { in createPath() argument
100 ExecutionPath path = new ExecutionPath(expr, expr == null || in createPath()
101 mScopeExpressions.contains(expr)); in createPath()
109 public ExecutionPath addPath(@Nullable Expr expr) { in addPath() argument
112 final ExecutionPath path = createPath(expr); in addPath()
113 if (expr != null) { in addPath()
114 mScopeExpressions.add(expr); in addPath()
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DExpressionVisitorTest.java24 import android.databinding.tool.expr.ComparisonExpr;
25 import android.databinding.tool.expr.Dependency;
26 import android.databinding.tool.expr.Expr;
27 import android.databinding.tool.expr.ExprModel;
28 import android.databinding.tool.expr.FieldAccessExpr;
29 import android.databinding.tool.expr.IdentifierExpr;
30 import android.databinding.tool.expr.MethodCallExpr;
31 import android.databinding.tool.expr.SymbolExpr;
32 import android.databinding.tool.expr.TernaryExpr;
104 final FieldAccessExpr expr = parse("a.b", FieldAccessExpr.class); in testSimpleFieldAccess() local
[all …]
DLayoutBinderTest.java17 import android.databinding.tool.expr.Expr;
18 import android.databinding.tool.expr.ExprModel;
19 import android.databinding.tool.expr.FieldAccessExpr;
20 import android.databinding.tool.expr.IdentifierExpr;
21 import android.databinding.tool.expr.StaticIdentifierExpr;
112 IdentifierExpr expr = (IdentifierExpr) entry.getValue(); in findIdentifier() local
113 if (name.equals(expr.getName())) { in findIdentifier()
/frameworks/rs/tests/lldb/tests/harness/
DRS_funs.py1391 expr = 'expr {0}('.format(name)
1396 expr += ', '
1397 expr += _build_arg(tok)
1400 expr += ')'
1401 return ret, expr
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprTest.java17 package android.databinding.tool.expr;
86 Expr expr = new Expr() { in testBadExpr() local
112 expr.getUniqueKey(); in testBadExpr()
196 for (Expr expr : exprs) { in assertFlags()
198 clone.and(expr.getInvalidFlags()); in assertFlags()
199 assertEquals("should read flags of " + a.getUniqueKey() + " should include " + expr in assertFlags()
200 .getUniqueKey(), expr.getInvalidFlags(), clone); in assertFlags()
204 for (Expr expr : exprs) { in assertFlags()
205 composite.or(expr.getInvalidFlags()); in assertFlags()
DExprModelTest.java17 package android.databinding.tool.expr;
244 for (Expr expr : itr) { in filterOut()
245 if (!exclude.contains(expr)) { in filterOut()
246 result.add(expr); in filterOut()
330 for (Expr expr : mExprModel.getPendingExpressions()) { in testRequirementFlags()
331 assertNull(expr.mShouldReadFlags); in testRequirementFlags()
358 for (Expr expr : new Expr[]{a, b, c, d, e}) { in testRequirementFlags()
359 assertTrue(aTernary.getShouldReadFlags().get(expr.getId())); in testRequirementFlags()
1103 for (Expr expr : exprs) { in assertFlags()
1105 clone.and(expr.getInvalidFlags()); in assertFlags()
[all …]
/frameworks/rs/tests/lldb/tests/testcases/
Dtest_call_api_funs.py52 ret, expr = RS_funs.build_expr(line)
55 self.try_command(expr, [], [RS_funs.TYPE_MAP[ret]])
59 self.try_command(expr, '(%s)' % ret)
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
Dh264bsd_util.h79 #define ASSERT(expr) assert(expr) argument
81 #define ASSERT(expr) argument

1234