/libcore/benchmarks/src/benchmarks/regression/ |
H A D | StringToRealBenchmark.java | 32 }) String string; field in class:StringToRealBenchmark 36 Float.parseFloat(string); 42 Double.parseDouble(string);
|
H A D | StringToBytesBenchmark.java | 46 @Param StringLengths string; field in class:StringToBytesBenchmark 50 string.value.getBytes(StandardCharsets.UTF_8); 56 string.value.getBytes(StandardCharsets.ISO_8859_1); 62 string.value.getBytes(StandardCharsets.US_ASCII);
|
H A D | CharsetBenchmark.java | 63 String string = makeString(length); 65 string.getBytes(name);
|
/libcore/support/src/test/java/tests/support/ |
H A D | Support_Proxy_I2.java | 26 String string(String s) throws Support_Proxy_SubException, Error; method in interface:Support_Proxy_I2
|
H A D | Support_Proxy_I1.java | 27 String string(String s) throws Support_Proxy_ParentException, LinkageError; method in interface:Support_Proxy_I1
|
/libcore/luni/src/test/native/ |
H A D | libcore_java_lang_ThreadTest.cpp | 18 #include <string> 30 const std::string native_thread_name = "foozball"; 44 return new std::string("Attach failed"); 47 std::string* exception_message = nullptr; 54 exception_message = new std::string("expected_thread_name != thread_name: "); 64 exception_message = new std::string("unexpected thread name : "); 68 exception_message = new std::string("prctl(PR_GET_NAME) failed :"); 74 exception_message = new std::string("Detach failed"); 82 std::string result; 92 std::string* result_test [all...] |
H A D | libcore_java_io_FileTest.cpp | 20 #include <string> 32 std::string base(baseDirUtf.c_str()); 33 std::string subDir = base + "/dir_\xF0\x93\x80\x80"; 34 std::string subFile = subDir + "/file_\xF0\x93\x80\x80";
|
H A D | libcore_libcore_util_NativeAllocationRegistryTest.cpp | 18 #include <string>
|
/libcore/ojluni/src/main/java/java/text/ |
H A D | CharacterIteratorFieldDelegate.java | 83 // Add new string 85 AttributedString string = new AttributedString( 88 string.addAttribute(attr, value); 89 attributedStrings.add(string); 104 * @pararm string Result of formatting. 106 public AttributedCharacterIterator getIterator(String string) { argument 108 // assert(size <= string.length()); 109 if (string.length() > size) { 111 string.substring(size))); 112 size = string [all...] |
H A D | Format.java | 55 * any string formatted by its <code>format</code> method. However, there may 145 * Formats an object to produce a string. This is equivalent to 152 * @return Formatted string. 161 * Formats an object and appends the resulting text to a given string 171 * @return the string buffer passed in as <code>toAppendTo</code>, 210 * Parses text from a string to produce an object. 216 * use all characters up to the end of the string), and the parsed 226 * @return An <code>Object</code> parsed from the string. In case of 233 * Parses text from the beginning of the given string to produce an object. 234 * The method may not use the entire text of the given string 310 createAttributedCharacterIterator( String string, AttributedCharacterIterator.Attribute key, Object value) argument [all...] |
/libcore/luni/src/main/java/libcore/icu/ |
H A D | ICU.java | 77 private static void parseLangScriptRegionAndVariants(String string, argument 79 final int first = string.indexOf('_'); 80 final int second = string.indexOf('_', first + 1); 81 final int third = string.indexOf('_', second + 1); 84 outputArray[IDX_LANGUAGE] = string; 90 outputArray[IDX_LANGUAGE] = string.substring(0, first); 91 final String secondString = string.substring(first + 1); 102 // assume the rest of the string is a series of variant tags. 111 outputArray[IDX_LANGUAGE] = string.substring(0, first); 112 final String secondString = string [all...] |
/libcore/luni/src/main/native/ |
H A D | IcuUtilities.cpp | 44 const icu::UnicodeString* string = se->snext(status); local 48 ScopedLocalRef<jstring> javaString(env, jniCreateString(env, string->getBuffer(), string->length()));
|
H A D | ExecStrings.cpp | 39 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); local 40 array_[i] = string;
|
/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | DoubleTest.java | 65 for (String string : badStrings) { 67 Double.parseDouble(string); 68 fail(string); 90 for (String string : strings) { 92 Double.parseDouble(string); 93 fail(string);
|
H A D | FloatTest.java | 67 for (String string : badStrings) { 69 Float.parseFloat(string); 70 fail(string); 90 for (String string : strings) { 92 Float.parseFloat(string); 93 fail(string);
|
/libcore/ojluni/src/main/native/ |
H A D | Inet4Address.c | 26 #include <string.h>
|
H A D | jni_util_md.c | 26 #include <string.h>
|
H A D | Inet6Address.c | 26 #include <string.h>
|
H A D | InetAddress.c | 26 #include <string.h>
|
H A D | NativeThread.c | 27 #include <string.h>
|
H A D | ProcessEnvironment_md.c | 27 #include <string.h>
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
H A D | MethodHandleInfoTest.java | 29 String string = MethodHandleInfo.toString(REF_invokeVirtual, String.class, "concat", type); 30 assertEquals("invokeVirtual java.lang.String.concat:(String)String", string);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | ReaderTest.java | 95 String string = "MY TEST STRING"; 96 char[] srcBuffer = string.toCharArray(); 137 String string = "MY TEST STRING"; 138 char[] srcBuffer = string.toCharArray();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | ProxyTest.java | 128 if (method.getName().equals("string")) { 149 proxy.string(""); 155 proxy.string("clone"); 162 proxy.string("error"); 168 proxy.string("any");
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
H A D | HijrahChronology.java | 1049 * @param string the input string 1052 private int[] parseYMD(String string) { argument 1054 string = string.trim(); 1056 if (string.charAt(4) != '-' || string.charAt(7) != '-') { 1060 ymd[0] = Integer.valueOf(string.substring(0, 4)); 1061 ymd[1] = Integer.valueOf(string.substring(5, 7)); 1062 ymd[2] = Integer.valueOf(string [all...] |