/system/media/audio_utils/include/audio_utils/ |
H A D | clock.h | 28 * \brief Converts time in ns to a time string, with format similar to logcat. 29 * \param ns input time in nanoseconds to convert. 35 static inline void audio_utils_ns_to_string(int64_t ns, char *buffer, size_t buffer_size) argument 40 const time_t sec = ns / one_second; 52 (int)(ns % one_second / 1000000)) < 0) { 69 * \brief Converts time in ns to a time string object, with format similar to logcat. 70 * \param ns input time in nanoseconds to convert. 72 static inline audio_utils_time_string_t audio_utils_time_string_from_ns(int64_t ns) argument 76 audio_utils_ns_to_string(ns, ts.time, sizeof(ts.time));
|
/system/core/libnativeloader/ |
H A D | native_loader.cpp | 50 explicit NativeLoaderNamespace(android_namespace_t* ns) argument 51 : android_ns_(ns), native_bridge_ns_(nullptr) { } 53 explicit NativeLoaderNamespace(native_bridge_namespace_t* ns) argument 54 : android_ns_(nullptr), native_bridge_ns_(ns) { } 124 NativeLoaderNamespace* ns, 209 android_namespace_t* ns = android_create_namespace(namespace_name, local 215 if (ns == nullptr) { 225 if (!android_link_namespaces(ns, nullptr, system_exposed_libraries.c_str())) { 232 if (!android_link_namespaces(ns, vndk_ns, system_vndksp_libraries_.c_str())) { 239 if (!android_link_namespaces(ns, vendor_n 117 Create(JNIEnv* env, uint32_t target_sdk_version, jobject class_loader, bool is_shared, bool is_for_vendor, jstring java_library_path, jstring java_permitted_path, NativeLoaderNamespace* ns, std::string* error_msg) argument 247 native_bridge_namespace_t* ns = NativeBridgeCreateNamespace(namespace_name, local 282 FindNamespaceByClassLoader(JNIEnv* env, jobject class_loader, NativeLoaderNamespace* ns) argument 448 FindParentNamespaceByClassLoader(JNIEnv* env, jobject class_loader, NativeLoaderNamespace* ns) argument 503 NativeLoaderNamespace ns; local 538 NativeLoaderNamespace ns; local 606 NativeLoaderNamespace ns; local [all...] |
/system/nfc/halimpl/bcm2079x/adaptation/ |
H A D | CondVar.cpp | 100 long ns = absoluteTime.tv_nsec + ((millisec % 1000) * 1000000); local 101 if (ns > 1000000000) { 103 absoluteTime.tv_nsec = ns - 1000000000; 105 absoluteTime.tv_nsec = ns;
|
/system/tpm/tpm_manager/server/ |
H A D | mock_tpm_nvram.cc | 56 NvSpace ns; local 57 ns.data.resize(size, '\xff'); 58 ns.read_locked = false; 59 ns.write_locked = false; 60 ns.attributes = attributes; 61 ns.authorization_value = authorization_value; 62 ns.policy = policy; 63 nvram_map_[index] = ns;
|
/system/tools/hidl/test/ |
H A D | FooCallback.cpp | 77 Return<void> FooCallback::reportResults(int64_t ns, reportResults_cb cb) { argument 78 ALOGI("SERVER(FooCallback) 8.1: reportResults(%" PRId64 " seconds)", nanoseconds_to_seconds(ns)); 79 nsecs_t leftToWaitNs = ns; 93 ALOGW("SERVER(FooCallback)::reportResults(%" PRId64 " ns) Condition::waitRelative(%" PRId64 ") returned error (%d)", ns, leftToWaitNs, rc); 100 ALOGI("SERVER(FooCallback)::reportResults(%" PRId64 " ns) Condition::waitRelative was signalled", ns); 112 Return<void> FooCallback::youBlockedMeFor(const hidl_array<int64_t, 3> &ns) { argument 117 invokeInfo[i].callerBlockedNs = ns[i];
|
H A D | FooCallback.h | 29 Return<void> reportResults(int64_t ns, reportResults_cb _hidl_cb) override;
|
/system/chre/platform/linux/ |
H A D | system_timer.cc | 32 void NanosecondsToTimespec(uint64_t ns, struct timespec *ts) { argument 33 ts->tv_sec = ns / kOneSecondInNanoseconds; 34 ts->tv_nsec = ns % kOneSecondInNanoseconds;
|
/system/core/libnativebridge/include/nativebridge/ |
H A D | native_bridge.h | 162 void* NativeBridgeLoadLibraryExt(const char* libpath, int flag, native_bridge_namespace_t* ns); 347 // ns [IN] the pointer of the namespace in which the library should be loaded. 353 void* (*loadLibraryExt)(const char* libpath, int flag, native_bridge_namespace_t* ns);
|
/system/core/logd/tests/ |
H A D | logd_test.cpp | 486 unsigned long ns[arraysize(benchmarks)]; local 488 memset(ns, 0, sizeof(ns)); 491 for (unsigned i = 0; i < arraysize(ns); ++i) { 496 sscanf(cp, "%*s %lu %lu", &ns[i], &ns[i]); 497 fprintf(stderr, "%-22s%8lu\n", benchmarks[i], ns[i]); 510 EXPECT_GE(200000UL, ns[log_maximum_retry]); // 104734 user 511 EXPECT_NE(0UL, ns[log_maximum_retry]); // failure to parse 513 EXPECT_GE(90000UL, ns[log_maximu [all...] |
/system/core/base/ |
H A D | properties.cpp | 106 auto ns = std::chrono::duration_cast<std::chrono::nanoseconds>(d - s); local 108 ts.tv_nsec = ns.count();
|
/system/extras/iotop/ |
H A D | iotop.cpp | 36 static float TimeToTgidPercent(uint64_t ns, int time, const TaskStatistics& stats) { argument 37 float percent = ns / stats.threads() / (time * NSEC_PER_SEC / 100.0f);
|
/system/core/libnativebridge/ |
H A D | native_bridge.cc | 634 void* NativeBridgeLoadLibraryExt(const char* libpath, int flag, native_bridge_namespace_t* ns) { argument 637 return callbacks->loadLibraryExt(libpath, flag, ns);
|