/system/media/audio_utils/include/audio_utils/ |
D | threads.h | 60 inline int unified_priority_to_nice(int priority) { in unified_priority_to_nice() argument 61 return std::clamp(priority - kDefaultPrio, kMinNice, kMaxNice); in unified_priority_to_nice() 77 inline int unified_priority_to_rtprio(int priority) { in unified_priority_to_rtprio() argument 78 return std::clamp(kMaxRtPrio - 1 - priority, kMinRtPrio, kMaxRtPrio - 1); in unified_priority_to_rtprio() 84 inline bool is_realtime_priority(int priority) { in is_realtime_priority() argument 85 return priority >= 0 && priority < kMaxRtPrio; // note this allows the unified value 99. in is_realtime_priority() 91 inline bool is_cfs_priority(int priority) { in is_cfs_priority() argument 92 return priority >= kMaxRtPrio && priority < kMaxPrio; in is_cfs_priority() 137 status_t set_thread_priority(pid_t tid, int priority);
|
/system/timezone/input_data/android/ |
D | countryzones.txt | 94 # appear before legacy zones, and then legacy zones appear in reverse priority 95 # order (see priority below). This is for easier maintenance and validation 98 # been superseded by the same zone are listed together in reverse priority 147 # priority: 150 # for a given time range). Zones that are identical but lower priority 152 # with the higher priority zone for that period. The priority is in the 153 # range >=1, the default is 1. Whether a priority needs to be 159 # Often the exact priority assigned doesn't matter and zone priorities are 320 priority:15600 327 priority:3310 [all …]
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
D | ZoneInfo.java | 37 private final int priority; field in ZoneInfo 45 private ZoneInfo(String zoneId, int priority, List<ZoneOffsetPeriod> zoneOffsetPeriods) { in ZoneInfo() argument 46 if (priority < MIN_PRIORITY) { in ZoneInfo() 50 this.priority = priority; in ZoneInfo() 62 public static ZoneInfo create(TimeZoneNames timeZoneNames, BasicTimeZone timeZone, int priority, in create() argument 75 return new ZoneInfo(timeZone.getID(), priority, zoneOffsetPeriods); in create() 98 return priority; in getPriority() 104 "priority=" + priority + in toString()
|
/system/extras/simpleperf/ |
D | IOEventLoop.h | 53 IOEventPriority priority = IOEventLowPriority); 58 IOEventPriority priority = IOEventLowPriority); 63 IOEventPriority priority = IOEventLowPriority); 67 IOEventPriority priority = IOEventLowPriority); 72 IOEventPriority priority = IOEventLowPriority); 76 IOEventPriority priority = IOEventLowPriority); 97 IOEventPriority priority = IOEventLowPriority);
|
D | IOEventLoop.cpp | 107 IOEventPriority priority) { in AddReadEvent() argument 111 return AddEvent(fd, EV_READ | EV_PERSIST, nullptr, callback, priority); in AddReadEvent() 115 IOEventPriority priority) { in AddWriteEvent() argument 119 return AddEvent(fd, EV_WRITE | EV_PERSIST, nullptr, callback, priority); in AddWriteEvent() 123 IOEventPriority priority) { in AddSignalEvent() argument 124 return AddEvent(sig, EV_SIGNAL | EV_PERSIST, nullptr, callback, priority) != nullptr; in AddSignalEvent() 128 IOEventPriority priority) { in AddSignalEvents() argument 130 if (!AddSignalEvent(sig, callback, priority)) { in AddSignalEvents() 138 IOEventPriority priority) { in AddPeriodicEvent() argument 139 return AddEvent(-1, EV_PERSIST, &duration, callback, priority); in AddPeriodicEvent() [all …]
|
/system/libhidl/transport/ |
D | HidlTransportSupport.cpp | 62 bool setMinSchedulerPolicy(const sp<IBase>& service, int policy, int priority) { in setMinSchedulerPolicy() argument 70 if (priority < -20 || priority > 19) { in setMinSchedulerPolicy() 71 LOG(ERROR) << "Invalid priority for SCHED_NORMAL: " << priority; in setMinSchedulerPolicy() 77 if (priority < 1 || priority > 99) { in setMinSchedulerPolicy() 78 LOG(ERROR) << "Invalid priority for " << policy << " policy: " << priority; in setMinSchedulerPolicy() 93 details::gServicePrioMap->setLocked(service, {policy, priority}); in setMinSchedulerPolicy()
|
/system/core/libutils/ |
D | misc.cpp | 39 int priority; member 48 void add_sysprop_change_callback(sysprop_change_callback cb, int priority) { in add_sysprop_change_callback() argument 55 info.priority = priority; in add_sysprop_change_callback() 58 if (priority >= gSyspropList->itemAt(i).priority) { in add_sysprop_change_callback()
|
D | CallStack.cpp | 64 void CallStack::log(const char* logtag, android_LogPriority priority, const char* prefix) const { in log() argument 65 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false); in log() 102 android_LogPriority priority) { in logStackInternal() argument 103 stack->log(logtag, priority); in logStackInternal()
|
D | Printer_fuzz.cpp | 34 android_LogPriority priority = in LLVMFuzzerTestOneInput() local 43 android::LogPrinter(logTag.c_str(), priority, prefix.c_str(), ignoreBlankLines); in LLVMFuzzerTestOneInput()
|
/system/update_engine/aosp/ |
D | logging_android.cc | 101 const char* LogPriorityToCString(int priority) { in LogPriorityToCString() argument 102 switch (priority) { in LogPriorityToCString() 186 ss << "[" << LogPriorityToCString(log_message->priority) << ':' in GetPrefix() 213 ss << "[" << LogPriorityToCString(formatted.priority) << ":" in operator ()() 242 android_LogPriority priority = in RedirectToLiblog() local 246 priority = ANDROID_LOG_INFO; in RedirectToLiblog() 249 priority = ANDROID_LOG_WARN; in RedirectToLiblog() 252 priority = ANDROID_LOG_ERROR; in RedirectToLiblog() 255 priority = ANDROID_LOG_FATAL; in RedirectToLiblog() 262 if (priority == ANDROID_LOG_FATAL) { in RedirectToLiblog() [all …]
|
/system/media/audio_utils/ |
D | threads.cpp | 33 status_t set_thread_priority(pid_t tid, int priority) { in set_thread_priority() argument 34 if (is_realtime_priority(priority)) { in set_thread_priority() 37 const int rtprio = unified_priority_to_rtprio(priority); in set_thread_priority() 47 } else if (is_cfs_priority(priority)) { in set_thread_priority() 49 const int nice = unified_priority_to_nice(priority); in set_thread_priority()
|
/system/logging/liblog/include/log/ |
D | log_main.h | 94 #define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__) argument 101 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument 102 android_vprintLog(priority, NULL, tag, fmt, args) 336 #define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) argument 343 #define IF_ALOG(priority, tag) if (android_testLog(ANDROID_##priority, tag)) argument
|
/system/logging/liblog/include_vndk/log/ |
D | log_main.h | 94 #define LOG_PRI(priority, tag, ...) android_printLog(priority, tag, __VA_ARGS__) argument 101 #define LOG_PRI_VA(priority, tag, fmt, args) \ argument 102 android_vprintLog(priority, NULL, tag, fmt, args) 336 #define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) argument 343 #define IF_ALOG(priority, tag) if (android_testLog(ANDROID_##priority, tag)) argument
|
/system/media/audio_utils/tests/ |
D | audio_thread_tests.cpp | 45 TEST(audio_thread_tests, priority) { in TEST() argument 47 const int priority = get_thread_priority(tid); in TEST() local 48 ASSERT_GE(priority, 0); in TEST() 63 EXPECT_EQ(NO_ERROR, set_thread_priority(tid, priority)); in TEST()
|
/system/libartpalette/ |
D | palette_fake.cc | 36 palette_status_t PaletteSchedSetPriority(int32_t tid, int32_t priority) { in PaletteSchedSetPriority() argument 37 if (priority < art::palette::kMinManagedThreadPriority || in PaletteSchedSetPriority() 38 priority > art::palette::kMaxManagedThreadPriority) { in PaletteSchedSetPriority() 42 g_tid_priority_map[tid] = priority; in PaletteSchedSetPriority() 47 /*out*/ int32_t* priority) { in PaletteSchedGetPriority() argument 52 *priority = g_tid_priority_map[tid]; in PaletteSchedGetPriority()
|
/system/logging/liblog/tests/ |
D | liblog_host_test.cpp | 36 static std::string MakeLogPattern(int priority, const char* tag, const char* message) { in MakeLogPattern() argument 40 priority = priority > ANDROID_LOG_SILENT ? ANDROID_LOG_FATAL : priority; in MakeLogPattern() 41 char log_char = log_characters[priority]; in MakeLogPattern() 47 static void CheckMessage(bool expected, const std::string& output, int priority, const char* tag, in CheckMessage() argument 49 std::regex message_regex(MakeLogPattern(priority, tag, message)); in CheckMessage()
|
/system/netd/server/ |
D | UnreachableNetwork.cpp | 56 bool UnreachableNetwork::isValidSubPriority(int32_t priority) { in isValidSubPriority() argument 57 return priority >= UidRanges::SUB_PRIORITY_HIGHEST && in isValidSubPriority() 58 priority <= UidRanges::SUB_PRIORITY_LOWEST; in isValidSubPriority()
|
D | PhysicalNetwork.cpp | 94 int priority = 100000; in invalidateRouteCache() local 101 0 /* mtu */, priority); in invalidateRouteCache() 103 RouteController::INTERFACE, priority); in invalidateRouteCache() 242 bool PhysicalNetwork::isValidSubPriority(int32_t priority) { in isValidSubPriority() argument 244 return (priority >= UidRanges::SUB_PRIORITY_HIGHEST && in isValidSubPriority() 245 priority <= UidRanges::SUB_PRIORITY_LOWEST) || in isValidSubPriority() 246 priority == UidRanges::SUB_PRIORITY_NO_DEFAULT; in isValidSubPriority()
|
D | RouteController.cpp | 268 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint8_t ruleType, in modifyIpRule() argument 272 if (priority < 0) { in modifyIpRule() 273 ALOGE("invalid IP-rule priority %d", priority); in modifyIpRule() 326 { &priority, sizeof(priority) }, in modifyIpRule() 347 if (!(action == RTM_DELRULE && ret == -ENOENT && priority == RULE_PRIORITY_TETHERING)) { in modifyIpRule() 360 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint32_t table, in modifyIpRule() argument 363 return modifyIpRule(action, priority, FR_ACT_TO_TBL, table, fwmark, mask, iif, oif, uidStart, in modifyIpRule() 367 [[nodiscard]] static int modifyIpRule(uint16_t action, int32_t priority, uint32_t table, in modifyIpRule() argument 369 return modifyIpRule(action, priority, table, fwmark, mask, IIF_NONE, OIF_NONE, INVALID_UID, in modifyIpRule() 376 const char* destination, const char* nexthop, uint32_t mtu, uint32_t priority) { in modifyIpRoute() argument [all …]
|
/system/libbase/ |
D | logging.cpp | 155 static LogSeverity PriorityToLogSeverity(int priority) { in PriorityToLogSeverity() argument 156 switch (priority) { in PriorityToLogSeverity() 324 int32_t priority = LogSeverityToPriority(severity); in LogdLogChunk() local 327 __android_log_message log_message = {sizeof(__android_log_message), lg_id, priority, tag, in LogdLogChunk() 331 __android_log_buf_print(lg_id, priority, tag, "%s", message); in LogdLogChunk() 411 auto severity = PriorityToLogSeverity(log_message->priority); in SetLogger() 526 int32_t priority = LogSeverityToPriority(severity); in LogLine() local 529 sizeof(__android_log_message), LOG_ID_DEFAULT, priority, tag, file, line, message}; in LogLine() 558 int32_t priority = LogSeverityToPriority(severity); in ShouldLog() local 559 return __android_log_is_loggable(priority, tag, ANDROID_LOG_INFO); in ShouldLog() [all …]
|
/system/core/libutils/include/utils/ |
D | CallStack.h | 66 android_LogPriority priority = ANDROID_LOG_DEBUG, 123 android_LogPriority priority = ANDROID_LOG_DEBUG) { 125 logStackInternal(logtag, stack, priority); 159 android_LogPriority priority);
|
/system/chre/host/common/ |
D | log.cc | 23 void outputHostLog(int priority, FILE *stream, const char *format, in outputHostLog() argument 27 LOG_PRI_VA(priority, LOG_TAG, format, args); in outputHostLog()
|
/system/core/fs_mgr/libsnapshot/snapuserd/ |
D | utility.cpp | 31 bool SetThreadPriority([[maybe_unused]] int priority) { in SetThreadPriority() argument 33 return setpriority(PRIO_PROCESS, gettid(), priority) != -1; in SetThreadPriority()
|
/system/logging/liblog/ |
D | logger_write.cpp | 161 int32_t __android_log_set_minimum_priority(int32_t priority) { in __android_log_set_minimum_priority() argument 162 return minimum_log_priority.exchange(priority, std::memory_order_relaxed); in __android_log_set_minimum_priority() 270 int32_t priority = in filestream_logger() local 271 log_message->priority > ANDROID_LOG_SILENT ? ANDROID_LOG_FATAL : log_message->priority; in filestream_logger() 272 char priority_char = log_characters[priority]; in filestream_logger() 342 const_cast<unsigned char*>(reinterpret_cast<const unsigned char*>(&log_message->priority)); in __android_log_logd_logger() 370 if (log_message->priority == ANDROID_LOG_FATAL) { in __android_log_write_log_message()
|
/system/unwinding/libunwindstack/ |
D | LogAndroid.cpp | 38 static void LogWithPriority(int priority, uint8_t indent, const char* format, va_list args) { in LogWithPriority() argument 45 LOG_PRI_VA(priority, LOG_TAG, real_format.c_str(), args); in LogWithPriority()
|