Move android.test classes from core/java to legacy-test/src

Bug: 30188076
Test: make checkbuild
Change-Id: Ifa291909fcf47da788627b496bd72f54efd78ed7
diff --git a/Android.mk b/Android.mk
index 7099848..85c494d 100644
--- a/Android.mk
+++ b/Android.mk
@@ -519,7 +519,7 @@
 LOCAL_ADDITIONAL_DEPENDENCIES := $(framework_res_R_stamp)
 
 LOCAL_NO_STANDARD_LIBRARIES := true
-LOCAL_JAVA_LIBRARIES := core-oj core-libart conscrypt okhttp legacy-test bouncycastle ext
+LOCAL_JAVA_LIBRARIES := core-oj core-libart conscrypt okhttp bouncycastle ext
 
 LOCAL_STATIC_JAVA_LIBRARIES :=                          \
     framework-protos                                    \
@@ -757,6 +757,7 @@
 # Search through the base framework dirs for these packages.
 # The result will be relative to frameworks/base.
 fwbase_dirs_to_document := \
+	legacy-test/src \
 	test-runner/src \
 	$(patsubst $(LOCAL_PATH)/%,%, \
 	  $(wildcard \