am e610a1e: AI 147559: CTS: Use longer timeouts to allow for class initi
Merge commit 'e610a1e958b9b9b2bf6d2f3d87aff38fd9e056a8' into donut
* commit 'e610a1e958b9b9b2bf6d2f3d87aff38fd9e056a8':
AI 147559: CTS: Use longer timeouts to allow for class initialization delays
diff --git a/tools/host/src/com/android/cts/HostConfig.java b/tools/host/src/com/android/cts/HostConfig.java
index 89b2059..e146fb9 100644
--- a/tools/host/src/com/android/cts/HostConfig.java
+++ b/tools/host/src/com/android/cts/HostConfig.java
@@ -71,9 +71,6 @@
private CaseRepository mCaseRepos;
private Repository mResultRepos;
private PlanRepository mPlanRepos;
-
- // key: app package name
- // value: TestPackage
private HashMap<String, TestPackage> mTestPackageMap;
private HashMap<String, Integer> mIntValues;
@@ -257,9 +254,9 @@
* @return The binary name of the package.
*/
public String getPackageBinaryName(String appPackageName) {
-
for (TestPackage pkg : mTestPackageMap.values()) {
- if (appPackageName.equals(pkg.getAppPackageName())) {
+ if ((appPackageName.startsWith(pkg.getAppPackageName()))
+ || (appPackageName.equals(pkg.getAppBinaryName()))) {
return pkg.getAppBinaryName();
}
}