Home
last modified time | relevance | path

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

12345

/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 …]
DNullVibrator.java46 public void vibrate(long[] pattern, int repeat) { in vibrate() argument
47 if (repeat >= pattern.length) { in vibrate()
64 public void vibrate(int owningUid, String owningPackage, long[] pattern, int repeat) { in vibrate() argument
65 vibrate(pattern, repeat); in vibrate()
DSystemVibrator.java66 public void vibrate(long[] pattern, int repeat) { in vibrate() argument
67 vibrate(Process.myUid(), mPackageName, pattern, repeat); in vibrate() local
90 public void vibrate(int owningUid, String owningPackage, long[] pattern, int repeat) { in vibrate() argument
98 if (repeat < pattern.length) { in vibrate()
100 mService.vibratePattern(owningUid, owningPackage, pattern, repeat, mToken); in vibrate()
DVibrator.java73 public abstract void vibrate(long[] pattern, int repeat); in vibrate() argument
87 public abstract void vibrate(int owningUid, String owningPackage, long[] pattern, int repeat); in vibrate() argument
/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/java/com/android/server/
DVibratorService.java94 Vibration(IBinder token, long[] pattern, int repeat, int uid, String packageName) { in Vibration() argument
95 this(token, 0, pattern, repeat, uid, packageName); in Vibration()
98 private Vibration(IBinder token, long millis, long[] pattern, in Vibration() argument
103 mPattern = pattern; in Vibration()
225 private boolean isAll0(long[] pattern) { in isAll0() argument
226 int N = pattern.length; in isAll0()
228 if (pattern[i] != 0) { in isAll0()
235 public void vibratePattern(int uid, String packageName, long[] pattern, int repeat, in vibratePattern() argument
247 int N = pattern.length; in vibratePattern()
249 s += " " + pattern[i]; in vibratePattern()
[all …]
DConsumerIrService.java53 private static native int halTransmit(int halObject, int carrierFrequency, int[] pattern); in halTransmit() argument
91 public void transmit(String packageName, int carrierFrequency, int[] pattern) { in transmit() argument
99 for (int slice : pattern) { in transmit()
114 int err = halTransmit(mHal, carrierFrequency, pattern); in transmit()
DLockSettingsService.java277 public void setLockPattern(String pattern, int userId) throws RemoteException { in setLockPattern() argument
280 maybeUpdateKeystore(pattern, userId); in setLockPattern()
283 LockPatternUtils.stringToPattern(pattern)); in setLockPattern()
297 public boolean checkPattern(String pattern, int userId) throws RemoteException { in checkPattern() argument
310 LockPatternUtils.stringToPattern(pattern)); in checkPattern()
312 if (matched && !TextUtils.isEmpty(pattern)) { in checkPattern()
313 maybeUpdateKeystore(pattern, userId); in checkPattern()
/frameworks/base/libs/hwui/
DDither.cpp49 const GLfloat pattern[] = { in bindDitherTexture() local
58 GL_RED, GL_FLOAT, &pattern); in bindDitherTexture()
60 const uint8_t pattern[] = { in bindDitherTexture() local
69 GL_ALPHA, GL_UNSIGNED_BYTE, &pattern); in bindDitherTexture()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp268 String8 pattern; in load_driver() local
269 pattern.appendFormat("lib%s", kind); in load_driver()
282 if (find(result, pattern, searchPaths[i], true)) { in load_driver()
292 pattern.append("_"); in load_driver()
294 if (find(result, pattern, searchPaths[i], false)) { in load_driver()
306 const String8& pattern, const char* const search, bool exact) { in load_driver() argument
319 absolutePath.appendFormat("%s/%s.so", search, pattern.string()); in load_driver()
339 if (strstr(e->d_name, pattern.string()) == e->d_name) { in load_driver()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/
DomxVCM4P2_EncodeVLCZigzag_IntraDCVLC.c88 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC() argument
106 if (pattern) in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC()
155 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraDCVLC()
DomxVCM4P2_EncodeVLCZigzag_IntraACVLC.c81 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraACVLC() argument
92 pattern, in omxVCM4P2_EncodeVLCZigzag_IntraACVLC()
DomxVCM4P2_EncodeVLCZigzag_Inter.c70 OMX_U8 pattern, in omxVCM4P2_EncodeVLCZigzag_Inter() argument
84 if (pattern) in omxVCM4P2_EncodeVLCZigzag_Inter()
DarmVCM4P2_EncodeVLCZigzag_intra.c77 OMX_U8 pattern, in armVCM4P2_EncodeVLCZigzag_Intra() argument
94 if (pattern) in armVCM4P2_EncodeVLCZigzag_Intra()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternView.java229 void onPatternCellAdded(List<Cell> pattern); in onPatternCellAdded() argument
235 void onPatternDetected(List<Cell> pattern); in onPatternDetected() argument
343 public void setPattern(DisplayMode displayMode, List<Cell> pattern) { in setPattern() argument
345 mPattern.addAll(pattern); in setPattern()
347 for (Cell cell : pattern) { in setPattern()
521 final ArrayList<Cell> pattern = mPattern; in detectAndAddHit() local
522 if (!pattern.isEmpty()) { in detectAndAddHit()
523 final Cell lastCell = pattern.get(pattern.size() - 1); in detectAndAddHit()
699 final ArrayList<Cell> pattern = mPattern; in handleActionMove()
700 final Cell lastCell = pattern.get(patternSize - 1); in handleActionMove()
[all …]
DLockPatternUtils.java291 public boolean checkPattern(List<LockPatternView.Cell> pattern) { in checkPattern() argument
294 return getLockSettings().checkPattern(patternToString(pattern), userId); in checkPattern()
488 public void saveLockPattern(List<LockPatternView.Cell> pattern) { in saveLockPattern() argument
489 this.saveLockPattern(pattern, false); in saveLockPattern()
497 public void saveLockPattern(List<LockPatternView.Cell> pattern, boolean isFallback) { in saveLockPattern() argument
499 getLockSettings().setLockPattern(patternToString(pattern), getCurrentOrCallingUserId()); in saveLockPattern()
501 if (pattern != null) { in saveLockPattern()
507 pattern.size(), 0, 0, 0, 0, 0, 0, getCurrentOrCallingUserId()); in saveLockPattern()
758 public static String patternToString(List<LockPatternView.Cell> pattern) { in patternToString() argument
759 if (pattern == null) { in patternToString()
[all …]
DILockSettings.aidl27 void setLockPattern(in String pattern, int userId); in setLockPattern() argument
28 boolean checkPattern(in String pattern, int userId); in checkPattern() argument
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
Dcheck_dims.rs3 int pattern;
12 if (*o != pattern) {
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DKeyguardPatternView.java252 public void onPatternCellAdded(List<LockPatternView.Cell> pattern) { in onPatternCellAdded() argument
255 if (pattern.size() > MIN_PATTERN_BEFORE_POKE_WAKELOCK) { in onPatternCellAdded()
263 public void onPatternDetected(List<LockPatternView.Cell> pattern) { in onPatternDetected() argument
264 if (mLockPatternUtils.checkPattern(pattern)) { in onPatternDetected()
269 if (pattern.size() > MIN_PATTERN_BEFORE_POKE_WAKELOCK) { in onPatternDetected()
274 pattern.size() >= LockPatternUtils.MIN_PATTERN_REGISTER_FAIL; in onPatternDetected()
/frameworks/base/core/java/android/content/pm/
DPathPermission.java31 public PathPermission(String pattern, int type, String readPermission, in PathPermission() argument
33 super(pattern, type); in PathPermission()
/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/base/core/java/android/text/util/
DLinkify.java306 public static final void addLinks(TextView text, Pattern pattern, String scheme) { in addLinks() argument
307 addLinks(text, pattern, scheme, null, null); in addLinks()
346 public static final boolean addLinks(Spannable text, Pattern pattern, String scheme) { in addLinks() argument
347 return addLinks(text, pattern, scheme, null, null); in addLinks()
429 Spannable s, Pattern pattern, String[] schemes, in gatherLinks() argument
431 Matcher m = pattern.matcher(s); in gatherLinks()
/frameworks/base/core/java/android/hardware/
DConsumerIrManager.java78 public void transmit(int carrierFrequency, int[] pattern) { in transmit() argument
85 mService.transmit(mPackageName, carrierFrequency, pattern); in transmit()
DIConsumerIrService.aidl23 void transmit(String packageName, int carrierFrequency, in int[] pattern); in transmit() argument
/frameworks/base/services/jni/
Dcom_android_server_ConsumerIrService.cpp54 jint carrierFrequency, jintArray pattern) { in halTransmit() argument
58 ScopedIntArrayRO cPattern(env, pattern); in halTransmit()

12345