Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 188) sorted by relevance

12345678

/frameworks/base/core/java/android/os/
DPatternMatcher.java51 public PatternMatcher(String pattern, int type) { in PatternMatcher() argument
52 mPattern = pattern; in PatternMatcher()
109 static boolean matchPattern(String pattern, String match, int type) { in matchPattern() argument
112 return pattern.equals(match); in matchPattern()
114 return match.startsWith(pattern); in matchPattern()
119 final int NP = pattern.length(); in matchPattern()
125 char nextChar = pattern.charAt(0); in matchPattern()
129 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchPattern()
134 nextChar = ip < NP ? pattern.charAt(ip) : 0; in matchPattern()
144 nextChar = pattern.charAt(ip); in matchPattern()
[all …]
DVibrator.java103 public void vibrate(long[] pattern, int repeat) { in vibrate() argument
104 vibrate(pattern, repeat, null); in vibrate()
131 public void vibrate(long[] pattern, int repeat, AudioAttributes attributes) { in vibrate() argument
132 vibrate(Process.myUid(), mPackageName, pattern, repeat, attributes); in vibrate() local
148 public abstract void vibrate(int uid, String opPkg, long[] pattern, int repeat, in vibrate() argument
DSystemVibrator.java78 public void vibrate(int uid, String opPkg, long[] pattern, int repeat, in vibrate() argument
87 if (repeat < pattern.length) { in vibrate()
89 mService.vibratePattern(uid, opPkg, pattern, repeat, usageForAttributes(attributes), in vibrate()
DNullVibrator.java52 public void vibrate(int uid, String opPkg, long[] pattern, int repeat, in vibrate() argument
54 if (repeat >= pattern.length) { in vibrate()
/frameworks/base/media/mca/filterfw/java/android/filterfw/io/
DPatternScanner.java44 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/services/core/java/com/android/server/
DVibratorService.java110 Vibration(IBinder token, long[] pattern, int repeat, int usageHint, int uid, in Vibration() argument
112 this(token, 0, pattern, repeat, usageHint, uid, opPkg); in Vibration()
115 private Vibration(IBinder token, long millis, long[] pattern, in Vibration() argument
120 mPattern = pattern; in Vibration()
161 long[] pattern; field in VibratorService.VibrationInfo
167 public VibrationInfo(long timeout, long startTime, long[] pattern, int repeat, in VibrationInfo() argument
171 this.pattern = pattern; in VibrationInfo()
186 .append(Arrays.toString(pattern)) in toString()
317 private boolean isAll0(long[] pattern) { in isAll0() argument
318 int N = pattern.length; in isAll0()
[all …]
DConsumerIrService.java33 private static native int halTransmit(long halObject, 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(mNativeHal, carrierFrequency, pattern); in transmit()
/frameworks/base/core/java/android/text/util/
DLinkify.java330 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument
332 addLinks(text, pattern, scheme, null, null, null); in addLinks()
349 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument
352 addLinks(text, pattern, scheme, null, matchFilter, transformFilter); in addLinks()
372 public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, in addLinks() argument
377 boolean linksAdded = addLinks(spannable, pattern, defaultScheme, schemes, matchFilter, in addLinks()
394 public static final boolean addLinks(@NonNull Spannable text, @NonNull Pattern pattern, in addLinks() argument
396 return addLinks(text, pattern, scheme, null, null, null); in addLinks()
414 public static final boolean addLinks(@NonNull Spannable spannable, @NonNull Pattern pattern, in addLinks() argument
417 return addLinks(spannable, pattern, scheme, null, matchFilter, in addLinks()
[all …]
/frameworks/av/media/ndk/
DNdkMediaCodec.cpp389 cryptoinfo_pattern_t pattern; member
409 CryptoPlugin::Pattern pattern; in AMediaCodec_queueSecureInputBuffer() local
410 pattern.mEncryptBlocks = crypto->pattern.encryptBlocks; in AMediaCodec_queueSecureInputBuffer()
411 pattern.mSkipBlocks = crypto->pattern.skipBlocks; in AMediaCodec_queueSecureInputBuffer()
421 pattern, in AMediaCodec_queueSecureInputBuffer()
435 cryptoinfo_pattern_t *pattern) { in AMediaCodecCryptoInfo_setPattern() argument
436 info->pattern.encryptBlocks = pattern->encryptBlocks; in AMediaCodecCryptoInfo_setPattern()
437 info->pattern.skipBlocks = pattern->skipBlocks; in AMediaCodecCryptoInfo_setPattern()
460 ret->pattern.encryptBlocks = 0; in AMediaCodecCryptoInfo_new()
461 ret->pattern.skipBlocks = 0; in AMediaCodecCryptoInfo_new()
/frameworks/base/libs/hwui/
DDither.cpp50 const GLfloat pattern[] = { in bindDitherTexture() local
58 GL_RED, GL_FLOAT, &pattern); in bindDitherTexture()
60 const uint8_t pattern[] = { in bindDitherTexture() local
68 GL_ALPHA, GL_UNSIGNED_BYTE, &pattern); in bindDitherTexture()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp336 String8 pattern; in load_driver() local
337 pattern.appendFormat("lib%s", kind); in load_driver()
355 if (find(result, pattern, searchPaths[i], true)) { in load_driver()
365 pattern.append("_"); in load_driver()
367 if (find(result, pattern, searchPaths[i], false)) { in load_driver()
379 const String8& pattern, const char* const search, bool exact) { in load_driver() argument
382 absolutePath.appendFormat("%s/%s.so", search, pattern.string()); in load_driver()
402 if (strstr(e->d_name, pattern.string()) == e->d_name) { in load_driver()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java313 public byte[] verifyPattern(List<LockPatternView.Cell> pattern, long challenge, int userId) in verifyPattern() argument
318 getLockSettings().verifyPattern(patternToString(pattern), challenge, userId); in verifyPattern()
342 public boolean checkPattern(List<LockPatternView.Cell> pattern, int userId) in checkPattern() argument
347 getLockSettings().checkPattern(patternToString(pattern), userId); in checkPattern()
601 public void saveLockPattern(List<LockPatternView.Cell> pattern, int userId) { in saveLockPattern() argument
602 this.saveLockPattern(pattern, null, userId); in saveLockPattern()
610 … public void saveLockPattern(List<LockPatternView.Cell> pattern, String savedPattern, int userId) { in saveLockPattern() argument
612 if (pattern == null || pattern.size() < MIN_LOCK_PATTERN_SIZE) { in saveLockPattern()
617 getLockSettings().setLockPattern(patternToString(pattern), savedPattern, userId); in saveLockPattern()
626 String stringPattern = patternToString(pattern); in saveLockPattern()
[all …]
DLockPatternChecker.java51 final List<LockPatternView.Cell> pattern, in verifyPattern() argument
61 return utils.verifyPattern(pattern, challenge, userId); in verifyPattern()
86 final List<LockPatternView.Cell> pattern, in checkPattern() argument
95 return utils.checkPattern(pattern, userId); in checkPattern()
DILockSettings.aidl30 void setLockPattern(in String pattern, in String savedPattern, int userId); in setLockPattern() argument
32 VerifyCredentialResponse checkPattern(in String pattern, int userId); in checkPattern() argument
33 VerifyCredentialResponse verifyPattern(in String pattern, long challenge, int userId); in verifyPattern() argument
/frameworks/minikin/tools/
Dmk_hyb_file.py116 def trim(pattern): argument
117 for ix in range(len(pattern)):
118 if pattern[ix] != 0:
119 return pattern[ix:]
122 def pat_to_binary(pattern): argument
123 return b''.join(struct.pack('B', x) for x in pattern)
302 def generate_header(alphabet, trie, pattern): argument
306 file_size = pattern_off + len(pattern)
406 patmap, pattern = generate_pattern([n.res for n in hyph.node_list])
408 header = generate_header(alphabet, trie, pattern)
[all …]
/frameworks/av/media/libstagefright/foundation/
DAStringUtils.cpp51 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/minikin/doc/
Dhyb_file_format.md1 # 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/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DomxVCM4P2_EncodeVLCZigzag_IntraDCVLC.c103 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC() argument
121 if (pattern) in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC()
170 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC()
DomxVCM4P2_EncodeVLCZigzag_IntraACVLC.c96 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraACVLC() argument
107 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraACVLC()
DomxVCM4P2_EncodeVLCZigzag_Inter.c85 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_Inter() argument
99 if (pattern) in omxVCM4P2_EncodeVLCZigzag_Inter()
/frameworks/base/core/tests/coretests/src/android/util/
DPatternsTest.java63 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/rs/java/tests/RsTest/src/com/android/rs/test/
Dcheck_dims.rs3 int pattern;
12 if (*o != pattern) {
/frameworks/base/docs/html/training/design-navigation/
Ddescendant-lateral.jd70 …igation interface with relevant screen map excerpt. Also shows dashboard pattern discussed below."…
72 …igation interface with relevant screen map excerpt. Also shows dashboard pattern discussed below.<…
75pattern for accessing different top-level application sections, is the dashboard pattern. A <em>da…
98 <p>There are several issues with this pattern. Deep, list-based navigation, known as <em>drill-down…
111 <p>Using tabs is a very popular solution for lateral navigation. This pattern allows grouping of si…
127 href="{@docRoot}design/patterns/actionbar.html">pattern docs</a> at Android Design) are sometimes
138 …ally acceptable, and the tradeoff commonly weighs in favor of using this pattern. You should also …
146 href="{@docRoot}design/patterns/swipe-views.html">Swipe Views</a> pattern guides.</p>
149pattern is horizontal paging, also referred to as swipe views. This pattern applies best to collec…
158 …ntext to the user. This practice is especially necessary when using this pattern for lateral navig…
[all …]
/frameworks/av/media/libmedia/
DICrypto.cpp101 CryptoPlugin::Mode mode, const CryptoPlugin::Pattern &pattern, in decrypt()
110 data.writeInt32(pattern.mEncryptBlocks); in decrypt()
111 data.writeInt32(pattern.mSkipBlocks); in decrypt()
285 CryptoPlugin::Pattern pattern; in onTransact() local
286 pattern.mEncryptBlocks = data.readInt32(); in onTransact()
287 pattern.mSkipBlocks = data.readInt32(); in onTransact()
356 mode, pattern, in onTransact()
/frameworks/data-binding/gradlePlugin/src/main/java/android/databinding/tool/
DDataBindingExcludeGeneratedTask.java101 private void exclude(String pattern) { in exclude() argument
102 L.d("exclude %s", pattern); in exclude()
103 packageTask.exclude(pattern); in exclude()

12345678