/dalvik/tests/020-string/src/ |
Main.java | 28 String testStr; 31 testStr = baseStr.substring(4, baseStr.length() - 3); 32 System.out.println("testStr is '" + testStr + "'"); 35 for (i = 0; i < testStr.length(); i++) 36 System.out.print(testStr.charAt(i)); 40 if (testStr.length() != testStr2.length()) 43 System.out.println("Compare result is " + testStr.compareTo(testStr2)); 51 testStr.charAt(500);
|
/dalvik/tests/082-inline-execute/src/ |
Main.java | 58 String testStr = "Now is the time"; 60 int over = testStr.length(); 63 int at0 = testStr.charAt(0); 64 int at1 = testStr.charAt(1); 65 int at10 = testStr.charAt(10); 66 int atLast = testStr.charAt(testStr.length()-1); 69 System.out.println(testStr + "[0] = \"" + (char)at0 + "\""); 70 System.out.println(testStr + "[1] = \"" + (char)at1 + "\""); 71 System.out.println(testStr + "[10] = \"" + (char)at10 + "\"") [all...] |
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
SmsMessageBodyTest.java | 84 String testStr = sb.toString(); 89 callGsmLengthMethods(testStr, false, values); 90 callGsmLengthMethods(testStr, true, values); 91 callCdmaLengthMethods(testStr, false, values); 92 callCdmaLengthMethods(testStr, true, values); 128 String testStr = sb.toString(); 135 callGsmLengthMethods(testStr, false, values); 136 callCdmaLengthMethods(testStr, false, values); 137 callGsmLengthMethods(testStr, true, values7bit); 138 callCdmaLengthMethods(testStr, true, values7bit) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
SearchQueryResults.java | 111 String testStr = appData.getString("demo_key"); 112 mAppDataText.setText((testStr == null) ? "<no app data>" : testStr);
|
/external/chromium/third_party/icu/source/test/iotest/ |
strtst.c | 249 UChar testStr[256]; 254 UFILE *strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), "en_US"); 264 u_austrcpy(cBuffer,testStr); 265 if (u_strcmp(testStr, uBuffer) != 0) { 289 u_austrcpy(cBuffer,testStr); 290 if (u_strcmp(testStr, uBuffer) != 0) { 297 strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), NULL) [all...] |
stream.cpp | 70 static const char testStr[] = "\x42\x65\x67\x69\x6E\x6E\x69\x6E\x67\x20\x6F\x66\x20\x74\x65\x73\x74\x20\x73\x74\x72\x31\x20\x20\x20\x3C\x3C\x32\x31\x20" UTF8_NEW_LINE "\x20\x55\x54\x46\x2D\x38\x20\xCE\xBC\xF0\x90\x80\x81\xF0\x90\x80\x82"; 106 if (strcmp(testStreamBuf, testStr) != 0) { 107 log_err("Got: \"%s\", Expected: \"%s\"\n", testStreamBuf, testStr);
|
filetst.c | 430 static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don't try to read too much!"; 432 int32_t expectedSize = (int32_t)strlen(testStr); 451 u_uastrncpy(buffer, testStr, expectedSize+1); 493 u_uastrncpy(buffer, testStr, expectedSize+1); 535 u_uastrncpy(buffer, testStr, expectedSize+1); 587 static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don't try to read too much!"; 590 int32_t expectedSize = (int32_t)strlen(testStr); 601 fwrite(testStr, sizeof(testStr[0]), expectedSize, stdFile); 603 fwrite("\n", sizeof(testStr[0]), 1, stdFile) [all...] |
/external/icu4c/test/iotest/ |
strtst.c | 249 UChar testStr[256]; 254 UFILE *strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), "en_US"); 264 u_austrcpy(cBuffer,testStr); 265 if (u_strcmp(testStr, uBuffer) != 0) { 289 u_austrcpy(cBuffer,testStr); 290 if (u_strcmp(testStr, uBuffer) != 0) { 297 strFile = u_fstropen(testStr, sizeof(testStr)/sizeof(testStr[0]), NULL) [all...] |
stream.cpp | 71 static const char testStr[] = "\x42\x65\x67\x69\x6E\x6E\x69\x6E\x67\x20\x6F\x66\x20\x74\x65\x73\x74\x20\x73\x74\x72\x31\x20\x20\x20\x3C\x3C\x32\x31\x20" UTF8_NEW_LINE "\x20\x55\x54\x46\x2D\x38\x20\xCE\xBC\xF0\x90\x80\x81\xF0\x90\x80\x82"; 107 if (strcmp(testStreamBuf, testStr) != 0) { 108 log_err("Got: \"%s\", Expected: \"%s\"\n", testStreamBuf, testStr);
|
filetst.c | 434 static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don't try to read too much!"; 436 int32_t expectedSize = (int32_t)strlen(testStr); 455 u_uastrncpy(buffer, testStr, expectedSize+1); 497 u_uastrncpy(buffer, testStr, expectedSize+1); 539 u_uastrncpy(buffer, testStr, expectedSize+1); 591 static const char testStr[] = "This is a test string that tests u_fgets. It makes sure that we don't try to read too much!"; 594 int32_t expectedSize = (int32_t)strlen(testStr); 605 fwrite(testStr, sizeof(testStr[0]), expectedSize, stdFile); 607 fwrite("\n", sizeof(testStr[0]), 1, stdFile) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/archive/tests/java/util/zip/ |
DeflaterInputStreamTest.java | 30 String testStr = "Hi,this is a test"; 134 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); 257 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); 286 is = new ByteArrayInputStream(testStr.getBytes("UTF-8")); 370 is = new ByteArrayInputStream(testStr.getBytes("UTF-8"));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
FilterTest.java | 56 final String testStr = "Test"; 57 assertEquals(testStr, filter.convertResultToString(testStr));
|
/frameworks/base/tests/CoreTests/android/core/ |
PerformanceTests.java | 563 String testStr = TEST_STRING; 567 length = testStr.length(); 568 length = testStr.length(); 569 length = testStr.length(); 570 length = testStr.length(); 571 length = testStr.length(); 572 length = testStr.length(); 573 length = testStr.length(); 574 length = testStr.length(); 575 length = testStr.length() [all...] |
/external/chromium/third_party/icu/source/test/intltest/ |
canittst.cpp | 149 UnicodeString testStr = CharsToUnicodeString(testArray[i][0]); 150 it.setSource(testStr, status); 162 expectEqual(i + ": ", testStr, collectionToString(set), CharsToUnicodeString(testArray[i][1]));
|
/external/icu4c/test/intltest/ |
canittst.cpp | 153 UnicodeString testStr = CharsToUnicodeString(testArray[i][0]); 154 it.setSource(testStr, status); 166 expectEqual(i + ": ", testStr, collectionToString(set), CharsToUnicodeString(testArray[i][1]));
|
/libcore/luni/src/test/java/org/apache/harmony/nio/tests/java/nio/ |
CharBufferTest.java | [all...] |
/cts/tools/host/src/com/android/cts/ |
ConsoleUi.java | 254 final String testStr = CTSCommand.OPTION_T + "/" + CTSCommand.OPTION_TEST; 264 + cmdStr + " test_plan_name " + testStr + " test_name" 270 + cmdStr + " test_plan_name " + testStr + " test_name " [all...] |
/external/icu4c/test/cintltst/ |
reapits.c | [all...] |