/frameworks/base/core/java/android/os/ |
D | PatternMatcher.java | 94 public PatternMatcher(String pattern, int type) { in PatternMatcher() argument 95 mPattern = pattern; in PatternMatcher() 98 mParsedPattern = parseAndVerifyAdvancedPattern(pattern); in PatternMatcher() 172 static boolean matchPattern(String match, String pattern, int[] parsedPattern, int type) { in matchPattern() argument 175 return pattern.equals(match); in matchPattern() 177 return match.startsWith(pattern); in matchPattern() 179 return matchGlobPattern(pattern, match); in matchPattern() 186 static boolean matchGlobPattern(String pattern, String match) { in matchGlobPattern() argument 187 final int NP = pattern.length(); in matchGlobPattern() 193 char nextChar = pattern.charAt(0); in matchGlobPattern() [all …]
|
D | Vibrator.java | 241 public void vibrate(long[] pattern, int repeat) { in vibrate() argument 242 vibrate(pattern, repeat, null); in vibrate() 271 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument 274 if (repeat < -1 || repeat >= pattern.length) { in vibrate() 276 " (pattern.length=" + pattern.length + ", index=" + repeat + ")"); in vibrate() 281 vibrate(VibrationEffect.createWaveform(pattern, repeat), attributes); in vibrate()
|
/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/core/java/android/text/util/ |
D | Linkify.java | 422 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 424 addLinks(text, pattern, scheme, null, null, null); in addLinks() 441 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 444 addLinks(text, pattern, scheme, null, matchFilter, transformFilter); in addLinks() 464 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument 469 boolean linksAdded = addLinks(spannable, pattern, defaultScheme, schemes, matchFilter, in addLinks() 487 public static final boolean addLinks(@NonNull Spannable text, @NonNull Pattern pattern, in addLinks() argument 489 return addLinks(text, pattern, scheme, null, null, null); in addLinks() 508 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() argument 511 return addLinks(spannable, pattern, scheme, null, matchFilter, in addLinks() [all …]
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConsumerIrService.java | 33 private static native int halTransmit(int carrierFrequency, int[] pattern); in halTransmit() argument 71 public void transmit(String packageName, int carrierFrequency, int[] pattern) { in transmit() argument 79 for (int slice : pattern) { in transmit() 94 int err = halTransmit(carrierFrequency, pattern); in transmit()
|
/frameworks/base/core/java/android/service/autofill/ |
D | ImageTransformation.java | 88 if (option.pattern.matcher(value).matches()) { in apply() 99 Log.w(TAG, "Error matching regex #" + i + "(" + option.pattern + ") on id " in apply() 236 patterns[i] = option.pattern; in writeToParcel() 281 public final Pattern pattern; field in ImageTransformation.Option 285 Option(Pattern pattern, int resId, CharSequence contentDescription) { in Option() argument 286 this.pattern = pattern; in Option()
|
D | Dataset.java | 550 public final Pattern pattern; field in Dataset.DatasetFieldFilter 552 private DatasetFieldFilter(@Nullable Pattern pattern) { in DatasetFieldFilter() argument 553 this.pattern = pattern; in DatasetFieldFilter() 561 return pattern == null ? "null" : pattern.pattern().length() + "_chars"; in toString() 571 parcel.writeSerializable(pattern); in writeToParcel()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | SyntheticPasswordTests.java | 250 final byte[] pattern = "123654".getBytes(); in testTokenBasedResetPassword() 265 mLocalService.setLockCredentialWithToken(pattern, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testTokenBasedResetPassword() 271 LockPatternUtils.CREDENTIAL_TYPE_PATTERN, pattern); in testTokenBasedResetPassword() 275 pattern, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, 0, PRIMARY_USER_ID) in testTokenBasedResetPassword() 283 final byte[] pattern = "123654".getBytes(); in testTokenBasedClearPassword() 298 mLocalService.setLockCredentialWithToken(pattern, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, in testTokenBasedClearPassword() 302 pattern, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, 0, PRIMARY_USER_ID) in testTokenBasedClearPassword() 310 final byte[] pattern = "123654".getBytes(); in testTokenBasedResetPasswordAfterCredentialChanges() 323 mService.setLockCredential(pattern, LockPatternUtils.CREDENTIAL_TYPE_PATTERN, password, in testTokenBasedResetPasswordAfterCredentialChanges() 383 final byte[] pattern = "123654".getBytes(); in testSetLockCredentialWithTokenFailsWithoutLockScreen() [all …]
|
D | LockSettingsServiceTests.java | 250 final byte[] pattern = "12345".getBytes(); in testSetLockCredential_forProfileWithSeparateChallenge_sendsCredentials() 253 pattern, in testSetLockCredential_forProfileWithSeparateChallenge_sendsCredentials() 261 .lockScreenSecretChanged(CREDENTIAL_TYPE_PATTERN, pattern, MANAGED_PROFILE_USER_ID); in testSetLockCredential_forProfileWithSeparateChallenge_sendsCredentials() 417 final byte[] pattern = "12345".getBytes(); in testVerifyCredential_forProfileWithSeparateChallenge_sendsCredentials() 419 pattern, in testVerifyCredential_forProfileWithSeparateChallenge_sendsCredentials() 427 mService.verifyCredential(pattern, CREDENTIAL_TYPE_PATTERN, 1, MANAGED_PROFILE_USER_ID); in testVerifyCredential_forProfileWithSeparateChallenge_sendsCredentials() 431 CREDENTIAL_TYPE_PATTERN, pattern, MANAGED_PROFILE_USER_ID); in testVerifyCredential_forProfileWithSeparateChallenge_sendsCredentials() 437 final String pattern = "12345"; in verifyCredential_forPrimaryUserWithUnifiedChallengeProfile_sendsCredentialsForBoth() local 438 initializeStorageWithCredential(PRIMARY_USER_ID, pattern, CREDENTIAL_TYPE_PATTERN, 1234); in verifyCredential_forPrimaryUserWithUnifiedChallengeProfile_sendsCredentialsForBoth() 442 mService.verifyCredential(pattern.getBytes(), CREDENTIAL_TYPE_PATTERN, 1, PRIMARY_USER_ID); in verifyCredential_forPrimaryUserWithUnifiedChallengeProfile_sendsCredentialsForBoth() [all …]
|
/frameworks/av/media/libstagefright/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/java/android/text/format/ |
D | DateFormat.java | 211 final String pattern = sdf.toPattern(); in is24HourLocale() local 212 is24Hour = hasDesignator(pattern, 'H'); in is24HourLocale() 344 public static char[] getDateFormatOrder(String pattern) { in getDateFormatOrder() argument 351 for (int i = 0; i < pattern.length(); ++i) { in getDateFormatOrder() 352 char ch = pattern.charAt(i); in getDateFormatOrder() 368 + pattern); in getDateFormatOrder() 370 if (i < pattern.length() - 1 && pattern.charAt(i + 1) == '\'') { in getDateFormatOrder() 373 i = pattern.indexOf('\'', i + 1); in getDateFormatOrder() 375 throw new IllegalArgumentException("Bad quoting in " + pattern); in getDateFormatOrder()
|
/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/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/ml/nn/tools/api/ |
D | generate_api.py | 106 for pattern in patterns: 107 wildcard_match = re.search("^(.*)\*$", pattern) 108 lowest_version_match = re.search("^(.*)\+$", pattern) 118 "Kind \"" + pattern + "\" at " + self.context() + 121 lowest_pos = self.kinds.index(pattern[:-1]) 125 if not self.kinds is None and not pattern in self.kinds: 127 print("WARNING: kind \"" + pattern + "\" at " + self.context() + 129 if pattern == self.kind:
|
D | README.md | 182 `*` to indicate a *wildcard pattern* or `+` to indicate a *lowest version 183 pattern*. Any other pattern is a *simple pattern*. The condition is **on** in 185 * One of the simple pattern tokens equals the "kind" 186 * One of the wildcard pattern tokens less the `*` is a prefix of the "kind" 187 * One of the lowest version pattern tokens less the `+` matches the "kind" or 188 the "kind" matches any token to the right from the lowest version pattern in 204 * Ordering the possible kinds for the *lowest version pattern* (see the section 205 above for the explanation of the pattern).
|
/frameworks/av/media/ndk/ |
D | NdkMediaCodec.cpp | 749 cryptoinfo_pattern_t pattern; member 769 CryptoPlugin::Pattern pattern; in AMediaCodec_queueSecureInputBuffer() local 770 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; in AMediaCodec_queueSecureInputBuffer() 771 pattern.mSkipBlocks = crypto->pattern.skipBlocks; in AMediaCodec_queueSecureInputBuffer() 781 pattern, in AMediaCodec_queueSecureInputBuffer() 805 cryptoinfo_pattern_t *pattern) { in AMediaCodecCryptoInfo_setPattern() argument 806 info->pattern.encryptBlocks = pattern->encryptBlocks; in AMediaCodecCryptoInfo_setPattern() 807 info->pattern.skipBlocks = pattern->skipBlocks; in AMediaCodecCryptoInfo_setPattern() 836 ret->pattern.encryptBlocks = 0; in AMediaCodecCryptoInfo_new() 837 ret->pattern.skipBlocks = 0; in AMediaCodecCryptoInfo_new()
|
/frameworks/native/services/inputflinger/reader/mapper/ |
D | VibratorInputMapper.cpp | 42 void VibratorInputMapper::vibrate(const nsecs_t* pattern, size_t patternSize, ssize_t repeat, in vibrate() argument 50 patternStr += StringPrintf("%" PRId64, pattern[i]); in vibrate() 57 memcpy(mPattern, pattern, patternSize * sizeof(nsecs_t)); in vibrate()
|
/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/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/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 413 public byte[] verifyPattern(List<LockPatternView.Cell> pattern, long challenge, int userId) in verifyPattern() argument 416 return verifyCredential(patternToByteArray(pattern), CREDENTIAL_TYPE_PATTERN, challenge, in verifyPattern() 426 public boolean checkPattern(List<LockPatternView.Cell> pattern, int userId) in checkPattern() argument 428 return checkPattern(pattern, userId, null /* progressCallback */); in checkPattern() 437 public boolean checkPattern(List<LockPatternView.Cell> pattern, int userId, in checkPattern() argument 441 return checkCredential(patternToByteArray(pattern), CREDENTIAL_TYPE_PATTERN, userId, in checkPattern() 756 public boolean saveLockPattern(List<LockPatternView.Cell> pattern, byte[] savedPattern, in saveLockPattern() argument 758 return saveLockPattern(pattern, savedPattern, userId, false); in saveLockPattern() 771 public boolean saveLockPattern(List<LockPatternView.Cell> pattern, byte[] savedPattern, in saveLockPattern() argument 777 if (pattern == null || pattern.size() < MIN_LOCK_PATTERN_SIZE) { in saveLockPattern() [all …]
|
D | LockPatternChecker.java | 65 final List<LockPatternView.Cell> pattern, in verifyPattern() argument 77 patternCopy = new ArrayList(pattern); in verifyPattern() 108 final List<LockPatternView.Cell> pattern, in checkPattern() argument 119 patternCopy = new ArrayList(pattern); in checkPattern()
|
/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/base/core/tests/coretests/src/android/util/ |
D | PatternsTest.java | 63 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); in testIanaTopLevelDomains_matchesValidTld() local 64 assertTrue("Should match 'com'", pattern.matcher("com").matches()); in testIanaTopLevelDomains_matchesValidTld() 69 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); in testIanaTopLevelDomains_matchesValidNewTld() local 70 assertTrue("Should match 'me'", pattern.matcher("me").matches()); in testIanaTopLevelDomains_matchesValidNewTld() 75 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); in testIanaTopLevelDomains_matchesPunycodeTld() local 76 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches()); in testIanaTopLevelDomains_matchesPunycodeTld() 81 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); in testIanaTopLevelDomains_matchesIriTLD() local 82 assertTrue("Should match IRI TLD", pattern.matcher("\uD55C\uAD6D").matches()); in testIanaTopLevelDomains_matchesIriTLD() 87 Pattern pattern = Pattern.compile(Patterns.IANA_TOP_LEVEL_DOMAINS); in testIanaTopLevelDomains_doesNotMatchWrongTld() local 88 assertFalse("Should not match 'mem'", pattern.matcher("mem").matches()); in testIanaTopLevelDomains_doesNotMatchWrongTld() [all …]
|
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/ |
D | CryptoPlugin.cpp | 50 const Pattern& pattern, in decrypt() argument 62 secure, keyId, iv, mode, pattern, subSamples, source, offset, destination, in decrypt() 83 const Pattern& pattern, in decrypt_1_2() argument 89 UNUSED(pattern); in decrypt_1_2()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | DateView.java | 120 public void setDatePattern(String pattern) { in setDatePattern() argument 121 if (TextUtils.equals(pattern, mDatePattern)) { in setDatePattern() 124 mDatePattern = pattern; in setDatePattern()
|