Home
last modified time | relevance | path

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

/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()
DExpectationStore.java156 Pattern pattern = MATCH_ALL_PATTERN; in readExpectation() local
182 pattern = Pattern.compile(reader.nextString(), PATTERN_FLAGS); in readExpectation()
184pattern = Pattern.compile(".*" + Pattern.quote(reader.nextString()) + ".*", PATTERN_FLAGS); in readExpectation()
208 Expectation expectation = new Expectation(result, pattern, tags, description, buganizerBug); in readExpectation()
/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/tests/tests/os/src/android/os/cts/
DVibratorTest.java49 long[] pattern = {100, 200, 400, 800, 1600}; in testVibratePattern() local
51 mVibrator.vibrate(pattern, 3); in testVibratePattern()
56 mVibrator.vibrate(pattern, 10); in testVibratePattern()
/cts/tests/tests/security/src/android/security/cts/
DBannedFilesTest.java86 private static void assertFileDoesNotContain(String filename, byte[] pattern) { in assertFileDoesNotContain() argument
95 for (int i = 0; i < (fileData.length - pattern.length); i++) { in assertFileDoesNotContain()
96 for (int j = 0; j < pattern.length; j++) { in assertFileDoesNotContain()
97 if (fileData[i+j] != pattern[j]) { in assertFileDoesNotContain()
DListeningPortsTest.java218 for (String pattern : patterns) { in isPatternMatch()
219 pattern = Pattern.quote(pattern); in isPatternMatch()
220 if (Pattern.matches(pattern, input)) { in isPatternMatch()
/cts/hostsidetests/usb/src/com/android/cts/usb/
DTestUsbTest.java96 Pattern pattern = Pattern.compile("^\\s+iSerial\\s+\\d+\\s+([a-zA-Z0-9]{6,20})", in testUsbSerial() local
98 Matcher matcher = pattern.matcher(lsusbOutput); in testUsbSerial()
121 pattern = Pattern.compile("^.*CtsUsbSerialTest\\(.*\\):\\s+([a-zA-Z0-9]{6,20})", in testUsbSerial()
123 matcher = pattern.matcher(logs); in testUsbSerial()
/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/tests/tests/text/src/android/text/format/cts/
DDateFormatTest.java215 private static void checkFormat(String expected, String pattern, int hour) { in checkFormat() argument
221 SimpleDateFormat sdf = new SimpleDateFormat(pattern); in checkFormat()
224 if (pattern.equals("k") && (hour == 0 || hour == 24)) { in checkFormat()
227 assertEquals("0", DateFormat.format(pattern, c)); in checkFormat()
229 assertEquals(expected, DateFormat.format(pattern, c)); in checkFormat()
/cts/tests/tests/graphics/src/android/graphics/cts/
DDashPathEffectTest.java90 PatternIterator(final float[] pattern, int offset) { in PatternIterator() argument
91 mPattern = pattern; in PatternIterator()
/cts/tests/tests/calllog/src/android/calllog/cts/
DCallLogBackupTest.java188 Pattern pattern = Pattern.compile("\\(formerly (.*)\\)$"); in setBackupTransport() local
189 Matcher matcher = pattern.matcher(output); in setBackupTransport()
/cts/tools/utils/
DbuildCts.py50 pattern = re.compile(r'^\s*([^:#=\s]+)\s*:=\s*(.*?[^\\])$', re.MULTILINE + re.DOTALL)
53 for match in pattern.finditer(content):
/cts/apps/CameraITS/pymodules/its/
Ddevice.py259 def do_vibrate(self, pattern): argument
276 cmd["pattern"] = pattern
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/
DBaseSensorTestActivity.java392 protected void vibrate(long[] pattern) { in vibrate() argument
394 vibrator.vibrate(pattern, -1); in vibrate()
/cts/tools/vm-tests-tf/src/util/build/
DBuildDalvikSuite.java649 for (String pattern : patterns) {
650 token = scanner.findWithinHorizon(pattern, methodSource.length());
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/its/
DItsService.java1014 long pattern[] = new long[len];
1016 pattern[i] = patternArray.getLong(i);
1019 mVibrator.vibrate(pattern, -1);
/cts/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/
DDeqpTestRunnerTest.java1961 private void testRecoveryWithPattern(boolean expectSuccess, RecoveryEvent...pattern) in testRecoveryWithPattern() argument
1969 setRecoveryExpectationsOfAPattern(mockDevice, mockSleepProvider, pattern); in testRecoveryWithPattern()
1976 runRecoveryWithPattern(recovery, pattern); in testRecoveryWithPattern()
/cts/tools/dasm/src/dasm/
Dparser.cup682 // instruction [<pattern>]
/cts/tools/signature-tools/lib/
Dstringtemplate.jar ... org.antlr.stringtemplate.StringTemplateErrorListener listener protected String pattern protected java.util.Map attributes protected java. ...
/cts/tools/dex-tools/dex/
Dclasses0.out.dex39854 private java.lang.String pattern
56474 private java.lang.String pattern
58534 private java.util.regex.Pattern pattern
58599 public java.util.regex.Pattern pattern()
58669 private java.lang.String pattern
58704 public java.lang.String pattern()
58728 private java.lang.String pattern