/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 33 import java.util.regex.Pattern; 39 private static final Pattern THROTTLE = Pattern.compile( 41 private static final Pattern SEED_AND_TARGET_COUNT = Pattern.compile( 43 private static final Pattern SECURITY_EXCEPTIONS = Pattern.compile( 46 private static final Pattern PACKAGES = Pattern.compile(":AllowPackage: (\\S+)"); 47 private static final Pattern CATEGORIES = Pattern.compile(":IncludeCategory: (\\S+)"); 49 private static final Pattern START_UPTIME = Pattern.compile( 51 private static final Pattern STOP_UPTIME = Pattern.compile( 55 private static final Pattern INTERMEDIATE_COUNT = Pattern.compile( 57 private static final Pattern FINISHED = Pattern.compile("// Monkey finished"); [all …]
|
D | SmartMonkeyLogParser.java | 27 import java.util.regex.Pattern; 39 private static final Pattern START_TIME = Pattern.compile( 42 private static final Pattern START_UPTIME = Pattern.compile( 45 private static final Pattern STOP_UPTIME = Pattern.compile( 48 private static final Pattern THROTTLE = Pattern.compile( 51 private static final Pattern TARGET_INVOCATIONS = Pattern.compile( 54 private static final Pattern INTERMEDIATE_COUNT = Pattern.compile( 57 private static final Pattern INTERMEDIATE_TIME = Pattern.compile(TIME_STAMP_GROUP + ".*"); 59 private static final Pattern FINISHED = Pattern.compile( 62 private static final Pattern FINAL_COUNT = Pattern.compile( [all …]
|
D | AnrParser.java | 22 import java.util.regex.Pattern; 33 public static final Pattern START = Pattern.compile( 38 private static final Pattern PID = Pattern.compile("^PID: (\\d+)$"); 42 private static final Pattern REASON = Pattern.compile("^Reason: (.*)$"); 46 private static final Pattern LOAD = Pattern.compile( 52 private static final Pattern TOTAL = Pattern.compile("^(\\d+(\\.\\d+)?)% TOTAL: .*$"); 53 private static final Pattern USER = Pattern.compile("^.* (\\d+(\\.\\d+)?)% user.*$"); 54 private static final Pattern KERNEL = Pattern.compile("^.* (\\d+(\\.\\d+)?)% kernel.*$"); 55 private static final Pattern IOWAIT = Pattern.compile("^.* (\\d+(\\.\\d+)?)% iowait.*$");
|
D | GfxInfoParser.java | 22 import java.util.regex.Pattern; 30 private static final Pattern PID_PREFIX = Pattern.compile( 34 private static final Pattern TOTAL_FRAMES_PREFIX = Pattern.compile( 38 private static final Pattern JANKY_FRAMES_PREFIX = Pattern.compile( 42 private static final Pattern PERCENTILE_90_PREFIX = 43 Pattern.compile("90th percentile: (\\d+)ms"); 46 private static final Pattern PERCENTILE_95_PREFIX = 47 Pattern.compile("95th percentile: (\\d+)ms"); 50 private static final Pattern PERCENTILE_99_PREFIX = 51 Pattern.compile("99th percentile: (\\d+)ms");
|
D | CompactMemInfoParser.java | 23 import java.util.regex.Pattern; 40 private static final Pattern PROC_PATTERN = 41 Pattern.compile("proc,(\\w+),([a-zA-Z_0-9\\.]+),(\\d+),(\\d+),((\\S+),)?(.*)"); 42 private static final Pattern LOST_RAM_PATTERN = Pattern.compile("lostram,(\\d+)"); 43 private static final Pattern RAM_PATTERN = Pattern.compile("ram,(\\d+),(\\d+),(\\d+)"); 44 private static final Pattern ZRAM_PATTERN = Pattern.compile("zram,(\\d+),(\\d+),(\\d+)"); 45 private static final Pattern TUNING_PATTERN = Pattern.compile("tuning,(\\d+),(\\d+),(\\d+).*");
|
D | KernelLogParser.java | 30 import java.util.regex.Pattern; 48 private static final Pattern LOG_LINE = Pattern.compile( 50 private static final Pattern SELINUX_DENIAL_PATTERN = Pattern.compile( 53 private static final Pattern PAGE_ALLOC_FAILURE_PATTERN = Pattern.compile( 56 private static final Pattern LOW_MEMORY_KILLER_PATTERN = Pattern.compile( 62 public static final Pattern BAD_BOOTREASONS = Pattern.compile( 69 public static final Pattern GOOD_BOOTREASONS = Pattern.compile( 249 mPatternUtil.addPattern(Pattern.compile(pattern), KERNEL_RESET); in initPatterns() 252 mPatternUtil.addPattern(Pattern.compile(pattern), NORMAL_REBOOT); in initPatterns() 255 mPatternUtil.addPattern(Pattern.compile("Internal error:.*"), KERNEL_ERROR); in initPatterns()
|
D | DumpsysWifiStatsParser.java | 22 import java.util.regex.Pattern; 32 private static final Pattern WIFI_SCAN = Pattern.compile( 39 private static final Pattern WIFI_DISCONNECT = Pattern.compile( 46 private static final Pattern WIFI_ASSOCIATION = Pattern.compile(
|
D | TracesParser.java | 22 import java.util.regex.Pattern; 36 private static final Pattern PID = Pattern.compile( 42 private static final Pattern APP = Pattern.compile("^Cmd ?line: (\\S+).*$"); 47 private static final Pattern STACK = Pattern.compile("^\"main\" .*$");
|
D | DumpsysPackageStatsParser.java | 23 import java.util.regex.Pattern; 29 private static final Pattern PACKAGE_NAME = Pattern.compile("^\\s*Package \\[(.*)\\].*"); 32 private static final Pattern VERSION_CODE = Pattern.compile("^\\s*versionCode=(\\d+).*"); 35 private static final Pattern VERSION_NAME = Pattern.compile("^\\s*versionName=(.*)$");
|
D | TraceFormatParser.java | 25 import java.util.regex.Pattern; 70 private static final Pattern SPLIT_FORMAT_LINE = 71 Pattern.compile(".*?\"(?<printf>.*?)\"(?<params>.*)"); 73 private static final Pattern SPLIT_PARAMS = Pattern.compile("->(?<param>\\w+)"); 76 private static final Pattern PRINTF_SPECIFIERS = 77 Pattern.compile( 142 Pattern generatedRegex = Pattern.compile(regexBuilder.toString()); in parse()
|
D | DmesgParser.java | 31 import java.util.regex.Pattern; 62 private static final Pattern START_SERVICE = Pattern.compile( 64 private static final Pattern EXIT_SERVICE = Pattern.compile( 73 private static final Pattern START_STAGE = Pattern.compile( 82 private static final Pattern START_PROCESSING_ACTION = 83 Pattern.compile(String.format("%s%s", SERVICE_PREFIX, START_PROCESSING_ACTION_PREFIX)); 88 private static final Pattern UEVENTD_STAGE_INFO = Pattern.compile( 94 private static final Pattern WAIT_FOR_PROPERTY_INFO = Pattern.compile( 257 private static Matcher matches(Pattern pattern, String line) { in matches()
|
D | ProcessUsageParser.java | 25 import java.util.regex.Pattern; 38 private static final Pattern UID_PATTERN = Pattern.compile("^\\s*(\\w+):$"); 43 private static final Pattern SENSOR_PATTERN = Pattern.compile( 51 private static final Pattern ALARM_PATTERN = Pattern.compile("^\\s*(\\d+) wakeup alarms$");
|
D | TimingsLogParser.java | 36 import java.util.regex.Pattern; 67 private static final Pattern SYSTEM_SERVICES_DURATION = 68 Pattern.compile( 77 private static final Pattern SYSTEM_SERVICES_START_TIME = 78 Pattern.compile( 87 Pattern mStartTimePattern; 88 Pattern mEndTimePattern; 90 DurationPattern(String name, Pattern startTimePattern, Pattern endTimePattern) { in DurationPattern() 111 String name, Pattern startTimePattern, Pattern endTimePattern) { in addDurationPatternPair()
|
D | JavaCrashParser.java | 23 import java.util.regex.Pattern; 34 private static final Pattern EXCEPTION = Pattern.compile("^([^\\s:]+)(: (.*))?$"); 38 private static final Pattern CAUSEDBY = Pattern.compile("^Caused by: .+$"); 42 private static final Pattern AT = Pattern.compile("^\tat .+$");
|
D | BatteryUsageParser.java | 22 import java.util.regex.Pattern; 32 private static final Pattern Capacity = Pattern.compile( 35 private static final Pattern Usage = Pattern.compile("^\\s*(.*): (\\d+(\\.\\d*)?)");
|
D | NativeCrashParser.java | 22 import java.util.regex.Pattern; 30 public static final Pattern FINGERPRINT = Pattern.compile("^Build fingerprint: '(.*)'$"); 32 private static final Pattern APP = Pattern.compile(
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AaptParser.java | 24 import java.util.regex.Pattern; 32 private static final Pattern PKG_PATTERN = Pattern.compile( 34 Pattern.MULTILINE); 35 private static final Pattern LABEL_PATTERN = Pattern.compile( 37 Pattern.MULTILINE); 38 private static final Pattern SDK_PATTERN = Pattern.compile( 39 "^sdkVersion:'(\\d+)'", Pattern.MULTILINE); 40 private static final Pattern TARGET_SDK_PATTERN = 41 Pattern.compile("^targetSdkVersion:'(\\d+)'", Pattern.MULTILINE); 43 private static final Pattern NATIVE_CODE_PATTERN = [all …]
|
D | AppVersionFetcher.java | 25 import java.util.regex.Pattern; 42 private static final Pattern VERSION_CODE_PATTERN = 43 Pattern.compile("\\s+versionCode=(\\d+) .*"); 44 private static final Pattern VERSION_NAME_PATTERN = Pattern.compile("\\s+versionName=(.*?)"); 82 private static String parseVersionString(String packageInfo, Pattern pattern) { in parseVersionString()
|
/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | TimingsLogParserTest.java | 30 import java.util.regex.Pattern; 79 Pattern.compile("Linux version"), in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 80 Pattern.compile("Service 'bootanim'")); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 83 Pattern.compile("starting service 'zygote'"), in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 84 Pattern.compile("'zygote' started")); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 87 Pattern.compile("starting service 'fake service'"), in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 88 Pattern.compile("'fake service' started")); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 91 Pattern.compile("Linux version"), in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 92 Pattern.compile("my app displayed")); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() 95 Pattern.compile("my app started"), in testParseGenericTiming_multiplePattern_oneOccurrenceEach() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParser.java | 34 import java.util.regex.Pattern; 124 static final Pattern PATTERN_TEST_SUCCESS = Pattern.compile("ok|expected failure"); 125 static final Pattern PATTERN_TEST_FAILURE = Pattern.compile("FAIL|ERROR"); 126 static final Pattern PATTERN_TEST_SKIPPED = Pattern.compile("skipped '.*"); 127 static final Pattern PATTERN_TEST_UNEXPECTED_SUCCESS = Pattern.compile("unexpected success"); 129 static final Pattern PATTERN_ONE_LINE_RESULT = 130 Pattern.compile( 133 static final Pattern PATTERN_TWO_LINE_RESULT_FIRST = Pattern.compile( 135 static final Pattern PATTERN_TWO_LINE_RESULT_SECOND = 136 Pattern.compile( [all …]
|
/tools/tradefederation/contrib/tests/src/com/android/build/tests/ |
D | ImageStatsTest.java | 29 import java.util.regex.Pattern; 81 Pattern pattern = Pattern.compile("^.+\\.apk$"); in testGetAggregationLabel_regular() 93 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups() 111 Pattern pattern = Pattern.compile("^/system/(.+?)/.+\\.(.+)$"); in testGetAggregationLabel_capturingGroups_partialBackReference() 125 Map<Pattern, String> mapping = new HashMap<>(); in testPerformAggregation() 126 mapping.put(Pattern.compile("^.+\\.(.+)"), "ext-\\1"); // aggregate by extension in testPerformAggregation() 127 mapping.put(Pattern.compile("^/system/(.+?)/.+$"), "folder-\\1"); // aggregate by folder in testPerformAggregation()
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/ |
D | LogPatternUtilTest.java | 20 import java.util.regex.Pattern; 32 patternUtil.addPattern(Pattern.compile("abc"), "cat1"); in testPatternMatching() 33 patternUtil.addPattern(Pattern.compile("123"), "cat2"); in testPatternMatching() 45 patternUtil.addPattern(Pattern.compile("abc"), null, "cat1"); in testExtrasMatching() 46 patternUtil.addPattern(Pattern.compile("123"), "E/tag1", "cat2"); in testExtrasMatching() 47 patternUtil.addPattern(Pattern.compile("123"), "E/tag2", "cat3"); in testExtrasMatching()
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/util/ |
D | KeyguardControllerState.java | 22 import java.util.regex.Pattern; 26 private static final Pattern NAME_PATTERN = Pattern.compile(".*KeyguardController:"); 27 private static final Pattern SHOWING_PATTERN = Pattern.compile("mKeyguardShowing=(\\S+)"); 28 private static final Pattern OCCLUDED_PATTERN = Pattern.compile("mOccluded=(\\S+)");
|
/tools/tradefederation/core/device_build_interfaces/com/android/tradefed/device/ |
D | AndroidDebugBridgeWrapper.java | 30 import java.util.regex.Pattern; 38 private static final Pattern VERSION_PATTERN = Pattern.compile("^.*(\\d+)\\.(\\d+)\\.(\\d+).*"); 39 private static final Pattern REVISION_PATTERN = Pattern.compile(".*(Revision )(.*)$"); 40 private static final Pattern SUB_VERSION_PATTERN = Pattern.compile(".*(Version )(.*)"); 41 private static final Pattern PATH_PATTERN = Pattern.compile(".*(Installed as )(.*)");
|
/tools/loganalysis/src/com/android/loganalysis/util/ |
D | LogPatternUtil.java | 21 import java.util.regex.Pattern; 36 public Pattern mPattern; 48 public PatternInfo(Pattern pattern, Object extras, String category) { in PatternInfo() 63 public void addPattern(Pattern pattern, String category) { in addPattern() 75 public void addPattern(Pattern pattern, Object extras, String category) { in addPattern()
|