Home
last modified time | relevance | path

Searched refs:lines (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/media/src/android/media/cts/
DConnectionStatus.java72 private void printLines(final ArrayList<String> lines) { in printLines() argument
73 for (String line : lines) { in printLines()
97 ArrayList<String> lines = new ArrayList<String>(); in pingTest() local
102 lines.add(line); in pingTest()
104 printLines(lines); in pingTest()
105 lines.clear(); in pingTest()
111 lines.add(line); in pingTest()
113 printLines(lines); in pingTest()
DDecoderConformanceTest.java92 List<String> lines = new ArrayList<String>(); in readResourceLines() local
97 lines.add(line); in readResourceLines()
101 return lines; in readResourceLines()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DTextUtils.java37 final String[] lines = source.split("\\n", -1); in extractSection() local
40 for (; i < lines.length; i++) { in extractSection()
41 final String line = lines[i]; in extractSection()
52 for (; i < lines.length; i++) { in extractSection()
53 final String line = lines[i]; in extractSection()
/cts/hostsidetests/media/bitstreams/src/android/media/cts/bitstreams/
DSupportedBitstreamsProcessor.java85 String[] lines = getReportLines(device, reportPath); in process() local
87 for (int i = 0; i < lines.length;) { in process()
88 String path = lines[i++]; in process()
89 int n = Integer.parseInt(lines[i++]); in process()
91 String name = lines[i++]; in process()
92 String status = lines[i++]; in process()
DMediaBitstreamsTest.java374 String[] lines = getReportLines(device, reportPath); in parse() local
376 for (int i = 0; i < lines.length;) { in parse()
378 String path = lines[i++]; in parse()
383 if (i < lines.length) { in parse()
384 failedEarly = Boolean.parseBoolean(lines[i++]); in parse()
385 errMsg = failedEarly ? lines[i++] : ""; in parse()
398 int n = Integer.parseInt(lines[i++]); in parse()
399 for (int j = 0; j < n && i < lines.length; j++) { in parse()
400 String decoderName = lines[i++]; in parse()
402 if (i < lines.length) { in parse()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DServicePermissionsTest.java124 final ArrayList<String> lines = new ArrayList<String>(); in testDumpProtected() local
128 lines.add(line); in testDumpProtected()
135 if (lines.size() > 1) { in testDumpProtected()
141 if (lines.size() == 1) { in testDumpProtected()
142 String message = lines.get(0); in testDumpProtected()
/cts/tests/framework/base/activitymanager/src/android/server/am/
DActivityManagerConfigChangeTests.java197 final String[] lines = getDeviceLogsForComponents(logSeparator, getLogTag(activityName)); in readAssetSeqNumber() local
198 for (int i = lines.length - 1; i >= 0; i--) { in readAssetSeqNumber()
199 final String line = lines[i].trim(); in readAssetSeqNumber()
224 final String[] lines = getDeviceLogsForComponents(logSeparator, getLogTag(activityName)); in getActivityDensityDpi() local
225 for (int i = lines.length - 1; i >= 0; i--) { in getActivityDensityDpi()
226 final String line = lines[i].trim(); in getActivityDensityDpi()
241 final String[] lines = getDeviceLogsForComponents(logSeparator, getLogTag(activityName)); in assertExpectedFontPixelSize() local
242 for (int i = lines.length - 1; i >= 0; i--) { in assertExpectedFontPixelSize()
243 final String line = lines[i].trim(); in assertExpectedFontPixelSize()
DKeyguardTestBase.java59 final String[] lines = getDeviceLogsForComponents(logSeparator, logTag); in assertInLogcat() local
60 for (int i = lines.length - 1; i >= 0; i--) { in assertInLogcat()
61 final String line = lines[i].trim(); in assertInLogcat()
DActivityAndWindowManagerOverrideConfigTests.java55 final String[] lines = in findConfigurationChange() local
58 for (int i = lines.length - 1; i >= 0; i--) { in findConfigurationChange()
59 final String line = lines[i].trim(); in findConfigurationChange()
DActivityManagerAmStartOptionsTests.java126 final String[] lines = result.split("\\n"); in verifyShellOutput() local
128 for (int i = lines.length - 1; i >= 0; i--) { in verifyShellOutput()
129 final String line = lines[i].trim(); in verifyShellOutput()
DActivityManagerDisplayTestBase.java178 private ReportedDisplayMetrics(final String lines) { in ReportedDisplayMetrics() argument
179 Matcher matcher = PHYSICAL_SIZE.matcher(lines); in ReportedDisplayMetrics()
185 matcher = PHYSICAL_DENSITY.matcher(lines); in ReportedDisplayMetrics()
190 matcher = OVERRIDE_SIZE.matcher(lines); in ReportedDisplayMetrics()
199 matcher = OVERRIDE_DENSITY.matcher(lines); in ReportedDisplayMetrics()
/cts/hostsidetests/security/src/android/cts/security/
DProcessMustUseSeccompTest.java60 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in getPidFromCmd() local
62 for (String line: lines) { in getPidFromCmd()
88 String[] lines = Out.getOutput().split(System.getProperty("line.separator")); in pidHasSeccompBpf() local
89 for (String line: lines) { in pidHasSeccompBpf()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
DVectorAverage.java152 String[] lines = string.split(System.getProperty("line.separator")); in initFromString() local
154 int lineCount = lines.length; in initFromString()
162 String[] separated = lines[nIndex].split("="); in initFromString()
174 String[] separated = lines[nIndex].split("="); in initFromString()
188 double value = Double.parseDouble(lines[nIndex]); in initFromString()
/cts/hostsidetests/dumpsys/src/android/dumpsys/cts/
DProcessStatsDumpsysTest.java327 private static String findLine(String prefix, String[] lines) { in findLine() argument
328 for (String line : lines) { in findLine()
413 final String[] lines = procstats.split("\n"); in checkWithProcStatsApp() local
418 lines)); in checkWithProcStatsApp()
434 lines)); in checkWithProcStatsApp()
451 lines)); in checkWithProcStatsApp()
458 lines)); in checkWithProcStatsApp()
471 lines)); in checkWithProcStatsApp()
478 lines)); in checkWithProcStatsApp()
/cts/hostsidetests/compilation/src/android/cts/compilation/
DAdbRootDependentCompilationTest.java356 String[] lines = executeSuShellAdbCommand(command); in executeSuShellAdbCommand() local
359 numLinesOutputExpected, lines.length, Arrays.toString(command), in executeSuShellAdbCommand()
360 Arrays.toString(lines)), in executeSuShellAdbCommand()
361 numLinesOutputExpected, lines.length); in executeSuShellAdbCommand()
362 return lines; in executeSuShellAdbCommand()
371 String[] lines = output.equals("") ? new String[0] : output.split("\n"); in executeSuShellAdbCommand() local
372 return lines; in executeSuShellAdbCommand()
/cts/hostsidetests/atrace/src/android/atrace/cts/
DAtraceHostTest.java158 String[] lines = output.split("\\r?\\n"); in testSimpleRun() local
161 assertEquals("capturing trace... done", lines[0]); in testSimpleRun()
162 assertEquals("TRACE:", lines[1]); in testSimpleRun()
165 assertEquals("# tracer: nop", lines[2]); in testSimpleRun()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java229 String[] lines = commandOutput.split("\\r?\\n"); in getUserFlags() local
230 assertTrue(commandOutput + " should contain at least one line", lines.length >= 1); in getUserFlags()
231 for (int i = 1; i < lines.length; i++) { in getUserFlags()
234 String[] tokens = lines[i].split("\\{|\\}|:"); in getUserFlags()
235 assertTrue(lines[i] + " doesn't contain 4 or 5 tokens", in getUserFlags()
701 String[] lines = commandOutput.split("\\r?\\n"); in removeOwners() local
702 for (int i = 0; i < lines.length; ++i) { in removeOwners()
703 String line = lines[i].trim(); in removeOwners()
709 line = lines[i].trim(); in removeOwners()
717 line = lines[i].trim(); in removeOwners()
[all …]
/cts/tools/selinux/
DSELinuxNeverallowTestGen.py41 lines = re.findall(
50 for line in lines:
/cts/hostsidetests/jdwpsecurity/src/android/jdwpsecurity/cts/
DJdwpSecurityHostTest.java201 private final List<String> lines = new ArrayList<String>(); field in JdwpSecurityHostTest.AdbJdwpOutputReader
227 return lines; in listPidsWithAdbJdwp()
237 lines.add(line); in run()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DAdoptableHostTest.java351 String[] lines = null; in getAdoptionVolume() local
354 lines = getDevice().executeShellCommand("sm list-volumes private").split("\n"); in getAdoptionVolume()
355 for (String line : lines) { in getAdoptionVolume()
363 throw new AssertionError("Expected private volume; found " + Arrays.toString(lines)); in getAdoptionVolume()
/cts/tools/utils/
DbuildCts.py37 lines = [line.strip() for line in f.readlines()]
39 return lines
47 lines = [string.join(line.strip().rsplit('.',1),'#') for line in f.readlines()]
49 return lines
/cts/hostsidetests/incident/src/com/android/server/cts/
DBatteryStatsValidationTest.java512 String[] lines = dumpsys.split("\n"); in getLongValue() local
517 for (int i = lines.length - 1; i >= 0; i--) { in getLongValue()
518 String line = lines[i]; in getLongValue()
/cts/hostsidetests/security/src/android/security/cts/
DKernelConfigTest.java98 set = new HashSet<String>(reader.lines().collect(Collectors.toList())); in getDeviceConfig()
/cts/apps/CameraITS/build/scripts/
Dgpylint_rcfile222 ignore-long-lines=(^\s*(import|from)\s|^__version__\s=\s['"]\$Id:|^\s*(# )?<?https?://\S+>?$)
231 # Maximum number of lines in a module
232 max-module-lines=99999
353 # Minimum lines number of a similarity.
354 min-similarity-lines=4
/cts/tests/jdwp/runner/host-side/src/com/android/compatibility/testtype/
DDalvikTest.java397 public void processNewLines(String[] lines) { in run()
398 for (String line : lines) { in run()

12