From b4e39aebf6b27aa0ed094a75bde8b2bacda28d98 Mon Sep 17 00:00:00 2001 From: Dan Egnor Date: Thu, 7 Jan 2010 21:17:24 -0800 Subject: [PATCH] Expand BadBehaviorActivity to add a few new flavors of ANR. In addition to the basic sleep-for-20, add activity launch, ordered broadcast, and service start that go to special bad versions that sleep for a while to cause the respective sorts of ANR to trigger. --- apps/Development/AndroidManifest.xml | 7 ++ apps/Development/res/layout/bad_behavior.xml | 15 ++++ apps/Development/res/values/strings.xml | 5 +- .../development/BadBehaviorActivity.java | 76 +++++++++++++++++-- 4 files changed, 94 insertions(+), 9 deletions(-) diff --git a/apps/Development/AndroidManifest.xml b/apps/Development/AndroidManifest.xml index 823130b7e..3c75a6358 100644 --- a/apps/Development/AndroidManifest.xml +++ b/apps/Development/AndroidManifest.xml @@ -161,11 +161,18 @@ + + + + + + + diff --git a/apps/Development/res/layout/bad_behavior.xml b/apps/Development/res/layout/bad_behavior.xml index bbc5b9f06..72275aeb1 100644 --- a/apps/Development/res/layout/bad_behavior.xml +++ b/apps/Development/res/layout/bad_behavior.xml @@ -44,4 +44,19 @@ android:layout_height="wrap_content" android:text="@string/bad_behavior_anr_label" /> +