Home
last modified time | relevance | path

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

1234567

/packages/modules/NeuralNetworks/tools/api/
Dgenerate_api.py7 import re
71 match = re.search(LINESEARCH, orig)
82 args = re.split("\s+", match[3])
83 bodymatch = re.search(BODYSEARCH, body_orig)
91 bodymatch = re.search(BODYSEARCH, body_orig)
97 match = re.search(LINESEARCH, orig)
103 patterns = re.split("\s+", patterns_string.strip())
105 wildcard_match = re.search("^(.*)\*$", pattern)
106 lowest_version_match = re.search("^(.*)\+$", pattern)
109 if re.search("^" + re.escape(wildcard_match[1]), self.kind):
[all …]
/packages/modules/SdkExtensions/
Dapi-to-sdk-ext-info.py28 import re
31 re_package = re.compile(r"^package (.*?) \{(.*?)^\}", re.M + re.S)
32 re_class = re.compile(r"^ .*? (?:class|interface) (\S+) .*?\{(.*?)^ \}", re.M + re.S)
33 re_method = re.compile("^ (?:ctor|method).* (\S+)\([^)]*\);", re.M)
34 re_field = re.compile(r"^ field.* (\S+)(?: =.*);", re.M)
/packages/apps/Camera2/tests/exiftool_parser/
Dparser.py17 import re
35 p = re.compile(
38 , re.M)
67 _id = re.search("0x[0-9a-f]{4}", s)
71 name = re.search("[0-9]*?\).*?(?:(?: = )|(?: \(SubDirectory\) -->))", s)
75 value = re.search("\(SubDirectory\) -->", s)
79 value = re.search("\(.*\)\n", s)
83 value = re.search("=.*\n", s)
/packages/services/Telecomm/scripts/
Daosp_tag_preupload.py3 import re
46 if re.search(AOSP_COMMIT_TAG_REGEX, str(commit_line_str), re.IGNORECASE):
55 return re.search(AOSP_BRANCH_REGEX, str(branch_info)) is not None
58 if re.search(AOSP_COMMIT_LINK_REGEX, aosp_line):
61 if re.search(AOSP_INFEASIBLE_REGEX, aosp_line, re.IGNORECASE):
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
Dgatt.py15 import re
168 matches = re.findall("'([a0-Z9]*)'O and size = '([a0-Z9]*)'", description)
197 uuid = formatUuid(re.findall("'([a0-Z9]*)'O", description)[0])
213 uuid = formatUuid(re.findall("'([a0-Z9-]*)'O", description)[0])
270 all_matches = list(map(formatUuid, re.findall("'([a0-Z9]*)'O", description)))
327 all_matches = re.findall("'([a0-Z9]*)'O", description)
350 service_uuid = formatUuid(re.findall("'([a0-Z9]*)'O", description)[0])
369 all_matches = list(map(stringCharHandleToInt, re.findall("'([a0-Z9]*)'O", description)))
383 handles = re.findall("'([a0-Z9]*)'O", description)
388 uuid_match = re.findall("0x([a0-Z9]*)'O", description)
[all …]
Dhogp.py18 import re
117 PATTERN = re.compile(
158 PATTERN = re.compile(rf"handle = (?P<handle>\S*)\s* uuid = (?P<uuid>\S*)")
192 PATTERN = re.compile(r"Start Handle: (?P<start_handle>\S*) End Handle: (?P<end_handle>\S*)")
279 blocks = re.split("Handle:", body)
282 PATTERN = re.compile(f"0x{HEX*2}(?:{HEX*2})?")
D_helpers.py22 import re
77 return re.sub('\s+', ' ', desc).strip()
80 regex = re.compile(docstring)
/packages/providers/CalendarProvider/
Dmaketests.py13 import sys, urllib, re
35 DTSTART_TZID = re.compile("DTSTART;TZID=(.*):(.*)")
36 DTSTART = re.compile("DTSTART:(.*)")
37 DURATION = re.compile("DURATION:(.*)")
38 RRULE = re.compile("RRULE:(.*)")
39 TIME = re.compile("(....)-(..)-(..)T(..):(..):(..)....([+-])(..):(..)")
40 TIMEZ = re.compile("(....)-(..)-(..)T(..):(..):(..)....Z")
/packages/services/Car/tools/watchdog/parser/
Dcarwatchdog_dump_parser.py21 import re
593 or re.fullmatch(STATS_COLLECTION_PATTERN, line) is not None
606 if match := re.fullmatch(PACKAGE_CPU_STATS_PATTERN, line):
617 elif match := re.fullmatch(PROCESS_CPU_STATS_PATTERN, line):
646 if match := re.fullmatch(PACKAGE_STORAGE_IO_STATS_PATTERN, line):
668 lines: List[str], idx: int, match: re.Match[str]
678 re.fullmatch(STATS_COLLECTION_PATTERN, (line := lines[idx].strip()))
681 if match := re.fullmatch(TOTAL_CPU_TIME_PATTERN, line):
683 if match := re.fullmatch(TOTAL_CPU_CYCLES_PATTERN, line):
685 elif match := re.fullmatch(TOTAL_IDLE_CPU_TIME_PATTERN, line):
[all …]
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/
DIsolatedService.java277 } catch (RemoteException re) { in performOnWebTrigger()
278 sLogger.e(re, TAG + ": Isolated Service Callback failed."); in performOnWebTrigger()
316 } catch (RemoteException re) { in performOnTrainingExample()
317 sLogger.e(re, TAG + ": Isolated Service Callback failed."); in performOnTrainingExample()
345 } catch (RemoteException re) { in performOnWebViewEvent()
346 sLogger.e(re, TAG + ": Isolated Service Callback failed."); in performOnWebViewEvent()
375 } catch (RemoteException re) { in performRender()
376 sLogger.e(re, TAG + ": Isolated Service Callback failed."); in performRender()
420 } catch (RemoteException re) { in performDownload()
421 sLogger.e(re, TAG + ": Isolated Service Callback failed."); in performDownload()
[all …]
/packages/services/Car/tools/GenericCarApiBuilder/
Dhidden_api_check.py18 import re
32 argGroup = re.search("\((.*)\)",api)
36 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
37 return re.sub("\((.*)\)", new_arg, api)
Dannotation_classlist_repohook.py18 import re
32 argGroup = re.search("\((.*)\)",api)
36 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
37 return re.sub("\((.*)\)", new_arg, api)
/packages/services/Car/tools/GenericCarApiBuilder/scripts/
Dcheck_car_version.py26 import re
38 argGroup = re.search("\((.*)\)",api)
42 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
43 return re.sub("\((.*)\)", new_arg, api)
Dcompare_hidden_apis_across_releases.py18 import re
26 argGroup = re.search("\((.*)\)",api)
30 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
31 return re.sub("\((.*)\)", new_arg, api)
/packages/modules/NeuralNetworks/tools/systrace_parser/parser/
Dinput.py3 import re
24 MATCHER = re.compile(r"^\s*([^ ].{1,15})-(\d+)\s+\(\s*([-0-9]+)\) .* (\d+\.\d+): tracing_mark_write…
25 MATCHER_FOR_OLD = re.compile(r"^\s*([^ ].{1,15})-(\d+) .* (\d+\.\d+): tracing_mark_write: ([BE].*)$…
51 mark_matcher = re.compile(r"([BE])\|(\d+).*")
/packages/modules/Bluetooth/system/blueberry/decorators/
Dandroid_bluetooth_client_decorator.py12 import re
46 s1 = re.sub('(.)([A-Z][a-z]+)', r'\1_\2', cls_name)
47 return re.sub('([a-z0-9])([A-Z])', r'\1_\2', s1).lower()
/packages/modules/StatsD/statsd/benchmark/
Dstring_transform_benchmark.cpp70 static const regex re(R"([\d]+$)"); in BM_RemoveTrailingNumbersCppRegex() local
76 benchmark::DoNotOptimize(regex_replace(str, re, "")); in BM_RemoveTrailingNumbersCppRegex()
82 unique_ptr<Regex> re = Regex::create(R"([0-9]+$)"); in BM_RemoveTrailingNumbersCRegex() local
88 benchmark::DoNotOptimize(re->replace(str, "")); in BM_RemoveTrailingNumbersCRegex()
/packages/services/Car/tools/GenericCarApiBuilder/scripts/api-coverage/
Ddiff_apis_versions.py23 import re
55 argGroup = re.search("\((.*)\)",api)
59 new_arg = re.sub('[^ (]*?(?=\))|[^ ]*?(?=,)', "", arg)
60 return re.sub("\((.*)\)", new_arg, api)
/packages/apps/TvSettings/
DAndroid.bp71 // TODO(b/319716205): re-enable use_resource_processor
99 // TODO(b/319716205): re-enable use_resource_processor
128 // TODO(b/319716205): re-enable use_resource_processor
172 // TODO(b/319716205): re-enable use_resource_processor
207 // TODO(b/319716205): re-enable use_resource_processor
/packages/apps/Settings/src/com/android/settings/display/
DThemePreferenceController.java119 } catch (RemoteException re) { in onPreferenceChange()
120 throw re.rethrowFromSystemServer(); in onPreferenceChange()
167 } catch (RemoteException re) { in getAvailableThemes()
168 throw re.rethrowFromSystemServer(); in getAvailableThemes()
/packages/apps/Settings/src/com/android/settings/development/
DEnableVerboseVendorLoggingPreferenceController.java123 } catch (RemoteException re) { in setVerboseLoggingEnabled()
124 if (DBG) Log.e(TAG, "aidlService.setVerboseLoggingEnabled fail: " + re); in setVerboseLoggingEnabled()
153 } catch (RemoteException re) { in getVerboseLoggingEnabled()
154 if (DBG) Log.e(TAG, "aidlService.getVerboseLoggingEnabled fail: " + re); in getVerboseLoggingEnabled()
/packages/modules/Uwb/tests/cts/hostsidetests/multidevices/uwb/lib/
Duwb_base_test.py4 import re
13 RELEASE_ID_REGEX = re.compile(r"\w+\.\d+\.\d+")
70 if re.match(RELEASE_ID_REGEX, build_info["build_id"]):
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dos_utils.py20 import re
102 HOST_CRASH_LINE_REGEX = re.compile(r"^.* - crash_callback: (?P<line>.*)$")
104 ASAN_OUTPUT_START_REGEX = re.compile(r"^==.*AddressSanitizer.*$")
/packages/modules/Bluetooth/system/test/
DREADME.md12 ## After you're done
80 Probably not. See [After you're done](#After-you're-done)
/packages/modules/Uwb/generic_ranging/tests/multidevices/lib/
Dranging_base_test.py17 import re
26 RELEASE_ID_REGEX = re.compile(r"\w+\.\d+\.\d+")

1234567