/aosp14/frameworks/base/tools/processors/immutability/test/android/processor/ |
H A D | ImmutabilityProcessorTest.kt | 180 arrayFailure(line = 17), 378 CompilationError(line = line, message = MessageUtils.classNotImmutableFailure(className)) 381 CompilationError(line = line, message = MessageUtils.nonInterfaceClassFailure()) 384 CompilationError(line = line, message = MessageUtils.nonInterfaceReturnFailure()) 388 line = line, 393 CompilationError(line = line, message = MessageUtils.memberNotMethodFailure()) 396 CompilationError(line = line, message = MessageUtils.voidReturnFailure()) 399 CompilationError(line = line, message = MessageUtils.staticNonFinalFailure()) 402 CompilationError(line = line, message = MessageUtils.arrayFailure()) 405 CompilationError(line = line, message = MessageUtils.classNotFinalFailure(className)) [all …]
|
/aosp14/frameworks/base/tools/powermodel/test/com/android/powermodel/ |
H A D | RawBatteryStatsTest.java | 40 for (String line: lines) { in makeCsv() 41 result.append(line); in makeCsv() 55 Assert.assertEquals(true, line.complete); in testVersion() 57 Assert.assertEquals(9, line.lineVersion); in testVersion() 58 Assert.assertEquals(0, line.uid); in testVersion() 75 Assert.assertEquals(1000, line.uidKey); in testUid() 87 Assert.assertEquals(1, line.idleMs); in testVarargs() 88 Assert.assertEquals(2, line.rxTimeMs); in testVarargs() 89 Assert.assertEquals(3, line.powerMaMs); in testVarargs() 91 Assert.assertEquals(4, line.txTimeMs[0]); in testVarargs() [all …]
|
/aosp14/frameworks/base/cmds/incident_helper/tests/ |
H A D | ih_util_test.cpp | 160 string line; in TEST() local 168 ASSERT_TRUE(r.ok(&line)); in TEST() 177 string line; in TEST() local 179 EXPECT_THAT(line, StrEq("")); in TEST() 180 ASSERT_TRUE(r.ok(&line)); in TEST() 189 string line; in TEST() local 196 ASSERT_TRUE(r.ok(&line)); in TEST() 201 string line; in TEST() local 203 EXPECT_FALSE(r.ok(&line)); in TEST() 209 string line; in TEST() local [all …]
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | Layout.java | 1388 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in getHorizontal() 1429 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in getLineHorizontals() 1480 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in fillHorizontalBoundsForLine() 1532 for (int line = startLine; line <= endLine; ++line) { in fillCharacterBounds() 1721 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in getLineExtent() 1752 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in getLineExtent() 1839 getEllipsisStart(line), getEllipsisStart(line) + getEllipsisCount(line), in getOffsetForHorizontal() 2077 int lineStartPos = getLineStartPos(line, getParagraphLeft(line), getParagraphRight(line)); in getStartOrEndOffsetForAreaWithinLine() 2366 return getLineVisibleEnd(line, getLineStart(line), getLineStart(line+1)); in getLineVisibleEnd() 2427 return getLineTop(line) - (getLineTop(line+1) - getLineDescent(line)); in getLineAscent() [all …]
|
/aosp14/system/core/init/ |
H A D | host_builtin_map.py | 20 for line in check_file: 21 match = CHECK_REGEX.match(line) 28 for line in builtins_file: 29 if '// Builtin-function-map start' in line: 31 elif '// Builtin-function-map end' in line: 34 function_map.append(line) 38 for line in function_map: 39 match = DO_REGEX.match(line) 42 line = line.replace('do_', 'check_') variable 44 line = FUNCTION_REGEX.sub('check_stub', line) [all …]
|
/aosp14/frameworks/base/libs/androidfw/include/androidfw/ |
H A 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 …]
|
/aosp14/frameworks/base/cmds/incident_helper/java/com/android/commands/incident/sections/ |
H A D | PersistLogSection.java | 156 String line; in processFile() local 163 parseLine(line); in processFile() 189 private void parseLine(String line) { in parseLine() argument 212 mProto.write(TextLogEntry.LOG, line.substring(Math.min(end + 2, line.length()))); in parseLine() 229 if (line.charAt(i) != ' ') { in nextNonBlank() 240 private long getEpochSec(String line) { in getEpochSec() argument 241 int month = getDigit(line, 0) * 10 + getDigit(line, 1); in getEpochSec() 242 int day = getDigit(line, 3) * 10 + getDigit(line, 4); in getEpochSec() 261 int hh = getDigit(line, 6) * 10 + getDigit(line, 7); in getEpochSec() 262 int mm = getDigit(line, 9) * 10 + getDigit(line, 10); in getEpochSec() [all …]
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | TraceMarkParser.java | 51 this(line -> { in TraceMarkParser() 64 if (line == null) { in visit() 68 if (line.isAsync) { in visit() 71 if (line.isBegin) { in visit() 72 mPendingStarts.put(line.name, line); in visit() 84 if (line.isBegin) { in visit() 91 mPendingStarts.put(getSyncPendingStartKey(line, depth), line); in visit() local 101 addSlice(begin, line); in visit() 107 return line.taskPid + "@" + depth; in getSyncPendingStartKey() 250 int end = line.length(); in parseMicroseconds() [all …]
|
/aosp14/frameworks/base/tools/aapt/ |
H A D | SourcePos.cpp | 20 int line; member 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() 95 : file(f), line(l) in SourcePos() 100 : file(that.file), line(that.line) in SourcePos() 105 : file("???", 0), line(-1) in SourcePos() 140 ErrorPos(this->file, this->line, msg, ErrorPos::NOTE).print(stderr); in printf() [all …]
|
/aosp14/frameworks/base/cmds/incident_helper/src/parsers/ |
H A 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() 77 if (stripPrefix(&line, "Mem:")) { in Parse() 84 if (stripPrefix(&line, "Swap:")) { in Parse() 109 header = parseHeader(line, "[ %]"); in Parse() 130 record = parseRecordByColumns(line, columnIndices); in Parse() [all …]
|
H A 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() 60 if (stripPrefix(&line, "Number of blocks type")) { in Parse() 61 blockHeader = parseHeader(line); in Parse() 65 record_t record = parseRecord(line, COMMA_DELIMITER); in Parse() [all …]
|
H A 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() 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() 64 line.c_str()); in Parse() [all …]
|
H A D | CpuFreqParser.cpp | 31 string line; in Parse() local 34 reader.readLine(&line); in Parse() 35 header_t header = parseHeader(line, TAB_DELIMITER); in Parse() 37 fprintf(stderr, "Bad header: %s\n", line.c_str()); in Parse() 44 while (reader.readLine(&line)) { in Parse() 45 if (line.empty()) continue; in Parse() 47 record_t record = parseRecord(line, TAB_DELIMITER); in Parse() 49 fprintf(stderr, "Bad line: %s\n", line.c_str()); in Parse() 79 if (!reader.ok(&line)) { in Parse() 80 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str()); in Parse()
|
H A D | KernelWakesParser.cpp | 30 string line; in Parse() local 41 while (reader.readLine(&line)) { in Parse() 42 if (line.empty()) continue; in Parse() 45 header = parseHeader(line, TAB_DELIMITER); in Parse() 50 record = parseRecord(line, TAB_DELIMITER); in Parse() 54 … fprintf(stderr, "[%s]Line %d has missing fields\n%s\n", this->name.string(), nline, line.c_str()); in Parse() 58 … fprintf(stderr, "[%s]Line %d has extra fields\n%s\n", this->name.string(), nline, line.c_str()); in Parse() 72 if (!reader.ok(&line)) { in Parse() 73 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str()); in Parse()
|
H A D | PsParser.cpp | 28 string line; in Parse() local 45 while (reader.readLine(&line)) { in Parse() 46 if (line.empty()) continue; in Parse() 49 header = parseHeader(line, DEFAULT_WHITESPACE); in Parse() 52 if (!getColumnIndices(columnIndices, headerNames, line)) { in Parse() 59 record = parseRecordByColumns(line, columnIndices); in Parse() 64 …tderr, "[%s]Line %d has %d missing fields\n%s\n", this->name.string(), nline, -diff, line.c_str()); in Parse() 69 …f(stderr, "[%s]Line %d has %d extra fields\n%s\n", this->name.string(), nline, diff, line.c_str()); in Parse() 84 if (!reader.ok(&line)) { in Parse() 85 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str()); in Parse()
|
H A D | EventLogTagsParser.cpp | 28 string line; in Parse() local 33 while (reader.readLine(&line)) { in Parse() 34 if (line.empty()) continue; in Parse() 35 string debug = line; in Parse() 36 string tagNumber = behead(&line, ' '); in Parse() 37 string tagName = behead(&line, ' '); in Parse() 48 record_t valueDescriptors = parseRecord(line, PARENTHESES_DELIMITER); in Parse() 73 if (!reader.ok(&line)) { in Parse() 74 fprintf(stderr, "Bad read from fd %d: %s\n", in, line.c_str()); in Parse()
|
/aosp14/frameworks/base/core/java/com/android/internal/alsa/ |
H A D | AlsaCardsParser.java | 77 private boolean parse(String line, int lineIndex) { in parse() argument 102 mCardName = line.substring(tokenIndex); in parse() 106 tokenIndex = mTokenizer.nextToken(line, 0); in parse() 147 String line = ""; in scan() local 148 while ((line = bufferedReader.readLine()) != null) { in scan() 151 Slog.d(TAG, " " + line); in scan() 153 cardRecord.parse(line, 0); in scan() 155 line = bufferedReader.readLine(); in scan() 156 if (line == null) { in scan() 160 Slog.d(TAG, " " + line); in scan() [all …]
|
/aosp14/frameworks/base/cmds/incident_helper/src/ |
H A D | ih_util.cpp | 76 if (found == line.npos) break; in split() 84 split(line, header, f, delimiters); in parseHeader() 91 split(line, record, f, delimiters); in parseRecord() 119 int lineSize = (int)line.size(); in parseRecordByColumns() 172 int len = (int)line->length(); in stripPrefix() 186 line->assign(trimDefault(line->substr(j))); in stripPrefix() 207 line->assign(trimDefault(line->substr(0, j+1))); in stripSuffix() 212 auto found = line->find_first_of(cut); in behead() 215 line->assign(""); in behead() 220 line->assign(line->substr(found)); in behead() [all …]
|
/aosp14/frameworks/base/tools/orientationplot/ |
H A D | orientationplot.py | 267 line = self.adbout.readline() 271 if line is None: 273 print line 296 if line.find('tiltAngle=') != -1: 302 if line.find('Result:') != -1: 393 prefix_index = line.find(prefix) 397 delim_index = line.find(',', start_index) 399 return line[start_index:] 401 return line[start_index:delim_index] 412 prefix_index = line.find(prefix + '[') [all …]
|
/aosp14/frameworks/base/tools/localedata/ |
H A D | extract_icu_data.py | 63 for line in input_file: 64 line = line.strip(u' \n\uFEFF') 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:
|
/aosp14/system/core/healthd/ |
H A D | AnimationParser.cpp | 41 const char* str = line.data(); in remove_prefix() 90 for (const auto& line : base::Split(content, "\n")) { in parse_animation_desc() local 94 if (can_ignore_line(line.c_str())) { in parse_animation_desc() 96 } else if (remove_prefix(line, animation_prefix, &rest)) { in parse_animation_desc() 101 LOGE("Bad animation format: %s\n", line.c_str()); in parse_animation_desc() 106 } else if (remove_prefix(line, fail_prefix, &rest)) { in parse_animation_desc() 108 } else if (remove_prefix(line, clock_prefix, &rest)) { in parse_animation_desc() 110 LOGE("Bad clock_display format: %s\n", line.c_str()); in parse_animation_desc() 113 } else if (remove_prefix(line, percent_prefix, &rest)) { in parse_animation_desc() 115 LOGE("Bad percent_display format: %s\n", line.c_str()); in parse_animation_desc() [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
H A D | GestureLogParser.java | 47 downTime = findInt(line, "downTime=(\\d+)"); in getMotionEventFromLogLine() 48 eventTime = findInt(line, "eventTime=(\\d+)"); in getMotionEventFromLogLine() 49 action = stringToAction(findString(line, "action=(\\w+)")); in getMotionEventFromLogLine() 53 Matcher matcher = p.matcher(line); in getMotionEventFromLogLine() 59 pointerCount = findInt(line, "pointerCount=(\\d+)"); in getMotionEventFromLogLine() 60 metaState = findInt(line, "metaState=(\\d+)"); in getMotionEventFromLogLine() 61 deviceId = findInt(line, "deviceId=(\\d+)"); in getMotionEventFromLogLine() 63 source = Integer.decode(findString(line, "source=(\\w+)")); in getMotionEventFromLogLine() 64 flags = Integer.decode(findString(line, "flags=(\\w+)")); in getMotionEventFromLogLine() 65 properties = findProperties(line, pointerCount); in getMotionEventFromLogLine() [all …]
|
/aosp14/frameworks/base/tools/powermodel/src/com/android/powermodel/ |
H A D | ParseException.java | 20 public final int line; field in ParseException 22 public ParseException(int line, String message, Throwable th) { in ParseException() argument 24 this.line = line; in ParseException() 27 public ParseException(int line, String message) { in ParseException() argument 28 this(line, message, null); in ParseException()
|
/aosp14/frameworks/base/tools/velocityplot/ |
H A D | velocityplot.py | 181 line = self.adbout.readline() 185 if line is None: 187 print line 198 if line.find(': position') != -1: 206 if line.find(': OLD') != -1: 244 def _get_following_word(self, line, prefix): argument 245 prefix_index = line.find(prefix) 249 delim_index = line.find(',', start_index) 251 return line[start_index:] 253 return line[start_index:delim_index] [all …]
|
/aosp14/frameworks/base/tools/apilint/ |
H A D | deprecated_at_birth.py | 60 self.line = line 89 self.line = line 123 def __init__(self, pkg, line, raw, blame): argument 125 self.line = line 165 def __init__(self, line, raw, blame): argument 166 self.line = line 179 line = 0 186 line += 1 196 pkg = Package(line, raw, blame) 240 self.line = clazz.line [all …]
|