Fix Vogar to use API stubs for dependencies from other APEX modules.

Do not depend on implementation class jars when building device tests,
which we won't have when building from prebuilts in the master-art
reduced manifest.

Cherry-picked from https://r.android.com/2101173.

Test: rm -rf out/target/common/obj && \
      art/tools/buildbot-build.sh --target --skip-run-tests-build && \
      vogar --mode=device \
        libcore/ojluni/src/test/java/{lang/String,net,security}
Bug: 233062411
Change-Id: I007a767d798b1bbfefdf3ee0a72ef26346aff2a5
Merged-In: I007a767d798b1bbfefdf3ee0a72ef26346aff2a5
2 files changed