Fix pattern issue in MonkeyTest

The pattern is designed to match the output of logcat without
format.
But, there are 8 formats defined in /system/core/liblog/logprint.c.
If logcat is set with any format, the test cases will fail.
Since 'executeAdbCommand' ensures the tag filter of 'MonkeyActivity:I',
check if the output contains MONKEY or HUMAN should work as expected.

Change-Id: Ibcf18407bf6dee0d405ca90c5d597cff940a7201
diff --git a/hostsidetests/monkey/src/com/android/cts/monkey/MonkeyTest.java b/hostsidetests/monkey/src/com/android/cts/monkey/MonkeyTest.java
index 87e1268..17a5cf8 100644
--- a/hostsidetests/monkey/src/com/android/cts/monkey/MonkeyTest.java
+++ b/hostsidetests/monkey/src/com/android/cts/monkey/MonkeyTest.java
@@ -24,8 +24,6 @@
 
 public class MonkeyTest extends AbstractMonkeyTest {
 
-    private static final Pattern LOG_PATTERN =
-            Pattern.compile("I/MonkeyActivity\\([\\d ]+\\): (.*)");
     private static final String MONKEY = "@(>.<)@";
     private static final String HUMAN = "(^_^)";
 
@@ -49,13 +47,11 @@
         try {
             while (s.hasNextLine()) {
                 String line = s.nextLine();
-                Matcher m = LOG_PATTERN.matcher(line);
-                if (m.matches()) {
+                if (line.contains(isMonkey ? MONKEY : HUMAN)) {
                     monkeyLogsFound = true;
-                    assertEquals(isMonkey ? MONKEY : HUMAN, m.group(1));
                 }
             }
-            assertTrue("No monkey logs were found!", monkeyLogsFound);
+            assertTrue(monkeyLogsFound);
         } finally {
             s.close();
         }