Home
last modified time | relevance | path

Searched refs:re (Results 1 – 25 of 28) sorted by relevance

12

/cts/tools/selinux/
DSELinuxNeverallowTestGen.py3 import re
31 remaining = re.sub(
35 flags = re.M)
37 remaining = re.sub(r'#.+?$', r'', remaining, flags = re.M)
39 lines = re.findall(
42 flags = re.M |re.S)
/cts/suite/audio_quality/lib/src/
DSimpleScriptExec.cpp48 regex_t re; in checkIfPassed() local
53 if (regcomp(&re, match.string(), cflags) != 0) { in checkIfPassed()
58 if (regexec(&re, str.string(), nmatch, pmatch, 0) == 0) { in checkIfPassed()
62 regfree(&re); in checkIfPassed()
/cts/suite/audio_quality/lib/src/task/
DTaskCase.cpp111 typename std::map<android::String8, T>& map, const char* re) in findAllGeneric() argument
114 if (regcomp(&regex, re, REG_EXTENDED | REG_NOSUB) != 0) { in findAllGeneric()
167 std::list<TaskCase::BufferPair>* TaskCase::findAllBuffers(const android::String8& re) in findAllBuffers() argument
170 if (!translateVarName(re, translated)) { in findAllBuffers()
205 std::list<TaskCase::ValuePair>* TaskCase::findAllValues(const android::String8& re) in findAllValues() argument
208 if (!translateVarName(re, translated)) { in findAllValues()
229 std::list<TaskCase::IndexPair>* TaskCase::findAllIndices(const android::String8& re) in findAllIndices() argument
232 if (!translateVarName(re, translated)) { in findAllIndices()
243 regex_t re; in translateVarName() local
246 if (regcomp(&re, "[a-z0-9_]*[$]([a-z0-9]+)[_]*", REG_EXTENDED) != 0) { in translateVarName()
[all …]
/cts/apps/CameraITS/tools/
Dturn_off_screen.py15 import re
38 screen_state = re.split(r'[s|=]', cmd_ret)[-1]
Dwake_up_screen.py15 import re
41 screen_state = re.split(r'[s|=]', cmd_ret)[-1]
Dvalidate_scene.py20 import re
41 scene_name = re.split("/|\.", out_path)[-2]
Dhardware.py16 import re
205 tty_re = re.compile(r'ttyUSB\d+$')
253 inf_re = re.compile(r'\d+-\d+(\.\d+){0,}:(?P<cfg>\d+)\.(?P<inf>\d+)$')
315 file_re = re.compile(r'\d+-\d+(\.\d+){0,}$')
Dload_scene.py16 import re
/cts/suite/audio_quality/test_description/conf/
Ddetect_usb_audio.py20 import os, re, sys
37 m = re.search("card(\d+)$", sound_dev)
/cts/suite/audio_quality/lib/include/task/
DTaskCase.h50 std::list<BufferPair>* findAllBuffers(const android::String8& re);
111 std::list<ValuePair>* findAllValues(const android::String8& re);
118 std::list<IndexPair>* findAllIndices(const android::String8& re);
/cts/tools/utils/cts/
Dtools.py19 import re
173 exp = re.compile(pattern)
188 exp = re.compile(pattern)
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DReadElf.java176 ReadElf re = new ReadElf(new File(arg)); in main() local
177 re.getSymbol("x"); in main()
178 re.getDynamicSymbol("x"); in main()
179 re.close(); in main()
/cts/tools/cts-media/
Dget_achievable_rates.py17 import argparse, json, math, re, sys, zipfile
33 for p in re.split('(\d+)', v.lower()):
71 for k, v in re.findall(r'([^ =]+)=([^ [=]+(?:|\[[^\]]+\]))(?:, |$)', value))
327 if re.search(r'/GenericDeviceInfo.deviceinfo.json$', info.filename):
329 elif re.search(r'/Cts(Media|Video)TestCases\.reportlog\.json$', info.filename):
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/opc_throw/
DTest_opc_throw.java38 } catch (RuntimeException re) { in testN1()
/cts/tools/utils/
DbuildCts.py21 import re
61 pattern = re.compile(r'^\s*([^:#=\s]+)\s*:=\s*(.*?[^\\])$', re.MULTILINE + re.DOTALL)
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DShortcutManagerBackupTest.java135 final Pattern re = Pattern.compile("^\\s+Active (ordered)? broadcasts \\[", in waitUntilBroadcastsDrain() local
144 if (re.matcher(dumpsys).find()) { in waitUntilBroadcastsDrain()
/cts/suite/cts/utils/
Dget_csv_report.py18 import re
106 m = re.search(r'.*;/data\s+([\w\.]+)\s+([\w\.]+)\s+([\w\.]+)\s+([\w\.]+);', partitions)
/cts/hostsidetests/theme/
Dandroid_device.py19 import re
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java84 for (int re = rs; re < replPositionSet.size(); re++) { in replace()
88 replPositionSet.getPosition(rs), replPositionSet.getPosition(re)); in replace()
DTextUtilsTest.java100 String re = TextUtils.ellipsize(text, p, width, TruncateAt.START).toString(); in getEllipsis() local
101 return re.substring(0, re.indexOf("x")); in getEllipsis()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dcamera_response_fast.rsh21 // do some computation in the radiance space, then re-apply the response to
Dcamera_response.rsh21 // do some computation in the radiance space, then re-apply the response to
/cts/apps/CameraITS/pymodules/its/
Dobjects.py18 import re
Ddevice.py19 import re
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale21 function. Version 2 of Dhrystone is the result of such a re-

12