• Home
  • History
  • Annotate
  • only in /frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/
History log of /frameworks/data-binding/integration-tests/TestApp/app/src/androidTest/java/android/databinding/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d3dc1b70aa71e8343dbf5e05a2feeb72bb29b6ec 08-Oct-2015 Yigit Boyar <yboyar@google.com> Fix tag check in data binding mapper

This CL fixes a bug in data binding mapper where if the View's tag does
not match one of the expected tags, it would fall through to the ext
case statemet which would result in a meaningless error.

This CL detects the case and throws an exception. This case should not
happen since it is not a supported case but happened here due to another
bug

Bug: 24745000
Change-Id: Ic5c6d4ce2da6ad043fb6fe56cd0847c98ea2472d
ataBindingMapperTest.java
0792cfc12b4854c377f6e72a02b4e74bae95aa0c 11-Jun-2015 Yigit Boyar <yboyar@google.com> Merge "Improve static method / field handling" into mnc-dev
ec2f3896c21a504b464bf591cdb45b62692b6760 10-Jun-2015 Yigit Boyar <yboyar@google.com> Improve static method / field handling

Previously, we would allow access to static fields via instance
variables but it would not work for methods. Moreover, the behavior
was not exactly the same with how java handles it. In java, the
instance can be null but our binding code would not evaluate it
if instance is null.

This CL fixes these bugs by adding static resolution support to
methods and replacing their variable identifiers with static
identifiers while the method is being resolved so that the rest
of the system is still consistent.

Bug: 20412284
Change-Id: Id97ce564c312b97d5a0e60d7d7a5bbd06b131071
estapp/StaticAccessImportOnDemandTest.java
estapp/StaticAccessImportOnDemandWithConflictTest.java
estapp/StaticAccessTest.java
4d4979490e1fa374c0d7f3599fed0a9e83a579d0 08-Jun-2015 George Mount <mount@google.com> Support data binding for fragments.

Bug 21667601

Change-Id: I636dec1bbb5567d70a996e115e6bf8322c3aa29d
estapp/AbsListViewBindingAdapterTest.java
estapp/AbsSeekBarBindingAdapterTest.java
estapp/AbsSpinnerBindingAdapterTest.java
estapp/ApplicationTest.java
estapp/AutoCompleteTextViewBindingAdapterTest.java
estapp/BaseDataBinderTest.java
estapp/BaseLandDataBinderTest.java
estapp/BaseObservableTest.java
estapp/BasicBindingTest.java
estapp/BasicDependantBindingTest.java
estapp/BindToFinalFieldTest.java
estapp/BindToFinalObservableFieldTest.java
estapp/BindingAdapterTestBase.java
estapp/BracketTest.java
estapp/CastTest.java
estapp/CheckedTextViewBindingAdapterTest.java
estapp/CompoundButtonBindingAdapterTest.java
estapp/ConditionalBindingTest.java
estapp/ConstantWithConditionalTest.java
estapp/CustomBindingTest.java
estapp/CustomNamespaceAdapterTest.java
estapp/DataBindingUtilTest.java
estapp/DefaultBindingTest.java
estapp/ExpressionTest.java
estapp/FindMethodTest.java
estapp/FrameLayoutBindingAdapterTest.java
estapp/GenericAdapterTest.java
estapp/GenericViewTest.java
estapp/ImageViewBindingAdapterTest.java
estapp/IncludeTagTest.java
estapp/InnerCannotReadDependencyTest.java
estapp/LeakTest.java
estapp/LinearLayoutBindingAdapterTest.java
estapp/ListChangeRegistryTest.java
estapp/MapChangeRegistryTest.java
estapp/MultiArgAdapterEvaluationTest.java
estapp/MultiArgAdapterTest.java
estapp/MultiThreadTest.java
estapp/NewApiTest.java
estapp/NoBindAttributeTest.java
estapp/NoIdTest.java
estapp/NoVariablesTest.java
estapp/ObservableArrayListTest.java
estapp/ObservableArrayMapTest.java
estapp/ObservableFieldTest.java
estapp/ObservableWithNotBindableFieldObjectTest.java
estapp/ProcessBindableTest.java
estapp/ProgressBarBindingAdapterTest.java
estapp/PropertyChangeRegistryTest.java
estapp/RadioGroupBindingAdapterTest.java
estapp/ReadComplexTernaryTest.java
estapp/ResourceTest.java
estapp/SpinnerBindingAdapterTest.java
estapp/SwitchBindingAdapterTest.java
estapp/TabWidgetBindingAdapterTest.java
estapp/TableLayoutBindingAdapterTest.java
estapp/TextViewBindingAdapterTest.java
estapp/ViewBindingAdapterTest.java
estapp/ViewGroupBindingAdapterTest.java
estapp/ViewStubBindingAdapterTest.java
estapp/ViewStubTest.java
estapp/multiconfig/LandscapeConfigTest.java
estapp/multiconfig/PortraitConfigTest.java
c4a07bddb4dd5c3bfbecf4d87909c5b447ae56dc 05-Jun-2015 George Mount <mount@google.com> Only create case statements for Bindable attributes.

