/external/skia/tests/ |
DiscardableMemoryTest.cpp | 13 const char testString[] = "HELLO, WORLD!"; 14 const size_t len = sizeof(testString); 22 memcpy(ptr, testString, sizeof(testString)); 30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
|
/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());
|
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...] |
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());
|
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...] |
/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...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/rbbi/ |
RBBIAPITest.java | 45 String testString = "Testing word break iterators's clone() and equals()"; 46 bi1.setText(testString); 47 bi2.setText(testString); 48 biequal.setText(testString); 168 String testString = "This is a word break. Isn't it? 2.25"; 170 logln("testing word iterator - string :- \"" + testString + "\"\n"); 172 wordIter1.setText(testString); 177 doTest(testString, p, q, 20, "This is a word break"); 180 doTest(testString, p, q, 21, "."); 183 doTest(testString, p, q, 28, " Isn't ") [all...] |
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/rbbi/ |
RBBIAPITest.java | 41 String testString = "Testing word break iterators's clone() and equals()"; 42 bi1.setText(testString); 43 bi2.setText(testString); 44 biequal.setText(testString); 164 String testString = "This is a word break. Isn't it? 2.25"; 166 logln("testing word iterator - string :- \"" + testString + "\"\n"); 168 wordIter1.setText(testString); 173 doTest(testString, p, q, 20, "This is a word break"); 176 doTest(testString, p, q, 21, "."); 179 doTest(testString, p, q, 28, " Isn't ") [all...] |
/art/test/563-checker-fakestring/src/ |
Main.java | 35 String testString = "Hello world"; 36 byte[] testData = testString.getBytes("UTF8"); 41 assertEqual(testString, result); 64 assertEqual(testString, result); 70 assertEqual(testString, result); 72 assertEqual(testString, result); 77 assertEqual(testString, result); 79 assertEqual(testString, result);
|
/external/guava/guava-tests/benchmark/com/google/common/base/ |
AsciiBenchmark.java | 47 String testString; 64 this.testString = new String(array); 77 ? Ascii.toUpperCase(testString) 78 : testString; 89 ? charSequenceToUpperCase(testString) 90 : testString; 101 ? testString.toUpperCase(Locale.US) 102 : testString; 113 String upperString = testString.toUpperCase(); 114 CharSequence testSeq = new StringBuilder(testString); [all...] |
WhitespaceMatcherBenchmark.java | 54 private String teststring; field in class:WhitespaceMatcherBenchmark 70 teststring = newTestString(new Random(1), bitSet, percentMatching); 76 String teststring = this.teststring; local 78 result += matcher.countIn(teststring); 86 String teststring = this.teststring; local 88 result += System.identityHashCode(matcher.collapseFrom(teststring, ' '));
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/translit/ |
ErrorTest.java | 33 ReplaceableString testString = 45 len = testString.length(); 46 stoppedAt = t.transliterate(testString, 0, 100); 49 } else if (testString.length() != len) { 50 testString = 54 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); 57 } else if (testString.length() != len) { 58 testString = 63 pos.limit = testString.length() [all...] |
/external/icu/icu4j/main/tests/translit/src/com/ibm/icu/dev/test/translit/ |
ErrorTest.java | 29 ReplaceableString testString = 41 len = testString.length(); 42 stoppedAt = t.transliterate(testString, 0, 100); 45 } else if (testString.length() != len) { 46 testString = 50 stoppedAt = t.transliterate(testString, 100, testString.length() - 1); 53 } else if (testString.length() != len) { 54 testString = 59 pos.limit = testString.length() [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/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)); 146 char[] testCharArray = testString.toCharArray(); 150 testString.substring(500, 1500))); 188 char[] testCharArray = testString.toCharArray(); 225 bw.write(testString); 227 assertTrue("Incorrect string written", sw.toString().equals(testString)); 248 bWriter.write(testString, 0, 0); 249 bWriter.write(testString, testString.length(), 0) [all...] |
/frameworks/base/core/tests/coretests/src/android/text/ |
StaticLayoutTextMeasuringTest.java | 43 String testString = "a\uFEFF"; 44 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, 53 String testString = "\u0915\u093E"; 54 StaticLayout layout = new StaticLayout(testString, mDefaultPaint, 65 String testString = "\uD83C\uDDFA\uD83C\uDDF8\uD83C\uDDFF"; 66 StaticLayout layout = new StaticLayout(testString, mDefaultPaint,
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
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/icu/icu4c/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/icu/icu4c/source/test/iotest/ |
stream.cpp | 80 static const char * const TESTSTRING = "\x20\x74\x48\x69\x73\xCE\xBC\xE2\x80\x82\x20\x6D\x75\x20\x77\x6F\x72\x6C\x64"; 83 istringstream inTestStream(TESTSTRING); 87 istrstream inTestStream(TESTSTRING, 0); 217 testString( 219 const char* testString, 229 sstrm << testString; 231 /*log_verbose("iostream before operator::>>() call \"%s\" ", testString); 236 log_verbose("iostream after operator::>>() call \"%s\" ", testString); 244 log_err("Did not get expected results from \"%s\", expected \"%s\"\n", testString, expectedString); 308 testString(UStr, u_austrcpy(testcase, testCase1), expectedResultA, IOSTREAM_EOF|IOSTREAM_FAIL) [all...] |
/prebuilts/gdb/darwin-x86/lib/python2.7/test/ |
test_bufio.py | 50 teststring = pattern * q + pattern[:r] 51 self.assertEqual(len(teststring), length) 52 self.try_one(teststring) 53 self.try_one(teststring + b"x") 54 self.try_one(teststring[:-1])
|
/prebuilts/gdb/linux-x86/lib/python2.7/test/ |
test_bufio.py | 50 teststring = pattern * q + pattern[:r] 51 self.assertEqual(len(teststring), length) 52 self.try_one(teststring) 53 self.try_one(teststring + b"x") 54 self.try_one(teststring[:-1])
|
/prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/ |
test_bufio.py | 50 teststring = pattern * q + pattern[:r] 51 self.assertEqual(len(teststring), length) 52 self.try_one(teststring) 53 self.try_one(teststring + b"x") 54 self.try_one(teststring[:-1])
|
/prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/ |
test_bufio.py | 50 teststring = pattern * q + pattern[:r] 51 self.assertEqual(len(teststring), length) 52 self.try_one(teststring) 53 self.try_one(teststring + b"x") 54 self.try_one(teststring[:-1])
|
/external/guava/guava-tests/test/com/google/common/io/ |
MultiReaderTest.java | 34 String testString = "abcdefgh"; 35 final CharSource source = newCharSource(testString); 53 assertEquals(testString.length() * 3, result.length()); 69 String testString = "abcdefgh"; 70 CharSource source = newCharSource(testString); 73 String expectedString = testString + testString;
|