Searched refs:monkeyLog (Results 1 – 5 of 5) sorted by relevance
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | MonkeyLogParserTest.java | 76 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(lines); in testParse_success() local 77 assertNotNull(monkeyLog); in testParse_success() 81 assertEquals(1, monkeyLog.getPackages().size()); in testParse_success() 82 assertTrue(monkeyLog.getPackages().contains("com.google.android.browser")); in testParse_success() 83 assertEquals(1, monkeyLog.getCategories().size()); in testParse_success() 84 assertTrue(monkeyLog.getCategories().contains("android.intent.category.LAUNCHER")); in testParse_success() 85 assertEquals(100, monkeyLog.getThrottle()); in testParse_success() 86 assertEquals(528, monkeyLog.getSeed().intValue()); in testParse_success() 87 assertEquals(10000, monkeyLog.getTargetCount().intValue()); in testParse_success() 88 assertTrue(monkeyLog.getIgnoreSecurityExceptions()); in testParse_success() [all …]
|
D | MonkeyLogParserFuncTest.java | 49 MonkeyLogItem monkeyLog = null; in testParse() local 52 monkeyLog = new MonkeyLogParser().parse(monkeyLogReader); in testParse() 66 assertNotNull(monkeyLog); in testParse() 67 assertNotNull(monkeyLog.getStartTime()); in testParse() 68 assertNotNull(monkeyLog.getStopTime()); in testParse() 69 assertNotNull(monkeyLog.getTargetCount()); in testParse() 70 assertNotNull(monkeyLog.getThrottle()); in testParse() 71 assertNotNull(monkeyLog.getSeed()); in testParse() 72 assertNotNull(monkeyLog.getIgnoreSecurityExceptions()); in testParse() 73 assertTrue(monkeyLog.getPackages().size() > 0); in testParse() [all …]
|
D | SmartMonkeyLogParserTest.java | 51 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testExceptions() local 52 assertNotNull(monkeyLog); in testExceptions() 53 assertEquals(1, monkeyLog.getCrashTimes().size()); in testExceptions() 54 assertEquals(1, monkeyLog.getAnrTimes().size()); in testExceptions() 56 monkeyLog.getCrashTimes().toArray()[0]); in testExceptions() 58 monkeyLog.getAnrTimes().toArray()[0]); in testExceptions() 81 SmartMonkeyLogItem monkeyLog = new SmartMonkeyLogParser().parse(lines); in testHeader() local 82 assertNotNull(monkeyLog); in testHeader() 83 assertEquals(2, monkeyLog.getApplications().size()); in testHeader() 84 assertEquals("UiAutomator Tests", monkeyLog.getApplications().get(0)); in testHeader() [all …]
|
/tools/tradefederation/contrib/src/com/android/monkey/ |
D | MonkeyBrillopadForwarder.java | 154 MonkeyLogItem monkeyLog, Map<String, String> monkeyMetrics) { in reportMonkeyStats() argument 155 MonkeyStatus status = getStatus(monkeyLog); in reportMonkeyStats() 156 monkeyMetrics.put("throttle", convertToString(monkeyLog.getThrottle())); in reportMonkeyStats() 158 monkeyMetrics.put("target_count", convertToString(monkeyLog.getTargetCount())); in reportMonkeyStats() 159 monkeyMetrics.put("injected_count", convertToString(monkeyLog.getFinalCount())); in reportMonkeyStats() 160 monkeyMetrics.put("run_duration", convertToString(monkeyLog.getTotalDuration())); in reportMonkeyStats() 164 (monkeyLog.getStopUptimeDuration() - monkeyLog.getStartUptimeDuration()))); in reportMonkeyStats() 185 MonkeyLogItem monkeyLog, Map<String, String> metrics, StringBuilder crashTrace) { in reportJavaCrashes() argument 187 if (monkeyLog.getCrash() != null && monkeyLog.getCrash() instanceof JavaCrashItem) { in reportJavaCrashes() 188 JavaCrashItem jc = (JavaCrashItem) monkeyLog.getCrash(); in reportJavaCrashes() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/ |
D | LogAnalyzer.java | 138 MonkeyLogItem monkeyLog = new MonkeyLogParser().parse(reader); in run() local 139 printMonkeyLog(monkeyLog); in run() 260 private void printMonkeyLog(MonkeyLogItem monkeyLog) { in printMonkeyLog() argument 262 printJson(monkeyLog); in printMonkeyLog()
|