| /dalvik/libcore/logging/src/main/java/java/util/logging/ |
| FileHandler.java | 40 * these files are generated by given name pattern, see below for details. 68 * <li>java.util.logging.FileHandler.pattern specifies name pattern for the 72 * Name pattern is a string that may include some special substrings, which will 86 * generation field("%g") has not been specified in the pattern, then the 93 * pattern and some contention on a file does occur, then a unique numerical 123 // the pattern for output file name 124 private String pattern; field in class:FileHandler 233 pattern = (null == p) ? getStringProperty(className + ".pattern", [all...] |
| /dalvik/libcore/regex/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
| Pattern2Test.java | 26 import java.util.regex.Pattern; 30 @TestTargetClass(Pattern.class) 32 * Tests simple Pattern compilation and Matcher methods 44 Pattern p = Pattern.compile("foo.*"); 56 assertTrue(Pattern.matches("foo.*", "foo123")); 57 assertFalse(Pattern.matches("foo.*", "fox")); 59 assertFalse(Pattern.matches("bar", "foobar")); 61 assertTrue(Pattern.matches("", "")); 66 notes = "Verifies compile(String regex) method and matcher for created pattern." 1351 Pattern pattern = Pattern local 1365 Pattern pattern = Pattern.compile(findString, 0); local 1477 Pattern pattern = Pattern.compile(findString, 0); local [all...] |
| /dalvik/libcore/text/src/test/java/org/apache/harmony/text/tests/java/text/ |
| ChoiceFormatTest.java | 219 assertEquals("Return value should be empty string for invalid pattern", 530 assertEquals("Unused message format returning incorrect pattern", 533 String pattern = f1.toPattern(); local 535 "Wrong pattern: " + pattern, 536 pattern 544 assertEquals("Return value should be empty string for invalid pattern",
|
| MessageFormatTest.java | 208 assertEquals("Wrong pattern", "{0}", format.toPattern()); 213 assertEquals("Wrong time pattern", "{0,time}", format.toPattern()); 217 assertEquals("Wrong short time pattern", "{0,time,short}", format 222 assertEquals("Wrong medium time pattern", "{0,time}", format 227 assertEquals("Wrong long time pattern", "{0,time,long}", format 237 // assertEquals("Wrong full time pattern", "{0,time,full}", format 244 assertEquals("Wrong date pattern", "{0,date}", format.toPattern()); 248 assertEquals("Wrong short date pattern", "{0,date,short}", format 253 assertEquals("Wrong medium date pattern", "{0,date}", format 258 assertEquals("Wrong long date pattern", "{0,date,long}", forma 518 String pattern = "On {4,date} at {3,time}, he ate {2,number, integer} " + local 553 String pattern = "Date: {0,date} Currency: {1, number, currency} Integer: {2, number, integer}"; local 720 String pattern = "getLocale test {0,number,#,####}"; local 1108 String pattern = "[{0}]"; local 1125 String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#off|1#on} F {0, date}"; local 1175 String pattern = "A {3, number, currency} B {2, time} C {0, number, percent} D {4} E {1,choice,0#off|1#on} F {0, date}"; local [all...] |
| SimpleDateFormatTest.java | 55 public void test(String pattern, Calendar cal, String expected, 59 format.applyPattern(pattern); 64 assertTrue("Wrong format: \"" + pattern + "\" expected: " 67 assertTrue("Wrong begin position: " + pattern + " expected: " 70 assertTrue("Wrong end position: " + pattern + " expected: " 78 .println("Wrong format: \"" + pattern 90 public void parse(String pattern, String input, Date expected, 92 pFormat.applyPattern(pattern); 96 assertTrue("Wrong result: " + pattern + " input: " + input 99 assertTrue("Wrong end position: " + pattern + " input: " + input 1075 String pattern = f2.toLocalizedPattern(); local 1104 String pattern = "yyyy mm dd"; local [all...] |
| /external/bluetooth/bluez/compat/ |
| sdp.c | 72 unsigned char pattern[] = { 0x05, 0x07, 0x19, 0x00, 0x2a, 0x00, 0xff, local 79 for (i = 0; i < size - sizeof(pattern); i++) { 80 if (!memcmp(data + i, pattern, sizeof(pattern))) {
|
| /external/bluetooth/bluez/src/ |
| sdpd-service.c | 282 server->pattern = NULL; 388 sdp_list_t *pattern; local 412 for (pattern = rec->pattern; pattern; pattern = pattern->next) { 415 if (pattern->data == NULL) 418 sdp_uuid2strn((uuid_t *) pattern->data, uuid, sizeof(uuid)); 419 debug("Record pattern UUID %s", uuid) [all...] |
| sdpd-request.c | 301 * specified in the "search pattern" must be present in the 302 * "target pattern". Here "search pattern" is the set of UUIDs 303 * specified by the service discovery client and "target pattern" 307 * pattern exists in the target pattern, 0 if the 310 static int sdp_match_uuid(sdp_list_t *search, sdp_list_t *pattern) 315 * from the search pattern 317 int patlen = sdp_list_len(pattern); 330 list = sdp_list_find(pattern, uuid128, sdp_uuid128_cmp) 346 sdp_list_t *pattern = NULL; local 770 sdp_list_t *pattern = NULL, *seq = NULL, *svcList; local [all...] |
| /external/icu4c/i18n/ |
| tridpars.cpp | 235 * @param id the pattern the parse 244 * @param canonID OUTPUT parameter. The pattern for the filter 246 * at the start, if dir is REVERSE. The pattern will be enclosed 287 UnicodeString pattern; local 288 id.extractBetween(pos, ppos.getIndex(), pattern); 296 // In the forward direction, append the pattern to the 302 pattern.insert(0, OPEN_REV); 303 pattern.append(CLOSE_REV); 305 canonID->append(pattern).append(ID_DELIM); 308 pattern.insert(0, OPEN_REV) [all...] |
| dtitvfmt.cpp | 85 sprintf(mesg, "skeleton: %s; pattern: %s\n", result, result_1); 337 * the smallest calendar field in pattern, 344 // If the first part in interval pattern is empty, 345 // the 2nd part of it saves the full-pattern used in fall-back. 346 // For a 'real' interval pattern, the first part will never be empty. 365 // break the interval pattern into 2 parts, 474 const UnicodeString pattern = dtpng->getBestPattern(skeleton, status); local 478 SimpleDateFormat* dtfmt = new SimpleDateFormat(pattern, locale, status); 522 * For example, interval pattern from "Jan 10, 2007 10:10 am" 528 * For example, interval pattern from "Jan 10, 2007 10:10 am" 615 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status); local 640 UnicodeString pattern = fDtpng->getBestPattern(timeSkeleton, status); local 967 UnicodeString pattern = fDtpng->getBestPattern(skeleton, status); local 1015 const UnicodeString* pattern = &intervalPattern; local 1083 UnicodeString pattern; local [all...] |
| dtitvinf.cpp | 244 UnicodeString pattern = UnicodeString(TRUE, resStr, resStrLen); local 245 setFallbackIntervalPattern(pattern, status); 280 const UChar* pattern; local 286 pattern = ures_getNextString(intervalPatterns, &ptLength, &key, 307 setIntervalPatternInternally(skeleton, calendarField, pattern,status);
|
| rematch.cpp | 162 // This handles the common setup to be done after the Pattern is available. 261 // number that is valid for this pattern. 397 // (without this test, a pattern with a zero-length match 437 // Note that it's perfectly OK for a pattern to have a zero-length 445 // (pattern begins with ^ or \A) 542 // Note that it's perfectly OK for a pattern to have a zero-length 568 // Note that it's perfectly OK for a pattern to have a zero-length 760 // pattern 763 const RegexPattern &RegexMatcher::pattern() const { function in class:RegexMatcher 994 // Loop through the input text, searching for the delimiter pattern [all...] |
| ucol_res.cpp | 942 UnicodeString pattern; local [all...] |
| /external/icu4c/test/cintltst/ |
| cmsgtst.c | 245 log_err("umsg_parse could not parse the pattern. Error: %s.\n",u_errorName(ec)); 265 UChar pattern[100], expected[100]; local 275 u_uastrcpy(pattern, "There are {0} files on {1,date}"); 280 resultLengthOut=u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); 286 u_formatMessage( "en_US", pattern, u_strlen(pattern), result, resultlength, &status, str, d); 299 log_verbose("\nTesting message format with another pattern test#2\n"); 300 u_uastrcpy(pattern, "The disk \"{0}\" contains {1,number,integer} file(s)"); 305 pattern, 365 UChar pattern[100]; local 466 UChar pattern[100]; local 561 UChar pattern[100]; local 655 UChar pattern[100]; local 739 UChar pattern[100]; local 851 UChar pattern[100]; local 894 UChar pattern[256]; local 935 UChar pattern[256]; local 1013 UChar pattern[sizeof(patChars)]; local [all...] |
| reapits.c | 41 * pattern: The regex pattern, a (char *) null terminated C string. 43 * flags: Regex flags to set when compiling the pattern 48 #define TEST_SETUP(pattern, testString, flags) { \ 51 re = uregex_openC(pattern, flags, NULL, &status); \ 250 * pattern() 814 const char * pattern = "x(.*?)x"; local 831 re = uregex_openC(pattern, 0, NULL, &status); [all...] |
| /external/icu4c/test/intltest/ |
| msfmrgts.cpp | 75 * Null exception when formatting pattern with MessageFormat 79 UnicodeString pattern [] = { local 95 //Apply pattern with param and print the result 96 messageFormatter->applyPattern(pattern[1], status); 110 //Apply pattern without param and print the result 111 messageFormatter->applyPattern(pattern[0], status); 135 //If we use pattern[1] for the message with param, 137 //If we use pattern[2] for the message with param, 140 //in applyPattern() when the pattern does not 185 logln("Apply with pattern : " + pattern1) 482 UnicodeString pattern = patterns[i]; local [all...] |
| /frameworks/base/services/java/com/android/server/ |
| VibratorService.java | 54 Vibration(IBinder token, long[] pattern, int repeat) { 55 this(token, 0, pattern, repeat); 58 private Vibration(IBinder token, long millis, long[] pattern, 63 mPattern = pattern; 79 // This is a pattern, return false to play the simple 118 // either a timeout of > 0 or a non-null pattern. 134 private boolean isAll0(long[] pattern) { 135 int N = pattern.length; 137 if (pattern[i] != 0) { 144 public void vibratePattern(long[] pattern, int repeat, IBinder token) 308 long[] pattern = mVibration.mPattern; local [all...] |
| /packages/inputmethods/OpenWnn/libs/libwnnDictionary/ |
| OpenWnnDictionaryImplJni.c | 654 /* If the approx pattern registration area was full, return an error code */ 683 const PREDEF_APPROX_PATTERN* pattern; local 685 pattern = predefinedApproxPatterns[ approxPattern ]; 686 if( work->approxSet.charset_count + pattern->size <= NJ_MAX_CHARSET ) { 689 for( i = 0 ; i < pattern->size ; i++ ) { 699 /* Set approximate pattern */ 700 from[ 0 ] = convertUTFCharToNjChar( pattern->from + i * 2 ); /* "2" means the size of UTF-16BE */ 703 to[ 0 ] = convertUTFCharToNjChar( pattern->to + i * 2 ); /* "2" means the size of UTF-16BE */ 706 work->approxSet.charset_count += pattern->size; 713 /* If the approx pattern registration area was full, return an error code * [all...] |
| /system/core/sh/ |
| nodes.h | 89 union node *pattern; member in struct:nclist
|
| /dalvik/libcore/icu/src/main/native/ |
| NativeDecimalFormat.cpp | 92 ScopedJavaUnicodeString pattern(env, pattern0); 98 DecimalFormat* fmt = new DecimalFormat(pattern.unicodeString(), symbols, parseError, status); 200 ScopedJavaUnicodeString pattern(env, pattern0); 204 fmt->applyLocalizedPattern(pattern.unicodeString(), status); 206 fmt->applyPattern(pattern.unicodeString(), status); 213 UnicodeString pattern; local 215 fmt->toLocalizedPattern(pattern); 217 fmt->toPattern(pattern); 219 return env->NewString(pattern.getBuffer(), pattern.length()) [all...] |
| /dalvik/libcore/text/src/main/java/java/text/ |
| DateFormat.java | 341 * Formats the specified object as a string using the pattern of this date 389 * Formats the specified date as a string using the pattern of this date 529 String pattern = localeData.getDateFormat(dateStyle) + " " + localeData.getTimeFormat(timeStyle); local 530 return new SimpleDateFormat(pattern, locale); [all...] |
| MessageFormat.java | 39 * inserts the formatted strings into the pattern at the appropriate places. 46 * behavior. Any locale specific behavior is defined by the pattern that you 132 * table are illegal. A <i>SubformatPattern</i> must be a valid pattern string 283 * example, or by using a pattern (see {@link ChoiceFormat} for more 354 * Constructs a new {@code MessageFormat} using the specified pattern and 358 * the pattern. 362 * if the pattern cannot be parsed. 370 * Constructs a new {@code MessageFormat} using the specified pattern and 374 * the pattern. 376 * if the pattern cannot be parsed 1207 String pattern = null; local 1284 StringBuilder pattern = new StringBuilder(); local 1306 String pattern = (String) fields.get("pattern", null); \/\/$NON-NLS-1\$ local [all...] |
| /dalvik/libcore/xml/src/main/java/org/apache/xpath/compiler/ |
| Compiler.java | 670 * Compile an entire match pattern expression. 716 * Compile a location match pattern unit expression. 810 * Compile a step pattern unit expression, used for both location paths 839 StepPattern pattern; local 851 pattern = new FunctionPattern(compileFunction(opPos), Axis.PARENT, Axis.CHILD); 859 pattern = new StepPattern(DTMFilter.SHOW_DOCUMENT | 868 pattern = new StepPattern(DTMFilter.SHOW_ATTRIBUTE, 882 pattern = new StepPattern(getWhatToShow(startOpPos), 892 pattern = new StepPattern(getWhatToShow(startOpPos), 903 pattern.setPredicates(getCompiledPredicates(opPos + argLen)) [all...] |
| /external/bluetooth/bluez/input/ |
| device.c | 114 static struct input_conn *find_connection(GSList *list, const char *pattern) 121 if (!strcasecmp(iconn->uuid, pattern)) 124 if (!strcasecmp(iconn->alias, pattern)) 488 unsigned char pattern[] = { 0x05, 0x07, 0x19, 0x00, 0x2a, 0x00, 0xff, local 495 for (i = 0; i < size - sizeof(pattern); i++) { 496 if (!memcmp(data + i, pattern, sizeof(pattern))) {
|
| /external/e2fsprogs/misc/ |
| badblocks.c | 224 static void pattern_fill(unsigned char *buffer, unsigned long pattern, 228 unsigned char bpattern[sizeof(pattern)], *ptr; 230 if (pattern == (unsigned long) ~0) { 235 fputs(_("Testing with random pattern: "), stderr); 239 if (pattern == 0) 241 bpattern[i] = pattern & 0xFF; 242 pattern = pattern >> 8; 253 fputs(_("Testing with pattern 0x"), stderr); 439 const unsigned long *pattern; local 566 const unsigned long *pattern; local 833 unsigned long pattern; local [all...] |