/libcore/luni/src/test/native/ |
D | libcore_java_lang_ThreadTest.cpp | 30 const std::string native_thread_name = "foozball"; in TestThreadNaming() 44 return new std::string("Attach failed"); in TestThreadNaming() 47 std::string* exception_message = nullptr; in TestThreadNaming() 54 exception_message = new std::string("expected_thread_name != thread_name: "); in TestThreadNaming() 64 exception_message = new std::string("unexpected thread name : "); in TestThreadNaming() 68 exception_message = new std::string("prctl(PR_GET_NAME) failed :"); in TestThreadNaming() 75 exception_message = new std::string("Detach failed"); in TestThreadNaming() 84 std::string result; in Java_libcore_java_lang_ThreadTest_nativeTestNativeThreadNames() 94 std::string* result_test1; in Java_libcore_java_lang_ThreadTest_nativeTestNativeThreadNames() 113 std::string* result_test2; in Java_libcore_java_lang_ThreadTest_nativeTestNativeThreadNames()
|
D | libcore_libcore_util_NativeAllocationRegistryTest.cpp | 60 std::string uname_string = buf; in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI() 63 is_native_bridged_abi = uname_string.find("86") == std::string::npos; in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI() 65 is_native_bridged_abi = uname_string.find("arm") == std::string::npos && in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI() 66 uname_string.find("aarch64") == std::string::npos; in Java_libcore_libcore_util_NativeAllocationRegistryTest_isNativeBridgedABI()
|
D | libcore_java_io_FileTest.cpp | 32 std::string base(baseDirUtf.c_str()); in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs() 33 std::string subDir = base + "/dir_\xF0\x93\x80\x80"; in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs() 34 std::string subFile = subDir + "/file_\xF0\x93\x80\x80"; in Java_libcore_java_io_FileTest_nativeTestFilesWithSurrogatePairs()
|
/libcore/ojluni/src/main/java/java/text/ |
D | CharacterIteratorFieldDelegate.java | 85 AttributedString string = new AttributedString( in formatted() local 88 string.addAttribute(attr, value); in formatted() 89 attributedStrings.add(string); in formatted() 106 public AttributedCharacterIterator getIterator(String string) { in getIterator() argument 109 if (string.length() > size) { in getIterator() 111 string.substring(size))); in getIterator() 112 size = string.length(); in getIterator()
|
D | Format.java | 311 String string, AttributedCharacterIterator.Attribute key, in createAttributedCharacterIterator() argument 313 AttributedString as = new AttributedString(string); in createAttributedCharacterIterator()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | ICU.java | 105 private static void parseLangScriptRegionAndVariants(String string, in parseLangScriptRegionAndVariants() argument 107 final int first = string.indexOf('_'); in parseLangScriptRegionAndVariants() 108 final int second = string.indexOf('_', first + 1); in parseLangScriptRegionAndVariants() 109 final int third = string.indexOf('_', second + 1); in parseLangScriptRegionAndVariants() 112 outputArray[IDX_LANGUAGE] = string; in parseLangScriptRegionAndVariants() 118 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants() 119 final String secondString = string.substring(first + 1); in parseLangScriptRegionAndVariants() 139 outputArray[IDX_LANGUAGE] = string.substring(0, first); in parseLangScriptRegionAndVariants() 140 final String secondString = string.substring(first + 1, second); in parseLangScriptRegionAndVariants() 141 final String thirdString = string.substring(second + 1); in parseLangScriptRegionAndVariants() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | StringToBytesBenchmark.java | 46 @Param StringLengths string; field in StringToBytesBenchmark 50 string.value.getBytes(StandardCharsets.UTF_8); in timeGetBytesUtf8() 56 string.value.getBytes(StandardCharsets.ISO_8859_1); in timeGetBytesIso88591() 62 string.value.getBytes(StandardCharsets.US_ASCII); in timeGetBytesAscii()
|
D | StringToRealBenchmark.java | 32 }) String string; field in StringToRealBenchmark 36 Float.parseFloat(string); in timeFloat_parseFloat() 42 Double.parseDouble(string); in timeDouble_parseDouble()
|
D | CharsetBenchmark.java | 63 String string = makeString(length); in time_String_getBytes() local 65 string.getBytes(name); in time_String_getBytes()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | FloatTest.java | 67 for (String string : badStrings) { in testSuffixParsing() 69 Float.parseFloat(string); in testSuffixParsing() 70 fail(string); in testSuffixParsing() 90 for (String string : strings) { in testExponentParsing() 92 Float.parseFloat(string); in testExponentParsing() 93 fail(string); in testExponentParsing()
|
D | DoubleTest.java | 65 for (String string : badStrings) { in testSuffixParsing() 67 Double.parseDouble(string); in testSuffixParsing() 68 fail(string); in testSuffixParsing() 90 for (String string : strings) { in testExponentParsing() 92 Double.parseDouble(string); in testExponentParsing() 93 fail(string); in testExponentParsing()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | HexEncodingTest.java | 120 private static String lower(String string) { in lower() argument 121 return string.toLowerCase(Locale.ROOT); in lower() 124 private static String upper(String string) { in upper() argument 125 return string.toUpperCase(Locale.ROOT); in upper()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ReaderTest.java | 95 String string = "MY TEST STRING"; in test_read() local 96 char[] srcBuffer = string.toCharArray(); in test_read() 137 String string = "MY TEST STRING"; in test_skip() local 138 char[] srcBuffer = string.toCharArray(); in test_skip()
|
/libcore/luni/src/main/native/ |
D | ExecStrings.cpp | 39 char* string = const_cast<char*>(env_->GetStringUTFChars(java_string.get(), NULL)); in ExecStrings() local 40 array_[i] = string; in ExecStrings()
|
D | ScopedIcuULoc.h | 25 static void getLocale(const char* localeName, std::string& locale, UErrorCode* status) { in getLocale() 91 std::string mLocale;
|
/libcore/luni/src/test/java/libcore/java/lang/invoke/ |
D | MethodHandleInfoTest.java | 29 String string = MethodHandleInfo.toString(REF_invokeVirtual, String.class, "concat", type); in test_toString() local 30 assertEquals("invokeVirtual java.lang.String.concat:(String)String", string); in test_toString()
|
/libcore/ojluni/src/main/java/java/time/chrono/ |
D | HijrahChronology.java | 1052 private int[] parseYMD(String string) { in parseYMD() argument 1054 string = string.trim(); in parseYMD() 1056 if (string.charAt(4) != '-' || string.charAt(7) != '-') { in parseYMD() 1060 ymd[0] = Integer.valueOf(string.substring(0, 4)); in parseYMD() 1061 ymd[1] = Integer.valueOf(string.substring(5, 7)); in parseYMD() 1062 ymd[2] = Integer.valueOf(string.substring(8, 10)); in parseYMD()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ProxyTest.java | 149 proxy.string(""); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 155 proxy.string("clone"); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 162 proxy.string("error"); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 168 proxy.string("any"); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_Proxy_I2.java | 26 String string(String s) throws Support_Proxy_SubException, Error; in string() method
|
D | Support_Proxy_I1.java | 27 String string(String s) throws Support_Proxy_ParentException, LinkageError; in string() method
|
/libcore/json/src/main/java/org/json/ |
D | JSONStringer.java | 261 string(value.toString()); in value() 312 private void string(String value) { in string() method in JSONStringer 386 string(name); in key()
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | OldAttributedCharacterIteratorTest.java | 30 String string = "test test"; field in OldAttributedCharacterIteratorTest 104 assertEquals(string.length(), limit); in test_getRunLimit() 195 AttributedString as = new AttributedString(string); in setUp()
|
/libcore/ojluni/src/main/resources/ |
D | hijrah-config-umalqura.properties | 28 # <version> ::= 'version' '=' <version string> 29 # <id> ::= 'id' '=' <id string> 30 # <type> ::= 'type' '=' <type string>
|
/libcore/metrictests/memory/host/src/libcore/heapmetrics/ |
D | HeapCategorization.java | 238 private static HeapCategory categorizeInternedString(String string) { in categorizeInternedString() argument 242 int totalChars = string.length(); in categorizeInternedString() 244 char c = string.charAt(i); in categorizeInternedString()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | LibcoreIoDerivedBase64Test.java | 239 private static byte[] asciiToBytes(String string) { in asciiToBytes() argument 241 char[] chars = string.toCharArray(); in asciiToBytes() 253 throw new AssertionFailedError("Cannot convert test String to bytes safely: " + string + in asciiToBytes()
|