Home
last modified time | relevance | path

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

12345678910

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DSpannableStringUtils.java30 import java.util.regex.Matcher;
31 import java.util.regex.Pattern;
150 public static CharSequence[] split(final CharSequence charSequence, final String regex, in split() argument
155 return charSequence.toString().split(regex, preserveTrailingEmptySegments ? -1 : 0); in split()
160 final Matcher matcher = Pattern.compile(regex).matcher(charSequence); in split()
/packages/modules/ExtServices/java/src/android/ext/services/notification/
DNotificationOtpDetectionHelper.java53 import java.util.regex.Matcher;
54 import java.util.regex.Pattern;
161 StringBuilder regex = new StringBuilder("(?i)\\b("); in createDictionaryRegex() local
163 regex.append(words[i]); in createDictionaryRegex()
165 regex.append("|"); in createDictionaryRegex()
168 regex.append(")\\b"); in createDictionaryRegex()
169 return Pattern.compile(regex.toString()).matcher(""); in createDictionaryRegex()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBasePermissionTest.kt67 import java.util.regex.Pattern in <lambda>()
249 var regex = "" in <lambda>() variable
252 regex = regex + Pattern.quote(text) + "|" in <lambda>()
255 if (regex.endsWith("|")) { in <lambda>()
256 regex = regex.dropLast(1) in <lambda>()
258 return By.text(Pattern.compile(regex, Pattern.CASE_INSENSITIVE or Pattern.UNICODE_CASE)) in <lambda>()
/packages/apps/ManagedProvisioning/studio-dev/ManagedProvisioningGradleProject/buildSrc/src/main/groovy/
DExcludeUtils.groovy3 import java.util.regex.Pattern
10 * - its path matches one of the regex in [regexToKeep].
31 * - its path matches one of the regex in [regexToExclude].
/packages/apps/UniversalMediaPlayer/java/com/android/pump/provider/
DQuery.java26 import java.util.regex.MatchResult;
27 import java.util.regex.Matcher;
28 import java.util.regex.Pattern;
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DAddToHomeScreenPrompt.java19 import static java.util.regex.Pattern.CASE_INSENSITIVE;
25 import java.util.regex.Pattern;
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DAdbQrCode.java26 import java.util.regex.Pattern;
157 String regex = "(?<!\\\\)" + Pattern.quote(delimiter); in getKeyValueList() local
158 return Arrays.asList(keyValueString.split(regex)); in getKeyValueList()
/packages/modules/SdkExtensions/
Dapi-to-sdk-ext-info.py38 def print_members(regex, contents): argument
42 for symbol_name in regex.findall(contents):
/packages/apps/Settings/tests/unit/src/com/android/settings/core/codeinspection/
DClassScanner.java24 import java.util.regex.Matcher;
25 import java.util.regex.Pattern;
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DClassScanner.java24 import java.util.regex.Matcher;
25 import java.util.regex.Pattern;
/packages/modules/StatsD/statsd/tools/localtools/src/com/android/statsd/shelltools/
DUtils.java40 import java.util.regex.Matcher;
41 import java.util.regex.Pattern;
228 Pattern regex = Pattern.compile("^(.*)\tdevice$"); in getDeviceSerials() local
230 Matcher m = regex.matcher(line); in getDeviceSerials()
/packages/apps/Car/VoiceControl/src/com/android/car/voicecontrol/actuators/
DSkill.java23 import java.util.regex.Matcher;
24 import java.util.regex.Pattern;
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
DBluetoothNameUtils.java21 import java.util.regex.Matcher;
22 import java.util.regex.Pattern;
/packages/modules/AdServices/adservices/libraries/collectors-helper/adservices/src/com/android/adservices/helpers/
DEpochComputationHelper.java28 import java.util.regex.Matcher;
29 import java.util.regex.Pattern;
DUiLatencyHelper.java28 import java.util.regex.Matcher;
29 import java.util.regex.Pattern;
DAdIdLatencyHelper.java29 import java.util.regex.Matcher;
30 import java.util.regex.Pattern;
/packages/modules/DnsResolver/tests/
Dresolv_stats_test_utils.cpp61 std::regex re(": "); in fromNetworkDnsEventReportedStr()
64 static const std::regex words_regex("[^\\s]+"); in fromNetworkDnsEventReportedStr()
86 static const std::regex pieces_regex("([a-zA-Z0-9_]+)\\:([0-9]+),"); in fromNetworkDnsEventReportedStr()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DBmsgTokenizer.java22 import java.util.regex.Matcher;
23 import java.util.regex.Pattern;
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DProxyUtils.java25 import java.util.regex.Matcher;
26 import java.util.regex.Pattern;
/packages/modules/Bluetooth/android/pandora/mmi2grpc/mmi2grpc/
D_helpers.py80 regex = re.compile(docstring)
85 match = regex.fullmatch(description)
/packages/services/Car/service/src/com/android/car/pm/
DWindowDumpParser.java22 import java.util.regex.Matcher;
23 import java.util.regex.Pattern;
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DUiTestHelper.kt39 import java.util.regex.Pattern
245 val regex = in anyOf() constant
249 return Pattern.compile(regex) in anyOf()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DMigrateSystemAppsSnapshotTask.java30 import java.util.regex.Matcher;
31 import java.util.regex.Pattern;
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DWebAddress.java22 import java.util.regex.Matcher;
23 import java.util.regex.Pattern;
/packages/providers/MediaProvider/src/com/android/providers/media/playlist/
DPlsPlaylistPersister.java32 import java.util.regex.Matcher;
33 import java.util.regex.Pattern;

12345678910