Home
last modified time | relevance | path

Searched refs:tokenIndex (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java150 final int tokenIndex = nextTokenIndex(); in nextString() local
151 if (tokenIndex == -1) { in nextString()
154 return parseAndConsumeString(tokenIndex); in nextString()
162 final int tokenIndex = nextTokenIndex(); in nextLong() local
163 if (tokenIndex == -1) { in nextLong()
166 return parseAndConsumeLong(tokenIndex); in nextLong()
175 final int tokenIndex = nextTokenIndex(); in nextOptionalLong() local
176 if (tokenIndex == -1) { in nextOptionalLong()
179 return parseAndConsumeLong(tokenIndex); in nextOptionalLong()
183 private String parseAndConsumeString(int tokenIndex) throws IOException { in parseAndConsumeString() argument
[all …]
/frameworks/base/core/java/com/android/internal/alsa/
DAlsaCardsParser.java78 int tokenIndex = 0; in parse() local
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 …]
DAlsaDevicesParser.java91 int tokenIndex = kToken_LineNum; in parse() local
104 switch (tokenIndex) { in parse()
112 tokenIndex++; // no device # in the token stream in parse()
150 Slog.e(TAG, "Failed to parse token " + tokenIndex + " of " + kDevicesFilePath in parse()
155 tokenIndex++; in parse()