Bug: 21571818
Change-Id: Id03c7a7de6e39d7f59da6cda11d3311f072addd0
estapp/FindMethodTest.java
081ec223f1f2f801bd907ec6344b0c6aeee133e5 05-Jun-2015 George Mount <mount@google.com> Fix inflate() to support attachToRoot = true

Bug 21660713
estapp/BasicBindingTest.java
b1356339eaa6c8e967e4fc1dc283b82909a1208d 22-May-2015 Yigit Boyar <yboyar@google.com> Merge projects for an easier release

This CL merges annotation processor, xml grammer and grammer builder
into compiler project.

It also adds logic to pass gradle's --debug parameter to the
annotation processor so that we can grab logs when necessary.

Bug: 21327802
Change-Id: I1d07002519a6b95de3cdc0891bd00f461f73e8ea
estapp/InnerCannotReadDependencyTest.java
722fe711207a37783dfa7142284b0ebe5bd503fb 20-May-2015 George Mount <mount@google.com> Observable* listeners should be callbacks.

Bug 21324996

Changed listeners to callbacks and made them abstract base
classes, following API conventions.

Change-Id: Ibc849d11c1fea83c02ba593d9aaf2ebf8cfc2eef
estapp/BaseObservableTest.java
estapp/ListChangeRegistryTest.java
estapp/MapChangeRegistryTest.java
estapp/ObservableArrayListTest.java
estapp/ObservableArrayMapTest.java
estapp/PropertyChangeRegistryTest.java
65bf08e7cd0acc5e13ab131433e35981d4416a79 20-May-2015 George Mount <mount@google.com> Fix IllegalStateException during ObservableArray notification.

Bug 21313082

The list state wasn't being released properly, so it would try
to release it multiple times (once for each listener).

Change-Id: I05e0d190476a761c28e95420b5a3d5b6e249a41f
estapp/ObservableArrayListTest.java
c96847768305d83c6bc4919432af9bd9bfe4c08e 20-May-2015 George Mount <mount@google.com> Fix String.format expression.

An expression @{String.format("%s", "test")} was failing
for two reasons: the L.d was doing string concatenation
and String wasn't imported and considered a StaticIdentifier.

Change-Id: I67b4c880f1e147a5c1aac15b3b845d4112c6d00b
estapp/FindMethodTest.java
0ba9cf91183c16e18f8055e9d08a6618f4f60019 20-May-2015 Yigit Boyar <yboyar@google.com> Merge "Properly handle constant binding expressions"
8533f27db6c31b0c295ae62d314dbf07ea640571 19-May-2015 Yigit Boyar <yboyar@google.com> Properly handle constant binding expressions

Previously, we would assign each binding expression a flag id even
if it is constant. This was necessary to be able to implement
invalidateAll.

Later, we've changed how invalidateAll works and assigned it a separate
flag. Unfortunately, we were still incrementing ids for such binding
expressions, causing index out of bounds exceptions during code generation
in certain situations.

