/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/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/core/java/android/text/ |
D | Layout.java | 698 private int getLineStartPos(int line, int left, int right) { in getLineStartPos() argument 701 Alignment align = getParagraphAlignment(line); in getLineStartPos() 702 int dir = getParagraphDirection(line); in getLineStartPos() 713 x = left + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() 715 x = right + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 719 if (mSpannedText && getLineContainsTab(line)) { in getLineStartPos() 721 int start = getLineStart(line); in getLineStartPos() 730 int max = (int)getLineExtent(line, tabStops, false); in getLineStartPos() 733 x = right - max + getIndentAdjust(line, Alignment.ALIGN_RIGHT); in getLineStartPos() 736 x = left - max + getIndentAdjust(line, Alignment.ALIGN_LEFT); in getLineStartPos() [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/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/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/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/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 …]
|
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 …]
|
/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/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/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 …]
|
/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/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/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/av/media/libstagefright/rtsp/ |
D | ASessionDescription.cpp | 67 AString line; in parse() local 71 line.setTo(desc, i, eolPos - i - 1); in parse() 73 line.setTo(desc, i, eolPos - i); in parse() 76 if (line.empty()) { in parse() 81 if (line.size() < 2 || line.c_str()[1] != '=') { in parse() 85 ALOGV("%s", line.c_str()); in parse() 87 switch (line.c_str()[0]) { in parse() 90 if (strcmp(line.c_str(), "v=0")) { in parse() 101 ssize_t colonPos = line.find(":", 2); in parse() 103 key = line; in parse() [all …]
|
/frameworks/base/tools/localedata/ |
D | extract_icu_data.py | 63 for line in input_file: 64 line = unicode(line, 'UTF-8').strip(u' \n\uFEFF').encode('UTF-8') 65 if line.startswith('//'): 67 if '{' in line and '}' in line: 68 from_locale = line[:line.index('{')] 69 to_locale = line[line.index('"')+1:line.rindex('"')] 190 for line in input_file: 191 if '%%Parent' in line: 192 parent = line[line.index('"')+1:line.rindex('"')] 198 elif locale.startswith('ar_') and 'default{"latn"}' in line:
|
/frameworks/native/services/vr/performanced/ |
D | task.cpp | 93 for (std::string line; std::getline(file_stream, line);) { in GetStatusField() local 94 auto offset = line.find(field); in GetStatusField() 98 field.c_str(), line.c_str(), offset); in GetStatusField() 105 return android::base::Trim(line.substr(offset + field.size() + 1)); in GetStatusField() 117 for (std::string line; std::getline(file_stream, line);) { in ReadStatusFields() local 118 auto offset = line.find(':'); in ReadStatusFields() 121 line.c_str()); in ReadStatusFields() 125 std::string key = line.substr(0, offset); in ReadStatusFields() 126 std::string value = android::base::Trim(line.substr(offset + 1)); in ReadStatusFields() 156 std::string line = ""; in GetCpuSetPath() local [all …]
|