Home
last modified time | relevance | path

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

12

/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/expr/
DResourceExpr.java65 private Map<String, ModelClass> getResourceToTypeMapping(ModelAnalyzer modelAnalyzer) { in getResourceToTypeMapping() argument
69 … mResourceToTypeMapping.put("anim", modelAnalyzer.findClass("android.view.animation.Animation", in getResourceToTypeMapping()
71 … mResourceToTypeMapping.put("animator", modelAnalyzer.findClass("android.animation.Animator", in getResourceToTypeMapping()
74 modelAnalyzer.findClass("android.content.res.ColorStateList", in getResourceToTypeMapping()
76 …mResourceToTypeMapping.put("drawable", modelAnalyzer.findClass("android.graphics.drawable.Drawable… in getResourceToTypeMapping()
79 modelAnalyzer.findClass("android.animation.StateListAnimator", in getResourceToTypeMapping()
81 … mResourceToTypeMapping.put("transition", modelAnalyzer.findClass("android.transition.Transition", in getResourceToTypeMapping()
83 … mResourceToTypeMapping.put("typedArray", modelAnalyzer.findClass("android.content.res.TypedArray", in getResourceToTypeMapping()
86modelAnalyzer.findClass("android.view.animation.Interpolator", imports)); in getResourceToTypeMapping()
87 mResourceToTypeMapping.put("bool", modelAnalyzer.findClass(boolean.class)); in getResourceToTypeMapping()
[all …]
DViewFieldExpr.java43 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
44 final ModelClass type = modelAnalyzer.findClass(mBindingTarget.getInterfaceType(), null); in resolveType()
46 return modelAnalyzer.findClass(ModelAnalyzer.VIEW_DATA_BINDING, null); in resolveType()
DInstanceOfExpr.java53 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
54 mType = modelAnalyzer.findClass(mTypeStr, getModel().getImports()); in resolveType()
55 return modelAnalyzer.loadPrimitive("boolean"); in resolveType()
DArgListExpr.java56 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
57 return modelAnalyzer.findClass(Void.class); in resolveType()
DTwoWayListenerExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
39 return modelAnalyzer.findClass(InverseBindingListener.class); in resolveType()
DBuiltInVariableExpr.java41 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
42 ModelClass modelClass = super.resolveType(modelAnalyzer); in resolveType()
DComparisonExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
39 return modelAnalyzer.loadPrimitive("boolean"); in resolveType()
DMethodReferenceExpr.java32 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
33 return modelAnalyzer.findClass(Object.class); in resolveType()
DSymbolExpr.java42 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
43 return modelAnalyzer.findClass(mType); in resolveType()
DMethodCallExpr.java57 public void updateExpr(ModelAnalyzer modelAnalyzer) { in updateExpr() argument
60 resolveType(modelAnalyzer); in updateExpr()
61 super.updateExpr(modelAnalyzer); in updateExpr()
123 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DMethodBaseExpr.java144 public void updateExpr(ModelAnalyzer modelAnalyzer) { in updateExpr() argument
147 resolveType(modelAnalyzer); in updateExpr()
148 super.updateExpr(modelAnalyzer); in updateExpr()
DMathExpr.java43 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
48 return modelAnalyzer.findClass(String.class); in resolveType()
51 return modelAnalyzer.findCommonParentOf(getLeft().getResolvedType(), in resolveType()
DCastExpr.java35 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
36 return modelAnalyzer.findClass(mType, getModel().getImports()); in resolveType()
DIdentifierExpr.java67 protected ModelClass resolveType(final ModelAnalyzer modelAnalyzer) { in resolveType() argument
69 return modelAnalyzer.findClass(mUserDefinedType, getModel().getImports()); in resolveType()
DFieldAssignmentExpr.java53 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
54 return modelAnalyzer.findClass(void.class); in resolveType()
DExprModel.java355 final ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance();
356 updateExpressions(modelAnalyzer);
359 final Iterable<Expr> observables = filterObservables(modelAnalyzer);
372 final Iterable<Expr> nonObservableIds = filterNonObservableIds(modelAnalyzer);
489 private void updateExpressions(ModelAnalyzer modelAnalyzer) {
495 expr.updateExpr(modelAnalyzer);
520 private List<Expr> filterNonObservableIds(final ModelAnalyzer modelAnalyzer) {
533 private Iterable<Expr> filterObservables(final ModelAnalyzer modelAnalyzer) {
DTernaryExpr.java66 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
74 return modelAnalyzer.findCommonParentOf(getIfTrue().getResolvedType(), in resolveType()
DFieldAccessExpr.java145 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
147 return modelAnalyzer.findClass(Object.class); in resolveType()
163 return modelAnalyzer.findClass(Object.class); in resolveType()
DBitShiftExpr.java38 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
DCallbackArgExpr.java59 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in resolveType() argument
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/
DBinding.java124 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in resolveSetterCall() local
125 ModelClass viewStubProxy = modelAnalyzer. in resolveSetterCall()
127 mSetterCall = SetterStore.get(modelAnalyzer).getSetterCall(mName, in resolveSetterCall()
149 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in getListenerParameter() local
150 ModelClass objectParameter = modelAnalyzer.findClass(Object.class); in getListenerParameter()
151 SetterStore setterStore = SetterStore.get(modelAnalyzer); in getListenerParameter()
154 ModelClass viewStubProxy = modelAnalyzer. in getListenerParameter()
156 setterCall = SetterStore.get(modelAnalyzer).getSetterCall(name, in getListenerParameter()
172 new ModelClass[] {modelAnalyzer.findClass(Object.class)}); in getListenerParameter()
DInverseBinding.java59 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in InverseBinding() local
60 ModelClass type = modelAnalyzer.findClass(getGetterCall().getGetterType(), null); in InverseBinding()
/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()
88 protected ModelClass resolveType(ModelAnalyzer modelAnalyzer) { in testBadExpr()
89 return modelAnalyzer.findClass(Integer.class); in testBadExpr()
/frameworks/data-binding/compiler/src/main/java/android/databinding/tool/reflection/
DInjectedMethod.java58 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in getParameterTypes() local
60 mParameterTypes[i] = modelAnalyzer.findClass(mParameterTypeNames[i], null); in getParameterTypes()
DModelClass.java182 ModelAnalyzer modelAnalyzer = ModelAnalyzer.getInstance(); in isObservable() local
183 return modelAnalyzer.getObservableType().isAssignableFrom(this) || in isObservable()
184 modelAnalyzer.getObservableListType().isAssignableFrom(this) || in isObservable()
185 modelAnalyzer.getObservableMapType().isAssignableFrom(this); in isObservable()

12