Remove prefs tests from external/apache-harmony.

They've been moved to libcore/harmony-tests.

bug: 13881847
Change-Id: I5bce131edb8f2dc1582bf46d6e35c633432681aa
Merge "Remove prefs tests from external/apache-harmony."
Ensure device is started before running JDWP tests

We need a started device to initialize the JDWP test infrastructure on device.
We now reboot the device after syncing the files and wait for boot complete.

Bug: 16959184

(cherry picked from commit 559758352e3839e8d8dd5d31525819329bd57a31)

Change-Id: Ib7e9909a7101298d9c3adf07bc563f6e14e7de38
Merge "Ensure device is started before running JDWP tests"
Fixing serialization compatibility tests for sql tests

The resources files were being loaded using the System
classloader, which is not useful for instrumentation CTS
tests: the app classloader is a direct child of the
boot classloader.

Also moving all sql resources beneath
com.android.org.apache instead of just org.apache.
The resource names used during tests are derived from the
fully-qualified names of the test classes. At build time
we re-package the test code by prepending "com.android."
to the "org.apache" using jarjar. This is probably to
avoid conflicts with other tests / support code that have
been moved to libcore/harmony-tests but retain their
original package name.

Also a small change to the .mk file to remove references
to packages that no longer exist.

Bug: 17342415
Change-Id: I37fef5acedbb8b9cb9fec8fa39e7c5d8ab641f5a
Fixes for apache-harmony logging tests

Moves all config and resources files beneath com/android
to avoid conflicts with similar files held in libcore under
the same package and also originate from apache-harmony.
Updates to resource names in tests.

Additional changes described below.

FileHandlerTest: Refactoring to avoid getting the
java.io.tmpdir before it has been changed by the test
runner. Minor clean-up, plus...
testLimitAndCount: The test was assuming it could write
to the current directory. Prepended %t/ to paths to
write to the temp dir instead.
testInvalidParams(): The test was broken by Android
changes but does not appear to be testing anything
valuable.

LoggerTest: Import cleanup plus:
testGetLogger_Empty / testGetLoggerWithRes_Empty:
The tests appears incorrect. test_initHandler: Changed
to use resources rather than direct file access as
this will work better under CTS.

XmlFormatterTest: Use java.io.tempdir, not user.home
to create a temp file. This will work better under
Android.

Change-Id: Id62ea43d7a8ee276cf2f82916a3711028b36a349
Merge "Fixing serialization compatibility tests for sql tests"
Merge "Fixes for apache-harmony logging tests"