Home
last modified time | relevance | path

Searched refs:trim (Results 1 – 25 of 132) sorted by relevance

123456

/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt105 if (cleanupString(expectedFail, null).replace(".", "").trim() != in <lambda>()
106 actualFail.replace(".", "").trim() in <lambda>()
129 if (printedOutput.isNotEmpty() && printedOutput.trim().isEmpty()) { in <lambda>()
244 trim: Boolean = true, in <lambda>()
468 reportedWarnings.append(cleanupString(message, project).trim()).append('\n') in <lambda>()
1063 assertEquals(expectedOutput.trimIndent().trim(), actualOutput.trim()) in <lambda>()
1068 val actualText = readFile(apiFile, stripBlankLines, trim) in <lambda>()
1079 val actualText = readFile(apiXmlFile, stripBlankLines, trim) in <lambda>()
1090 val actualText = readFile(baselineFile, stripBlankLines, trim) in <lambda>()
1108 val actualText = readFile(converted, stripBlankLines, trim) in <lambda>()
[all …]
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/
DManifestGenerationTest.java63 text = text.trim(); in elementaryManifestGeneration()
67 assertEquals("Manifest-Version: 1.0", lines[0].trim()); in elementaryManifestGeneration()
71 linesSet.add(l.trim()); in elementaryManifestGeneration()
99 text = text.trim(); in manifestGenerationOnHalfWrittenFile()
103 assertEquals("Manifest-Version: 1.0", lines[0].trim()); in manifestGenerationOnHalfWrittenFile()
107 linesSet.add(l.trim()); in manifestGenerationOnHalfWrittenFile()
137 text = text.trim(); in manifestGenerationOnExistingFile()
141 assertEquals("Manifest-Version: 1.0", lines[0].trim()); in manifestGenerationOnExistingFile()
145 linesSet.add(l.trim()); in manifestGenerationOnExistingFile()
/tools/tradefederation/core/src/com/android/tradefed/device/
DTestDevice.java814 KeyguardControllerState.create(Arrays.asList(output.trim().split("\n"))); in getKeyguardState()
1082 return Integer.parseInt(commandOutput.substring(commandOutput.lastIndexOf(" ")).trim()); in getMaxNumberOfUsersSupported()
1096 return Integer.parseInt(commandOutput.substring(commandOutput.lastIndexOf(" ")).trim()); in getMaxNumberOfRunningUsersSupported()
1142 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser()
1264 int userId = Integer.parseInt(output.trim()); in getCurrentUser()
1417 return getSettingInternal("", namespace.trim(), key.trim()); in getSetting()
1426 return getSettingInternal(String.format("--user %d", userId), namespace.trim(), key.trim()); in getSetting()
1443 return output.trim(); in getSettingInternal()
1452 return getAllSettingsInternal(namespace.trim()); in getAllSettings()
1465 String[] pair = line.trim().split("=", -1); in getAllSettingsInternal()
[all …]
DCpuStatsCollector.java247 String[] args = line.trim().split(","); in processNewLines()
269 CLog.w("Unexpected input: %s", line.trim()); in processNewLines()
271 CLog.w("Unexpected input: %s", line.trim()); in processNewLines()
274 CLog.w("Unexpected input: %s", line.trim()); in processNewLines()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DGTestResultParser.java298 message = line.substring(Prefixes.START_TEST_MARKER.length()).trim(); in parse()
307 .trim(); in parse()
319 Prefixes.OK_TEST_MARKER.length()).trim(); in parse()
331 Prefixes.ALT_OK_MARKER.length()).trim(); in parse()
340 Prefixes.FAILED_TEST_MARKER.length()).trim(); in parse()
351 Prefixes.TIMEOUT_MARKER.length()).trim(); in parse()
359 message = line.substring(Prefixes.TEST_RUN_MARKER.length()).trim(); in parse()
366 message = line.substring(Prefixes.TEST_RUN_MARKER.length()).trim(); in parse()
487 identifier = identifier.substring(0, identifier.lastIndexOf(discardPortion)).trim(); in parseTestDescription()
/tools/tradefederation/contrib/src/com/android/framework/tests/
DBandwidthMicroBenchMarkTest.java295 if (serverResponse == null || serverResponse.trim().length() == 0) { in parseServerResponse()
383 long xtRb = Long.parseLong(statsStrArray[4].trim()); in evaluateEventLogLine()
384 long xtTb = Long.parseLong(statsStrArray[5].trim()); in evaluateEventLogLine()
385 long xtRp = Long.parseLong(statsStrArray[6].trim()); in evaluateEventLogLine()
386 long xtTp = Long.parseLong(statsStrArray[7].trim()); in evaluateEventLogLine()
387 long uidRb = Long.parseLong(statsStrArray[8].trim()); in evaluateEventLogLine()
388 long uidTb = Long.parseLong(statsStrArray[9].trim()); in evaluateEventLogLine()
389 long uidRp = Long.parseLong(statsStrArray[10].trim()); in evaluateEventLogLine()
390 long uidTp = Long.parseLong(statsStrArray[11].trim()); in evaluateEventLogLine()
DBandwidthUtils.java78 String[] parts = line.trim().split(" "); in parseUidStats()
123 String[] parts = line.trim().split("[ :]+"); in parseNetDevStats()
124 String iface = parts[0].replace(":", "").trim(); in parseNetDevStats()
/tools/tradefederation/core/tests/src/com/android/tradefed/log/
DFileLoggerTest.java69 String expectedText1 = LogUtil.getLogFormatString(LogLevel.INFO, LOG_TAG, Text1).trim(); in testLogToLogger()
72 LogUtil.getLogFormatString(LogLevel.VERBOSE, LOG_TAG, Text2).trim(); in testLogToLogger()
75 LogUtil.getLogFormatString(LogLevel.ASSERT, LOG_TAG, Text3).trim(); in testLogToLogger()
81 String actualLogString = logFileReader.readLine().trim(); in testLogToLogger()
84 actualLogString = logFileReader.readLine().trim(); in testLogToLogger()
87 actualLogString = logFileReader.readLine().trim(); in testLogToLogger()
/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DAtraceRunMetricCollector.java166 if (!resultAggregatorMap.containsKey(metric[0].trim())) { in aggregateMetrics()
168 resultStats.add(Double.parseDouble(metric[1].trim())); in aggregateMetrics()
169 resultAggregatorMap.put(metric[0].trim(), resultStats); in aggregateMetrics()
171 resultAggregatorMap.get(metric[0].trim()).add( in aggregateMetrics()
172 Double.parseDouble(metric[1].trim())); in aggregateMetrics()
/tools/loganalysis/src/com/android/loganalysis/parser/
DBugreportParser.java83 if (bugreport == null && !"".equals(line.trim())) {
92 String argString = m.group(1).trim();
137 if (!mParsedInput && !"".equals(line.trim())) { in parse()
156 if (!mParsedInput && !"".equals(line.trim())) { in parse()
246 item.setStack("Last boot reason: " + bootreason.trim()); in commit()
255 item.setStack("Last boot reason: " + bootreason.trim()); in commit()
DDumpsysProcStatsParser.java45 item.put(m.group(2).trim(), m.group(1).trim()); in parse()
/tools/tradefederation/contrib/src/com/android/media/tests/
DVideoMultimeterTest.java308 Matcher m = p.matcher(numFrames.trim()); in extractNumberOfCollectedDataPoints()
322 String filename = videoInfo[0].trim(); in runMultimeterTest()
323 String keyPrefix = videoInfo[1].trim(); in runMultimeterTest()
324 float fps = Float.parseFloat(videoInfo[2].trim()); in runMultimeterTest()
325 long duration = Long.parseLong(videoInfo[3].trim()); in runMultimeterTest()
382 m = p.matcher(lines[i].trim()); in parseResult()
447 m = pLip.matcher(lines[i].trim()); in parseResult()
/tools/repohooks/tools/
Dcheckpatch.pl613 return trim($string) if ($string =~ /^\s*0[0-7]{3,3}\s*$/);
1081 $name = trim($name);
1096 $name = trim($name);
1098 $address = trim($address);
1114 $name = trim($name);
1116 $address = trim($address);
2143 sub trim { subroutine
3625 …"Prefer '" . trim($sign) . " int" . rtrim($pointer) . "' to bare use of '$sign" . rtrim($pointer) …
3627 my $decl = trim($sign) . " int ";
3701 my $comment = trim($1);
[all …]
/tools/tradefederation/contrib/src/com/android/graphics/tests/
DFlatlandTest.java163 String[] items = lines[i].trim().split("\\|"); in parseResult()
165 String schemaKey = String.format("%s %s", items[0].trim(), items[1].trim()); in parseResult()
170 String renderTime = items[2].trim(); in parseResult()
/tools/metalava/src/main/java/com/android/tools/metalava/
DDiff.kt113 if (!before[i].trim { it <= ' ' }.isEmpty()) { in getDiff()
121 if (!after[j].trim { it <= ' ' }.isEmpty()) { in getDiff()
149 if (!before[i].trim { it <= ' ' }.isEmpty()) { in getDiff()
158 if (!after[j].trim { it <= ' ' }.isEmpty()) { in getDiff()
/tools/trebuchet/core/common/src/main/kotlin/trebuchet/util/
DSlices.kt66 …NATE_DEX_OPEN_START) -> return SliceContents("Open dex file", sliceString.split(" ").last().trim()) in parseSliceName()
76 val sliceType = matchResult.groups[1]!!.value.trim() in parseSliceName()
80 matchResult.groups[2]!!.value.trim() in parseSliceName()
/tools/dexter/slicer/
Dbytecode_encoder.cc74 dex::u4 trim = value & 0xf; in Trim_S0() local
75 SLICER_CHECK(dex::u4(dex::s4(trim << 28) >> 28) == value); in Trim_S0()
76 return trim; in Trim_S0()
81 dex::u4 trim = value & 0xff; in Trim_S1() local
82 SLICER_CHECK(dex::u4(dex::s4(trim << 24) >> 24) == value); in Trim_S1()
83 return trim; in Trim_S1()
88 dex::u4 trim = value & 0xffff; in Trim_S2() local
89 SLICER_CHECK(dex::u4(dex::s4(trim << 16) >> 16) == value); in Trim_S2()
90 return trim; in Trim_S2()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DSuiteTestFilter.java100 sb.append(mAbi.trim()); in toString()
104 sb.append(mName.trim()); in toString()
108 sb.append(mTest.trim()); in toString()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DCpuThrottlingWaiter.java78 String.format("cat %s/cpuinfo_max_freq", e.getKey())).trim(); in setUp()
123 cpuPaths.add(line.trim()); in getCpuMaxFreqs()
127 String.format("cat %s/scaling_available_frequencies", cpu)).trim(); in getCpuMaxFreqs()
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/
DTextTypeItem.kt347 s = s.substring(0, index).trim() + s.substring(end).trim() in markRecent()
366 s = s.substring(0, i).trim() + s.substring(end).trim() in markRecent()
/tools/tradefederation/contrib/src/com/android/performance/tests/
DHermeticMemoryTest.java214 String dataSplit[] = line[lineCount].trim().split(SEPARATOR); in parseDumpsysInfo()
241 String line = lineSplit[lineCount].replace(":", "").trim(); in parseProcInfo()
298 String procDetails[] = processInfo[0].trim().split(SEPARATOR); in calculateFreeMem()
301 + Integer.parseInt(procDetails[2].trim()) in calculateFreeMem()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/
DRunUtilFuncTest.java107 assertTrue(result.getStdout().trim().equals("hello")); in testRunTimedCmd_repeatedOutput()
173 assertEquals("foo", result.getStdout().trim()); in testUnsetEnvVariable()
180 assertEquals("", result.getStdout().trim()); in testUnsetEnvVariable()
/tools/tradefederation/core/src/com/android/tradefed/util/
DAbiUtils.java259 String trimmedAbi = abi.trim(); in parseAbiList()
276 String trimmedAbi = abi.trim(); in parseAbiListFromProperty()
287 String mainAbi = commandResult.getStdout().trim(); in getHostAbi()
DBluetoothUtils.java113 line = line.trim(); in getBluetoothMac()
162 Matcher m = BONDED_MAC_HEADER.matcher(line.trim()); in parseBondedDeviceInstrumentationOutput()
321 return settingItems[1].trim(); in getBtSnoopLogFilePath()
/tools/tradefederation/contrib/tests/src/com/android/continuous/
DSmokeTestTest.java37 TrimListener trim = new TrimListener(mListener); in testRewrite() local
47 trim.testStarted(in); in testRewrite()

123456