/system/linkerconfig/modules/tests/ |
D | modules_testbase.h | 23 std::shared_ptr<android::linkerconfig::modules::Namespace> ns) { in DecorateNamespaceWithPaths() argument 24 ns->AddSearchPath("/search_path1"); in DecorateNamespaceWithPaths() 25 ns->AddSearchPath("/search_path2", true, false); in DecorateNamespaceWithPaths() 26 ns->AddSearchPath("/search_path3", false, false); in DecorateNamespaceWithPaths() 27 ns->AddPermittedPath("/permitted_path1"); in DecorateNamespaceWithPaths() 28 ns->AddPermittedPath("/permitted_path2", true, false); in DecorateNamespaceWithPaths() 29 ns->AddPermittedPath("/permitted_path3", false, false); in DecorateNamespaceWithPaths() 33 std::shared_ptr<android::linkerconfig::modules::Namespace> ns, in DecorateNamespaceWithLinks() argument 35 auto link = ns->CreateLink(target_1, false); in DecorateNamespaceWithLinks() 38 ns->CreateLink(target_2, true); in DecorateNamespaceWithLinks()
|
D | namespace_test.cc | 62 auto ns = std::make_shared<android::linkerconfig::modules::Namespace>( in TEST() local 65 DecorateNamespaceWithPaths(ns); in TEST() 66 ns->WriteConfig(writer); in TEST() 74 auto ns = std::make_shared<android::linkerconfig::modules::Namespace>( in TEST() local 78 DecorateNamespaceWithPaths(ns); in TEST() 79 DecorateNamespaceWithLinks(ns, "target_namespace1", "target_namespace2"); in TEST() 80 ns->WriteConfig(writer); in TEST()
|
D | section_test.cc | 125 auto ns = section.CreateNamespace("default"); in TEST() local 126 DecorateNamespaceWithPaths(ns); in TEST()
|
/system/netd/resolv/ |
D | res_send.cpp | 252 for (int ns = 0; ns < nscount; ns++) { in res_set_usable_server() local 253 if (usable_servers[ns]) ++usableIndex; in res_set_usable_server() 254 if (usableIndex != selectedServer) usable_servers[ns] = false; in res_set_usable_server() 270 int ns; in res_ourserver_p() local 275 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 276 srv = (struct sockaddr_in*) (void*) get_nsaddr(statp, (size_t) ns); in res_ourserver_p() 286 for (ns = 0; ns < statp->nscount; ns++) { in res_ourserver_p() 287 srv6 = (struct sockaddr_in6*) (void*) get_nsaddr(statp, (size_t) ns); in res_ourserver_p() 428 for (int ns = 0; ns < statp->nscount; ns++) { in res_nsend() local 429 if (statp->nsaddr_list[ns].sin_family && in res_nsend() [all …]
|
D | res_stats.cpp | 150 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers() local 151 bool usable = res_stats_usable_server(params, &stats[ns]); in android_net_res_stats_get_usable_servers() 155 usable_servers[ns] = usable; in android_net_res_stats_get_usable_servers() 160 for (int ns = 0; ns < nscount; ns++) { in android_net_res_stats_get_usable_servers() local 161 usable_servers[ns] = true; in android_net_res_stats_get_usable_servers()
|
D | res_init.cpp | 280 int ns; in res_nclose() local 287 for (ns = 0; ns < statp->_u._ext.nscount; ns++) { in res_nclose() 288 if (statp->_u._ext.nssocks[ns] != -1) { in res_nclose() 289 (void) close(statp->_u._ext.nssocks[ns]); in res_nclose() 290 statp->_u._ext.nssocks[ns] = -1; in res_nclose()
|
D | resolv_private.h | 133 void _resolv_cache_add_resolver_stats_sample(unsigned netid, int revision_id, int ns,
|
D | res_cache.cpp | 2015 void _resolv_cache_add_resolver_stats_sample(unsigned netid, int revision_id, int ns, in _resolv_cache_add_resolver_stats_sample() argument 2023 _res_cache_add_stats_sample_locked(&info->nsstats[ns], sample, max_samples); in _resolv_cache_add_resolver_stats_sample()
|
/system/linkerconfig/modules/ |
D | section.cc | 46 for (auto& ns : namespaces_) { in WriteConfig() local 47 if (ns.first != "default") { in WriteConfig() 52 additional_namespaces += ns.first; in WriteConfig() 61 for (auto& ns : namespaces_) { in WriteConfig() local 62 ns.second->WriteConfig(writer); in WriteConfig()
|
/system/media/audio_utils/include/audio_utils/ |
D | clock.h | 54 static inline void audio_utils_ns_to_string(int64_t ns, char *buffer, size_t buffer_size) in audio_utils_ns_to_string() argument 59 const time_t sec = ns / one_second; in audio_utils_ns_to_string() 71 (int)(ns % one_second / 1000000)) < 0) { in audio_utils_ns_to_string() 91 static inline audio_utils_time_string_t audio_utils_time_string_from_ns(int64_t ns) in audio_utils_time_string_from_ns() argument 95 audio_utils_ns_to_string(ns, ts.time, sizeof(ts.time)); in audio_utils_time_string_from_ns()
|
/system/core/libnativeloader/ |
D | native_loader.cpp | 60 explicit NativeLoaderNamespace(android_namespace_t* ns) in NativeLoaderNamespace() 61 : android_ns_(ns), native_bridge_ns_(nullptr) { } in NativeLoaderNamespace() 63 explicit NativeLoaderNamespace(native_bridge_namespace_t* ns) in NativeLoaderNamespace() 64 : android_ns_(nullptr), native_bridge_ns_(ns) { } in NativeLoaderNamespace() 329 android_namespace_t* ns = android_create_namespace(namespace_name, in Create() local 335 if (ns == nullptr) { in Create() 347 if (!android_link_namespaces(ns, nullptr, system_exposed_libraries.c_str())) { in Create() 354 if (!android_link_namespaces(ns, runtime_ns, runtime_exposed_libraries.c_str())) { in Create() 362 if (!android_link_namespaces(ns, vndk_ns, system_vndksp_libraries_.c_str())) { in Create() 369 if (!android_link_namespaces(ns, vendor_ns, vendor_public_libraries_.c_str())) { in Create() [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()
|
/system/tools/hidl/test/hidl_test/ |
D | FooCallback.cpp | 77 Return<void> FooCallback::reportResults(int64_t ns, reportResults_cb cb) { in reportResults() argument 78 … ALOGI("SERVER(FooCallback) 8.1: reportResults(%" PRId64 " seconds)", nanoseconds_to_seconds(ns)); in reportResults() 79 nsecs_t leftToWaitNs = ns; in reportResults() 93 …s(%" PRId64 " ns) Condition::waitRelative(%" PRId64 ") returned error (%d)", ns, leftToWaitNs, rc); in reportResults() 100 …GI("SERVER(FooCallback)::reportResults(%" PRId64 " ns) Condition::waitRelative was signalled", ns); in reportResults() 112 Return<void> FooCallback::youBlockedMeFor(const hidl_array<int64_t, 3> &ns) { in youBlockedMeFor() argument 117 invokeInfo[i].callerBlockedNs = ns[i]; in youBlockedMeFor()
|
D | FooCallback.h | 29 Return<void> reportResults(int64_t ns, reportResults_cb _hidl_cb) override;
|
/system/core/logd/tests/ |
D | logd_test.cpp | 485 unsigned long ns[arraysize(benchmarks)]; in TEST() local 487 memset(ns, 0, sizeof(ns)); in TEST() 490 for (unsigned i = 0; i < arraysize(ns); ++i) { in TEST() 495 sscanf(cp, "%*s %lu %lu", &ns[i], &ns[i]); in TEST() 496 fprintf(stderr, "%-22s%8lu\n", benchmarks[i], ns[i]); in TEST() 509 EXPECT_GE(200000UL, ns[log_maximum_retry]); // 104734 user in TEST() 510 EXPECT_NE(0UL, ns[log_maximum_retry]); // failure to parse in TEST() 512 EXPECT_GE(90000UL, ns[log_maximum]); // 46913 user in TEST() 513 EXPECT_NE(0UL, ns[log_maximum]); // failure to parse in TEST() 515 EXPECT_GE(4096UL, ns[clock_overhead]); // 4095 in TEST() [all …]
|
/system/chre/platform/linux/ |
D | system_timer.cc | 32 void NanosecondsToTimespec(uint64_t ns, struct timespec *ts) { in NanosecondsToTimespec() argument 33 ts->tv_sec = ns / kOneSecondInNanoseconds; in NanosecondsToTimespec() 34 ts->tv_nsec = ns % kOneSecondInNanoseconds; in NanosecondsToTimespec()
|
/system/core/libnativebridge/include/nativebridge/ |
D | native_bridge.h | 165 struct native_bridge_namespace_t* ns); 357 void* (*loadLibraryExt)(const char* libpath, int flag, struct native_bridge_namespace_t* ns);
|
/system/core/libnativebridge/ |
D | native_bridge_lazy.cc | 155 struct native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 157 return f(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
|
D | native_bridge.cc | 633 void* NativeBridgeLoadLibraryExt(const char* libpath, int flag, native_bridge_namespace_t* ns) { in NativeBridgeLoadLibraryExt() argument 636 return callbacks->loadLibraryExt(libpath, flag, ns); in NativeBridgeLoadLibraryExt()
|
/system/core/libnativeloader/include/nativeloader/ |
D | native_loader.h | 66 struct NativeLoaderNamespace* ns, const char* path, bool* needs_native_bridge,
|
/system/media/audio_utils/tests/ |
D | statistics_tests.cpp | 155 android::audio_utils::NeumaierSum<double> ns{}; in TEST() local 160 ns += 1.; in TEST() 168 ns += smallOne; in TEST() 174 ns += -1.; in TEST() 180 PRINT_AND_EXPECT_EQ(totalAdded, ns); // neumaier succeeds in TEST()
|
/system/extras/iotop/ |
D | iotop.cpp | 36 static float TimeToTgidPercent(uint64_t ns, int time, const TaskStatistics& stats) { in TimeToTgidPercent() argument 37 float percent = ns / stats.threads() / (time * NSEC_PER_SEC / 100.0f); in TimeToTgidPercent()
|
/system/core/base/ |
D | properties.cpp | 127 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(d - s); in DurationToTimeSpec() local 129 ts.tv_nsec = ns.count(); in DurationToTimeSpec()
|
/system/tools/aidl/ |
D | aidl.cpp | 842 java::JavaTypeNamespace ns; in dump_api() local 843 ns.Init(); in dump_api() 845 if (internals::load_and_validate_aidl(file, options, io_delegate, &ns, &defined_types, in dump_api()
|
/system/core/init/ |
D | README.md | 695 > Time after boot in ns (via the CLOCK\_BOOTTIME clock) at which the first 705 > Time after boot in ns (via the CLOCK\_BOOTTIME clock) that the service was
|