/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
D | TimingsLogParserTest.java | 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() 96 Pattern.compile("my app displayed")); in testParseGenericTiming_multiplePattern_oneOccurrenceEach() [all …]
|
/tools/loganalysis/src/com/android/loganalysis/parser/ |
D | MonkeyLogParser.java | 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"); 58 private static final Pattern FINAL_COUNT = Pattern.compile("Events injected: (\\d+)"); [all …]
|
D | SmartMonkeyLogParser.java | 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( 65 private static final Pattern APPS_PACKAGES = Pattern.compile( [all …]
|
D | KernelLogParser.java | 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 | AnrParser.java | 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 | LogcatParser.java | 62 Pattern.compile( 74 private static final Pattern TIME_LINE = Pattern.compile( 81 private static final Pattern SYSTEM_SERVER_CRASH = Pattern.compile( 86 private static final Pattern JAVA_CRASH_PROCESS_PID = Pattern.compile( 93 private static final Pattern JAVA_PROC_START = Pattern.compile("Calling main entry (.+)"); 444 mPatternUtil.addPattern(Pattern.compile(".* timed out \\(is the CPU pegged\\?\\).*"), in initPatterns() 448 mPatternUtil.addPattern(Pattern.compile( in initPatterns() 452 mPatternUtil.addPattern(Pattern.compile("\\*\\*\\* WATCHDOG KILLING SYSTEM PROCESS.*"), in initPatterns() 470 pattern = Pattern.compile(".*"); in addPattern()
|
D | GfxInfoParser.java | 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( 43 Pattern.compile("90th percentile: (\\d+)ms"); 47 Pattern.compile("95th percentile: (\\d+)ms"); 51 Pattern.compile("99th percentile: (\\d+)ms");
|
D | DmesgParser.java | 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( 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(
|
D | CompactMemInfoParser.java | 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+).*");
|
/tools/platform-compat/javatest/android/processor/compat/changeid/ |
D | ChangeIdProcessorTest.java | 24 import com.google.testing.compile.Compilation; 25 import com.google.testing.compile.CompilationSubject; 26 import com.google.testing.compile.Compiler; 27 import com.google.testing.compile.JavaFileObjects; 121 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput() 169 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_multiplePackages() 206 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_innerClass() 238 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_interface() 271 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testCompatConfigXmlOutput_enum() 296 .compile(ObjectArrays.concat(mAnnotations, source, JavaFileObject.class)); in testBothDisabledAndEnabledAfter() [all …]
|
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/ |
D | PythonUnitTestResultParser.java | 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"); 130 Pattern.compile( 133 static final Pattern PATTERN_TWO_LINE_RESULT_FIRST = Pattern.compile( 136 Pattern.compile( 140 Pattern.compile( 145 Pattern.compile("(FAIL|ERROR): (\\S*) \\((\\S*)\\)( \\(.*\\))?"); 146 static final Pattern PATTERN_RUN_SUMMARY = Pattern.compile( [all …]
|
/tools/platform-compat/javatest/android/processor/compat/unsupportedappusage/ |
D | UnsupportedAppUsageProcessorTest.java | 21 import com.google.testing.compile.Compilation; 22 import com.google.testing.compile.CompilationSubject; 23 import com.google.testing.compile.Compiler; 24 import com.google.testing.compile.JavaFileObjects; 49 private Compilation compile(JavaFileObject source) { in compile() method in UnsupportedAppUsageProcessorTest 52 .compile(ANNOTATION, source); in compile() 58 Compilation compilation = compile(source); in compileAndReadCsv() 138 .compile(ANNOTATION, src); in testSourcePositionOverrideWrongFormat() 156 .compile(ANNOTATION, src); in testSourcePositionOverrideInvalidInt() 173 compile(src) in testImplicitMemberSkipped() [all …]
|
/tools/repohooks/tools/ |
D | cpplint.py | 439 _TYPES = re.compile( 457 _THIRD_PARTY_HEADERS_PATTERN = re.compile( 464 _EMPTY_CONDITIONAL_BODY_PATTERN = re.compile(r'^\s*$', re.DOTALL) 515 _ALT_TOKEN_REPLACEMENT_PATTERN = re.compile( 534 _MATCH_ASM = re.compile(r'^\s*(?:asm|_asm|__asm|__asm__)' 539 _SEARCH_C_FILE = re.compile(r'\b(?:LINT_C_FILE|' 543 _SEARCH_KERNEL_FILE = re.compile(r'\b(?:LINT_KERNEL_FILE)') 664 _regexp_compile_cache[pattern] = sre_compile.compile(pattern) 682 _regexp_compile_cache[pattern] = sre_compile.compile(pattern) 689 _regexp_compile_cache[pattern] = sre_compile.compile(pattern) [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/util/ |
D | AaptParser.java | 32 private static final Pattern PKG_PATTERN = Pattern.compile( 35 private static final Pattern LABEL_PATTERN = Pattern.compile( 38 private static final Pattern SDK_PATTERN = Pattern.compile( 41 Pattern.compile("^targetSdkVersion:'(\\d+)'", Pattern.MULTILINE); 44 Pattern.compile("native-code: '(.*?)'( '.*?')*"); 47 Pattern.compile("requestLegacyExternalStorage.*=\\(.*\\)(.*)", Pattern.MULTILINE); 50 Pattern.compile("alt-native-code: '(.*)'"); 52 Pattern.compile(
|
/tools/asuite/atest/ |
D | constants_default.py | 225 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$') 226 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$') 228 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\(' 234 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*') 235 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)' 237 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+' 243 ACLOUD_REPORT_FILE_RE = re.compile(r'.*--report[_-]file(=|\s+)(?P<report_file>[\w/.]+)')
|
/tools/repohooks/rh/ |
D | hooks.py | 366 check_re = re.compile(regex) 390 check_re = re.compile(regex) 503 check_re = re.compile(regex) 565 check_re_relnote = re.compile(regex_relnote, re.IGNORECASE) 580 check_re_field_misspells = re.compile(regex_field_misspells, re.IGNORECASE) 593 check_re_empty_string = re.compile(r'^$') 597 check_re_other_fields = re.compile(regex_other_fields) 678 check_re = re.compile(regex, re.IGNORECASE)
|
/tools/asuite/atest/test_finders/ |
D | test_finder_utils.py | 43 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I) 45 _CC_CLASS_RE = re.compile(r'^[ ]*TEST(_F|_P)?[ ]*\(', re.I) 53 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I) 55 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I) 56 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I) 137 _VTS_BINARY_SRC_DELIM_RE = re.compile(r'.*::(?P<target>.*)$') 250 methods_re = re.compile(_JAVA_METHODS_PATTERN.format( 253 methods_re = re.compile(_CC_METHODS_PATTERN.format(
|
/tools/tradefederation/core/atest/test_finders/ |
D | test_finder_utils.py | 41 _APK_RE = re.compile(r'^[^/]+\.apk$', re.I) 43 _CC_CLASS_RE = re.compile(r'^[ ]*TEST(_F|_P)?[ ]*\(', re.I) 50 _PACKAGE_RE = re.compile(r'\s*package\s+(?P<package>[^(;|\s)]+)\s*', re.I) 52 _HOST_PATH_RE = re.compile(r'.*\/host\/.*', re.I) 53 _DEVICE_PATH_RE = re.compile(r'.*\/target\/.*', re.I) 130 _VTS_BINARY_SRC_DELIM_RE = re.compile(r'.*::(?P<target>.*)$') 243 methods_re = re.compile(_JAVA_METHODS_PATTERN.format( 246 methods_re = re.compile(_CC_METHODS_PATTERN.format(
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | HermeticLaunchTest.java | 98 Pattern.compile( 103 Pattern.compile( 107 Pattern.compile( 111 Pattern.compile("tracing_mark_write: B\\|(?<pid>\\d+)\\|(?<name>.+)"); 116 Pattern.compile("tracing_mark_write: E\\|*(?<procid>\\d*)"); 118 Pattern.compile( 121 Pattern.compile( 374 activityPatternMap.put(Pattern.compile(finalPattern), activityName); in analyzeLogCatData()
|
/tools/tradefederation/core/atest/ |
D | constants_default.py | 216 CC_EXT_RE = re.compile(r'.*\.(cc|cpp)$') 217 JAVA_EXT_RE = re.compile(r'.*\.(java|kt)$') 219 CC_OUTPUT_RE = re.compile(r'(?P<file_path>/.*):\s*TEST(_F|_P)?[ ]*\(' 225 CLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)[:].*') 226 QCLASS_OUTPUT_RE = re.compile(r'(?P<java_path>.*/(?P<class>[A-Z]\w+)\.\w+)' 228 PACKAGE_OUTPUT_RE = re.compile(r'(?P<java_dir>/.*/).*[.](java|kt)[:]\s*package\s+'
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RegexTrieTest.java | 240 Pattern p1 = Pattern.compile(regex); in testCompPattern_equality() 241 Pattern p2 = Pattern.compile(regex); in testCompPattern_equality() 242 Pattern pOther = Pattern.compile("other"); in testCompPattern_equality() 265 Pattern p1 = Pattern.compile(regex); in testCompPattern_hashmap() 266 Pattern p2 = Pattern.compile(regex); in testCompPattern_hashmap() 267 Pattern pOther = Pattern.compile("other"); in testCompPattern_hashmap()
|
/tools/loganalysis/tests/src/com/android/loganalysis/util/ |
D | RegexTrieTest.java | 240 Pattern p1 = Pattern.compile(regex); in testCompPattern_equality() 241 Pattern p2 = Pattern.compile(regex); in testCompPattern_equality() 242 Pattern pOther = Pattern.compile("other"); in testCompPattern_equality() 265 Pattern p1 = Pattern.compile(regex); in testCompPattern_hashmap() 266 Pattern p2 = Pattern.compile(regex); in testCompPattern_hashmap() 267 Pattern pOther = Pattern.compile("other"); in testCompPattern_hashmap()
|
D | LogPatternUtilTest.java | 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/apkzlib/ |
D | build.gradle | 4 compile 'com.google.code.findbugs:jsr305:1.3.9' 5 compile 'com.google.guava:guava:18.0' 6 compile 'org.bouncycastle:bcpkix-jdk15on:1.56' 7 compile 'org.bouncycastle:bcprov-jdk15on:1.56' 8 compile project(':apksig')
|
/tools/tradefederation/contrib/tests/src/com/android/build/tests/ |
D | ImageStatsTest.java | 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() 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()
|