/frameworks/ml/nn/tools/systrace_parser/parser/test/ |
D | test_input.py | 6 def check_match(self, line): argument 7 m = MATCHER.match(line) 8 self.assertTrue(m, "'" + line + "'") 10 def check_old_match(self, line): argument 11 m = MATCHER_FOR_OLD.match(line) 12 self.assertTrue(m, "'" + line + "'") 24 for line in lines.splitlines(): 25 line = line.strip() 26 if line: 27 self.check_match(line) [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/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/core/java/android/text/ |
D | Layout.java | 697 private int getLineStartPos(int line, int left, int right) { in getLineStartPos() argument 700 Alignment align = getParagraphAlignment(line); in getLineStartPos() 701 int dir = getParagraphDirection(line); in getLineStartPos() 712 x = left + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() 714 x = right + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 718 if (mSpannedText && getLineContainsTab(line)) { in getLineStartPos() 720 int start = getLineStart(line); in getLineStartPos() 729 int max = (int)getLineExtent(line, tabStops, false); in getLineStartPos() 732 x = right - max + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 735 x = left - max + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() [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/ml/nn/tools/systrace_parser/parser/ |
D | input.py | 13 for line in lines: 15 if ("# TASK-PID TGID CPU# |||| TIMESTAMP FUNCTION" in line or 16 "# TASK-PID CPU# |||| TIMESTAMP FUNCTION" in line): 19 if "</script>" in line: 21 trace.append([line, lineno]) 57 for [line, lineno] in trace: 58 m = MATCHER.match(line) 59 m_old = MATCHER_FOR_OLD.match(line) 62 assert not "HIDL::IDevice" in line, line 63 assert not "[NN_" in line, 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/tools/aapt2/ |
D | Source.h | 33 Maybe<size_t> line; member 44 inline Source(const android::StringPiece& path, size_t line) in Source() 45 : path(path.to_string()), 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) { [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiBackupRestore.java | 308 for (String line : xmlString.split("\n")) { in createLogFromBackupData() 309 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData() 310 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData() 312 if (line.matches(WEP_KEYS_MASK_LINE_START_MATCH_PATTERN)) { in createLogFromBackupData() 314 } else if (line.matches(WEP_KEYS_MASK_LINE_END_MATCH_PATTERN)) { in createLogFromBackupData() 317 line = line.replaceAll( in createLogFromBackupData() 320 sb.append(line).append("\n"); in createLogFromBackupData() 483 for (String line : supplicantConfString.split("\n")) { in createLogFromBackupData() 484 if (line.matches(PSK_MASK_LINE_MATCH_PATTERN)) { in createLogFromBackupData() 485 line = line.replaceAll(PSK_MASK_SEARCH_PATTERN, PSK_MASK_REPLACE_PATTERN); in createLogFromBackupData() [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.string(), this->line, type, this->error.string()); in print() 95 : file(f), line(l) in SourcePos() 100 : file(that.file), line(that.line) in SourcePos() [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 | PageTypeInfoParser.cpp | 30 string line; in Parse() local 40 while (reader.readLine(&line)) { in Parse() 41 if (line.empty()) { in Parse() 47 if (stripPrefix(&line, "Page block order:")) { in Parse() 48 pageBlockOrder = toInt(line); in Parse() 52 if (stripPrefix(&line, "Pages per block:")) { in Parse() 53 proto.write(PageTypeInfoProto::PAGES_PER_BLOCK, toInt(line)); in Parse() 56 if (stripPrefix(&line, "Free pages count per migrate type at order")) { in Parse() 60 if (stripPrefix(&line, "Number of blocks type")) { in Parse() 61 blockHeader = parseHeader(line); 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/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/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/av/media/libstagefright/rtsp/ |
D | ASessionDescription.cpp | 65 AString line; in parse() local 69 line.setTo(desc, i, eolPos - i - 1); in parse() 71 line.setTo(desc, i, eolPos - i); in parse() 74 if (line.empty()) { in parse() 79 if (line.size() < 2 || line.c_str()[1] != '=') { in parse() 83 ALOGV("%s", line.c_str()); in parse() 85 switch (line.c_str()[0]) { in parse() 88 if (strcmp(line.c_str(), "v=0")) { in parse() 99 ssize_t colonPos = line.find(":", 2); in parse() 101 key = line; in parse() [all …]
|
/frameworks/native/cmds/bugreportz/ |
D | bugreportz.cpp | 33 static void write_line(const std::string& line, bool show_progress) { in write_line() argument 34 if (line.empty()) return; in write_line() 38 if (!show_progress && (android::base::StartsWith(line, PROGRESS_PREFIX) || in write_line() 39 android::base::StartsWith(line, BEGIN_PREFIX))) in write_line() 42 android::base::WriteStringToFd(line, STDOUT_FILENO); in write_line() 46 std::string line; in bugreportz() local 64 line.append(1, c); in bugreportz() 66 write_line(line, show_progress); in bugreportz() 67 line.clear(); in bugreportz() 72 write_line(line, show_progress); in bugreportz()
|
/frameworks/av/media/libstagefright/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/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 …]
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V21.java | 71 final String line = super.readLine(); in readLine() local 74 return line; in readLine() 83 final String line = super.readLine(); in peekLine() local 87 mNextLine = line; in peekLine() 195 String line; in getNonEmptyLine() local 197 line = getLine(); in getNonEmptyLine() 198 if (line == null) { in getNonEmptyLine() 200 } else if (line.trim().length() > 0) { in getNonEmptyLine() 201 return line; in getNonEmptyLine() 241 String line; in readBeginVCard() local [all …]
|
/frameworks/base/tools/orientationplot/ |
D | orientationplot.py | 267 line = self.adbout.readline() 271 if line is None: 273 print line 276 timestamp = self._parse_timestamp(line) 284 if line.find('Raw acceleration vector:') != -1: 285 self.parse_raw_acceleration_x = self._get_following_number(line, 'x=') 286 self.parse_raw_acceleration_y = self._get_following_number(line, 'y=') 287 self.parse_raw_acceleration_z = self._get_following_number(line, 'z=') 288 self.parse_raw_acceleration_magnitude = self._get_following_number(line, 'magnitude=') 290 if line.find('Filtered acceleration vector:') != -1: [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SimpleSessionDescription.java | 86 for (String line : lines) { in SimpleSessionDescription() 88 if (line.charAt(1) != '=') { in SimpleSessionDescription() 91 if (line.charAt(0) == 'm') { in SimpleSessionDescription() 92 String[] parts = line.substring(2).split(" ", 4); in SimpleSessionDescription() 102 fields.parse(line); in SimpleSessionDescription() 105 throw new IllegalArgumentException("Invalid SDP: " + line); in SimpleSessionDescription() 516 for (String line : mLines) { in write() 517 if (line.charAt(0) == type) { in write() 518 buffer.append(line).append("\r\n"); in write() 527 private void parse(String line) { in parse() argument [all …]
|
/frameworks/ml/nn/tools/api/ |
D | generate_api.py | 15 self.line = None # most recently read line 29 self.line = lines[self.lineno] 71 orig = self.line 144 matchbad = re.search("^[/\\\]%(\S*)", self.line) 149 if re.search("^%", self.line) and not re.search("^%{", self.line): 151 if re.search("^%%", self.line): 155 match = re.search("^(%\S*)", self.line); 161 match = re.search("^%/define-lines\s*(\S*)", self.line) 174 match = re.search("^%define-lines\s+(\S+)\s*$", self.line) 188 match = re.search("^%insert-lines\s+(\S+)\s*$", self.line) [all …]
|