InstrumentationCtsTestRunner Static Library

Create a static library for InstrumentationCtsTestRunner and make
test packages depend on that rather than the com.android.cts.stub
behemoth. Previously, ICTS was globbed by the stub Makefile. This
just moves this glob to a static library package and makes stub
depend on the static library instead.

Most tests don't need anything else in com.android.cts.stub,
so this should save compilation time once all packages use ICTS as
static libraries and runtest no longer needs to always do make
CtsTestStubs.

It might reduce race conditions when using runtest
which needs to initially push both the com.android.cts.stub package
and the tests package to get going.

Most packages should just include this static library and go back
to instrumenting themselves rather than com.android.cts.stub. They
still might want ICTS, because it has things like disabling the
keyguard and setting certain system properties.

Change-Id: I4052d23f5b003a0e8dbd23cf47d09a665a76c816
4 files changed