/art/libnativeloader/ |
D | native_loader.cpp | 82 Result<void> CreateNativeloaderDefaultNamespaceLibsLink(NativeLoaderNamespace& ns) in CreateNativeloaderDefaultNamespaceLibsLink() argument 90 return ns.Link(nullptr, links); in CreateNativeloaderDefaultNamespaceLibsLink() 98 Result<NativeLoaderNamespace> ns = in GetNativeloaderExtraLibsNamespace() local 106 if (!ns.ok()) { in GetNativeloaderExtraLibsNamespace() 107 return ns.error(); in GetNativeloaderExtraLibsNamespace() 109 g_nativeloader_extra_libs_namespace = new NativeLoaderNamespace(std::move(ns.value())); in GetNativeloaderExtraLibsNamespace() 132 Result<NativeLoaderNamespace*> ns = GetNativeloaderExtraLibsNamespace(); in TryLoadNativeloaderExtraLib() local 133 if (!ns.ok()) { in TryLoadNativeloaderExtraLib() 134 return ns.error(); in TryLoadNativeloaderExtraLib() 136 return ns.value()->Load(path); in TryLoadNativeloaderExtraLib() [all …]
|
D | native_loader_namespace.h | 70 explicit NativeLoaderNamespace(const std::string& name, android_namespace_t* ns) in NativeLoaderNamespace() 71 : name_(name), raw_(ns) {} in NativeLoaderNamespace() 72 explicit NativeLoaderNamespace(const std::string& name, native_bridge_namespace_t* ns) in NativeLoaderNamespace() 73 : name_(name), raw_(ns) {} in NativeLoaderNamespace()
|
D | native_loader_namespace.cpp | 72 auto ns = GetExportedNamespace(kSystemNamespaceName, is_bridged); in GetSystemNamespace() local 73 if (ns.ok()) return ns; in GetSystemNamespace() 74 ns = GetExportedNamespace(kDefaultNamespaceName, is_bridged); in GetSystemNamespace() 75 if (ns.ok()) return ns; in GetSystemNamespace()
|
D | native_loader_test.h | 55 mock_namespace_handle ns) = 0; 75 #define TO_MOCK_NAMESPACE(ns) reinterpret_cast<Platform::mock_namespace_handle>(ns) argument 79 #define NAMESPACE_ENTRY(ns) {ns, TO_MOCK_NAMESPACE(TO_ANDROID_NAMESPACE(ns))} argument 195 struct native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 196 return mock->mock_dlopen_ext(true, libpath, flag, TO_MOCK_NAMESPACE(ns)); in NativeBridgeLoadLibraryExt()
|
D | native_loader_lazy_test.cpp | 99 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_F() local 101 ASSERT_NE(nullptr, ns); in TEST_F() 105 EXPECT_FALSE(OpenNativeLibraryInNamespace(ns, "libnotfound.so", &needs_native_bridge, &errmsg)); in TEST_F()
|
D | library_namespaces.cpp | 315 auto ns = NativeLoaderNamespace::GetExportedNamespace(apex_ns_name, is_bridged); in Create() local 317 if (ns.ok()) { in Create() 318 linked = app_ns->Link(&ns.value(), public_libs); in Create() 403 NativeLoaderNamespace* ns; in FindParentNamespaceByClassLoader() local 404 if ((ns = FindNamespaceByClassLoader(env, parent_class_loader)) != nullptr) { in FindParentNamespaceByClassLoader() 405 return ns; in FindParentNamespaceByClassLoader()
|
D | native_loader_lazy.cpp | 84 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument 87 return f(ns, path, needs_native_bridge, error_msg); in OpenNativeLibraryInNamespace()
|
D | native_loader_test.cpp | 279 struct android_namespace_t* ns = in RunTest() local 283 EXPECT_EQ(dex_path.c_str(), reinterpret_cast<const char*>(ns)); in RunTest() 285 struct NativeLoaderNamespace* ns = in RunTest() local 290 reinterpret_cast<const char*>(ns->ToRawNativeBridgeNamespace())); in RunTest() 431 struct android_namespace_t* ns = in TEST_P() local 435 EXPECT_EQ(second_app_dex_path.c_str(), reinterpret_cast<const char*>(ns)); in TEST_P() 437 struct NativeLoaderNamespace* ns = FindNativeLoaderNamespaceByClassLoader( in TEST_P() local 442 reinterpret_cast<const char*>(ns->ToRawNativeBridgeNamespace())); in TEST_P()
|
/art/libartbase/base/ |
D | time_utils.h | 76 static constexpr uint64_t NsToMs(uint64_t ns) { in NsToMs() argument 77 return ns / 1000 / 1000; in NsToMs() 81 static constexpr uint64_t NsToUs(uint64_t ns) { in NsToUs() argument 82 return ns / 1000; in NsToUs() 120 void NanoSleep(uint64_t ns); 124 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
D | time_utils.cc | 135 int ns; in GetIsoDate() local 139 ns = 0; in GetIsoDate() 145 ns = now.tv_nsec; in GetIsoDate() 149 ns = 0; in GetIsoDate() 156 tmbuf.tm_hour, tmbuf.tm_min, tmbuf.tm_sec, ns, zone); in GetIsoDate() 222 void NanoSleep(uint64_t ns) { in NanoSleep() argument 224 tm.tv_sec = SaturatedTimeT(ns / MsToNs(1000)); in NanoSleep() 225 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); in NanoSleep() 229 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument 258 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
|
D | stats.h | 40 void AddNanoSeconds(double ns, size_t count = 1) { Add(ns / 1000000000.0, count); }
|
/art/test/1919-vminit-thread-start-timing/src/art/ |
D | Test1919.java | 52 String[] ns = getEventNames(); in getEvents() local 54 Event[] es = new Event[Math.min(ns.length, ts.length)]; in getEvents() 56 es[i] = new Event(ns[i], ts[i]); in getEvents()
|
/art/runtime/native/ |
D | java_lang_Object.cc | 46 static void Object_waitJI(JNIEnv* env, jobject java_this, jlong ms, jint ns) { in Object_waitJI() argument 48 soa.Decode<mirror::Object>(java_this)->Wait(soa.Self(), ms, ns); in Object_waitJI()
|
D | java_lang_Thread.cc | 181 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument 184 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|
/art/libnativebridge/include/nativebridge/ |
D | native_bridge.h | 174 struct native_bridge_namespace_t* ns); 366 void* (*loadLibraryExt)(const char* libpath, int flag, struct native_bridge_namespace_t* ns);
|
/art/test/964-default-iface-init-gen/util-src/ |
D | generate_java.py | 371 ns = clone_all(supers) 372 selected = sorted(set(dump_tree(ns)) - set(ns))[i] 373 yield TestClass(tuple([selected] + list(ns)))
|
/art/libnativeloader/include/nativeloader/ |
D | native_loader.h | 66 struct NativeLoaderNamespace* ns, const char* path, bool* needs_native_bridge,
|
/art/tools/ |
D | generate_operator_out.py | 44 def __init__(self, ns, ec): argument 45 self.namespaces = ns
|
/art/runtime/base/ |
D | mutex.cc | 834 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument 839 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout() 877 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout() 1107 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument 1115 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait() 1149 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
|
D | mutex.h | 333 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 468 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
/art/runtime/ |
D | monitor.cc | 827 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument 840 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait() 845 if (ms < 0 || ns < 0 || ns > 999999) { in Wait() 847 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait() 907 timed_out = self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait() 1274 int32_t ns, in Wait() argument 1318 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
|
D | monitor.h | 108 int32_t ns,
|
D | oat_file.cc | 1147 struct android_namespace_t* ns = android_get_exported_namespace("system"); in GetSystemLinkerNamespace() local 1148 if (ns == nullptr) { in GetSystemLinkerNamespace() 1149 ns = android_get_exported_namespace("default"); in GetSystemLinkerNamespace() 1150 if (ns == nullptr) { in GetSystemLinkerNamespace() 1154 return ns; in GetSystemLinkerNamespace()
|
/art/libnativebridge/ |
D | native_bridge.cc | 702 void* NativeBridgeLoadLibraryExt(const char* libpath, int flag, native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 705 return callbacks->loadLibraryExt(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
|
/art/runtime/mirror/ |
D | object-inl.h | 102 inline void Object::Wait(Thread* self, int64_t ms, int32_t ns) { in Wait() argument 103 Monitor::Wait(self, this, ms, ns, true, kTimedWaiting); in Wait()
|