Create replacement for @AfterClass and @BeforeClass

Currently, even if the class-level annotations cause an assumption
failure, the @BeforeClass and @Afterclass will still happen - there is no way of
avoiding this.

This throws an error if the default @BeforeClass or @AfterClass
annotations are used, and adds alternative ones for when using Bedstead.
They behave the same but will be skipped correctly.

Test: atest CtsDevicePolicyTestCases
Test: atest HarrierTest
Test: atest CtsDomainVerificationDeviceMultiUserTestCases
Fixes: 188502506
Change-Id: Ia7a7b5d9c17a7828a314fd1f30769d19af20e730
10 files changed