This CL fixes that bug and does not add flags to constant binding expressions
anymore.
Bug: 21284295
Change-Id: I114bf34520d0b246426ce7d45b8c511cf6709778
estapp/ConstantWithConditionalTest.java
b9e4aa96812692a7dcf468445e64bc5b30d3c79a 19-May-2015 George Mount <mount@google.com> Better handling of generics in BindingAdapters

Bug 21277338

Handle <T> adapter(View, T value)
Also test and fixes to support View<T> with multi-attribute
adapters.

Change-Id: I12bda5b235111762b55357fed7f163ccaf83838d
estapp/GenericAdapterTest.java
91d538470c011e19fa4375cc3531b5dd9ae01d55 15-May-2015 George Mount <mount@google.com> Fix generic setter on generic View.

When a View is generic (e.g. MyView<T>), and a setter takes
a generic parameter, the setter parameter didn't match the
argument.

Change-Id: I115ace5582b847bda792d75cf7aaf57ffc8bd4cd
estapp/GenericViewTest.java
f6e8d6516561432dd1c0f3014be7405a5dcd251b 14-May-2015 George Mount <mount@google.com> Merge "Generate Binding class when <layout> exists."
d5eacf2ecbfaf6d78b3d8aad37876f7fa5a6ba9d 14-May-2015 George Mount <mount@google.com> Fix unit test broken due to merge.
estapp/NoBindAttributeTest.java
3a756d564b245a3b38c27420ee9367a678533b8a 14-May-2015 George Mount <mount@google.com> Merge "Support default = value from binding expression."
07cb82fdea17400364bb73b125d8c921b50b4525 14-May-2015 Yigit Boyar <yboyar@google.com> Merge "Revert "Revert "Use a handler for main thread runnables"""
1968106a8a54875ce14d24d857174cbb7f275142 14-May-2015 George Mount <mount@google.com> Support default = value from binding expression.

Bug 21133213

Change-Id: I6185d6d1a7eda2f199c34775fe2e67de1a0ef225
estapp/DefaultBindingTest.java
3f73e3149732132c02f5d19aab7b5da429794058 13-May-2015 Yigit Boyar <yboyar@google.com> Revert "Revert "Use a handler for main thread runnables""

Tests were failing after this handler change because they were not
ready to be bound before tests start (which was a bad assumption).

This CL changes how tests are initialized, giving them the opportunity
to initialize binder on main thread.

This reverts commit 610fd535ee15629671acb847f926b7a1f74eecae.

Change-Id: Id7c03bc34d9f9e1bb2aae22b58cd37f804aa9f29
estapp/AbsListViewBindingAdapterTest.java
estapp/BaseDataBinderTest.java
estapp/BaseObservableTest.java
estapp/BasicBindingTest.java
estapp/BasicDependantBindingTest.java
estapp/BindToFinalFieldTest.java
estapp/BindToFinalObservableFieldTest.java
estapp/BindingAdapterTestBase.java
estapp/BracketTest.java
estapp/CastTest.java
estapp/CheckedTextViewBindingAdapterTest.java
estapp/CompoundButtonBindingAdapterTest.java
estapp/ConditionalBindingTest.java
estapp/CustomBindingTest.java
estapp/CustomNamespaceAdapterTest.java
estapp/ExpressionTest.java
estapp/IncludeTagTest.java
estapp/InnerCannotReadDependencyTest.java
estapp/MultiArgAdapterEvaluationTest.java
estapp/MultiArgAdapterTest.java
estapp/MultiThreadTest.java
estapp/NewApiTest.java
estapp/NoIdTest.java
estapp/NoVariablesTest.java
estapp/ObservableFieldTest.java
estapp/ObservableWithNotBindableFieldObjectTest.java
estapp/ReadComplexTernaryTest.java
estapp/ResourceTest.java
estapp/ViewStubTest.java
estapp/multiconfig/LandscapeConfigTest.java
estapp/multiconfig/PortraitConfigTest.java
76c4a0cae000a87a9b0e366a1475cafc76aad86a 13-May-2015 George Mount <mount@google.com> Merge "Don't strip bind: attributes without expressions."
4eb96071f10f4c65aaade8c8b76dc0bdc350f671 08-May-2015 George Mount <mount@google.com> Generate Binding class when <layout> exists.

