Index: build/android/pylib/linker/test_case.py |
diff --git a/build/android/pylib/linker/test_case.py b/build/android/pylib/linker/test_case.py |
index e8b2ffee75acd73fe10523d0254a7c6734a9b9cc..446bc849153f3877d6fd6f6dbd94552bfbe5d2b8 100644 |
--- a/build/android/pylib/linker/test_case.py |
+++ b/build/android/pylib/linker/test_case.py |
@@ -42,6 +42,7 @@ import time |
from pylib import constants |
from pylib.base import base_test_result |
+from pylib.device import intent |
ResultType = base_test_result.ResultType |
@@ -164,8 +165,9 @@ def _StartActivityAndWaitForLinkerTestStatus(device, timeout): |
try: |
# 2. Force-start activity. |
- device.old_interface.StartActivity( |
- package=_PACKAGE_NAME, activity=_ACTIVITY_NAME, force_stop=True) |
+ device.StartActivity( |
+ intent.Intent(package=_PACKAGE_NAME, activity=_ACTIVITY_NAME), |
+ force_stop=True) |
# 3. Wait up to |timeout| seconds until the test status is in the logcat. |
num_tries = 0 |