/external/stlport/test/eh/ |
test_string.cpp | 30 typedef EH_STD::basic_string<char, EH_STD::char_traits<char>, eh_allocator(char) > TestString; 33 container_category(const TestString&) 39 TestString testString, testString2; 42 while ( testString.size() < ropeSize ) { 43 TestString::value_type x = TestString::value_type(random_number(random_base)) ; // initialize before use 44 testString.append(1, x ); 45 testString2.append(1, TestString::value_type() ); 47 WeakCheck( testString, test_insert_one<TestString>(testString) ) [all...] |
/external/skia/tests/ |
DiscardableMemoryTest.cpp | 14 const char testString[] = "HELLO, WORLD!"; 15 const size_t len = sizeof(testString); 23 memcpy(ptr, testString, sizeof(testString)); 31 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
|
/external/chromium_org/third_party/WebKit/Source/wtf/text/ |
WTFStringTest.cpp | 114 String testString = "1224"; 115 ASSERT_TRUE(testString.is8Bit()); 116 testString.replaceWithLiteral('2', ""); 117 ASSERT_STREQ("14", testString.utf8().data()); 119 testString = "1224"; 120 ASSERT_TRUE(testString.is8Bit()); 121 testString.replaceWithLiteral('2', "3"); 122 ASSERT_STREQ("1334", testString.utf8().data()); 124 testString = "1224"; 125 ASSERT_TRUE(testString.is8Bit()) [all...] |
/libcore/luni/src/test/java/libcore/java/io/ |
OldWriterTest.java | 40 String testString = "My Test String"; 42 tobj.append(testString); 43 assertEquals("Wrong stuff written!", testString, tobj.toString()); 45 tobj.append(testString); 53 String testString = "My Test String"; 55 testString = "0123456789abcdefghijABCDEFGHIJ"; 56 tobj.append(testString, 0, 5); 58 tobj.append(testString, 10, 15); 60 tobj.append(testString, 20, 30); 63 tobj.append(testString, 30, 31) [all...] |
OldStringReaderTest.java | 25 String testString = "This is a test string"; 30 sr = new StringReader(testString); 39 char[] buf = new char[testString.length()]; 40 sr = new StringReader(testString); 54 sr.read(buf, 1, testString.length());
|
OldCharArrayWriterTest.java | 94 String testString = "My Test String"; 99 writer.append(testString, -1, 0); 105 writer.append(testString, 0, -1); 111 writer.append(testString, 1, 0); 117 writer.append(testString, 1, testString.length() + 1); 123 writer.append(testString, 1, 3); 126 testString.substring(1, 3), writer.toString());
|
OldPipedOutputStreamTest.java | 74 static final String testString = "Lorem ipsum dolor sit amet,\n" + 77 static final int testLength = testString.length(); 161 out.write(testString.getBytes(), 0, 10); 165 testString.substring(0, 10), reader.read(10)); 172 out.write(testString.getBytes(), 0, 5); 181 out.write(testString.getBytes(), -1, 10); 188 out.write(testString.getBytes(), 0, -1); 195 out.write(testString.getBytes(), 5, testString.length()); 206 out.write(testString.getBytes(), 0, testString.length()) [all...] |
OldBufferedWriterTest.java | 33 public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutputStream\nTest_java_io_ByteArrayInputStream\nTest_java_io_ByteArrayOutputStream\nTest_java_io_DataInputStream\nTest_java_io_File\nTest_java_io_FileDescriptor\nTest_java_io_FileInputStream\nTest_java_io_FileNotFoundException\nTest_java_io_FileOutputStream\nTest_java_io_FilterInputStream\nTest_java_io_FilterOutputStream\nTest_java_io_InputStream\nTest_java_io_IOException\nTest_java_io_OutputStream\nTest_java_io_PrintStream\nTest_java_io_RandomAccessFile\nTest_java_io_SyncFailedException\nTest_java_lang_AbstractMethodError\nTest_java_lang_ArithmeticException\nTest_java_lang_ArrayIndexOutOfBoundsException\nTest_java_lang_ArrayStoreException\nTest_java_lang_Boolean\nTest_java_lang_Byte\nTest_java_lang_Character\nTest_java_lang_Class\nTest_java_lang_ClassCastException\nTest_java_lang_ClassCircularityError\nTest_java_lang_ClassFormatError\nTest_java_lang_ClassLoader\nTest_java_lang_ClassNotFoundException\nTest_java_lang_CloneNotSupportedException\nTest_java_lang_Double\nTest_java_lang_Error\nTest_java_lang_Exception\nTest_java_lang_ExceptionInInitializerError\nTest_java_lang_Float\nTest_java_lang_IllegalAccessError\nTest_java_lang_IllegalAccessException\nTest_java_lang_IllegalArgumentException\nTest_java_lang_IllegalMonitorStateException\nTest_java_lang_IllegalThreadStateException\nTest_java_lang_IncompatibleClassChangeError\nTest_java_lang_IndexOutOfBoundsException\nTest_java_lang_InstantiationError\nTest_java_lang_InstantiationException\nTest_java_lang_Integer\nTest_java_lang_InternalError\nTest_java_lang_InterruptedException\nTest_java_lang_LinkageError\nTest_java_lang_Long\nTest_java_lang_Math\nTest_java_lang_NegativeArraySizeException\nTest_java_lang_NoClassDefFoundError\nTest_java_lang_NoSuchFieldError\nTest_java_lang_NoSuchMethodError\nTest_java_lang_NullPointerException\nTest_java_lang_Number\nTest_java_lang_NumberFormatException\nTest_java_lang_Object\nTest_java_lang_OutOfMemoryError\nTest_java_lang_RuntimeException\nTest_java_lang_SecurityManager\nTest_java_lang_Short\nTest_java_lang_StackOverflowError\nTest_java_lang_String\nTest_java_lang_StringBuffer\nTest_java_lang_StringIndexOutOfBoundsException\nTest_java_lang_System\nTest_java_lang_Thread\nTest_java_lang_ThreadDeath\nTest_java_lang_ThreadGroup\nTest_java_lang_Throwable\nTest_java_lang_UnknownError\nTest_java_lang_UnsatisfiedLinkError\nTest_java_lang_VerifyError\nTest_java_lang_VirtualMachineError\nTest_java_lang_vm_Image\nTest_java_lang_vm_MemorySegment\nTest_java_lang_vm_ROMStoreException\nTest_java_lang_vm_VM\nTest_java_lang_Void\nTest_java_net_BindException\nTest_java_net_ConnectException\nTest_java_net_DatagramPacket\nTest_java_net_DatagramSocket\nTest_java_net_DatagramSocketImpl\nTest_java_net_InetAddress\nTest_java_net_NoRouteToHostException\nTest_java_net_PlainDatagramSocketImpl\nTest_java_net_PlainSocketImpl\nTest_java_net_Socket\nTest_java_net_SocketException\nTest_java_net_SocketImpl\nTest_java_net_SocketInputStream\nTest_java_net_SocketOutputStream\nTest_java_net_UnknownHostException\nTest_java_util_ArrayEnumerator\nTest_java_util_Date\nTest_java_util_EventObject\nTest_java_util_HashEnumerator\nTest_java_util_Hashtable\nTest_java_util_Properties\nTest_java_util_ResourceBundle\nTest_java_util_tm\nTest_java_util_Vector\n"; 70 bw.write(testString); 75 assertFalse("Test 2: Write after close.", sw.toString().equals(testString)); 126 char[] testCharArray = testString.toCharArray(); 130 testString.substring(500, 1500))); 147 char[] charArray = testString.toCharArray(); 248 bw.write(testString); 251 testString)); 272 bw.write(testString, -1, 1); 279 bw.write(testString, 1, testString.length()) [all...] |
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
EncodeHtmlDataUriTest.java | 31 String testString = "><#%\"'"; 32 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 34 assertEquals("Delimiters are not properly encoded", decodedUri, testString); 39 String testString = "{}|\\^[]`"; 40 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 42 assertEquals("Unwise characters are not properly encoded", decodedUri, testString); 47 String testString = " \n\t"; 48 String encodedUri = UrlUtils.encodeHtmlDataUri(testString); 50 assertEquals("Whitespace characters are not properly encoded", decodedUri, testString); 56 String testString = "<html><body onload=\"alert('Hello \\\"world\\\"');\"></body></html>" [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/io/ |
StringReaderTest.java | 25 String testString = "This is a test string"; 43 sr = new StringReader(testString); 58 sr = new StringReader(testString); 66 .equals(testString.substring(5, 7))); 75 sr = new StringReader(testString); 84 sr = new StringReader(testString); 96 sr = new StringReader(testString); 97 char[] buf = new char[testString.length()]; 98 int r = sr.read(buf, 0, testString.length()); 99 assertTrue("Failed to read chars", r == testString.length()) [all...] |
BufferedWriterTest.java | 34 public String testString = "Test_All_Tests\nTest_java_io_BufferedInputStream\nTest_java_io_BufferedOutputStream\nTest_java_io_ByteArrayInputStream\nTest_java_io_ByteArrayOutputStream\nTest_java_io_DataInputStream\nTest_java_io_File\nTest_java_io_FileDescriptor\nTest_java_io_FileInputStream\nTest_java_io_FileNotFoundException\nTest_java_io_FileOutputStream\nTest_java_io_FilterInputStream\nTest_java_io_FilterOutputStream\nTest_java_io_InputStream\nTest_java_io_IOException\nTest_java_io_OutputStream\nTest_java_io_PrintStream\nTest_java_io_RandomAccessFile\nTest_java_io_SyncFailedException\nTest_java_lang_AbstractMethodError\nTest_java_lang_ArithmeticException\nTest_java_lang_ArrayIndexOutOfBoundsException\nTest_java_lang_ArrayStoreException\nTest_java_lang_Boolean\nTest_java_lang_Byte\nTest_java_lang_Character\nTest_java_lang_Class\nTest_java_lang_ClassCastException\nTest_java_lang_ClassCircularityError\nTest_java_lang_ClassFormatError\nTest_java_lang_ClassLoader\nTest_java_lang_ClassNotFoundException\nTest_java_lang_CloneNotSupportedException\nTest_java_lang_Double\nTest_java_lang_Error\nTest_java_lang_Exception\nTest_java_lang_ExceptionInInitializerError\nTest_java_lang_Float\nTest_java_lang_IllegalAccessError\nTest_java_lang_IllegalAccessException\nTest_java_lang_IllegalArgumentException\nTest_java_lang_IllegalMonitorStateException\nTest_java_lang_IllegalThreadStateException\nTest_java_lang_IncompatibleClassChangeError\nTest_java_lang_IndexOutOfBoundsException\nTest_java_lang_InstantiationError\nTest_java_lang_InstantiationException\nTest_java_lang_Integer\nTest_java_lang_InternalError\nTest_java_lang_InterruptedException\nTest_java_lang_LinkageError\nTest_java_lang_Long\nTest_java_lang_Math\nTest_java_lang_NegativeArraySizeException\nTest_java_lang_NoClassDefFoundError\nTest_java_lang_NoSuchFieldError\nTest_java_lang_NoSuchMethodError\nTest_java_lang_NullPointerException\nTest_java_lang_Number\nTest_java_lang_NumberFormatException\nTest_java_lang_Object\nTest_java_lang_OutOfMemoryError\nTest_java_lang_RuntimeException\nTest_java_lang_SecurityManager\nTest_java_lang_Short\nTest_java_lang_StackOverflowError\nTest_java_lang_String\nTest_java_lang_StringBuffer\nTest_java_lang_StringIndexOutOfBoundsException\nTest_java_lang_System\nTest_java_lang_Thread\nTest_java_lang_ThreadDeath\nTest_java_lang_ThreadGroup\nTest_java_lang_Throwable\nTest_java_lang_UnknownError\nTest_java_lang_UnsatisfiedLinkError\nTest_java_lang_VerifyError\nTest_java_lang_VirtualMachineError\nTest_java_lang_vm_Image\nTest_java_lang_vm_MemorySegment\nTest_java_lang_vm_ROMStoreException\nTest_java_lang_vm_VM\nTest_java_lang_Void\nTest_java_net_BindException\nTest_java_net_ConnectException\nTest_java_net_DatagramPacket\nTest_java_net_DatagramSocket\nTest_java_net_DatagramSocketImpl\nTest_java_net_InetAddress\nTest_java_net_NoRouteToHostException\nTest_java_net_PlainDatagramSocketImpl\nTest_java_net_PlainSocketImpl\nTest_java_net_Socket\nTest_java_net_SocketException\nTest_java_net_SocketImpl\nTest_java_net_SocketInputStream\nTest_java_net_SocketOutputStream\nTest_java_net_UnknownHostException\nTest_java_util_ArrayEnumerator\nTest_java_util_Date\nTest_java_util_EventObject\nTest_java_util_HashEnumerator\nTest_java_util_Hashtable\nTest_java_util_Properties\nTest_java_util_ResourceBundle\nTest_java_util_tm\nTest_java_util_Vector\n"; 86 bw.write(testString); 91 assertTrue("Write after close", !sw.toString().equals(testString)); 147 char[] testCharArray = testString.toCharArray(); 151 testString.substring(500, 1500))); 189 char[] testCharArray = testString.toCharArray(); 226 bw.write(testString); 228 assertTrue("Incorrect string written", sw.toString().equals(testString)); 249 bWriter.write(testString, 0, 0); 250 bWriter.write(testString, testString.length(), 0) [all...] |
StringWriterTest.java | 177 String testString = "My Test String"; 179 stringWriter.append(testString); 180 assertEquals(String.valueOf(testString), stringWriter.toString()); 188 String testString = "My Test String"; 190 stringWriter.append(testString, 1, 3); 191 assertEquals(testString.substring(1, 3), stringWriter.toString());
|
/frameworks/base/core/tests/coretests/src/android/os/ |
MemoryFileTest.java | 53 newFile.writeBytes(testString, 0, 0, testString.length); 57 file.readBytes(testString, 0, 0, testString.length); 75 byte[] buffer = new byte[testString.length]; 78 file.writeBytes(testString, 0, 2000, testString.length); 79 file.readBytes(buffer, 2000, 0, testString.length); 80 compareBuffers(testString, buffer, testString.length) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
PatternTest.java | 218 String testString; 223 testString = "A"; 225 mat = pat.matcher(testString); 229 testString = "A"; 231 mat = pat.matcher(testString); 235 testString = "B"; 237 mat = pat.matcher(testString); 241 testString = "B"; 243 mat = pat.matcher(testString); 247 testString = "B" [all...] |
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super/d/ |
TSuper.java | 47 public void testString(String s) {
|
/cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_super_range/d/ |
TSuper.java | 47 public void testString(String s) {
|
/external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/ |
BoundedByteStringTest.java | 58 String testString = "I love unicode \u1234\u5678 characters"; 59 LiteralByteString unicode = new LiteralByteString(testString.getBytes(UTF_8)); 66 testString.substring(2, testString.length() - 6), roundTripString);
|
RopeByteStringSubstringTest.java | 81 String testString = builder.toString(); 84 testString = testString.substring(2, testString.length() - 6); 91 testString, roundTripString); 92 ByteString flatString = ByteString.copyFromUtf8(testString);
|
RopeByteStringTest.java | 81 ByteString testString = ByteString.copyFrom(testBytes); 83 concatenated.equals(testString)); 85 testString.equals(concatenated)); 87 testString.hashCode(), concatenated.hashCode()); 103 String testString = builder.toString(); 109 testString, roundTripString); 110 ByteString flatString = ByteString.copyFromUtf8(testString);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
ApnSettingTest.java | 59 String testString; 62 testString = "Vodafone IT,web.omnitel.it,,,,,,,,,222,10,,DUN"; 66 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 69 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123,45,,mms|*,IPV6,IP,true,14"; 73 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 76 testString = "[ApnSettingV2] Name,apn, ,,,,,,,,123,45,,mms|*,IPV4V6, IP,true,14"; 80 assertApnSettingEqual(expected_apn, ApnSetting.fromString(testString)); 83 testString = "[ApnSettingV2] Name,apn,,,,,,,,,123, 45,,mms|*"; 84 assertEquals(null, ApnSetting.fromString(testString)); 86 testString = "Name,apn,,,,,,,,,123, 45," [all...] |
GsmAlphabetTest.java | 134 StringBuilder testString = new StringBuilder(300); 137 for (int i = 0; i < 9; i++, testString.append('@')) { 138 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 139 assertEquals(testString.toString(), 152 testString.append(c); 159 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 160 assertEquals(testString.toString(), 165 testString.append(sGsmExtendedChars); 174 packed = GsmAlphabet.stringToGsm7BitPacked(testString.toString(), 0, 0); 175 assertEquals(testString.toString() [all...] |
/external/chromium_org/third_party/icu/source/test/intltest/ |
trnserr.cpp | 59 UnicodeString testString="A quick fox jumped over the lazy dog."; 73 len = testString.length(); 74 stoppedAt = t->transliterate(testString, 0, 100); 77 } else if (testString.length() != len) { 78 testString="A quick fox jumped over the lazy dog."; 81 stoppedAt = t->transliterate(testString, 100, testString.length()-1); 84 else if (testString.length() != len) { 85 testString="A quick fox jumped over the lazy dog."; 89 pos.limit = testString.length() [all...] |
/external/icu4c/test/intltest/ |
trnserr.cpp | 59 UnicodeString testString="A quick fox jumped over the lazy dog."; 73 len = testString.length(); 74 stoppedAt = t->transliterate(testString, 0, 100); 77 } else if (testString.length() != len) { 78 testString="A quick fox jumped over the lazy dog."; 81 stoppedAt = t->transliterate(testString, 100, testString.length()-1); 84 else if (testString.length() != len) { 85 testString="A quick fox jumped over the lazy dog."; 89 pos.limit = testString.length() [all...] |
/libcore/luni/src/test/java/libcore/java/util/regex/ |
OldMatcherTest.java | 112 String testString = "babbabbcccabbabbabbabbabb"; 114 Matcher mat = pat.matcher(testString); 123 String testString = "abb"; 125 Matcher mat = pat.matcher(testString); 141 String testString = "ab\nb"; 143 Matcher mat = pat.matcher(testString); 159 String testString = "cccabbabbabbabbabb"; 161 Matcher mat = pat.matcher(testString); 181 String testString = "cccabbabbabbabbabb"; 183 Matcher mat = pat.matcher(testString); [all...] |
/external/guava/guava-tests/test/com/google/common/io/ |
MultiReaderTest.java | 34 String testString = "abcdefgh"; 35 final InputSupplier<Reader> supplier = newReader(testString); 54 assertEquals(testString.length() * 3, result.length()); 70 String testString = "abcdefgh"; 71 InputSupplier<Reader> supplier = newReader(testString); 75 String expectedString = testString + testString;
|