Whenever a <layout> element exists we'll generate a Binding class.

Change-Id: I4f6ea25f4934b36cb617dbdd6a0f21bee1023a59
estapp/BasicBindingTest.java
7abd815495130b6853ae6dbcb169213dab97a1b9 13-May-2015 George Mount <mount@google.com> Merge "Revert "Use a handler for main thread runnables""
610fd535ee15629671acb847f926b7a1f74eecae 13-May-2015 George Mount <mount@google.com> Revert "Use a handler for main thread runnables"

This reverts commit 55ee815547c229655ac72674ab1a994917fcf477.

Change-Id: I029b5695eab29129c9afcec19b297e2202d181bb
estapp/MultiThreadTest.java
04c34b5c14d7c0693df31bdca8ac1f8e507078ba 13-May-2015 Yigit Boyar <yboyar@google.com> Merge "Use a handler for main thread runnables"
55ee815547c229655ac72674ab1a994917fcf477 10-May-2015 Yigit Boyar <yboyar@google.com> Use a handler for main thread runnables

View.post may not work when view is in the process of being
attached to the window. View.post returns true so we cannot
really detect what is going on.

This CL replaces it w/ a Choreographer when available and
falls back to a Handler on the constructor thread.

Bug: 20978556

Change-Id: Iddb8ebb5f9fb6c992061b79714759dc64d2bc298
estapp/MultiThreadTest.java
a520ca47348b6395cde787c8bb065008c9d48c62 11-May-2015 George Mount <mount@google.com> Don't strip bind: attributes without expressions.

Bug 20977115

Change-Id: Iff22b70eeccfaf9c9133248fb7aef7d76f31dc58
estapp/NoBindAttributeTest.java
cc0e609d998fa9f82d62050bea525afa3a6f92f3 11-May-2015 George Mount <mount@google.com> More forgiving values for android:src attribute.

ImageView's android:src can take a drawable, but it is
also convenient to provide a URI at times. With this change,
it allows applying a URI to that attribute.
estapp/ImageViewBindingAdapterTest.java
3a991cdd22ac12c7db0233b94e3bfc3e54fbf970 01-May-2015 Yigit Boyar <yboyar@google.com> Merge "Support multi-param adapters in code generation"
e9b33bac04bb1ce1444d7f1744fcec1ecd3a57da 30-Apr-2015 Yigit Boyar <yboyar@google.com> Support multi-param adapters in code generation

Bug: 19800022

Change-Id: I40c4ac72f24f965db12fd1c7dec6591184160ae5
estapp/MultiArgAdapterEvaluationTest.java
estapp/MultiArgAdapterTest.java
8152eb857064d749a6131ae2707799c36d93f510 30-Apr-2015 Yigit Boyar <yboyar@google.com> Add test for adapters with custom namespace and only 1 parameter

Bug: 20725703
Change-Id: I198cc320cd0ac58afc2c5017ed160b1441a9009d
estapp/CustomNamespaceAdapterTest.java
6a5e8f49ed279b7ff0fe8097010ba985bf5c5ed6 30-Apr-2015 George Mount <mount@google.com> Add setContentView to DataBindingUtil.

Bug 19703537
estapp/DataBindingUtilTest.java
ed6428586a939e00d9e66314d5cf1056ad48767e 30-Apr-2015 George Mount <mount@google.com> Add static method to get ViewDataBinding for a View.

Bug 20676836

Change-Id: I8690f64b395ceb06fd12daaadcb0f31d6629fc0b
estapp/BasicBindingTest.java
estapp/DataBindingUtilTest.java
9bdb2415487832e88a05c7bd19391b05440b468e 29-Apr-2015 George Mount <mount@google.com> Change from using Context to LayoutInflater for inflate()

When inflating, it is more efficient to use the LayoutInflater
directly instead of getting it from the Context.

