Home
last modified time | relevance | path

Searched refs:modelAnalyzer (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DResourceExpr.java60 private Map<String, ModelClass> getResourceToTypeMapping(ModelAnalyzer modelAnalyzer) { in getResourceToTypeMapping() argument
64 … mResourceToTypeMapping.put("anim", modelAnalyzer.findClass("android.view.animation.Animation", in getResourceToTypeMapping()
66 … mResourceToTypeMapping.put("animator", modelAnalyzer.findClass("android.animation.Animator", in getResourceToTypeMapping()
69 modelAnalyzer.findClass("android.content.res.ColorStateList", in getResourceToTypeMapping()
71 …mResourceToTypeMapping.put("drawable", modelAnalyzer.findClass("android.graphics.drawable.Drawable… in getResourceToTypeMapping()
74 modelAnalyzer.findClass("android.animation.StateListAnimator", in getResourceToTypeMapping()
76 … mResourceToTypeMapping.put("transition", modelAnalyzer.findClass("android.transition.Transition", in getResourceToTypeMapping()
78 … mResourceToTypeMapping.put("typedArray", modelAnalyzer.findClass("android.content.res.TypedArray", in getResourceToTypeMapping()
81modelAnalyzer.findClass("android.view.animation.Interpolator", imports)); in getResourceToTypeMapping()
82 mResourceToTypeMapping.put("bool", modelAnalyzer.findClass(boolean.class)); in getResourceToTypeMapping()
[all …]
DViewFieldExpr.java49 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
50 final ModelClass type = modelAnalyzer.findClass(mBindingTarget.getInterfaceType(), null); in resolveType()
52 return modelAnalyzer.findClass("android.databinding.ViewDataBinding", null); in resolveType()
DInstanceOfExpr.java48 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
49 mType = modelAnalyzer.findClass(mTypeStr, getModel().getImports()); in resolveType()
50 return modelAnalyzer.loadPrimitive("boolean"); in resolveType()
DMethodCallExpr.java53 public void updateExpr(ModelAnalyzer modelAnalyzer) { in updateExpr() argument
56 resolveType(modelAnalyzer); in updateExpr()
57 super.updateExpr(modelAnalyzer); in updateExpr()
84 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DArgListExpr.java51 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
52 return modelAnalyzer.findClass(Void.class); in resolveType()
DBuiltInVariableExpr.java41 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
42 ModelClass modelClass = super.resolveType(modelAnalyzer); in resolveType()
DSymbolExpr.java41 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
42 return modelAnalyzer.findClass(mType); in resolveType()
DMathExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
43 return modelAnalyzer.findClass(String.class); in resolveType()
46 return modelAnalyzer.findCommonParentOf(getLeft().getResolvedType(), in resolveType()
DTwoWayListenerExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
39 return modelAnalyzer.findClass(InverseBindingListener.class); in resolveType()
DComparisonExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
39 return modelAnalyzer.loadPrimitive("boolean"); in resolveType()
DCastExpr.java35 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
36 return modelAnalyzer.findClass(mType, getModel().getImports()); in resolveType()
DFieldAccessExpr.java231 public void updateExpr(ModelAnalyzer modelAnalyzer) { in updateExpr() argument
234 resolveType(modelAnalyzer); in updateExpr()
235 super.updateExpr(modelAnalyzer); in updateExpr()
242 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
244 return modelAnalyzer.findClass(Object.class); in resolveType()
260 return modelAnalyzer.findClass(Object.class); in resolveType()
DExprModel.java306 final ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance();
307 updateExpressions(modelAnalyzer);
310 final Iterable<Expr> observables = filterObservables(modelAnalyzer);
323 final Iterable<Expr> nonObservableIds = filterNonObservableIds(modelAnalyzer);
438 private void updateExpressions(ModelAnalyzer modelAnalyzer) {
444 expr.updateExpr(modelAnalyzer);
469 private List<Expr> filterNonObservableIds(final ModelAnalyzer modelAnalyzer) {
482 private Iterable<Expr> filterObservables(final ModelAnalyzer modelAnalyzer) {
DIdentifierExpr.java65 protected ModelClass resolveType(final ModelAnalyzer modelAnalyzer) { in resolveType() argument
67 return modelAnalyzer.findClass(mUserDefinedType, getModel().getImports()); in resolveType()
DTernaryExpr.java64 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
72 return modelAnalyzer.findCommonParentOf(getIfTrue().getResolvedType(), in resolveType()
DGroupExpr.java31 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DBitShiftExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DUnaryExpr.java53 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DListenerExpr.java49 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DExpr.java344 abstract protected ModelClass resolveType(ModelAnalyzer modelAnalyzer); in resolveType() argument
644 public void updateExpr(ModelAnalyzer modelAnalyzer) { in updateExpr() argument
653 child.updateExpr(modelAnalyzer); in updateExpr()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DBinding.java94 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in resolveSetterCall() local
95 ModelClass viewStubProxy = modelAnalyzer. in resolveSetterCall()
97 mSetterCall = SetterStore.get(modelAnalyzer).getSetterCall(mName, in resolveSetterCall()
117 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in getListenerParameter() local
118 ModelClass objectParameter = modelAnalyzer.findClass(Object.class); in getListenerParameter()
119 SetterStore setterStore = SetterStore.get(modelAnalyzer); in getListenerParameter()
122 ModelClass viewStubProxy = modelAnalyzer. in getListenerParameter()
124 setterCall = SetterStore.get(modelAnalyzer).getSetterCall(name, in getListenerParameter()
140 new ModelClass[] {modelAnalyzer.findClass(Object.class)}); in getListenerParameter()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/expr/
DExprTest.java44 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
45 return modelAnalyzer.findClass(Integer.class); in resolveType()
83 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in testBadExpr()
84 return modelAnalyzer.findClass(Integer.class); in testBadExpr()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DModelClass.java180 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in isObservable() local
181 return modelAnalyzer.getObservableType().isAssignableFrom(this) || in isObservable()
182 modelAnalyzer.getObservableListType().isAssignableFrom(this) || in isObservable()
183 modelAnalyzer.getObservableMapType().isAssignableFrom(this); in isObservable()
/frameworks/data-binding/compiler/src/main/java/android/databinding/annotationprocessor/
DProcessMethodAdapters.java60 final ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in onHandleStep() local
61 Preconditions.checkNotNull(modelAnalyzer, "Model analyzer should be" in onHandleStep()
63 SetterStore store = SetterStore.get(modelAnalyzer); in onHandleStep()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/store/
DSetterStore.java146 private SetterStore(ModelAnalyzer modelAnalyzer, IntermediateV2 store) { in SetterStore() argument
147 mClassAnalyzer = modelAnalyzer; in SetterStore()
161 public static SetterStore get(ModelAnalyzer modelAnalyzer) { in get() argument
163 sStore = load(modelAnalyzer); in get()
168 private static SetterStore load(ModelAnalyzer modelAnalyzer) { in load() argument
175 return new SetterStore(modelAnalyzer, store); in load()
1522 final ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in toJava() local
1529 final String defaultValue = modelAnalyzer.getDefaultValue(paramType); in toJava()
1572 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in getParameterTypes() local
1576 parameters[attrIndex++] = modelAnalyzer.findClass(paramTypeStrings[i], null); in getParameterTypes()

12