Home
last modified time | relevance | path

Searched refs:line (Results 1 – 25 of 73) sorted by relevance

123

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java110 for (int line = 0; line < breaks.length; line++) { in getBreaks()
111 breaks[line] = staticLayout.getLineEnd(line); in getBreaks()
121 for (int line = 0; line < count; line++) { in debugLayout()
122 int lineStart = staticLayout.getLineStart(line); in debugLayout()
123 int lineEnd = staticLayout.getLineEnd(line); in debugLayout()
124 Log.i("StaticLayoutLineBreakingTest", "Line " + line + " [" + lineStart + ".." + in debugLayout()
142 for (int line = 0; line < lineCount; line++) { in layout()
143 int lineStart = staticLayout.getLineStart(line); in layout()
144 int lineEnd = staticLayout.getLineEnd(line); in layout()
146 if (line == 0) { in layout()
[all …]
DLayoutTest.java299 public int getEllipsisCount(int line) { in getEllipsisCount() argument
304 public int getEllipsisStart(int line) { in getEllipsisStart() argument
309 public boolean getLineContainsTab(int line) { in getLineContainsTab() argument
319 public int getLineDescent(int line) { in getLineDescent() argument
324 public Directions getLineDirections(int line) { in getLineDirections() argument
329 public int getLineStart(int line) { in getLineStart() argument
330 if (line < 0) { in getLineStart()
333 return line; in getLineStart()
337 public int getLineTop(int line) { in getLineTop() argument
338 if (line < 0) { in getLineTop()
[all …]
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/
DWrappedGTestResultParser.java75 for (String line : lines) { in parseInstrumentation()
77 if (line.startsWith("INSTRUMENTATION_RESULT: ")) { in parseInstrumentation()
83 CLog.e(line); in parseInstrumentation()
87 if (line.startsWith("INSTRUMENTATION_STATUS: gtest=")) { in parseInstrumentation()
88 output.add(line.replace("INSTRUMENTATION_STATUS: gtest=", "")); in parseInstrumentation()
93 if (line.startsWith("INSTRUMENTATION_")) { in parseInstrumentation()
99 output.add(line); in parseInstrumentation()
DSingleJUnitTestResultParser.java58 for (String line : lines) { in processNewLines()
59 parse(line); in processNewLines()
67 private void parse(String line) { in parse() argument
68 if (line.startsWith(PASSED_TEST_MARKER)) { in parse()
70 } else if (line.startsWith(FAILED_TEST_MARKER)) { in parse()
75 mStackTrace.append(line); in parse()
DGeeTestResultParser.java258 for (String line : lines) { in processNewLines()
259 parse(line); in processNewLines()
268 private void parse(String line) { in parse() argument
271 if (mTestRunInProgress || line.startsWith(Prefixes.TEST_RUN_MARKER)) { in parse()
272 if (line.startsWith(Prefixes.START_TEST_MARKER)) { in parse()
274 message = line.substring(Prefixes.START_TEST_MARKER.length()).trim(); in parse()
277 else if (line.startsWith(Prefixes.OK_TEST_MARKER)) { in parse()
279 message = line.substring(Prefixes.OK_TEST_MARKER.length()).trim(); in parse()
283 else if (line.startsWith(Prefixes.FAILED_TEST_MARKER)) { in parse()
285 message = line.substring(Prefixes.FAILED_TEST_MARKER.length()).trim(); in parse()
[all …]
/cts/tests/tests/keystore/src/android/keystore/cts/
DAESCipherNistCavpKatTest.java172 String line; in runTestsForKatFile() local
179 while ((line = in.readLine()) != null) { in runTestsForKatFile()
181 line = line.trim(); in runTestsForKatFile()
182 if (line.startsWith("#")) { in runTestsForKatFile()
189 if (line.length() == 0) { in runTestsForKatFile()
193 if ((line.startsWith("[")) && (line.endsWith("]"))) { in runTestsForKatFile()
194 section = line.substring(1, line.length() - 1); in runTestsForKatFile()
202 int delimiterIndex = line.indexOf('='); in runTestsForKatFile()
205 + " definition: " + line); in runTestsForKatFile()
207 String name = line.substring(0, delimiterIndex).trim(); in runTestsForKatFile()
[all …]
/cts/tools/cts-native-scanner/src/com/android/cts/nativescanner/
DTestScanner.java54 String line; in getTestNames() local
55 while ((line = mReader.readLine()) != null) { in getTestNames()
56 if (line.length() > 0) { in getTestNames()
57 if (line.charAt(0) == ' ') { in getTestNames()
59 testNames.add("test:" + line.trim()); in getTestNames()
64 testCaseName = line.trim(); in getTestNames()
/cts/tests/tests/security/src/android/security/cts/
DARTBootASLRTest.java36 String line; in testARTASLR() local
38 while ((line = bufReader.readLine()) != null) { in testARTASLR()
40 if (line.matches("/system/.*boot\\.art")) { in testARTASLR()
41 fail("found " + line + " from system partition"); in testARTASLR()
42 } else if (line.matches(".*boot\\.art")) { in testARTASLR()
DEncryptionTest.java55 String line; in hasKernelCrypto() local
56 while ((line = br.readLine()) != null) { in hasKernelCrypto()
57 if (p.matcher(line).matches()) { in hasKernelCrypto()
58 Log.i(TAG, crypto + " has " + driver + " (" + line + ")"); in hasKernelCrypto()
DHwRngTest.java147 String line; in parseUeventFile() local
148 while ((line = in.readLine()) != null) { in parseUeventFile()
149 if (line.trim().length() == 0) { in parseUeventFile()
156 int delimiterIndex = line.indexOf('='); in parseUeventFile()
158 key = line.substring(0, delimiterIndex); in parseUeventFile()
159 value = line.substring(delimiterIndex + 1); in parseUeventFile()
161 key = line; in parseUeventFile()
DServicePermissionsTest.java123 String line; in testDumpProtected() local
124 while ((line = reader.readLine()) != null) { in testDumpProtected()
125 lines.add(line); in testDumpProtected()
126 Log.v(TAG, "--> " + line); in testDumpProtected()
/cts/common/host-side/native-scanner/src/com/android/compatibility/common/scanner/
DNativeScanner.java48 String line; in getTestNames() local
49 while ((line = reader.readLine()) != null) { in getTestNames()
50 if (line.length() == 0) { in getTestNames()
53 if (line.charAt(0) == ' ') { in getTestNames()
57 testNames.add("test:" + line.trim()); in getTestNames()
59 testCaseName = line.trim(); in getTestNames()
/cts/tests/tests/gesture/src/android/gesture/cts/
DGestureTest.java50 GestureStroke line = mLineHelper.createLineGesture(); in testGetStrokes() local
51 mGesture.addStroke(line); in testGetStrokes()
53 assertEquals(line, mGesture.getStrokes().get(0)); in testGetStrokes()
62 GestureStroke line = mLineHelper.createLineGesture(); in testGetStrokesCount() local
63 mGesture.addStroke(line); in testGetStrokesCount()
DGestureStrokeTest.java110 GestureStroke line = mHelper.createLineGesture(); in testComputeOrientedBoundingBox() local
111 OrientedBoundingBox box = line.computeOrientedBoundingBox(); in testComputeOrientedBoundingBox()
123 GestureStroke line = mHelper.createLineGesture(); in testBoundingBox_line() local
124 mHelper.assertLineBoundingBox(line.boundingBox); in testBoundingBox_line()
/cts/tests/tests/os/jni/
Dandroid_os_cts_NoExecutePermissionTest.cpp27 char line[1024]; in isAddressExecutable() local
34 while(fgets(line, sizeof(line), fp) != NULL) { in isAddressExecutable()
38 int scan = sscanf(line, "%" SCNxPTR "-%" SCNxPTR " %9s ", &start, &end, permissions); in isAddressExecutable()
/cts/suite/audio_quality/test_description/conf/
Ddetect_usb_audio.py42 line = f.readline().strip()
43 if line in product_list:
44 print "___CTS_AUDIO_PASS___ " + line + " " + m.group(1)
/cts/libs/vogar-expect/src/vogar/util/
DStrings.java46 String line; in readStream() local
47 while ((line = in.readLine()) != null) { in readStream()
48 result.append(line); in readStream()
63 String line; in readFileLines() local
64 while ((line = in.readLine()) != null) { in readFileLines()
65 list.add(line); in readFileLines()
/cts/tests/tests/os/src/android/os/cts/
DBuildTest.java112 String line = ""; in getProperty() local
115 line = scanner.nextLine(); in getProperty()
121 return line; in getProperty()
134 String line = scanner.nextLine(); in assertProperty() local
135 assertEquals(message + " Value found: " + line , expected, line); in assertProperty()
158 String line = scanner.nextLine(); in assertNoPropertySet() local
159 assertFalse(message + "Property found: " + line, in assertNoPropertySet()
160 line.startsWith("[" + property + "]")); in assertNoPropertySet()
/cts/common/host-side/java-scanner/src/com/android/compatibility/common/scanner/
DJavaScanner.java78 String line = null; in scan() local
79 while ((line = in.readLine()) != null) { in scan()
80 if (line.startsWith("suite:") || in scan()
81 line.startsWith("case:") || in scan()
82 line.startsWith("test:")) { in scan()
83 System.out.println(line); in scan()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java72 private static void parseLine(String line, FtraceEntryCallback callback) { in parseLine() argument
73 Matcher m = sLineWithTgid.matcher(line); in parseLine()
84 m = sLineWithIrqInfo.matcher(line); in parseLine()
95 m = sLineLegacy.matcher(line); in parseLine()
105 System.err.println("line doesn't match: " + line); in parseLine()
111 String line; in parse() local
112 while ((line = bufferedReader.readLine()) != null) { in parse()
113 FtraceParser.parseLine(line, callback); in parse()
/cts/common/device-side/device-info/tests/src/com/android/compatibility/common/deviceinfo/
DDeviceInfoActivityTest.java70 String line; in readFile() local
71 while((line = bufferedReader.readLine()) != null) { in readFile()
72 stringBuilder.append(line); in readFile()
/cts/hostsidetests/monkey/src/com/android/cts/monkey/
DSeedTest.java54 String line = sc.nextLine().trim(); in getNextLine() local
55 if (line.startsWith(":Sending")) { in getNextLine()
56 return line; in getNextLine()
/cts/hostsidetests/security/src/android/cts/security/
DSELinuxHostTest.java153 String line; in testAllEnforcing() local
155 while ((line = result.readLine()) != null) { in testAllEnforcing()
156 errorString.append(line); in testAllEnforcing()
220 String line; in testValidSeappContexts() local
222 while ((line = result.readLine()) != null) { in testValidSeappContexts()
223 errorString.append(line); in testValidSeappContexts()
305 String line; in testValidFileContexts() local
307 while ((line = result.readLine()) != null) { in testValidFileContexts()
308 errorString.append(line); in testValidFileContexts()
331 String line; in testValidPropertyContexts() local
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DNoReadLogsPermissionTest.java56 String line; in testLogcat() local
57 while ((line = reader.readLine()) != null) { in testLogcat()
58 if (!line.startsWith("--------- beginning of ")) { in testLogcat()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPathMeasureTest.java94 Path line = new Path(); in testIsClosed() local
95 line.lineTo(5, 5); in testIsClosed()
97 measure.setPath(line, false); in testIsClosed()
99 measure.setPath(line, true); in testIsClosed()

123