Home
last modified time | relevance | path

Searched refs:mExprModel (Results 1 – 3 of 3) sorted by relevance

/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprModelTest.java86 ExprModel mExprModel; field in ExprModelTest
92 if (mExprModel != null && mExprModel.getFlagMapping() != null) {
93 final String[] mapping = mExprModel.getFlagMapping();
104 mExprModel = new ExprModel(); in setUp()
110 assertSame(d, mExprModel.register(d)); in testAddNormal()
111 assertSame(d, mExprModel.register(d)); in testAddNormal()
112 assertEquals(1, mExprModel.mExprMap.size()); in testAddNormal()
118 assertSame(d, mExprModel.register(d)); in testAddDupe1()
119 assertSame(d, mExprModel.register(new DummyExpr("a"))); in testAddDupe1()
120 assertEquals(1, mExprModel.mExprMap.size()); in testAddDupe1()
[all …]
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/
DLayoutBinderTest.java39 ExprModel mExprModel; field in LayoutBinderTest
43 mExprModel = mLayoutBinder.getModel(); in setUp()
49 int originalSize = mExprModel.size(); in testRegisterId()
51 assertEquals(originalSize + 1, mExprModel.size()); in testRegisterId()
63 int originalSize = mExprModel.size(); in testRegisterImport()
64 mExprModel.addImport("test", "java.lang.String", null); in testRegisterImport()
65 assertEquals(originalSize + 1, mExprModel.size()); in testRegisterImport()
77 int originalSize = mExprModel.size(); in testParse()
82 assertEquals(originalSize + 3, mExprModel.size()); in testParse()
83 final List<Expr> bindingExprs = mExprModel.getBindingExpressions(); in testParse()
[all …]
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DLayoutBinder.java58 private final ExprModel mExprModel; field in LayoutBinder
171 mExprModel = new ExprModel(); in LayoutBinder()
172 mExpressionParser = new ExpressionParser(mExprModel); in LayoutBinder()
184 mExprModel.addImport(userImport.name, userImport.type, userImport.location); in LayoutBinder()
188 mExprModel.builtInVariable("context", "android.content.Context", in LayoutBinder()
193 mExprModel.addImport(javaLangClass, "java.lang." + javaLangClass, null); in LayoutBinder()
208 mExprModel.viewFieldExpr(bindingTarget); in LayoutBinder()
267 final IdentifierExpr id = mExprModel.identifier(name); in addVariable()
287 target.setModel(mExprModel); in createBindingTarget()
307 return mExprModel.size() == 0; in isEmpty()
[all …]