/frameworks/base/tools/processors/immutability/test/android/processor/ |
D | ImmutabilityProcessorTest.kt | 173 nonInterfaceClassFailure(line = 7), in <lambda>() 174 nonInterfaceReturnFailure(line = 9), in <lambda>() 175 staticNonFinalFailure(line = 10), in <lambda>() 176 nonInterfaceReturnFailure(line = 10), in <lambda>() 177 memberNotMethodFailure(line = 14), in <lambda>() 178 memberNotMethodFailure(line = 15), in <lambda>() 179 voidReturnFailure(line = 16), in <lambda>() 180 arrayFailure(line = 17), in <lambda>() 181 nonInterfaceReturnFailure(line = 18), in <lambda>() 182 nonInterfaceReturnFailure(line = 19), in <lambda>() [all …]
|
/frameworks/libs/binary_translation/kernel_api/tools/ |
D | extract_syscalls_from_kernel_src.py | 27 for line in tbl_file: 28 line = line.strip() 29 if line.startswith('#'): 32 words = line.split() 59 for line in tbl_file: 60 line = line.strip() 61 if line.startswith('#'): 64 words = line.split() 86 for line in tbl_file: 87 line = line.strip() [all …]
|
/frameworks/base/ravenwood/scripts/ |
D | convert-androidtest.py | 86 for line in f: 91 line = line.rstrip('\n') 94 if re.search(r'''@Override\b''', line): 95 carry_over = carry_over + line + '\n' 99 line = carry_over + line 104 line = re_extends.sub('', line) 107 if not class_seen and re.search(r'''\b class \b''', line, re.X): 113 if not import_seen and re.search(r'''^import\b''', line): 137 if re.search(r'''^ \s* public \s* void \s* test''', line, re.X): 142 line, re.X): [all …]
|
/frameworks/rs/tests/java_api/Refocus/dataExtraction/ |
D | extract_data.sh | 24 while read line;do 25 if [[ $line =~ $regexN ]]; 51 echo $line >> $cleanFilename 53 elif [[ $line =~ $regexData ]]; 56 newLine=`echo $line|grep -oE '[0-9]+ ns'|awk '{print $1}'` 58 if [[ $line =~ 'Initialize' ]]; 61 elif [[ $line =~ 'UnpackInputImage' ]]; 64 elif [[ $line =~ 'MarkLayerMask' ]]; 67 elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]]; 70 elif [[ $line =~ 'ComputeIntegralImageForLayerBehindFocalDepth' ]]; [all …]
|
D | extract_ave.sh | 24 while read line;do 25 if [[ $line =~ $regexN ]]; 66 echo $line >> $cleanFilename 68 elif [[ $line =~ $regexData ]]; 71 newLine=`echo $line|awk '{print $2}'` 73 if [[ $line =~ 'Initialize' ]]; 76 elif [[ $line =~ 'UnpackInputImage' ]]; 79 elif [[ $line =~ 'MarkLayerMask' ]]; 82 elif [[ $line =~ 'ComputeLayerMatteBehindFocalDepth' ]]; 85 elif [[ $line =~ 'ComputeIntegralImageForLayerBehindFocalDepth' ]]; [all …]
|
/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
D | RawBatteryStatsTest.java | 40 for (String line: lines) { in makeCsv() 41 result.append(line); in makeCsv() 52 final RawBatteryStats.Version line = (RawBatteryStats.Version)records.get(0); in testVersion() local 55 Assert.assertEquals(true, line.complete); in testVersion() 57 Assert.assertEquals(9, line.lineVersion); in testVersion() 58 Assert.assertEquals(0, line.uid); in testVersion() 59 Assert.assertEquals(RawBatteryStats.Category.INFO, line.category); in testVersion() 60 Assert.assertEquals("vers", line.lineType); in testVersion() 62 Assert.assertEquals(BS_VERSION, line.dumpsysVersion); in testVersion() 63 Assert.assertEquals(177, line.parcelVersion); in testVersion() [all …]
|
/frameworks/av/media/codec2/docs/ |
D | doxyfilter.sh | 28 def process_comment(t, ind, line): 33 hold.append(line) 35 def process_line(ind, line): 42 print(line, end='') 45 for line in input: 46 ind = re.match(r'^( *)', line).group(1) 49 m = re.match(r'^ *[*]/', line) 51 process_comment('/*', ind, line) 54 process_comment('/*', ind, line) 56 m = re.match(r'^ *//', line) [all …]
|
/frameworks/base/cmds/incident_helper/tests/ |
D | ih_util_test.cpp | 160 string line; in TEST() local 161 ASSERT_TRUE(r.readLine(&line)); in TEST() 162 EXPECT_THAT(line, StrEq("test string")); in TEST() 163 ASSERT_TRUE(r.readLine(&line)); in TEST() 164 EXPECT_THAT(line, StrEq("second")); in TEST() 165 ASSERT_TRUE(r.readLine(&line)); in TEST() 166 EXPECT_THAT(line, StrEq("ooo")); in TEST() 167 ASSERT_FALSE(r.readLine(&line)); in TEST() 168 ASSERT_TRUE(r.ok(&line)); in TEST() 177 string line; in TEST() local [all …]
|
/frameworks/base/libs/androidfw/include/androidfw/ |
D | Source.h | 32 std::optional<size_t> line; member 44 inline Source(android::StringPiece path, size_t line) : path(path), line(line) { in Source() 47 inline Source WithLine(size_t line) const { in WithLine() 48 return Source(path, line); in WithLine() 56 if (line) { in to_string() 57 s = ::android::base::StringPrintf("%s:%zd", s.c_str(), line.value()); in to_string() 72 return lhs.path == rhs.path && lhs.line == rhs.line; 79 if (lhs.line) { 80 if (rhs.line) { 81 return lhs.line.value() < rhs.line.value(); [all …]
|
/frameworks/native/libs/binderdebug/ |
D | BinderDebug.cpp | 53 std::string line; in scanBinderContext() local 54 while (getline(ifs, line)) { in scanBinderContext() 55 if (base::StartsWith(line, "context")) { in scanBinderContext() 56 isDesiredContext = base::Split(line, " ").back() == contextName; in scanBinderContext() 62 eachLine(line); in scanBinderContext() 75 status_t ret = scanBinderContext(pid, contextStr, [&](const std::string& line) { in getBinderPidInfo() argument 76 if (base::StartsWith(line, " node")) { in getBinderPidInfo() 77 std::vector<std::string> splitString = base::Tokenize(line, " "); in getBinderPidInfo() 105 } else if (base::StartsWith(line, " thread")) { in getBinderPidInfo() 106 auto pos = line.find("l "); in getBinderPidInfo() [all …]
|
/frameworks/base/tools/aapt/ |
D | SourcePos.cpp | 20 int line; member 26 ErrorPos(const String8& file, int line, const String8& error, Level level); 35 :line(-1), level(NOTE) in ErrorPos() 41 line(that.line), in ErrorPos() 49 line(l), in ErrorPos() 59 this->line = rhs.line; in operator =() 82 if (this->line >= 0) { in print() 83 fprintf(to, "%s:%d: %s%s\n", this->file.c_str(), this->line, type, this->error.c_str()); in print() 95 : file(f), line(l) in SourcePos() 100 : file(that.file), line(that.line) in SourcePos() [all …]
|
/frameworks/base/core/java/android/text/ |
D | Layout.java | 1154 private int getLineStartPos(int line, int left, int right) { in getLineStartPos() argument 1157 Alignment align = getParagraphAlignment(line); in getLineStartPos() 1158 int dir = getParagraphDirection(line); in getLineStartPos() 1169 x = left + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() 1171 x = right + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 1175 if (mSpannedText && getLineContainsTab(line)) { in getLineStartPos() 1177 int start = getLineStart(line); in getLineStartPos() 1186 int max = (int)getLineExtent(line, tabStops, false); in getLineStartPos() 1189 x = right - max + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 1192 x = left - max + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() [all …]
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | TraceMarkParser.java | 51 this(line -> { in TraceMarkParser() 53 if (name.equals(line.name)) { in TraceMarkParser() 63 final TraceMarkLine line = TraceMarkLine.parse(textTraceLine); in visit() local 64 if (line == null) { in visit() 68 if (line.isAsync) { in visit() 70 if (mTraceLineFilter.test(line)) { in visit() 71 if (line.isBegin) { in visit() 72 mPendingStarts.put(line.name, line); in visit() 74 final TraceMarkLine start = mPendingStarts.remove(line.name); in visit() 76 addSlice(start, line); in visit() [all …]
|
/frameworks/base/cmds/incident_helper/src/parsers/ |
D | CpuInfoParser.cpp | 27 const string& line, const string& delimiter, in writeSuffixLine() argument 30 record_t record = parseRecord(line, delimiter); in writeSuffixLine() 47 string line; in Parse() local 64 while (reader.readLine(&line)) { in Parse() 65 if (line.empty()) continue; in Parse() 70 if (stripPrefix(&line, "Threads:")) { in Parse() 71 writeSuffixLine(&proto, CpuInfoProto::TASK_STATS, line, COMMA_DELIMITER, in Parse() 77 if (stripPrefix(&line, "Mem:")) { in Parse() 78 writeSuffixLine(&proto, CpuInfoProto::MEM, line, COMMA_DELIMITER, in Parse() 84 if (stripPrefix(&line, "Swap:")) { in Parse() [all …]
|
D | ProcrankParser.cpp | 30 string line; in Parse() local 40 while (reader.readLine(&line)) { in Parse() 41 if (line.empty()) continue; in Parse() 45 header = parseHeader(line); in Parse() 49 if (stripPrefix(&line, "ZRAM:")) { in Parse() 50 zram = line; in Parse() 53 if (stripPrefix(&line, "RAM:")) { in Parse() 54 ram = line; in Parse() 58 record = parseRecord(line); in Parse() 61 total = line; in Parse() [all …]
|
/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/ |
D | PersistLogSection.java | 156 String line; in processFile() local 158 while ((line = reader.readLine()) != null) { in processFile() 159 if ((m = match(bufferBeginRe, line)) != null) { in processFile() 163 parseLine(line); in processFile() 189 private void parseLine(String line) { in parseLine() argument 192 mProto.write(TextLogEntry.SEC, getEpochSec(line)); in parseLine() 194 mProto.write(TextLogEntry.NANOSEC, parseInt(line, 15, 21) * 1000L); in parseLine() 196 int start = nextNonBlank(line, 21); in parseLine() 197 int end = line.indexOf(' ', start + 1); in parseLine() 198 mProto.write(TextLogEntry.PID, parseInt(line, start, end)); in parseLine() [all …]
|
/frameworks/base/core/java/com/android/internal/alsa/ |
D | AlsaCardsParser.java | 77 private boolean parse(String line, int lineIndex) { in parse() argument 83 tokenIndex = mTokenizer.nextToken(line, tokenIndex); in parse() 84 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex); in parse() 88 mCardNum = Integer.parseInt(line.substring(tokenIndex, delimIndex)); in parse() 91 + ": " + line.substring(tokenIndex, delimIndex)); in parse() 96 tokenIndex = mTokenizer.nextToken(line, delimIndex); in parse() 97 delimIndex = mTokenizer.nextDelimiter(line, tokenIndex); in parse() 98 mField1 = line.substring(tokenIndex, delimIndex); in parse() 101 tokenIndex = mTokenizer.nextToken(line, delimIndex); in parse() 102 mCardName = line.substring(tokenIndex); in parse() [all …]
|
/frameworks/base/cmds/uinput/src/com/android/commands/uinput/ |
D | EvemuParser.java | 60 String line = ""; in findNextLine() local 61 while (line != null && line.length() == 0) { in findNextLine() 67 line = stripComments(unstrippedLine); in findNextLine() 69 return line; in findNextLine() 72 private static String stripComments(String line) { in stripComments() argument 73 int index = line.indexOf('#'); in stripComments() 76 if (index < 0 || line.startsWith("N: ")) { in stripComments() 77 return line; in stripComments() 79 return line.substring(0, index).strip(); in stripComments() 121 ParsingException(String message, String line, int lineNumber) { in ParsingException() argument [all …]
|
/frameworks/av/media/module/foundation/ |
D | hexdump.cpp | 47 AString line; in hexdump() local 49 appendIndent(&line, indent); in hexdump() 54 line.append(tmp); in hexdump() 58 line.append(' '); in hexdump() 61 line.append(" "); in hexdump() 64 line.append(tmp); in hexdump() 68 line.append(' '); in hexdump() 76 line.append((char)data[offset + i]); in hexdump() 78 line.append('.'); in hexdump() 83 appendTo->append(line); in hexdump() [all …]
|
/frameworks/opt/vcard/tests/src/com/android/vcard/tests/testutils/ |
D | LineVerifierElem.java | 36 public LineVerifierElem addExpected(final String line) { in addExpected() argument 37 if (!TextUtils.isEmpty(line)) { in addExpected() 38 mExpectedLineList.add(line); in addExpected() 51 final String line = lineArray[i]; in verify() local 52 if (TextUtils.isEmpty(line)) { in verify() 56 if ("BEGIN:VCARD".equalsIgnoreCase(line)) { in verify() 63 } else if ("END:VCARD".equalsIgnoreCase(line)) { in verify() 72 "VERSION:4.0")).equalsIgnoreCase(line)) { in verify() 82 TestCase.fail("Property other than BEGIN came before BEGIN property: " + line); in verify() 84 TestCase.fail("Property other than END came after END property: " + line); in verify() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/utils/ |
D | ClassFilter.kt | 100 var line = normalizeTextLine(s) in <lambda>() variable 102 if (line.isEmpty()) { in <lambda>() 106 line = line.toHumanReadableClassName() // Convert all the slashes to periods. in <lambda>() 109 if (line.startsWith("!")) { in <lambda>() 111 line = line.substring(1).trimStart() in <lambda>() 115 if (line == "*") { in <lambda>() 121 if (line.endsWith(".*")) { in <lambda>() 123 allow, line.substring(0, line.length - 2).toJvmClassName(), true)) in <lambda>() 128 if (line.contains('*')) { in <lambda>() 135 ret.elements.add(FilterElement(allow, line.toJvmClassName(), false)) in <lambda>()
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | TextLineJustificationTest.kt | 52 val line = "Hello, World." in justifyTest_WithoutJustify() constant 53 val tl = makeTextLine(line, PAINT) in justifyTest_WithoutJustify() 64 val line = "Hello, World." in justifyTest_IntrCharacter_Latin() constant 65 val clusterCount = getClusterCount(line, PAINT) in justifyTest_IntrCharacter_Latin() 66 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Latin() 69 val tl = makeTextLine(line, PAINT) in justifyTest_IntrCharacter_Latin() 81 val line = "\u672C\u65E5\u306F\u6674\u5929\u306A\u308A\u3002" in justifyTest_IntrCharacter_Japanese() constant 82 val clusterCount = getClusterCount(line, PAINT) in justifyTest_IntrCharacter_Japanese() 83 val originalWidth = Layout.getDesiredWidth(line, PAINT) in justifyTest_IntrCharacter_Japanese() 86 val tl = makeTextLine(line, PAINT) in justifyTest_IntrCharacter_Japanese() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuExecutable.cpp | 421 char line[MAXLINE]; in createFromSharedObject() local 450 if (strgets(line, MAXLINE, &rsInfo) == nullptr) { in createFromSharedObject() 453 if (sscanf(line, EXPORT_VAR_STR "%zu", &varCount) != 1) { in createFromSharedObject() 454 ALOGE("Invalid export var count!: %s", line); in createFromSharedObject() 474 if (strgets(line, MAXLINE, &rsInfo) == nullptr) { in createFromSharedObject() 477 char *c = strrchr(line, '\n'); in createFromSharedObject() 481 void* addr = dlsym(sharedObj, line); in createFromSharedObject() 484 line, dlerror()); in createFromSharedObject() 489 fieldName[i] = duplicateString(line, sizeof(line)); in createFromSharedObject() 492 if (strgets(line, MAXLINE, &rsInfo) == nullptr) { in createFromSharedObject() [all …]
|
/frameworks/native/cmds/bugreportz/ |
D | bugreportz.cpp | 32 static void write_line(const std::string& line, bool show_progress) { in write_line() argument 33 if (line.empty()) return; in write_line() 37 if (!show_progress && (android::base::StartsWith(line, PROGRESS_PREFIX) || in write_line() 38 android::base::StartsWith(line, BEGIN_PREFIX))) in write_line() 41 android::base::WriteStringToFd(line, STDOUT_FILENO); in write_line() 45 std::string line; in bugreportz() local 63 line.append(1, c); in bugreportz() 65 write_line(line, show_progress); in bugreportz() 66 line.clear(); in bugreportz() 71 write_line(line, show_progress); in bugreportz()
|
/frameworks/base/cmds/incident_helper/src/ |
D | ih_util.cpp | 62 static void split(const std::string& line, std::vector<std::string>& words, in split() argument 69 found = line.find_first_of(delimiters, base); in split() 71 std::string word = (*func) (line.substr(base, found - base)); in split() 76 if (found == line.npos) break; in split() 81 header_t parseHeader(const std::string& line, const std::string& delimiters) { in parseHeader() argument 84 split(line, header, f, delimiters); in parseHeader() 88 record_t parseRecord(const std::string& line, const std::string& delimiters) { in parseRecord() argument 91 split(line, record, f, delimiters); in parseRecord() 95 bool getColumnIndices(std::vector<int>& indices, const char** headerNames, const std::string& line)… in getColumnIndices() argument 102 lastIndex = line.find(s, lastIndex); in getColumnIndices() [all …]
|