/frameworks/base/core/java/android/os/ |
D | PatternMatcher.java | 116 public PatternMatcher(String pattern, int type) { in PatternMatcher() argument 117 mPattern = pattern; in PatternMatcher() 120 mParsedPattern = parseAndVerifyAdvancedPattern(pattern); in PatternMatcher() 214 static boolean matchPattern(String match, String pattern, int[] parsedPattern, int type) { in matchPattern() argument 217 return pattern.equals(match); in matchPattern() 219 return match.startsWith(pattern); in matchPattern() 221 return matchGlobPattern(pattern, match); in matchPattern() 225 return match.endsWith(pattern); in matchPattern() 230 static boolean matchGlobPattern(String pattern, String match) { in matchGlobPattern() argument 231 final int NP = pattern.length(); in matchGlobPattern() [all …]
|
D | Vibrator.java | 414 public void vibrate(long[] pattern, int repeat) { in vibrate() argument 415 vibrate(pattern, repeat, null); in vibrate() 446 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument 449 if (repeat < -1 || repeat >= pattern.length) { in vibrate() 451 " (pattern.length=" + pattern.length + ", index=" + repeat + ")"); in vibrate() 456 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate()
|
/frameworks/native/services/inputflinger/ |
D | VibrationElement.cpp | 97 pattern.reserve(length); in VibrationSequence() 101 pattern = other.pattern; in operator =() 105 if (pattern.size() != other.pattern.size()) { in operator ==() 108 for (size_t i = 0; i < pattern.size(); i++) { in operator ==() 109 if (pattern[i] != other.pattern[i]) { in operator ==() 117 pattern.push_back(element); in addElement() 124 for (const auto& element : pattern) { in toString()
|
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/ |
D | PatternScanner.java | 44 public String tryEat(Pattern pattern) { in tryEat() argument 51 Matcher matcher = pattern.matcher(mInput); in tryEat() 70 public String eat(Pattern pattern, String tokenName) { in eat() argument 71 String result = tryEat(pattern); in eat() 78 public boolean peek(Pattern pattern) { in peek() argument 85 Matcher matcher = pattern.matcher(mInput); in peek() 92 public void skip(Pattern pattern) { in skip() argument 93 Matcher matcher = pattern.matcher(mInput); in skip()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/ |
D | CredentialPatternViewBinder.kt | 31 OnPatternDetectedListener { pattern -> in <lambda>() method 32 if (pattern.isPatternTooShort()) { in <lambda>() 38 launch { viewModel.checkCredential(pattern, header) } in <lambda>() 63 private val onDetected: (pattern: List<LockPatternView.Cell>) -> Unit 65 override fun onPatternCellAdded(pattern: List<LockPatternView.Cell>) {} in onPatternCellAdded() 68 override fun onPatternDetected(pattern: List<LockPatternView.Cell>) { in onPatternDetected() 69 onDetected(pattern) in onPatternDetected()
|
/frameworks/base/core/java/android/text/format/ |
D | DateFormat.java | 226 final String pattern = sdf.toPattern(); in is24HourLocale() local 227 is24Hour = hasDesignator(pattern, 'H'); in is24HourLocale() 272 String pattern = dtpg.getBestPattern(skeleton, DateTimePatternGenerator.MATCH_NO_OPTIONS, in getBestDateTimePattern() local 274 return getCompatibleEnglishPattern(uLocale, pattern); in getBestDateTimePattern() 310 String pattern = is24HourFormat(context, userHandle) ? dtpg.getBestPattern("Hm") in getTimeFormatString() local 312 return getCompatibleEnglishPattern(uLocale, pattern); in getTimeFormatString() 365 public static char[] getDateFormatOrder(String pattern) { in getDateFormatOrder() argument 372 for (int i = 0; i < pattern.length(); ++i) { in getDateFormatOrder() 373 char ch = pattern.charAt(i); in getDateFormatOrder() 389 + pattern); in getDateFormatOrder() [all …]
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/docs/patterns/ |
D | TEMPLATE.md | 3 ### What this pattern solves 5 Give detailed information about the problem that this pattern addresses, include when it 10 Give a high level overview of how this pattern works technically with sufficient links for the 15 Explain how this pattern is used in code. 26 Add relevant links to other files that implement this pattern, design docs, or other important
|
/frameworks/base/errorprone/java/com/google/errorprone/bugpatterns/android/ |
D | UidChecker.java | 86 private Pattern pattern; field in UidChecker.Flavor 87 private Flavor(Pattern pattern) { in Flavor() argument 88 this.pattern = pattern; in Flavor() 91 return (pattern != null) && pattern.matcher(input).find(); in matches()
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | NotificationChannelTest.java | 402 long[] pattern = new long[] {1, 2}; in testVibrationGetters_patternBasedVibrationEffect_nonRepeating() local 403 VibrationEffect effect = VibrationEffect.createWaveform(pattern, /* repeatIndex= */ -1); in testVibrationGetters_patternBasedVibrationEffect_nonRepeating() 409 assertTrue(Arrays.equals(pattern, testedChannel.getVibrationPattern())); in testVibrationGetters_patternBasedVibrationEffect_nonRepeating() 421 long[] pattern = new long[] {1, 2}; in testVibrationGetters_patternBasedVibrationEffect_wholeRepeating() local 422 VibrationEffect effect = VibrationEffect.createWaveform(pattern, /* repeatIndex= */ 0); in testVibrationGetters_patternBasedVibrationEffect_wholeRepeating() 441 long[] pattern = new long[] {1, 2, 3, 4}; in testVibrationGetters_patternBasedVibrationEffect_partialRepeating() local 442 VibrationEffect effect = VibrationEffect.createWaveform(pattern, /* repeatIndex= */ 2); in testVibrationGetters_patternBasedVibrationEffect_partialRepeating() 515 long[] pattern = new long[] {0, 123}; in testVibrationGetters_setPatternOverridesSetEffect() local 519 channel.setVibrationPattern(pattern); in testVibrationGetters_setPatternOverridesSetEffect() 522 .isEqualTo(VibrationEffect.createWaveform(pattern, -1)); in testVibrationGetters_setPatternOverridesSetEffect() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 39 private static native int halTransmit(int carrierFrequency, int[] pattern); in halTransmit() argument 94 public void transmit(String packageName, int carrierFrequency, int[] pattern) { in transmit() argument 99 for (int slice : pattern) { in transmit() 116 mAidlService.transmit(carrierFrequency, pattern); in transmit() 121 int err = halTransmit(carrierFrequency, pattern); in transmit()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/utils/ |
D | GestureLogParser.java | 73 private static int findInt(String eventText, String pattern) { in findInt() argument 74 final Pattern p = Pattern.compile(pattern); in findInt() 80 private static float findFloat(String eventText, String pattern) { in findFloat() argument 81 final Pattern p = Pattern.compile(pattern); in findFloat() 87 private static String findString(String eventText, String pattern) { in findString() argument 88 final Pattern p = Pattern.compile(pattern); in findString()
|
/frameworks/base/core/java/android/text/util/ |
D | Linkify.java | 431 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 433 addLinks(text, pattern, scheme, null, null, null); in addLinks() 450 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 453 addLinks(text, pattern, scheme, null, matchFilter, transformFilter); in addLinks() 473 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 478 boolean linksAdded = addLinks(spannable, pattern, defaultScheme, schemes, matchFilter, in addLinks() 496 public static final boolean addLinks(@NonNull Spannable text, @NonNull Pattern pattern, in addLinks() argument 498 return addLinks(text, pattern, scheme, null, null, null); in addLinks() 517 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() argument 520 return addLinks(spannable, pattern, scheme, null, matchFilter, in addLinks() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LockscreenCredentialTest.java | 85 LockscreenCredential pattern = LockscreenCredential.createPattern(Arrays.asList( in testPatternCredential() local 93 assertTrue(pattern.isPattern()); in testPatternCredential() 94 assertEquals(5, pattern.size()); in testPatternCredential() 95 assertArrayEquals("12369".getBytes(), pattern.getCredential()); in testPatternCredential() 97 assertFalse(pattern.isNone()); in testPatternCredential() 98 assertFalse(pattern.isPin()); in testPatternCredential() 99 assertFalse(pattern.isPassword()); in testPatternCredential() 100 assertFalse(pattern.hasInvalidChars()); in testPatternCredential() 101 pattern.validateBasicRequirements(); in testPatternCredential()
|
/frameworks/base/core/java/android/service/autofill/ |
D | ImageTransformation.java | 89 if (option.pattern.matcher(value).matches()) { in apply() 100 Log.w(TAG, "Error matching regex #" + i + "(" + option.pattern + ") on id " in apply() 237 patterns[i] = option.pattern; in writeToParcel() 282 public final Pattern pattern; field in ImageTransformation.Option 286 Option(Pattern pattern, int resId, CharSequence contentDescription) { in Option() argument 287 this.pattern = pattern; in Option()
|
/frameworks/av/media/module/foundation/ |
D | AStringUtils.cpp | 51 const char *pattern = glob + start; in MatchesGlob() local 59 return !Compare(tail, pattern, len, ignoreCase); in MatchesGlob() 62 while (ix + len <= strLen && Compare(str + ix, pattern, len, ignoreCase)) { in MatchesGlob()
|
/frameworks/base/core/tests/coretests/src/android/app/admin/ |
D | PasswordMetricsTest.java | 254 PasswordMetrics pattern = new PasswordMetrics(CREDENTIAL_TYPE_PATTERN); in testMerge_credentialTypes() local 257 PasswordMetrics.merge(Arrays.asList(new PasswordMetrics[]{none, pattern})) in testMerge_credentialTypes() 263 PasswordMetrics.merge(Arrays.asList(new PasswordMetrics[]{password, pattern})) in testMerge_credentialTypes() 270 PasswordMetrics pattern = new PasswordMetrics(CREDENTIAL_TYPE_PATTERN); in testValidatePasswordMetrics_credentialTypes() local 282 validatePasswordMetrics(none, PASSWORD_COMPLEXITY_NONE, pattern)); in testValidatePasswordMetrics_credentialTypes() 288 validatePasswordMetrics(pattern, PASSWORD_COMPLEXITY_NONE, pattern)); in testValidatePasswordMetrics_credentialTypes() 290 validatePasswordMetrics(pattern, PASSWORD_COMPLEXITY_NONE, password)); in testValidatePasswordMetrics_credentialTypes() 298 validatePasswordMetrics(pattern, PASSWORD_COMPLEXITY_NONE, none), in testValidatePasswordMetrics_credentialTypes() 304 validatePasswordMetrics(password, PASSWORD_COMPLEXITY_NONE, pattern), in testValidatePasswordMetrics_credentialTypes()
|
/frameworks/minikin/doc/ |
D | hyb_file_format.md | 1 # Hyb (hyphenation pattern binary) file format 28 array, and the pattern field in the tuple is the pattern for that node. Further, each edge 38 The third section contains the pattern strings. This section is in two parts: first, 39 an array with a 3-tuple for each pattern (length, number of trailing 0's, and offset 40 into the string pool); and second, the string pool. Each pattern is encoded as a byte 107 Each element in the data table is `(pattern << pattern_shift) | (link << link_shift) | char`. 109 All known pattern tables fit in 32 bits total. If this is exceeded, there is a fairly 131 offset points to [4, 5] in the pattern buffer.
|
/frameworks/base/packages/SystemUI/scripts/token_alignment/helpers/ |
D | textFuncs.ts | 15 export function groupReplace(src: string, replaceMap: Map<string, string>, pattern: string) { 16 const fullPattern = pattern.replace('#group#', [...replaceMap.keys()].join('|'));
|
/frameworks/av/media/libstagefright/ |
D | CryptoAsync.cpp | 108 CryptoPlugin::Pattern pattern; in decryptAndQueue() local 119 msg->findInt32("encryptBlocks", (int32_t*)&pattern.mEncryptBlocks); in decryptAndQueue() 120 msg->findInt32("skipBlocks", (int32_t*)&pattern.mSkipBlocks); in decryptAndQueue() 131 pattern, subSamples, numSubSamples, &errorDetailMsg); in decryptAndQueue() 156 CryptoPlugin::Pattern pattern; in attachEncryptedBufferAndQueue() local 160 msg->findInt32("encryptBlocks", (int32_t*)&pattern.mEncryptBlocks); in attachEncryptedBufferAndQueue() 161 msg->findInt32("skipBlocks", (int32_t*)&pattern.mSkipBlocks); in attachEncryptedBufferAndQueue() 189 memory, secure, key, iv, mode, pattern, in attachEncryptedBufferAndQueue()
|
/frameworks/minikin/tools/ |
D | mk_hyb_file.py | 120 def trim(pattern): argument 121 for ix in range(len(pattern)): 122 if pattern[ix] != 0: 123 return pattern[ix:] 126 def pat_to_binary(pattern): argument 127 return b''.join(struct.pack('B', x) for x in pattern) 311 def generate_header(alphabet, trie, pattern): argument 315 file_size = pattern_off + len(pattern) 415 patmap, pattern = generate_pattern([n.res for n in hyph.node_list]) 417 header = generate_header(alphabet, trie, pattern) [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 327 LockscreenCredential pattern = newPattern("123654"); in testTokenBasedResetPassword() local 346 mLocalService.setLockCredentialWithToken(pattern, handle, token, PRIMARY_USER_ID); in testTokenBasedResetPassword() 350 final PasswordMetrics metric = PasswordMetrics.computeForCredential(pattern); in testTokenBasedResetPassword() 355 pattern, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); in testTokenBasedResetPassword() 362 LockscreenCredential pattern = newPattern("123654"); in testTokenBasedClearPassword() local 376 mLocalService.setLockCredentialWithToken(pattern, handle, token, in testTokenBasedClearPassword() 380 pattern, PRIMARY_USER_ID, 0 /* flags */).getResponseCode()); in testTokenBasedClearPassword() 387 LockscreenCredential pattern = newPattern("123654"); in testTokenBasedResetPasswordAfterCredentialChanges() local 400 mService.setLockCredential(pattern, password, PRIMARY_USER_ID); in testTokenBasedResetPasswordAfterCredentialChanges() 457 LockscreenCredential pattern = newPattern("123654"); in testActivateMultipleEscrowTokens() local [all …]
|
/frameworks/av/media/libaaudio/scripts/ |
D | convert_typedefs_int32.sh | 15 pattern=$2 16 …find $path -type f -name $pattern -exec sed -i -f ${LIBAAUDIO_DIR}/scripts/typedefs_to_int32.sed …
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | check_dims.rscript | 19 int pattern; 25 // each row). If we don't see the pattern that we wrote, we know that we 28 if (*o != pattern) {
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | check_dims.rscript | 21 int pattern; 27 // each row). If we don't see the pattern that we wrote, we know that we 30 if (*o != pattern) {
|
/frameworks/av/drm/libmediadrm/ |
D | CryptoHal.cpp | 81 const CryptoPlugin::Pattern& pattern, const ::SharedBuffer& source, in decrypt() argument 87 return mCryptoHalAidl->decrypt(key, iv, mode, pattern, source, offset, subSamples, in decrypt() 89 return mCryptoHalHidl->decrypt(key, iv, mode, pattern, source, offset, subSamples, in decrypt()
|