Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 47) sorted by relevance

12

/cts/tests/tests/transition/src/android/transition/cts/
DPatternPathMotionTest.java33 Path pattern = new Path(); in testStraightPath() local
34 pattern.moveTo(100, 500); in testStraightPath()
35 pattern.lineTo(300, 1000); in testStraightPath()
37 PatternPathMotion pathMotion = new PatternPathMotion(pattern); in testStraightPath()
38 assertPathMatches(pattern, pathMotion.getPatternPath()); in testStraightPath()
49 Path pattern = new Path(); in testCurve() local
50 pattern.addArc(0, 0, 100, 100, 0, 180); in testCurve()
52 PatternPathMotion pathMotion = new PatternPathMotion(pattern); in testCurve()
53 assertPathMatches(pattern, pathMotion.getPatternPath()); in testCurve()
63 Path pattern = new Path(); in testSetPatternPath() local
[all …]
/cts/libs/vogar-expect/src/vogar/
DExpectation.java46 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/apps/CameraITS/tests/scene0/
Dtest_test_patterns.py89 def check_pattern(cap, props, pattern): argument
101 if pattern == 1: # solid color
104 elif pattern == 2: # color bars
112 print 'No specific test for TestPattern %d' % pattern
130 for pattern in PATTERNS:
131 if pattern in avail_patterns:
135 req['android.sensor.testPatternMode'] = pattern
141 its.image.write_image(img, '%s_%d.jpg' % (NAME, pattern), True)
144 assert check_pattern(cap, props, pattern)
/cts/hostsidetests/security/src/android/security/cts/
DSecurityTestCase.java96 public void assertMatches(String pattern, String input) throws Exception { in assertMatches() argument
97 assertTrue("Pattern not found", Pattern.matches(pattern, input)); in assertMatches()
100 public void assertNotMatches(String pattern, String input) throws Exception { in assertNotMatches() argument
101 assertFalse("Pattern found", Pattern.matches(pattern, input)); in assertNotMatches()
104 public void assertNotMatchesMultiLine(String pattern, String input) throws Exception { in assertNotMatchesMultiLine() argument
106 Pattern.compile(pattern, in assertNotMatchesMultiLine()
/cts/tests/tests/hardware/src/android/hardware/consumerir/cts/
DConsumerIrTest.java80 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/hostsidetests/incident/src/com/android/server/cts/
DProtoDumpTestCase.java183 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/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java103 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument
112 for (int i = 0; i < (fileData.length - pattern.length); i++) { in assertFileDoesNotContain()
113 for (int j = 0; j < pattern.length; j++) { in assertFileDoesNotContain()
114 if (fileData[i+j] != pattern[j]) { in assertFileDoesNotContain()
DListeningPortsTest.java276 for (String pattern : patterns) { in isPatternMatch()
277 pattern = Pattern.quote(pattern); in isPatternMatch()
278 if (Pattern.matches(pattern, input)) { in isPatternMatch()
/cts/hostsidetests/os/src/android/os/cts/
DProcfsHostTests.java129 private void testFile(String absolutePath, String readCommand, Pattern pattern) throws Exception { in testFile() argument
130 String content = readAndCheckFile(absolutePath, readCommand, pattern); in testFile()
137 String newContent = readAndCheckFile(absolutePath, readCommand, pattern); in testFile()
192 private String readAndCheckFile(String absolutePath, String readCommand, Pattern pattern) in readAndCheckFile() argument
199 pattern.matcher(readResult).matches()); in readAndCheckFile()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DBaseDumpsysTest.java207 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()
DStoragedDumpsysTest.java42 Pattern pattern = Pattern.compile("cgroup:([^\\s]+)", Pattern.MULTILINE); in getCgroupFromLog() local
43 Matcher matcher = pattern.matcher(log); in getCgroupFromLog()
/cts/tests/tests/net/native/qtaguid/src/
DNativeQtaguidTest.cpp57 char pattern[40]; in getCtrlSkInfo() local
58 snprintf(pattern, sizeof(pattern), " tag=0x%" PRIx64 " (uid=%" PRIu32 ")", full_tag, uid); in getCtrlSkInfo()
63 if (strstr(line_buffer, pattern) == NULL) in getCtrlSkInfo()
/cts/tests/tests/hardware/src/android/hardware/cts/
DGlUtils.java47 Pattern pattern = Pattern.compile("OpenGL ES ([0-9]+)\\.([0-9]+)"); in getVersion() local
48 Matcher matcher = pattern.matcher(version); in getVersion()
/cts/tests/tests/os/src/android/os/cts/
DVibratorTest.java59 long[] pattern = {100, 200, 400, 800, 1600}; in testVibratePattern() local
60 mVibrator.vibrate(pattern, 3); in testVibratePattern()
62 mVibrator.vibrate(pattern, 10); in testVibratePattern()
/cts/hostsidetests/security/securityPatch/CVE-2017-13253/
Dpoc.cpp66 CryptoPlugin::Pattern pattern = { .mEncryptBlocks = 0, .mSkipBlocks = 1 }; in main() local
76 CryptoPlugin::kMode_Unencrypted, pattern, source, 0, subSamples, 1, in main()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseBackupHostSideTest.java201 Pattern pattern = Pattern.compile("^Backup Manager currently (enabled|disabled)$"); in isBackupEnabled() local
202 Matcher matcher = pattern.matcher(output.trim()); in isBackupEnabled()
213 Pattern pattern = Pattern.compile("\\* (.*)"); in getCurrentTransport() local
214 Matcher matcher = pattern.matcher(output); in getCurrentTransport()
DBackupPreparer.java128 Pattern pattern = Pattern.compile("^Backup Manager currently (enabled|disabled)$"); in enableBackup() local
129 Matcher matcher = pattern.matcher(output.trim()); in enableBackup()
143 Pattern pattern = Pattern.compile("\\(formerly (.*)\\)$"); in setBackupTransport() local
144 Matcher matcher = pattern.matcher(output); in setBackupTransport()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPropertyDeviceInfo.java46 Pattern pattern = Pattern.compile("\\[(ro.+)\\]: \\[(.+)\\]"); in collectRoProperties() local
53 Matcher matcher = pattern.matcher(line); in collectRoProperties()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DKeyguardTestBase.java57 final Pattern pattern = Pattern.compile("(.+)" + entry); in assertInLogcat() local
63 Matcher matcher = pattern.matcher(line); in assertInLogcat()
/cts/tools/utils/cts/
Dtools.py162 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/
DTestUsbTest.java151 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/tests/app/src/android/app/cts/
DNotificationChannelTest.java112 final long[] pattern = new long[] {1, 7, 1, 7, 3}; in testVibrationPattern() local
116 channel.setVibrationPattern(pattern); in testVibrationPattern()
117 assertEquals(pattern, channel.getVibrationPattern()); in testVibrationPattern()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DPropertyUtil.java97 Pattern pattern = Pattern.compile("name=([a-z_]*), value=(.*)$"); in getClientIds() local
98 Matcher matcher = pattern.matcher(line); in getClientIds()
/cts/tests/tests/graphics/src/android/graphics/cts/
DDashPathEffectTest.java97 PatternIterator(final float[] pattern, int offset) { in PatternIterator() argument
98 mPattern = pattern; in PatternIterator()
/cts/tests/tests/provider/src/android/provider/cts/
DProviderTestUtils.java69 Pattern pattern = Pattern.compile("\\(formerly (.*)\\)$"); in setBackupTransport() local
70 Matcher matcher = pattern.matcher(output); in setBackupTransport()

12