Home
last modified time | relevance | path

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

1234567

/cts/tests/tests/text/src/android/text/cts/
DStaticLayoutLineBreakingTest.java97 for (int line = 0; line < breaks.length; line++) { in getBreaks()
98 breaks[line] = staticLayout.getLineEnd(line); in getBreaks()
108 for (int line = 0; line < count; line++) { in debugLayout()
109 int lineStart = staticLayout.getLineStart(line); in debugLayout()
110 int lineEnd = staticLayout.getLineEnd(line); in debugLayout()
111 Log.i("SLLBTest", "Line " + line + " [" + lineStart + ".." in debugLayout()
132 for (int line = 0; line < lineCount; line++) { in layout()
133 final int lineStart = staticLayout.getLineStart(line); in layout()
134 final int lineEnd = staticLayout.getLineEnd(line); in layout()
136 if (line == 0) { in layout()
[all …]
DStaticLayoutGetLineLeftRightTest.java146 for (int line = 0; line < lineCount; ++line) { in testGetLineLeft()
147 final int start = mLayout.getLineStart(line); in testGetLineLeft()
148 final int end = mLayout.getLineEnd(line); in testGetLineLeft()
163 assertEquals(expectedLeft, mLayout.getLineLeft(line), 0.0f); in testGetLineLeft()
170 for (int line = 0; line < lineCount; ++line) { in testGetLineRight()
171 final int start = mLayout.getLineStart(line); in testGetLineRight()
172 final int end = mLayout.getLineEnd(line); in testGetLineRight()
188 assertEquals(expectedRight, mLayout.getLineRight(line), 0.0f); in testGetLineRight()
/cts/tests/app/src/android/app/cts/android/app/cts/tools/
DWatchUidRunner.java123 final String line = mReadReader.readLine(); in waitUntilUidObserverReady() local
124 assertTrue("Unexpected output: " + line, line.startsWith("Watching uid states")); in waitUntilUidObserverReady()
136 String[] line = waitForNextLine(waitUntil, cmd, procState); in expect() local
137 if (!COMMAND_TO_STRING[cmd].equals(line[1])) { in expect()
139 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect()
144 if (procState != null && (line.length < 3 || !procState.equals(line[2]))) { in expect()
146 + " uid " + mUid + " but next report was " + Arrays.toString(line); in expect()
151 Log.d(TAG, "Got expected: " + Arrays.toString(line)); in expect()
161 String[] line = waitForNextLine(waitUntil, cmd, procState); in waitFor() local
162 if (COMMAND_TO_STRING[cmd].equals(line[1])) { in waitFor()
[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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DTextUtils.java41 final String line = lines[i]; in extractSection() local
42 if (start.matcher(line).matches()) { in extractSection()
44 sb.append(line); in extractSection()
53 final String line = lines[i]; in extractSection() local
54 if (end.matcher(line).matches()) { in extractSection()
56 sb.append(line); in extractSection()
61 sb.append(line); in extractSection()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DTextUtils.java41 final String line = lines[i]; in extractSection() local
42 if (start.matcher(line).matches()) { in extractSection()
44 sb.append(line); in extractSection()
53 final String line = lines[i]; in extractSection() local
54 if (end.matcher(line).matches()) { in extractSection()
56 sb.append(line); in extractSection()
61 sb.append(line); in extractSection()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DVirtualContainerView.java155 final Line line = mLines.get(i); in onDraw() local
156 if (!line.visible) { in onDraw()
159 Log.v(TAG, "Drawing '" + line + "' at " + x + "x" + y); in onDraw()
160 mTextPaint.setColor(line.focused ? mFocusedColor : mUnfocusedColor); in onDraw()
161 final String readOnlyText = line.label.text + ": ["; in onDraw()
162 final String writeText = line.text.text + "]"; in onDraw()
168 line.bounds.set((int) x, (int) (y - mLineLength), in onDraw()
170 Log.d(TAG, "setBounds(" + x + ", " + y + "): " + line.bounds); in onDraw()
184 final Line line = mLines.get(i); in onTouchEvent() local
191 Log.d(TAG, "Changing focus to " + line); in onTouchEvent()
[all …]
/cts/tools/release-parser/src/com/android/cts/releaseparser/
DAndroidManifestParser.java95 String line; in parseElement() local
100 while ((line = mReader.readLine()) != null) { in parseElement()
101 eleName = getElementName(line); in parseElement()
118 String line; in parseElementItem() local
120 while ((line = mReader.readLine()) != null) { in parseElementItem()
121 indent = parseItem(line); in parseElementItem()
123 eleName = getElementName(line); in parseElementItem()
143 private int parseItem(String line) { in parseItem() argument
147 int indent = line.indexOf("A: "); in parseItem()
149 matcher = pattern_item.matcher(line); in parseItem()
[all …]
DRcParser.java123 String line; in parseFile() local
124 while ((line = buffReader.readLine()) != null) { in parseFile()
125 if (line.startsWith(SECTION_SERVICE)) { in parseFile()
126 parseService(line, buffReader); in parseFile()
127 } else if (line.startsWith(SECTION_IMPORT)) { in parseFile()
128 parseImport(line); in parseFile()
141 private void parseService(String line, BufferedReader buffReader) throws IOException { in parseService() argument
143 String[] phases = line.split(" "); in parseService()
174 private void parseImport(String line) { in parseImport() argument
176 String[] phases = line.split(" "); in parseImport()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DHdmiCecClientWrapper.java220 String line = mInputConsole.readLine(); in checkConsoleOutput() local
221 if (line.contains(expectedMessage)) { in checkConsoleOutput()
222 CLog.v("Found " + expectedMessage + " in " + line); in checkConsoleOutput()
244 String line = mInputConsole.readLine(); in getAllMessages() local
245 if (pattern.matcher(line).matches()) { in getAllMessages()
246 CecOperand operand = CecMessage.getOperand(line); in getAllMessages()
304 String line = mInputConsole.readLine(); in checkExpectedOutput() local
305 if (pattern.matcher(line).matches()) { in checkExpectedOutput()
306 CLog.v("Found " + expectedMessage.name() + " in " + line); in checkExpectedOutput()
307 return line; in checkExpectedOutput()
[all …]
DLogHelper.java51 String line = in.nextLine(); in getLog() local
52 if (line.startsWith("I/" + tag)) { in getLog()
53 testString = line.split(":")[1].trim(); in getLog()
82 String line = in.nextLine(); in getSupportedAudioFormats() local
83 if (line.startsWith("I/" + SAD_READER)) { in getSupportedAudioFormats()
84 testString = line.split(":")[1].trim(); in getSupportedAudioFormats()
/cts/tests/tests/media/src/android/media/cts/
DConnectionStatus.java73 for (String line : lines) { in printLines()
74 Log.d(TAG, line); in printLines()
98 String line; in pingTest() local
101 while ((line = reader.readLine()) != null) { in pingTest()
102 lines.add(line); in pingTest()
110 while ((line = reader.readLine()) != null) { in pingTest()
111 lines.add(line); in pingTest()
/cts/tests/tests/security/src/android/security/cts/
DARTBootASLRTest.java38 String line; in testARTASLR() local
40 while ((line = bufReader.readLine()) != null) { in testARTASLR()
42 if (line.matches("/system/.*boot\\.art")) { in testARTASLR()
43 fail("found " + line + " from system partition"); in testARTASLR()
44 } else if (line.matches(".*boot\\.art")) { in testARTASLR()
DHwRngTest.java155 String line; in parseUeventFile() local
156 while ((line = in.readLine()) != null) { in parseUeventFile()
157 if (line.trim().length() == 0) { in parseUeventFile()
164 int delimiterIndex = line.indexOf('='); in parseUeventFile()
166 key = line.substring(0, delimiterIndex); in parseUeventFile()
167 value = line.substring(delimiterIndex + 1); in parseUeventFile()
169 key = line; in parseUeventFile()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersNoAppCrashesTest.java116 String line = in.nextLine(); in waitForUserSwitchComplete() local
117 if (line.contains("Showing crash dialog for package")) { in waitForUserSwitchComplete()
118 appErrors.add(line); in waitForUserSwitchComplete()
119 } else if (line.contains(exitString)) { in waitForUserSwitchComplete()
122 } else if (line.contains("FATAL EXCEPTION IN SYSTEM PROCESS")) { in waitForUserSwitchComplete()
123 throw new IllegalStateException("System process crashed - " + line); in waitForUserSwitchComplete()
149 for (String line : errorLogs) { in errorLogsToPackageNames()
150 Matcher matcher = PACKAGE_NAME_PATTERN.matcher(line); in errorLogsToPackageNames()
154 throw new IllegalStateException("Unrecognized line " + line); in errorLogsToPackageNames()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DProcessStatsDumpsysTest.java80 private static String[] commaSplit(String line) { in commaSplit() argument
81 if (line.endsWith(",")) { in commaSplit()
82 line = line + " "; in commaSplit()
84 final String[] values = line.split(","); in commaSplit()
97 String line; in checkProcStateOutput() local
98 while ((line = reader.readLine()) != null) { in checkProcStateOutput()
99 if (line.isEmpty()) { in checkProcStateOutput()
102 CLog.d("Checking line: " + line); in checkProcStateOutput()
104 String[] parts = commaSplit(line); in checkProcStateOutput()
328 for (String line : lines) { in findLine()
[all …]
DStoragedDumpsysTest.java101 String line; in testStoragedOutput() local
103 while ((line = reader.readLine()) != null) { in testStoragedOutput()
104 if (line.isEmpty()) { in testStoragedOutput()
108 if (line.contains(",")) { in testStoragedOutput()
109 parts = line.split(","); in testStoragedOutput()
118 parts = line.split(" "); in testStoragedOutput()
/cts/tests/tests/os/src/android/os/cts/
DEnvironmentTest.java60 String line; in testNoAtime() local
61 while ((line = br.readLine()) != null) { in testNoAtime()
62 final String[] fields = line.split(" "); in testNoAtime()
80 String line; in testHidePid2() local
81 while ((line = br.readLine()) != null) { in testHidePid2()
82 final String[] fields = line.split(" "); in testHidePid2()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/sixdof/Renderer/RenderUtils/
DObjImporter.java81 String line; in parse() local
89 while ((line = buffer.readLine()) != null) { in parse()
91 if (line.length() == 0 || line.charAt(0) == '#') in parse()
93 StringTokenizer parts = new StringTokenizer(line, " "); in parse()
110 boolean emptyVt = line.indexOf("//") > -1; in parse()
111 if (emptyVt) line = line.replace("//", "/"); in parse()
113 parts = new StringTokenizer(line); in parse()
/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()
/cts/tests/tests/selinux/common/src/android/security/
DSELinuxTargetSdkTestBase.java38 String line; in noExecuteOnly() local
40 while ((line = reader.readLine()) != null) { in noExecuteOnly()
41 Matcher m = mapsPattern.matcher(line); in noExecuteOnly()
44 "found:\n" + line, m.matches()); in noExecuteOnly()
57 String line = ""; in getProperty() local
60 line = scanner.nextLine(); in getProperty()
66 return line; in getProperty()
/cts/libs/vogar-expect/src/vogar/expect/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/hostsidetests/security/src/android/security/cts/
DSELinuxHostTest.java238 String line; in buildSystemPolicy() local
240 while ((line = result.readLine()) != null) { in buildSystemPolicy()
241 errorString.append(line); in buildSystemPolicy()
320 String line; in testAllDomainsEnforcing() local
322 while ((line = result.readLine()) != null) { in testAllDomainsEnforcing()
323 errorString.append(line); in testAllDomainsEnforcing()
562 String line; in testValidSeappContexts() local
564 while ((line = result.readLine()) != null) { in testValidSeappContexts()
565 errorString.append(line); in testValidSeappContexts()
637 String line = result.readLine(); in testAospFileContexts() local
[all …]
/cts/tests/camera/libctscamera2jni/
Ddng-validate-jni.cpp437 std::string line; in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative() local
444 while(std::getline(errorStream, line, '\n')) { in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
446 if ( (line.size() > 3) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
447 (line[0] == line[1]) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
448 (line[1] == line[2]) && in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
449 (line[2] == '*') ) { in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
454 ALOGE("**|%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
456 ALOGI(" |%s", line.c_str()); in Java_android_hardware_camera2_cts_DngCreatorTest_validateDngNative()
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryStatsValidationTest.java239 for (String line : dumpsysPower.split("\n")) { in assertScreenOff()
240 if (line.contains("Display Power")) { in assertScreenOff()
241 screenAwake = line.trim().endsWith("ON"); in assertScreenOff()
259 for (String line : dumpsysWindowPolicy.split("\n")) { in assertScreenOn()
260 if (line.contains("KeyguardServiceDelegate")) { in assertScreenOn()
262 } else if (keyguardStateLines && line.contains("showing=")) { in assertScreenOn()
263 screenAwake &= line.trim().endsWith("false"); in assertScreenOn()
264 } else if (keyguardStateLines && line.contains("screenState=")) { in assertScreenOn()
265 screenAwake &= line.trim().endsWith("SCREEN_STATE_ON"); in assertScreenOn()
537 String line = lines[i]; in getLongValue() local
[all …]

1234567