Do not use static in BasePrintTest

... so that all tests are fully isolated from each other.

- Do not store instrumentation or ui-device (does not yield a
  performance improvement anyway)
- For the onActivityCreateCalled and onActivityDestroyCalled function
  have a way to find the right test class for the activity via sIdToTest
- Make sure previous activity is gone before tearing down the test

Also:
- Remove animation disablement (does not work)
- Change two deprecated APIs in PrintDocumentActivity
- Wait until adapter is done in PrintJobStateTransitionsTest to prevent
  races

Change-Id: I541dd9647f04232ec1aa0875961f4f9804b7a9d4
Fixes: 63679072
Test: cts-tradefed run cts-dev -m Print
3 files changed