/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 126 if (cleanupString(expectedFail, null).replace(".", "").trim() != in <lambda>() 127 actualFail.replace(".", "").trim() in <lambda>() 152 if (printedOutput.isNotEmpty() && printedOutput.trim().isEmpty()) { in <lambda>() 270 trim: Boolean = true, in <lambda>() 474 (expectedIssues != null && expectedIssues.trim().isNotEmpty()) in <lambda>() 544 val cleanedUpMessage = cleanupString(message, project).trim() in <lambda>() 1162 expectedIssues.trimIndent().trim(), in <lambda>() 1168 errorSeverityExpectedIssues.trimIndent().trim(), in <lambda>() 1174 assertEquals(expectedOutput.trimIndent().trim(), actualOutput.trim()) in <lambda>() 1179 val actualText = readFile(apiFile, stripBlankLines, trim) in <lambda>() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | TestDevice.java | 893 KeyguardControllerState.create(Arrays.asList(output.trim().split("\n"))); in getKeyguardState() 1217 return Integer.parseInt(commandOutput.substring(commandOutput.lastIndexOf(" ")).trim()); in getMaxNumberOfUsersSupported() 1231 return Integer.parseInt(commandOutput.substring(commandOutput.lastIndexOf(" ")).trim()); in getMaxNumberOfRunningUsersSupported() 1277 return Integer.parseInt(output.substring(output.lastIndexOf(" ")).trim()); in createUser() 1399 int userId = Integer.parseInt(output.trim()); in getCurrentUser() 1571 return getSettingInternal("", namespace.trim(), key.trim()); in getSetting() 1580 return getSettingInternal(String.format("--user %d", userId), namespace.trim(), key.trim()); in getSetting() 1597 return output.trim(); in getSettingInternal() 1606 return getAllSettingsInternal(namespace.trim()); in getAllSettings() 1619 String[] pair = line.trim().split("=", -1); in getAllSettingsInternal() [all …]
|
D | NativeDevice.java | 486 if (result.getStdout() == null || result.getStdout().trim().isEmpty()) { in getProperty() 489 return result.getStdout().trim(); in getProperty() 1340 if (output.trim().length() > 0) { in getDfOutput() 1528 if (lsOutput.trim().isEmpty()) { in getChildren() 1820 return timezone.trim(); in getDeviceTimezone() 2388 String bugreportName = FileUtil.readStringFromFile(mainEntry).trim(); in getBugreport() 2536 String output = receiver.getOutput().trim(); in getBugreportzInternal() 3523 ENCRYPTION_PASSWORD)).trim(); in unlockDevice() 3546 output = executeShellCommand("vdc cryptfs restart").trim(); in unlockDevice() 3572 return "encrypted".equals(output.trim()); in isDeviceEncrypted() [all …]
|
/tools/repohooks/tools/ |
D | checkpatch.pl | 613 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/apkzlib/src/test/java/com/android/tools/build/apkzlib/sign/ |
D | ManifestGenerationTest.java | 63 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/test_framework/com/android/tradefed/testtype/ |
D | GTestResultParser.java | 298 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/dexter/slicer/ |
D | bytecode_encoder.cc | 74 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/contrib/src/com/android/media/tests/ |
D | VideoMultimeterTest.java | 308 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() 452 m = pLip.matcher(lines[i].trim()); in parseResult()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/log/ |
D | FileLoggerTest.java | 69 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/loganalysis/src/com/android/loganalysis/parser/ |
D | BugreportParser.java | 83 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()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | AtraceRunMetricCollector.java | 166 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/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | audio_test_utils.py | 181 trim = numpy.array([[trim_start, trim_end]]) 182 trim = trim * fs 184 for elem in trim:
|
/tools/tradefederation/contrib/src/com/android/graphics/tests/ |
D | FlatlandTest.java | 163 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/ |
D | Diff.kt | 115 if (before[i].trim().isNotEmpty()) { in getDiff() 123 if (after[j].trim().isNotEmpty()) { in getDiff() 151 if (before[i].trim().isNotEmpty()) { in getDiff() 160 if (after[j].trim().isNotEmpty()) { in getDiff()
|
D | Baseline.kt | 215 val issueId = line.substring(0, idEnd).trim() in <lambda>() 216 val elementId = line.substring(idEnd + 2, elementEnd).trim() in <lambda>() 220 val message = if (merge) lines[i + 1].trim() else "" in <lambda>()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/text/ |
D | TextTypeItem.kt | 381 s = s.substring(0, index).trim() + s.substring(end).trim() in markRecent() 400 s = s.substring(0, i).trim() + s.substring(end).trim() in markRecent()
|
/tools/tradefederation/contrib/src/com/android/performance/tests/ |
D | HermeticMemoryTest.java | 214 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/trebuchet/core/common/src/main/kotlin/trebuchet/util/ |
D | Slices.kt | 66 …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/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | SuiteTestFilter.java | 100 sb.append(mAbi.trim()); in toString() 104 sb.append(mName.trim()); in toString() 108 sb.append(mTest.trim()); in toString()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/ |
D | CpuThrottlingWaiter.java | 77 String.format("cat %s/cpuinfo_max_freq", e.getKey())).trim(); in setUp() 122 cpuPaths.add(line.trim()); in getCpuMaxFreqs() 126 String.format("cat %s/scaling_available_frequencies", cpu)).trim(); in getCpuMaxFreqs()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | RunUtilFuncTest.java | 107 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/ |
D | BluetoothUtils.java | 113 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/core/common_util/com/android/tradefed/util/ |
D | AbiUtils.java | 259 String trimmedAbi = abi.trim(); in parseAbiList() 276 String trimmedAbi = abi.trim(); in parseAbiListFromProperty() 287 String mainAbi = commandResult.getStdout().trim(); in getHostAbi()
|
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/ |
D | FatLfnDirectory.java | 133 name = name.trim(); in addFile() 189 name = name.trim(); in addDirectory() 228 name = name.trim().toLowerCase(); in getEntry()
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/ |
D | AnnotationItem.kt | 801 name = source.substring(from, split).trim() in addAttribute() 805 value = source.substring(valueBegin, valueEnd).trim() in addAttribute() 860 DefaultAnnotationValue.create(it.trim()) in <lambda>()
|