/art/libnativeloader/ |
D | native_loader.cpp | 95 auto ns = g_namespaces->Create(env, target_sdk_version, class_loader, is_shared, dex_path, in CreateClassLoaderNamespace() local 97 if (!ns.ok()) { in CreateClassLoaderNamespace() 98 return env->NewStringUTF(ns.error().message().c_str()); in CreateClassLoaderNamespace() 135 NativeLoaderNamespace* ns; in OpenNativeLibrary() local 137 if ((ns = g_namespaces->FindNamespaceByClassLoader(env, class_loader)) == nullptr) { in OpenNativeLibrary() 147 ns = *isolated_ns; in OpenNativeLibrary() 151 return OpenNativeLibraryInNamespace(ns, path, needs_native_bridge, error_msg); in OpenNativeLibrary() 224 void* OpenNativeLibraryInNamespace(NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument 226 auto handle = ns->Load(path); in OpenNativeLibraryInNamespace() 231 *needs_native_bridge = ns->IsBridged(); in OpenNativeLibraryInNamespace() [all …]
|
D | native_loader_namespace.h | 66 explicit NativeLoaderNamespace(const std::string& name, android_namespace_t* ns) in NativeLoaderNamespace() 67 : name_(name), raw_(ns) {} in NativeLoaderNamespace() 68 explicit NativeLoaderNamespace(const std::string& name, native_bridge_namespace_t* ns) in NativeLoaderNamespace() 69 : name_(name), raw_(ns) {} in NativeLoaderNamespace()
|
D | native_loader_namespace.cpp | 70 auto ns = GetExportedNamespace(kSystemNamespaceName, is_bridged); in GetSystemNamespace() local 71 if (ns.ok()) return ns; in GetSystemNamespace() 72 ns = GetExportedNamespace(kDefaultNamespaceName, is_bridged); in GetSystemNamespace() 73 if (ns.ok()) return ns; in GetSystemNamespace()
|
D | native_loader_test.cpp | 71 mock_namespace_handle ns) = 0; 91 #define TO_MOCK_NAMESPACE(ns) reinterpret_cast<Platform::mock_namespace_handle>(ns) argument 214 struct native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 215 return mock->mock_dlopen_ext(true, libpath, flag, TO_MOCK_NAMESPACE(ns)); in NativeBridgeLoadLibraryExt() 437 struct android_namespace_t* ns = in RunTest() local 441 EXPECT_EQ(dex_path.c_str(), reinterpret_cast<const char*>(ns)); in RunTest() 443 struct NativeLoaderNamespace* ns = in RunTest() local 448 reinterpret_cast<const char*>(ns->ToRawNativeBridgeNamespace())); in RunTest() 578 struct android_namespace_t* ns = in TEST_P() local 582 EXPECT_EQ(second_app_dex_path.c_str(), reinterpret_cast<const char*>(ns)); in TEST_P() [all …]
|
D | native_loader_lazy.cpp | 89 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument 92 return f(ns, path, needs_native_bridge, error_msg); in OpenNativeLibraryInNamespace()
|
D | library_namespaces.cpp | 348 NativeLoaderNamespace* ns; in FindParentNamespaceByClassLoader() local 349 if ((ns = FindNamespaceByClassLoader(env, parent_class_loader)) != nullptr) { in FindParentNamespaceByClassLoader() 350 return ns; in FindParentNamespaceByClassLoader()
|
/art/libartbase/base/ |
D | time_utils.h | 72 static constexpr inline uint64_t NsToMs(uint64_t ns) { in NsToMs() argument 73 return ns / 1000 / 1000; in NsToMs() 98 void NanoSleep(uint64_t ns); 102 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts);
|
D | stats.h | 37 void AddNanoSeconds(double ns, size_t count = 1) { Add(ns / 1000000000.0, count); }
|
D | time_utils.cc | 210 void NanoSleep(uint64_t ns) { in NanoSleep() argument 212 tm.tv_sec = ns / MsToNs(1000); in NanoSleep() 213 tm.tv_nsec = ns - static_cast<uint64_t>(tm.tv_sec) * MsToNs(1000); in NanoSleep() 217 void InitTimeSpec(bool absolute, int clock, int64_t ms, int32_t ns, timespec* ts) { in InitTimeSpec() argument 246 ts->tv_nsec = (ts->tv_nsec + (ms % 1000) * 1000000) + ns; in InitTimeSpec()
|
/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 | 188 static void Thread_sleep(JNIEnv* env, jclass, jobject java_lock, jlong ms, jint ns) { in Thread_sleep() argument 191 Monitor::Wait(Thread::Current(), lock.Ptr(), ms, ns, true, kSleeping); in Thread_sleep()
|
/art/libnativebridge/include/nativebridge/ |
D | native_bridge.h | 169 struct native_bridge_namespace_t* ns); 361 void* (*loadLibraryExt)(const char* libpath, int flag, struct native_bridge_namespace_t* ns);
|
/art/libnativebridge/ |
D | native_bridge_lazy.cc | 160 struct native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 162 return f(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
|
D | native_bridge.cc | 649 void* NativeBridgeLoadLibraryExt(const char* libpath, int flag, native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 652 return callbacks->loadLibraryExt(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
|
/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 | 756 bool ReaderWriterMutex::ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) { in ExclusiveLockWithTimeout() argument 761 InitTimeSpec(true, CLOCK_MONOTONIC, ms, ns, &end_abs_ts); in ExclusiveLockWithTimeout() 799 InitTimeSpec(true, CLOCK_REALTIME, ms, ns, &ts); in ExclusiveLockWithTimeout() 1029 bool ConditionVariable::TimedWait(Thread* self, int64_t ms, int32_t ns) { in TimedWait() argument 1037 InitTimeSpec(false, CLOCK_REALTIME, ms, ns, &rel_ts); in TimedWait() 1071 InitTimeSpec(true, clock, ms, ns, &ts); in TimedWait()
|
D | mutex.h | 317 bool ExclusiveLockWithTimeout(Thread* self, int64_t ms, int32_t ns) 452 bool TimedWait(Thread* self, int64_t ms, int32_t ns) NO_THREAD_SAFETY_ANALYSIS;
|
/art/runtime/ |
D | monitor.cc | 823 void Monitor::Wait(Thread* self, int64_t ms, int32_t ns, in Wait() argument 836 if (why == kTimedWaiting && (ms == 0 && ns == 0)) { in Wait() 841 if (ms < 0 || ns < 0 || ns > 999999) { in Wait() 843 "timeout arguments out of range: ms=%" PRId64 " ns=%d", ms, ns); in Wait() 903 timed_out = self->GetWaitConditionVariable()->TimedWait(self, ms, ns); in Wait() 1286 int32_t ns, in Wait() argument 1330 mon->Wait(self, ms, ns, interruptShouldThrow, why); in Wait()
|
D | monitor.h | 102 int32_t ns,
|
/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()
|
/art/test/115-native-bridge/ |
D | nativebridge.cc | 646 … android::native_bridge_namespace_t* ns ATTRIBUTE_UNUSED) { in native_bridge_loadLibraryExt()
|
/art/openjdkjvmti/ |
D | ti_redefine.cc | 832 art::ScopedAssertNoThreadSuspension ns("No thread suspension during thread stack walking"); in FindAndAllocateObsoleteMethods() local
|