Add a rule that loads rules dynamically.

Rules are passed in via instrumentation arguments. Rules that are from
the package android.platform.test.rule can be passed in via their
simple class name. Fully qualified class name is supported for all
rules.

In subsequent CLs, this rule will be added to our test runners so that
we can load rules at runtime.

Bug: 123281375
Test: atest PlatformRuleTests:DynamicRuleChainTest
Change-Id: Id67cc291d8673b801d08f2d05b241461b7c5820f
2 files changed