Home
last modified time | relevance | path

Searched refs:mIdx (Results 1 – 2 of 2) sorted by relevance

/cts/hostsidetests/car/src/android/car/cts/powerpolicy/
DCpmsFrameworkLayerStateInfo.java315 private int mIdx = 0; field in CpmsFrameworkLayerStateInfo.StateInfoParser
335 Matcher matcher = pattern.matcher(mLines[mIdx]); in getIntData()
338 + mLines[mIdx]); in getIntData()
343 int strLen = mLines[mIdx].length(); in getIntData()
344 val = Integer.parseInt(mLines[mIdx].substring(strLen - 1).trim()); in getIntData()
354 if (mLines[mIdx].trim().length() != header.length()) { in getStringData()
355 val = mLines[mIdx].trim().substring(header.length()).trim(); in getStringData()
361 if (!mLines[mIdx].contains(startHdr)) { in getStringArray()
363 startHdr, mIdx, mLines[mIdx]); in getStringArray()
368 while (++mIdx < mLines.length && !mLines[mIdx].contains(endHdr)) { in getStringArray()
[all …]
DCpmsSystemLayerStateInfo.java139 private int mIdx = 0; field in CpmsSystemLayerStateInfo.CpmsSystemLayerStateInfoData
148 if (mLines[mIdx].trim().length() == hdr.length()) { in getStringData()
151 val = mLines[mIdx].trim().substring(hdr.length()).trim(); in getStringData()
158 return Boolean.parseBoolean(mLines[mIdx].trim().substring(hdr.length()).trim()); in getBooleanData()
165 while (!mLines[++mIdx].contains(endHdr)) { in getArrayPolicyData()
166 policies.add(PowerPolicyDef.parse(mLines[mIdx], true, 1)); in getArrayPolicyData()
173 return PowerPolicyDef.parse(mLines[mIdx].trim().substring(hdr.length()).trim(), in getSinglePolicyData()
179 return PowerPolicyDef.parse(mLines[++mIdx] + " " + mLines[++mIdx], false, 0); in getComponentStateData()
183 while (mIdx < mLines.length && !mLines[mIdx].contains(header)) { in searchHeader()
184 mIdx++; in searchHeader()
[all …]