Home
last modified time | relevance | path

Searched refs:std (Results 1 – 16 of 16) sorted by relevance

/libcore/luni/src/test/native/
Dlibcore_java_lang_ThreadTest.cpp30 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()
48 std::unique_ptr<char[]> thread_name(new char[32]); 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()
[all …]
Dlibcore_libcore_util_NativeAllocationRegistryTest.cpp60 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()
73 std::atomic<uint64_t> gNumNativeBytesAllocated = 0;
Dlibcore_java_io_FileTest.cpp32 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()
Dlibcore_io_Memory_test.cpp29 std::function<void (T*, T*, uint64_t)> init_func) { in swap_align_test()
Dlibcore_libcore_icu_LocaleDataTest.cpp169std::unique_ptr<icu::DecimalFormat> fmt(static_cast<icu::DecimalFormat*>(icu::NumberFormat::create… in setNumberPatterns()
336 std::unique_ptr<icu::Calendar> cal(icu::Calendar::createInstance(icuLocale.locale(), status)); in Java_libcore_libcore_icu_LocaleDataTest_initIcu4cLocaleData()
/libcore/luni/src/main/native/
DAsynchronousCloseMonitor.cpp60 static std::mutex blockedThreadListMutex;
92 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in signalBlockedThreads()
107 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in AsynchronousCloseMonitorImpl()
122 std::lock_guard<std::mutex> lock(blockedThreadListMutex); in ~AsynchronousCloseMonitorImpl()
DScopedIcuULoc.h25 static void getLocale(const char* localeName, std::string& locale, UErrorCode* status) { in getLocale()
44 std::unique_ptr<char[]> buffer(new char[length+1]); in getLocale()
91 std::string mLocale;
DZipUtilities.h28 std::unique_ptr<jbyte[]> input;
40 std::unique_ptr<jbyte[]> mDict;
Dlibcore_icu_ICU.cpp47 int32_t capacity = std::max(ULOC_SCRIPT_CAPACITY, icuLocale.locale_length() + 1); in ICU_getScript()
48 std::unique_ptr<char[]> buffer(new char(capacity)); in ICU_getScript()
DJniConstants.cpp41 static std::mutex g_constants_mutex;
87 std::lock_guard guard(g_constants_mutex); in EnsureJniConstantsInitialized()
142 std::lock_guard guard(g_constants_mutex); in Invalidate()
DZipUtilities.cpp47 std::unique_ptr<jbyte[]> dictionaryBytes(new jbyte[len]); in setDictionary()
Dlibcore_io_Linux.cpp349 std::vector<iovec> mIoVec;
350 std::vector<ScopedT*> mScopedBuffers;
816 std::unique_ptr<char[]> mBuffer;
1333 std::unique_ptr<addrinfo, addrinfo_deleter> addressListDeleter(addressList); in Linux_android_getaddrinfo()
1572 std::vector<char> buf(valueLength); in Linux_getxattr()
1604 std::unique_ptr<ifaddrs, decltype(&freeifaddrs)> ifaddrPtr(ifaddr, freeifaddrs); in Linux_getifaddrs()
1826 std::string buf(valueLength, '\0'); in Linux_listxattr()
1839 std::string delim("\0", 1); in Linux_listxattr()
1964 std::unique_ptr<struct pollfd[]> fds(new struct pollfd[arrayLength]); in Linux_poll()
1981 std::vector<AsynchronousCloseMonitor*> monitors; in Linux_poll()
[all …]
Dorg_apache_harmony_xml_ExpatParser.cpp261 std::unique_ptr<InternedString> wrapper(new InternedString); in newInternedString()
980 std::unique_ptr<ParsingContext> context(new ParsingContext(object)); in ExpatParser_initialize()
Djava_math_NativeBN.cpp39 typedef std::unique_ptr<BN_CTX, BN_CTX_Deleter> Unique_BN_CTX;
/libcore/ojluni/src/main/native/
DJniConstants.cpp45 static std::mutex g_constants_mutex;
62 std::lock_guard guard(g_constants_mutex); in EnsureJniConstantsInitialized()
78 std::lock_guard guard(g_constants_mutex); in Invalidate()
/libcore/ojluni/src/main/java/java/time/zone/
DZoneOffsetTransitionRule.java352 …ZoneOffset std = (stdByte == 255 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSec… in readExternal() local
353 …== 3 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(std.getTotalSeconds() +… in readExternal()
354 …== 3 ? ZoneOffset.ofTotalSeconds(in.readInt()) : ZoneOffset.ofTotalSeconds(std.getTotalSeconds() +… in readExternal()
355 …return ZoneOffsetTransitionRule.of(month, dom, dow, time, timeByte == 24, defn, std, before, after… in readExternal()