summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorwsmlby <wsmlby@google.com>2014-10-01 22:18:13 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-01 22:18:13 +0000
commit2e7aa67585778cc4ef518ee259103c7dfd384ee9 (patch)
treed33ca8c8fe089a6acc8c259068ce61476f84621c /tests
parentcae740173f2797209bea31f3df23e6b664754498 (diff)
parent489502cf606b12cc0f872cec6dfd18d0e41db93f (diff)
downloadframeworks_base-2e7aa67585778cc4ef518ee259103c7dfd384ee9.zip
frameworks_base-2e7aa67585778cc4ef518ee259103c7dfd384ee9.tar.gz
frameworks_base-2e7aa67585778cc4ef518ee259103c7dfd384ee9.tar.bz2
am 489502cf: am 7e1ae00c: Merge "Throw error when no intent can be found" into lmp-dev
* commit '489502cf606b12cc0f872cec6dfd18d0e41db93f': Throw error when no intent can be found
Diffstat (limited to 'tests')
-rw-r--r--tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java b/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java
index 5794b2b..dd823ae 100644
--- a/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java
+++ b/tests/Compatibility/src/com/android/compatibilitytest/AppCompatibility.java
@@ -155,16 +155,12 @@ public class AppCompatibility extends InstrumentationTestCase {
homeIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
Intent intent;
if (isleanback) {
- Log.d(TAG, "Leanback and relax!");
+ Log.d(TAG, "Leanback and relax! " + packageName);
intent = mPackageManager.getLeanbackLaunchIntentForPackage(packageName);
} else {
intent = mPackageManager.getLaunchIntentForPackage(packageName);
}
- // Skip if the apk does not have a launch intent.
- if (intent == null) {
- Log.d(TAG, "Skipping " + packageName + "; missing launch intent");
- return null;
- }
+ assertNotNull("Skipping " + packageName + "; missing launch intent", intent);
String processName = getProcessName(packageName);