Home
last modified time | relevance | path

Searched refs:regex (Results 1 – 25 of 41) sorted by relevance

12

/hardware/nxp/keymint/KM200/
Dkeymint_utils.cpp57 regex_t regex; in getOsVersion() local
58 if (regcomp(&regex, kPlatformVersionRegex, REG_EXTENDED)) { in getOsVersion()
64 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in getOsVersion()
65 regfree(&regex); in getOsVersion()
80 regex_t regex; in getPatchlevel() local
81 if (regcomp(&regex, kPatchlevelRegex, REG_EXTENDED) != 0) { in getPatchlevel()
86 int not_match = regexec(&regex, patchlevel_str, kPatchlevelMatchCount, matches, 0 /* flags */); in getPatchlevel()
87 regfree(&regex); in getPatchlevel()
/hardware/interfaces/security/keymint/support/
Dkeymint_utils.cpp58 regex_t regex; in getOsVersion() local
59 if (regcomp(&regex, kPlatformVersionRegex, REG_EXTENDED)) { in getOsVersion()
65 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in getOsVersion()
66 regfree(&regex); in getOsVersion()
81 regex_t regex; in getPatchlevel() local
82 if (regcomp(&regex, kPatchlevelRegex, REG_EXTENDED) != 0) { in getPatchlevel()
87 int not_match = regexec(&regex, patchlevel_str, kPatchlevelMatchCount, matches, 0 /* flags */); in getPatchlevel()
88 regfree(&regex); in getPatchlevel()
/hardware/nxp/keymint/KM300/
Dkeymint_utils.cpp60 regex_t regex; in getOsVersion() local
61 if (regcomp(&regex, kPlatformVersionRegex, REG_EXTENDED)) { in getOsVersion()
67 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in getOsVersion()
68 regfree(&regex); in getOsVersion()
83 regex_t regex; in getPatchlevel() local
84 if (regcomp(&regex, kPatchlevelRegex, REG_EXTENDED) != 0) { in getPatchlevel()
89 int not_match = regexec(&regex, patchlevel_str, kPatchlevelMatchCount, matches, 0 /* flags */); in getPatchlevel()
90 regfree(&regex); in getPatchlevel()
/hardware/interfaces/biometrics/common/util/include/util/
DUtil.h64 std::regex regex(sep); in split()
66 std::sregex_token_iterator(str.begin(), str.end(), regex, -1), in split()
109 std::regex ex("((\\d+)(-\\[([\\d|,]+)\\])?)"); in parseEnrollmentCaptureSingle()
139 while (regex_search(s, sms, std::regex("^(,)?(\\d+(-\\[[\\d|,]+\\])?)"))) { in parseEnrollmentCapture()
/hardware/qcom/sm7250/display/sde-drm/
Ddrm_utils.cpp42 using std::regex;
52 regex exp_base("[[:alnum:]]{4}(/[[:digit:]]/([[:digit:]]){1,3})?"); in ParseFormats()
53 regex exp_modifier("[[:alnum:]]{4}(/[[:digit:]]/([[:digit:]]){1,3})"); in ParseFormats()
/hardware/interfaces/keymaster/4.0/support/
Dkeymaster_utils.cpp222 regex_t regex; in getOsVersion() local
223 if (regcomp(&regex, kPlatformVersionRegex, REG_EXTENDED)) { in getOsVersion()
229 regexec(&regex, version_str, kPlatformVersionMatchCount, matches, 0 /* flags */); in getOsVersion()
230 regfree(&regex); in getOsVersion()
248 regex_t regex; in getOsPatchlevel() local
249 if (regcomp(&regex, kPlatformPatchlevelRegex, REG_EXTENDED) != 0) { in getOsPatchlevel()
255 regexec(&regex, patchlevel_str, kPlatformPatchlevelMatchCount, matches, 0 /* flags */); in getOsPatchlevel()
256 regfree(&regex); in getOsPatchlevel()
/hardware/google/gfxstream/codegen/vulkan/vulkan-docs-next/scripts/
Dtranslate_math.js25 …const regex = new RegExp( escapeRegex(delim.left) + "([\\S\\s]*?)" + escapeRegex(delim.right), "g"… constant
26 html = html.replace( regex,
/hardware/google/pixel/pixelstats/
DBrownoutDetectedReporter.cpp52 const std::regex kTimestampPattern("^\\S+\\s[0-9]+:[0-9]+:[0-9]+\\S+$");
53 const std::regex kIrqPattern("^(\\S+)\\striggered\\sat\\s\\S+$");
54 const std::regex kOdpmPattern("^CH\\d+\\[(\\S+)\\],\\s(\\d+)$");
55 const std::regex kDvfsPattern("^([A-Z1-9]+):(\\d+)$");
56 const std::regex kFgPattern("^(voltage_now):(\\d+)$");
57 const std::regex kBatteryTempPattern("^(battery):(\\d+)$");
58 const std::regex kBatteryCyclePattern("^(battery_cycle):(\\d+)$");
59 const std::regex kBatterySocPattern("^(soc):(\\d+)$");
60 const std::regex kAlreadyUpdatedPattern("^(LASTMEAL_UPDATED)$");
92 bool BrownoutDetectedReporter::updateIfFound(std::string line, std::regex pattern, in updateIfFound()
/hardware/libhardware/modules/sensors/dynamic_sensor/
DConnectionDetector.h65 BaseDynamicSensorDaemon *d, const std::string &path, const std::string &regex);
80 std::regex mRegex;
DConnectionDetector.cpp111 BaseDynamicSensorDaemon *d, const std::string &path, const std::string &regex) in FileConnectionDetector() argument
112 : ConnectionDetector(d), Thread(false /*callCallJava*/), mPath(path), mRegex(regex), in FileConnectionDetector()
/hardware/google/aemu/base/include/aemu/base/testing/
DTestUtils.h30 std::regex reg(regStr);
/hardware/google/graphics/common/libmemtrack/
Ddmabuf.cpp49 regex rex("\\s*ion-(\\d+)\\s+(\\d+)\\s+(\\d+).*"); in build_dmabuf_footprint()
68 regex rexion("\\[ *(\\d+)\\] +[[:alnum:]\\-_]+ +(\\w+) +([x[:xdigit:]]+) +(\\d+).*"); in complete_dmabuf_footprint()
/hardware/interfaces/radio/1.6/vts/functional/
Dradio_hidl_hal_misc.cpp46 static const std::regex kOperatorNumericRe("^[0-9]{5,6}$"); in TEST_P()
/hardware/interfaces/keymaster/4.0/vts/performance/
DREADME18 …ded by the microbenchmark library are valid, such as `--benchmark_filter=<regex>` or `benchmark_ou…
/hardware/interfaces/security/keymint/aidl/vts/performance/
DREADME22 `--benchmark_filter=<regex>` or `benchmark_out_format={json|console|csv}`.
/hardware/google/pixel/pixelstats/include/pixelstats/
DBrownoutDetectedReporter.h125 bool updateIfFound(std::string line, std::regex pattern, int *current_value, Update flag);
/hardware/google/camera/common/hal/aidl_service/
Daidl_camera_provider.h78 static const std::regex kDeviceNameRegex;
/hardware/interfaces/automotive/can/1.0/default/
DCanController.cpp47 static const std::regex kTtyRe("^tty[A-Z]+[0-9]+$");
66 static const std::regex nameRE("^[a-zA-Z0-9_]{1,32}$"); in isValidName()
/hardware/interfaces/automotive/can/aidl/default/
DCanController.cpp45 static const std::regex kTtyRe("^tty[A-Z]+[0-9]+$");
60 static const std::regex nameRE("^[a-zA-Z0-9_]{1,32}$"); in isValidName()
/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultVehicleHalServer.cpp474 std::regex reg_json(".*[.]json", std::regex::icase); in overrideProperties()
/hardware/interfaces/audio/aidl/common/include/
DUtils.h146 static const std::regex vendorExtension("VX_[A-Z0-9]{3,}_[_A-Z0-9]+"); in isVendorExtension()
/hardware/interfaces/audio/common/7.0/enums/include/
Dandroid_audio_policy_configuration_V7_0-enums.h236 static const std::regex vendorExtension("VX_[A-Z0-9]{3,}_[_A-Z0-9]+"); in isVendorExtension()
/hardware/interfaces/audio/common/7.1/enums/include/
Dandroid_audio_policy_configuration_V7_1-enums.h239 static const std::regex vendorExtension("VX_[A-Z0-9]{3,}_[_A-Z0-9]+"); in isVendorExtension()
/hardware/interfaces/camera/provider/2.4/default/
DExternalCameraProviderImpl_2_4.cpp43 const std::regex kDeviceNameRE("device@([0-9]+\\.[0-9]+)/external/(.+)");
/hardware/interfaces/camera/provider/2.7/default/
DExternalCameraProviderImpl_2_7.cpp41 const std::regex kDeviceNameRE("device@([0-9]+\\.[0-9]+)/external/(.+)");

12