I also changed DataBindingUtil.bindTo to bind to match the
static method call in the Binding classes.

Change-Id: I855297a4f081102c49ea477047c0ac81de1676f5
estapp/BaseDataBinderTest.java
estapp/CustomBindingTest.java
estapp/LeakTest.java
e725f0d81e1b07e88f819be9a82181eeeb680dbf 27-Apr-2015 George Mount <mount@google.com> Add listener to notify and disable rebinding.

The OnRebindListener allows the developer to be notified when
a reevaluation of the data binding is going to occur. It also
allows the developer to stop the reevaluation and manually
control when it will happen.

Change-Id: Id6cba294dc5d354a885303cdcd72471ccc57f056
estapp/BasicBindingTest.java
8ec9696461abb5ad0b95024edc3f3ccb9ace85be 17-Apr-2015 George Mount <mount@google.com> Support array length.

Change-Id: If9ddfd09d7becc504741b8dd4f91332de944bfe1
estapp/FindMethodTest.java
c6bcb7bf9cab139b3141c4644e5b3267deed5213 20-Apr-2015 George Mount <mount@google.com> Added some missing expressions.

unary: +/-/~/!
shift: >>/>>>/<<
logical: &&/||
bit: &/|/^
instanceof

Change-Id: I310535e67c8fda2f067a62079e1b609a11bda741
estapp/ExpressionTest.java
3b8fedce6e9ee814ffe7b63d07aa5456f08fb9b2 15-Apr-2015 George Mount <mount@google.com> Parse and strip new layout format.

API Council suggested a new layout format for layouts with
bindings. Here, we parse the new format and strip it. This
also brings in the ability to provide a custom class name
for the binding.

Change-Id: I674320d21265c1dec70d1a52285341fe4994895b
estapp/CustomBindingTest.java
estapp/NoVariablesTest.java
96e1c821dd446d1ed78f8ae61131550588f60a24 10-Apr-2015 George Mount <mount@google.com> Support merge tags.

This also drops the requirement for include tags to have an ID.

Each root view tag is given a numeric suffix, starting with 0.
Merge tags can have multiple roots, the first of which always
is suffixed with 0. The remainder have tag identifiers that
are interspersed with the tags used with expressions. The
numeric suffix is used to identify the View in the mapBindings
call.

Include tag information now uses the tag of its parent so that
its parent will search for the includes within it. When
mapBindings is looking at the parent, it looks for all direct
children with the appropriate tag of the format "layout*/name_0".
Then it searches for all siblings with the same prefix and different
numeric suffixes. Any that are found are considered part of the
same merged include. If it finds another with _0, it knows that
a new include was found.

Change-Id: Idd1144d9037648193724667320744bd079791476
estapp/IncludeTagTest.java
d8c8ec27ed2ec0b11fa37f476395ce27834471f0 05-Apr-2015 Yigit Boyar <yboyar@google.com> Fix ternary handling and generate better code

This CL fixes an issue about ternary expressions where
a ternary expression would be evaluated with its last
evaluated dependency. This would create a problem where
ternary expressions would not be evaluated if other branch
of the conditional is chosen, This bug is fixed by checking
outher flags such that we'll still calculate it together
if all dependencies are behind the same flag vs we'll
calculate it independently if its dependency flags are different.

This CL also improves the generated code in two ways:
- When there is an if inside if, we don't add flag check (the if)
if all of its conditions are covered in the parent if.
- I replaced flag names with binary values. This looks more
readable then generated names.

Bug: 20073197
Change-Id: I9d07868206a5393d6509ab0a205b30a796e11107
estapp/ReadComplexTernaryTest.java
74f72d77b1db2b78ee6422da2ec94de12edcb6dc 27-Mar-2015 Yigit Boyar <yboyar@google.com> Fix bugs related to how we handle Ternary ops

This CL fixes two bugs.
1) When a Ternary operation was inside another operation, we were
not handling dependecies properly and model would think that
the container expression can be evaluated before Ternary is evaluated,
eventually causing an exception in code-gen because Ternay is not
calculated yet.

