Home
last modified time | relevance | path

Searched refs:pmatch (Results 1 – 4 of 4) sorted by relevance

/cts/suite/audio_quality/lib/src/audio/
DAudioHardware.cpp50 regmatch_t pmatch[nmatch]; in detectAudioHw() local
51 if (!SimpleScriptExec::checkIfPassed(resultStr, match, nmatch, pmatch)) { in detectAudioHw()
56 pmatch[0].rm_so, pmatch[0].rm_eo, in detectAudioHw()
57 pmatch[1].rm_so, pmatch[1].rm_eo, in detectAudioHw()
58 pmatch[2].rm_so, pmatch[2].rm_eo); in detectAudioHw()
60 if (pmatch[1].rm_so == -1) { in detectAudioHw()
63 if (pmatch[2].rm_so == -1) { in detectAudioHw()
66 android::String8 product = StringUtil::substr(resultStr, pmatch[1].rm_so, in detectAudioHw()
67 pmatch[1].rm_eo - pmatch[1].rm_so); in detectAudioHw()
69 android::String8 cardNumber = StringUtil::substr(resultStr, pmatch[2].rm_so, in detectAudioHw()
[all …]
/cts/suite/audio_quality/lib/src/task/
DTaskCase.cpp242 regmatch_t pmatch[nmatch]; in translateVarName() local
253 while (regexec(&re, src, nmatch, pmatch, 0) == 0) { in translateVarName()
254 matchStart = strStart + pmatch[1].rm_so; in translateVarName()
255 matchEnd = strStart + pmatch[1].rm_eo; in translateVarName()
256 translated.append(StringUtil::substr(orig, strStart, pmatch[1].rm_so - 1)); //-1 for $ in translateVarName()
268 src += pmatch[1].rm_eo; in translateVarName()
269 strStart += pmatch[1].rm_eo; in translateVarName()
/cts/suite/audio_quality/lib/src/
DSimpleScriptExec.cpp42 int nmatch, regmatch_t pmatch[]) in checkIfPassed() argument
58 if (regexec(&re, str.string(), nmatch, pmatch, 0) == 0) { in checkIfPassed()
DSimpleScriptExec.h53 int nmatch = 0, regmatch_t pmatch[] = NULL);