Revert "Include apks and jars in cts coverage"

This reverts commit a8ca2ee8d155df8d235e6a5c1a2e3d25aa089705.

Change-Id: I971d55339eebab8de40920b456aa5acac87dc9b2
diff --git a/CtsCoverage.mk b/CtsCoverage.mk
index 3f513ca..4b01005 100644
--- a/CtsCoverage.mk
+++ b/CtsCoverage.mk
@@ -38,8 +38,8 @@
 
 cts_api_coverage_dependencies := $(cts_api_coverage_exe) $(dexdeps_exe) $(api_xml_description)
 
-cts_coverage_test_cases_dependencies := $(CTS_TEST_CASES)
-$(cts-test-coverage-report): PRIVATE_TEST_CASES_APKS := $(wildcard $(CTS_TESTCASES_OUT)/*.apk) $(wildcard $(CTS_TESTCASES_OUT)/*.jar)
+cts_coverage_test_cases_dependencies := $(foreach c, $(CTS_COVERAGE_TEST_CASE_LIST), $(call intermediates-dir-for,APPS,$(c))/package.apk)
+$(cts-test-coverage-report): PRIVATE_TEST_CASES_APKS := $(cts_coverage_test_cases_dependencies)
 $(cts-test-coverage-report): PRIVATE_CTS_API_COVERAGE_EXE := $(cts_api_coverage_exe)
 $(cts-test-coverage-report): PRIVATE_DEXDEPS_EXE := $(dexdeps_exe)
 $(cts-test-coverage-report): PRIVATE_API_XML_DESC := $(api_xml_description)
@@ -56,8 +56,8 @@
 	$(call generate-coverage-report,"CTS Verifier API Coverage Report",\
 			$(PRIVATE_TEST_CASES_APKS),html)
 
-cts_coverage_test_cases_dependencies := $(CTS_TEST_CASES)
-$(cts-combined-coverage-report): PRIVATE_TEST_CASES_APKS := $(call intermediates-dir-for,APPS,CtsVerifier)/package.apk $(wildcard $(CTS_TESTCASES_OUT)/*.apk) $(wildcard $(CTS_TESTCASES_OUT)/*.jar)
+cts_coverage_test_cases_dependencies := $(foreach c, $(CTS_COVERAGE_TEST_CASE_LIST) CtsVerifier, $(call intermediates-dir-for,APPS,$(c))/package.apk)
+$(cts-combined-coverage-report): PRIVATE_TEST_CASES_APKS := $(cts_coverage_test_cases_dependencies)
 $(cts-combined-coverage-report): PRIVATE_CTS_API_COVERAGE_EXE := $(cts_api_coverage_exe)
 $(cts-combined-coverage-report): PRIVATE_DEXDEPS_EXE := $(dexdeps_exe)
 $(cts-combined-coverage-report): PRIVATE_API_XML_DESC := $(api_xml_description)
@@ -65,8 +65,8 @@
 	$(call generate-coverage-report,"CTS Combined API Coverage Report",\
 			$(PRIVATE_TEST_CASES_APKS),html)
 
-cts_coverage_test_cases_dependencies := $(CTS_TEST_CASES)
-$(cts-combined-xml-coverage-report): PRIVATE_TEST_CASES_APKS := $(call intermediates-dir-for,APPS,CtsVerifier)/package.apk $(wildcard $(CTS_TESTCASES_OUT)/*.apk) $(wildcard $(CTS_TESTCASES_OUT)/*.jar)
+cts_coverage_test_cases_dependencies := $(foreach c, $(CTS_COVERAGE_TEST_CASE_LIST) CtsVerifier, $(call intermediates-dir-for,APPS,$(c))/package.apk)
+$(cts-combined-xml-coverage-report): PRIVATE_TEST_CASES_APKS := $(cts_coverage_test_cases_dependencies)
 $(cts-combined-xml-coverage-report): PRIVATE_CTS_API_COVERAGE_EXE := $(cts_api_coverage_exe)
 $(cts-combined-xml-coverage-report): PRIVATE_DEXDEPS_EXE := $(dexdeps_exe)
 $(cts-combined-xml-coverage-report): PRIVATE_API_XML_DESC := $(api_xml_description)