2) This also fixes another bug where when ?? is used, we would put
ifTrue and ifFalse statements in wrong order and eventually evaluate
!??.

Bug: 19939148

Change-Id: I3e1d2bee172e47412bb8ef9e7c785aef47337155
estapp/InnerCannotReadDependencyTest.java
2e2043d30f95585de2069e1cbb23e022ab0e71c4 02-Apr-2015 George Mount <mount@google.com> Change "generated" to "databinding"
estapp/AbsListViewBindingAdapterTest.java
estapp/AbsSeekBarBindingAdapterTest.java
estapp/AbsSpinnerBindingAdapterTest.java
estapp/AutoCompleteTextViewBindingAdapterTest.java
estapp/BaseObservableTest.java
estapp/BasicBindingTest.java
estapp/BasicDependantBindingTest.java
estapp/BindToFinalFieldTest.java
estapp/BindToFinalObservableFieldTest.java
estapp/BracketTest.java
estapp/CastTest.java
estapp/CheckedTextViewBindingAdapterTest.java
estapp/CompoundButtonBindingAdapterTest.java
estapp/ConditionalBindingTest.java
estapp/FindMethodTest.java
estapp/FrameLayoutBindingAdapterTest.java
estapp/ImageViewBindingAdapterTest.java
estapp/IncludeTagTest.java
estapp/LeakTest.java
estapp/LinearLayoutBindingAdapterTest.java
estapp/ListChangeRegistryTest.java
estapp/MapChangeRegistryTest.java
estapp/NewApiTest.java
estapp/NoIdTest.java
estapp/ObservableArrayListTest.java
estapp/ObservableArrayMapTest.java
estapp/ObservableFieldTest.java
estapp/ObservableWithNotBindableFieldObjectTest.java
estapp/ProcessBindableTest.java
estapp/ProgressBarBindingAdapterTest.java
estapp/PropertyChangeRegistryTest.java
estapp/RadioGroupBindingAdapterTest.java
estapp/ResourceTest.java
estapp/SpinnerBindingAdapterTest.java
estapp/SwitchBindingAdapterTest.java
estapp/TabWidgetBindingAdapterTest.java
estapp/TableLayoutBindingAdapterTest.java
estapp/TextViewBindingAdapterTest.java
estapp/ViewBindingAdapterTest.java
estapp/ViewGroupBindingAdapterTest.java
estapp/ViewStubBindingAdapterTest.java
estapp/ViewStubTest.java
estapp/multiconfig/LandscapeConfigTest.java
estapp/multiconfig/PortraitConfigTest.java
95d1b38adeb5963ec5337e7dd6177b4bb5a03619 01-Apr-2015 George Mount <mount@google.com> Capture views with IDs and no expressions in Binding.

We want to get all Views with IDs in the Binding to save the
developer effort in calling findViewById.

Change-Id: Ib7dd85ae9ecc0fd31b235364c0eadc2303dd1780
estapp/NoIdTest.java
d653884235a14c932c4d6d2c579e248477fb9744 28-Mar-2015 George Mount <mount@google.com> Address comments on LeakTest.
estapp/LeakTest.java
de38dd3ef0577d25b2d59863603abe5750d0c231 28-Mar-2015 George Mount <mount@google.com> Make ViewStub support binding variables like include.

Bug 19969378
estapp/ViewStubBindingAdapterTest.java
estapp/ViewStubTest.java
34a18e6a231f3b64726bd93e7e097a0d5a75995d 26-Mar-2015 George Mount <mount@google.com> Move to public final fields instead of getters for Views.

