/cts/tests/tests/transition/src/android/transition/cts/ |
D | PatternPathMotionTest.java | 34 Path pattern = new Path(); in testStraightPath() local 35 pattern.moveTo(100, 500); in testStraightPath() 36 pattern.lineTo(300, 1000); in testStraightPath() 38 PatternPathMotion pathMotion = new PatternPathMotion(pattern); in testStraightPath() 39 assertPathMatches(pattern, pathMotion.getPatternPath()); in testStraightPath() 50 Path pattern = new Path(); in testCurve() local 51 pattern.addArc(0, 0, 100, 100, 0, 180); in testCurve() 53 PatternPathMotion pathMotion = new PatternPathMotion(pattern); in testCurve() 54 assertPathMatches(pattern, pathMotion.getPatternPath()); in testCurve() 64 Path pattern = new Path(); in testSetPatternPath() local [all …]
|
/cts/libs/vogar-expect/src/vogar/expect/ |
D | Expectation.java | 46 private final Pattern pattern; field in Expectation 57 …public Expectation(Result result, Pattern pattern, Set<String> tags, String description, long bug)… in Expectation() argument 58 if (result == null || description == null || pattern == null) { in Expectation() 60 "result=" + result + " description=" + description + " pattern=" + pattern); in Expectation() 65 this.pattern = pattern; in Expectation() 102 return pattern.matcher(outcome.getOutput()).matches(); in patternMatches() 106 return "Expectation[description=" + description + " pattern=" + pattern.pattern() + "]"; in toString()
|
/cts/hostsidetests/securitybulletin/src/android/security/cts/ |
D | RegexUtils.java | 32 public static void assertContains(String pattern, String input) throws Exception { in assertContains() argument 33 assertFind(pattern, input, false, false); in assertContains() 36 public static void assertContainsMultiline(String pattern, String input) throws Exception { in assertContainsMultiline() argument 37 assertFind(pattern, input, false, true); in assertContainsMultiline() 40 public static void assertNotContains(String pattern, String input) throws Exception { in assertNotContains() argument 41 assertFind(pattern, input, true, false); in assertNotContains() 44 public static void assertNotContainsMultiline(String pattern, String input) throws Exception { in assertNotContainsMultiline() argument 45 assertFind(pattern, input, true, true); in assertNotContainsMultiline() 49 String pattern, String input, boolean shouldFind, boolean multiline) { in assertFind() argument 57 pattern, Pattern.DOTALL|Pattern.MULTILINE).matcher(timedInput); in assertFind() [all …]
|
D | Poc16_12.java | 39 String pattern = "nf_conntrack_"; in testPocCVE_2016_8406() local 40 int index = result.indexOf(pattern); in testPocCVE_2016_8406() 44 return result.substring(index + pattern.length()); in testPocCVE_2016_8406()
|
D | SecurityTestCase.java | 148 public void assertMatches(String pattern, String input) throws Exception { in assertMatches() argument 149 RegexUtils.assertContains(pattern, input); in assertMatches() 153 public void assertMatchesMultiLine(String pattern, String input) throws Exception { in assertMatchesMultiLine() argument 154 RegexUtils.assertContainsMultiline(pattern, input); in assertMatchesMultiLine() 158 public void assertNotMatches(String pattern, String input) throws Exception { in assertNotMatches() argument 159 RegexUtils.assertNotContains(pattern, input); in assertNotMatches() 163 public void assertNotMatchesMultiLine(String pattern, String input) throws Exception { in assertNotMatchesMultiLine() argument 164 RegexUtils.assertNotContainsMultiline(pattern, input); in assertNotMatchesMultiLine()
|
D | Poc17_03.java | 84 String pattern = "Leaked ptr is 0x"; in testPocCVE_2017_0334() local 91 int index = line.indexOf(pattern); in testPocCVE_2017_0334() 95 return line.substring(index + pattern.length()); in testPocCVE_2017_0334()
|
D | CVE_2021_0965.java | 51 Pattern pattern = Pattern.compile(errorLog, Pattern.MULTILINE); in testPocCVE_2021_0965() local 52 assertFalse(pattern.matcher(logcat).find()); in testPocCVE_2021_0965()
|
D | CVE_2021_0591.java | 73 Pattern pattern = Pattern.compile(screenshotServiceErrorReceiver, Pattern.MULTILINE); in testPocCVE_2021_0591() local 77 assertThat(message, pattern.matcher(logcat).find(), is(false)); in testPocCVE_2021_0591()
|
D | CVE_2021_0523.java | 96 Pattern pattern = Pattern.compile(crashPattern, Pattern.MULTILINE); in testPocCVE_2021_0523() local 97 assertThat(crashPattern, pattern.matcher(logcat).find(), is(false)); in testPocCVE_2021_0523()
|
/cts/apps/CameraITS/tests/scene0/ |
D | test_test_patterns.py | 102 def check_pattern(cap, props, pattern): argument 113 if pattern == 1 or pattern == 5: # solid color or black 115 elif pattern == 2: # color bars 122 logging.debug('No specific test for TestPattern: %d', pattern) 141 for pattern in CHECKED_PATTERNS: 142 if pattern in avail_patterns: 146 req['android.sensor.testPatternMode'] = pattern 152 image_processing_utils.write_image(img, '%s_%d.jpg' % (name, pattern), 156 assert check_pattern(cap, props, pattern) 159 (pattern))
|
D | test_solid_color_test_pattern.py | 204 for pattern in patterns_to_check: 205 if pattern == _SOLID_COLOR_TEST_PATTERN: 210 captured_pattern = _PATTERN_NAMES[pattern] 216 req['android.sensor.testPatternMode'] = pattern 242 if pattern == _SOLID_COLOR_TEST_PATTERN:
|
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/ |
D | ConsumerIrTest.java | 80 int[] pattern = {11111, 22222, 33333, 44444, 55555, 66666, 77777, 88888, 99999}; in test_timing() local 82 for (int slice : pattern) { in test_timing() 90 mCIR.transmit(range.getMinFrequency(), pattern); in test_timing() local 99 mCIR.transmit(range.getMaxFrequency(), pattern); in test_timing() local 116 int[] pattern = {1901, 4453, 625, 1614, 625, 1588, 625, 1614, 625, 442, 625, 442, 625, in test_transmit() local 123 mCIR.transmit(freqs[0].getMinFrequency(), pattern); in test_transmit()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | BannedFilesTest.java | 101 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument 110 for (int i = 0; i < (fileData.length - pattern.length); i++) { in assertFileDoesNotContain() 111 for (int j = 0; j < pattern.length; j++) { in assertFileDoesNotContain() 112 if (fileData[i+j] != pattern[j]) { in assertFileDoesNotContain()
|
/cts/hostsidetests/incident/src/com/android/server/cts/ |
D | ProtoDumpTestCase.java | 183 protected Matcher execCommandAndFind(String command, String pattern, int patternFlags) in execCommandAndFind() argument 186 final Matcher matcher = Pattern.compile(pattern, patternFlags).matcher(output); in execCommandAndFind() 187 assertTrue("Pattern '" + pattern + "' didn't match. Output=\n" + output, matcher.find()); in execCommandAndFind() 195 protected Matcher execCommandAndFind(String command, String pattern) throws Exception { in execCommandAndFind() argument 196 return execCommandAndFind(command, pattern, 0); in execCommandAndFind() 203 protected String execCommandAndGetFirstGroup(String command, String pattern) throws Exception { in execCommandAndGetFirstGroup() argument 204 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup() 205 assertTrue("No group found for pattern '" + pattern + "'", matcher.groupCount() > 0); in execCommandAndGetFirstGroup()
|
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/ |
D | BaseDumpsysTest.java | 207 protected Matcher execCommandAndFind(String command, String pattern) throws Exception { in execCommandAndFind() argument 211 final Matcher matcher = Pattern.compile(pattern).matcher(output); in execCommandAndFind() 212 assertTrue("Pattern '" + pattern + "' didn't match. Output=\n" + output, matcher.find()); in execCommandAndFind() 220 protected String execCommandAndGetFirstGroup(String command, String pattern) throws Exception { in execCommandAndGetFirstGroup() argument 221 final Matcher matcher = execCommandAndFind(command, pattern); in execCommandAndGetFirstGroup() 222 assertTrue("No group found for pattern '" + pattern + "'", matcher.groupCount() > 0); in execCommandAndGetFirstGroup()
|
/cts/hostsidetests/os/src/android/os/cts/ |
D | ProcfsHostTests.java | 141 private void testFile(String absolutePath, String readCommand, Pattern pattern) throws Exception { in testFile() argument 142 String content = readAndCheckFile(absolutePath, readCommand, pattern); in testFile() 149 String newContent = readAndCheckFile(absolutePath, readCommand, pattern); in testFile() 204 private String readAndCheckFile(String absolutePath, String readCommand, Pattern pattern) in readAndCheckFile() argument 211 pattern.matcher(readResult).matches()); in readAndCheckFile()
|
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/ |
D | BaseHdmiCecCtsTest.java | 154 String pattern = in getDumpsysLogicalAddresses() local 161 Pattern p = Pattern.compile(pattern); in getDumpsysLogicalAddresses() 225 String pattern; in parseRequiredAddressFromDumpsys() local 228 pattern = in parseRequiredAddressFromDumpsys() 237 pattern = in parseRequiredAddressFromDumpsys() 255 Pattern p = Pattern.compile(pattern); in parseRequiredAddressFromDumpsys()
|
D | HdmiCecClientWrapper.java | 412 Pattern pattern = Pattern.compile("(.*>>)(.*?)" + in getAllMessages() local 419 if (pattern.matcher(line).matches()) { in getAllMessages() 449 Pattern pattern = in getAllDestLogicalAddresses() local 457 if (pattern.matcher(line).matches()) { in getAllDestLogicalAddresses() 551 Pattern pattern = in checkExpectedOutput() local 568 if (pattern.matcher(line).matches()) { in checkExpectedOutput() 624 Pattern pattern = in checkOutputDoesNotContainMessage() local 640 if (pattern.matcher(line).matches()) { in checkOutputDoesNotContainMessage()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | BackupPreparer.java | 186 Pattern pattern = Pattern.compile("^Backup Manager currently (enabled|disabled)$"); in enableBackup() local 187 Matcher matcher = pattern.matcher(output.trim()); in enableBackup() 201 Pattern pattern = Pattern.compile("\\(formerly (.*)\\)$"); in setBackupTransport() local 202 Matcher matcher = pattern.matcher(output); in setBackupTransport()
|
D | AutoRestoreHostSideTest.java | 125 Pattern pattern = Pattern.compile("Auto-restore is (enabled|disabled)"); in isAutoRestoreEnabled() local 126 Matcher matcher = pattern.matcher(output.trim()); in isAutoRestoreEnabled()
|
/cts/tools/utils/cts/ |
D | tools.py | 162 def Exclude(self, pattern): argument 173 exp = re.compile(pattern) 178 def Include(self, pattern): argument 188 exp = re.compile(pattern)
|
/cts/hostsidetests/usb/src/com/android/cts/usb/ |
D | TestUsbTest.java | 151 Pattern pattern = Pattern.compile("^\\s+iSerial\\s+\\d+\\s+([a-zA-Z0-9]{6,20})", in testUsbSerialReadOnDeviceMatches() local 153 Matcher matcher = pattern.matcher(lsusbOutput); in testUsbSerialReadOnDeviceMatches() 169 pattern = Pattern.compile("^.*CtsUsbSerialTest\\(.*\\):\\s+([a-zA-Z0-9]{6,20})", in testUsbSerialReadOnDeviceMatches() 171 matcher = pattern.matcher(logs); in testUsbSerialReadOnDeviceMatches()
|
/cts/hostsidetests/edi/src/android/edi/cts/ |
D | PropertyDeviceInfo.java | 60 Pattern pattern = Pattern.compile("\\[(ro.+)\\]: \\[(.+)\\]"); in parseProps() local 65 Matcher matcher = pattern.matcher(line); in parseProps()
|
/cts/hostsidetests/devicepolicy/app/PasswordComplexity/src/com.android.cts.passwordcomplexity/ |
D | GetPasswordComplexityTest.java | 131 private void setPattern(String pattern) throws Exception { in setPattern() argument 132 String out = mDevice.executeShellCommand("cmd lock_settings set-pattern " + pattern); in setPattern() 136 mScreenLock = pattern; in setPattern()
|
/cts/hostsidetests/packagemanager/stats/src/com/android/cts/packagemanager/stats/host/ |
D | PackageManagerStatsTestsBase.java | 82 final Pattern pattern = Pattern.compile("package:" + pkgName + " uid:(\\d+)"); in getAppUid() local 83 final Matcher matcher = pattern.matcher(uidLine); in getAppUid()
|