Fix issue with abi split when there's no universal pkg.

The issue came from the process resource task that
generates the R class. Only one of the outputs' task
is setup to generate the R class, but it only
happened if an output had no filter for abi or density.

Now we just find the first one to not have a density filter
and use it.

Also, converted ndkSanAngeles sample to use the new split
mechanism.

Change-Id: I44becc559b90b53f77561c68020725e60daa749a
Change java compile task to generic compile task in model

The previous model included a task to allow compiling
only up to the Java code for a given artifact. This did
not include native code, so the new model has a generic
compile task instead.

The old java compile task is still there for now but will be
removed in 1.0

Change-Id: I030a069130613fee5692123966d1acc1d0926996
Merge "Fix issue with abi split when there's no universal pkg." into idea133
Merge "Change java compile task to generic compile task in model" into idea133
Merge "Fix issue with abi split when there\'s no universal pkg." into idea133
automerge: 7394f34

* commit '7394f34213ccbec9f544ba1e6c5f7ca7161646cc':
  Fix issue with abi split when there's no universal pkg.
Merge "Change java compile task to generic compile task in model" into idea133
automerge: 6fa4f43

* commit '6fa4f437377634a3d4c850f9c2ba57b538e43ff3':
  Change java compile task to generic compile task in model
Use daemon threads for battery and property background fetches.

The thread pool previously used had no benefit over a simple thread,
since there was a thread pool per device.

Using daemon threads so having an active prop or battery query does not
prevent JVM from shutting down.

Also remove the battery fetch backoff time to be consistent with
property fetch.

Change-Id: Ica14c161462f7a5ee1729d87228f4d13fb28de63
Merge "Use daemon threads for battery and property background fetches." into idea133
Merge "Use daemon threads for battery and property background fetches." into idea133
automerge: 5f23e7b

* commit '5f23e7bbf550ed69576dff2178c21c7109259a2e':
  Use daemon threads for battery and property background fetches.
Fix test due to compile task change in the model.

Change-Id: Id9effc1f682ddd6d6b302bb077f354d81ab2b973
Merge "Fix test due to compile task change in the model." into idea133
Merge "Fix test due to compile task change in the model." into idea133
automerge: bdbd4a9

* commit 'bdbd4a90cb70b1812e0d5134a8e632bbc96b30ec':
  Fix test due to compile task change in the model.
Add ability to mock LayoutLibrary

Add a default constructor that may be used to instantiate LayoutLibrary
for the purpose of testing.

Change-Id: I42e40da0927249fa2c5d10fd3f5f993c42388101
Merge "Add ability to mock LayoutLibrary" into idea133
Merge "Add ability to mock LayoutLibrary" into idea133
automerge: 0c3168c

* commit '0c3168c3839dc96b9476bd365fb8b1b757d74e5e':
  Add ability to mock LayoutLibrary