Home
last modified time | relevance | path

Searched refs:ns (Results 1 – 25 of 25) sorted by relevance

/art/libnativeloader/
Dnative_loader.cpp95 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 …]
Dnative_loader_namespace.h66 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()
Dnative_loader_namespace.cpp70 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()
Dnative_loader_test.cpp71 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 …]
Dnative_loader_lazy.cpp89 void* OpenNativeLibraryInNamespace(struct NativeLoaderNamespace* ns, const char* path, in OpenNativeLibraryInNamespace() argument
92 return f(ns, path, needs_native_bridge, error_msg); in OpenNativeLibraryInNamespace()
Dlibrary_namespaces.cpp348 NativeLoaderNamespace* ns; in FindParentNamespaceByClassLoader() local
349 if ((ns = FindNamespaceByClassLoader(env, parent_class_loader)) != nullptr) { in FindParentNamespaceByClassLoader()
350 return ns; in FindParentNamespaceByClassLoader()
/art/libartbase/base/
Dtime_utils.h72 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);
Dstats.h37 void AddNanoSeconds(double ns, size_t count = 1) { Add(ns / 1000000000.0, count); }
Dtime_utils.cc210 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/
DTest1919.java52 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/
Djava_lang_Object.cc46 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()
Djava_lang_Thread.cc188 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/
Dnative_bridge.h169 struct native_bridge_namespace_t* ns);
361 void* (*loadLibraryExt)(const char* libpath, int flag, struct native_bridge_namespace_t* ns);
/art/libnativebridge/
Dnative_bridge_lazy.cc160 struct native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument
162 return f(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
Dnative_bridge.cc649 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/
Dgenerate_java.py371 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/
Dnative_loader.h66 struct NativeLoaderNamespace* ns, const char* path, bool* needs_native_bridge,
/art/tools/
Dgenerate_operator_out.py44 def __init__(self, ns, ec): argument
45 self.namespaces = ns
/art/runtime/base/
Dmutex.cc756 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()
Dmutex.h317 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/
Dmonitor.cc823 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()
Dmonitor.h102 int32_t ns,
/art/runtime/mirror/
Dobject-inl.h102 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/
Dnativebridge.cc646 … android::native_bridge_namespace_t* ns ATTRIBUTE_UNUSED) { in native_bridge_loadLibraryExt()
/art/openjdkjvmti/
Dti_redefine.cc832 art::ScopedAssertNoThreadSuspension ns("No thread suspension during thread stack walking"); in FindAndAllocateObsoleteMethods() local