Bug 19933644
estapp/AbsListViewBindingAdapterTest.java
estapp/AbsSeekBarBindingAdapterTest.java
estapp/AbsSpinnerBindingAdapterTest.java
estapp/AutoCompleteTextViewBindingAdapterTest.java
estapp/BaseDataBinderTest.java
estapp/BasicBindingTest.java
estapp/BasicDependantBindingTest.java
estapp/BracketTest.java
estapp/CastTest.java
estapp/CheckedTextViewBindingAdapterTest.java
estapp/CompoundButtonBindingAdapterTest.java
estapp/ConditionalBindingTest.java
estapp/FindMethodTest.java
estapp/FrameLayoutBindingAdapterTest.java
estapp/ImageViewBindingAdapterTest.java
estapp/LandDataBinderTest.java
estapp/LeakTest.java
estapp/LinearLayoutBindingAdapterTest.java
estapp/NewApiTest.java
estapp/ObservableFieldTest.java
estapp/ObservableWithNotBindableFieldObjectTest.java
estapp/ProgressBarBindingAdapterTest.java
estapp/RadioGroupBindingAdapterTest.java
estapp/ResourceTest.java
estapp/SpinnerBindingAdapterTest.java
estapp/SwitchBindingAdapterTest.java
estapp/TabWidgetBindingAdapterTest.java
estapp/TableLayoutBindingAdapterTest.java
estapp/TextViewBindingAdapterTest.java
estapp/ViewBindingAdapterTest.java
estapp/ViewGroupBindingAdapterTest.java
estapp/ViewStubBindingAdapterTest.java
estapp/multiconfig/LandscapeConfigTest.java
estapp/multiconfig/PortraitConfigTest.java
5914aa7da50a90a4c705b5be02a215499d0ad232 20-Mar-2015 George Mount <mount@google.com> Don't execute binding when the root view is detached.

Also add tests for memory leaks. The binder should be deleted
when the root view is deleted.

Change-Id: Ifcb24feb80791e64cdfd7203d071d9b1453f6f70
estapp/LeakTest.java
fead9ca09b117136b35bc5bf137340a754f9eddd 23-Mar-2015 George Mount <mount@google.com> Move to package android.databinding.
ibrary/DataBinderTrojan.java
estapp/AbsListViewBindingAdapterTest.java
estapp/AbsSeekBarBindingAdapterTest.java
estapp/AbsSpinnerBindingAdapterTest.java
estapp/ApplicationTest.java
estapp/AutoCompleteTextViewBindingAdapterTest.java
estapp/BaseDataBinderTest.java
estapp/BaseLandDataBinderTest.java
estapp/BaseObservableTest.java
estapp/BasicBindingTest.java
estapp/BasicDependantBindingTest.java
estapp/BindToFinalFieldTest.java
estapp/BindToFinalObservableFieldTest.java
estapp/BindingAdapterTestBase.java
estapp/BracketTest.java
estapp/CastTest.java
estapp/CheckedTextViewBindingAdapterTest.java
estapp/CompoundButtonBindingAdapterTest.java
estapp/ConditionalBindingTest.java
estapp/FindMethodTest.java
estapp/FrameLayoutBindingAdapterTest.java
estapp/ImageViewBindingAdapterTest.java
estapp/IncludeTagTest.java
estapp/LandDataBinderTest.java
estapp/LinearLayoutBindingAdapterTest.java
estapp/ListChangeRegistryTest.java
estapp/MapChangeRegistryTest.java
estapp/NewApiTest.java
estapp/NoIdTest.java
estapp/ObservableArrayListTest.java
estapp/ObservableArrayMapTest.java
estapp/ObservableFieldTest.java
estapp/ObservableWithNotBindableFieldObjectTest.java
estapp/ProcessBindableTest.java
estapp/ProgressBarBindingAdapterTest.java
estapp/PropertyChangeRegistryTest.java
estapp/RadioGroupBindingAdapterTest.java
estapp/ResourceTest.java
estapp/SpinnerBindingAdapterTest.java
estapp/SwitchBindingAdapterTest.java
estapp/TabWidgetBindingAdapterTest.java
estapp/TableLayoutBindingAdapterTest.java
estapp/TextViewBindingAdapterTest.java
estapp/ViewBindingAdapterTest.java
estapp/ViewGroupBindingAdapterTest.java
estapp/ViewStubBindingAdapterTest.java
estapp/multiconfig/LandscapeConfigTest.java
estapp/multiconfig/PortraitConfigTest.java