| /system/media/audio_utils/include/audio_utils/ |
| D | threads.h | 28 * Some basic priority definitions from linux, 43 * Here we use the term "unified priority" as the linux normal_prio. 49 * Convert CFS (SCHED_OTHER) nice to unified priority. 56 * Convert unified priority to CFS (SCHED_OTHER) nice. 59 * Use is_cfs_priority() to check if a CFS priority. 61 inline int unified_priority_to_nice(int priority) { in unified_priority_to_nice() argument 62 return std::clamp(priority - kDefaultPrio, kMinNice, kMaxNice); in unified_priority_to_nice() 66 * Convert SCHED_FIFO/SCHED_RR rtprio 1 - 99 to unified priority 98 to 0. 73 * Convert unified priority 0 to 98 to SCHED_FIFO/SCHED_RR rtprio 99 to 1. 76 * Use is_realtime_priority() to check if real time priority. [all …]
|
| /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 303 # Priority is related to the population of the province. 320 priority:15600 [all …]
|
| /system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
| D | ZoneInfo.java | 34 * Priority can be used to establish dominance of one zone info over another if they are 35 * otherwise identical for a zone offset period. Highest numerical priority "wins". 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() 47 throw new IllegalArgumentException("priority must be >=" + MIN_PRIORITY); in ZoneInfo() 50 this.priority = priority; in ZoneInfo() 57 * <p>The priority must be >= 1, and startInclusive is expected to be before endExclusive. 62 public static ZoneInfo create(TimeZoneNames timeZoneNames, BasicTimeZone timeZone, int priority, in create() argument 75 return new ZoneInfo(timeZone.getID(), priority, zoneOffsetPeriods); in create() [all …]
|
| /system/chre/ |
| D | gen_todo.sh | 3 # Generate a TODO with a unique hash and priority level to allow tracking. 15 read -p "Priority (ex: 0, 1, 2 or 3):" 18 PRIORITY="?" 20 PRIORITY=$REPLY 26 PRIORITY=$1 34 TODO_STR="TODO(P$PRIORITY-$TODO_ID): $TODO_TEXT"
|
| /system/logging/liblog/include/android/ |
| D | log.h | 31 * - a priority 73 * Android log priority values, in increasing order of priority. 78 /** The default priority, for internal use only. */ 98 * with priority `prio` (one of the `android_LogPriority` values) and tag `tag`. 107 * with priority `prio` (one of the `android_LogPriority` values) and tag `tag`. 189 * with priority `prio` (one of the `android_LogPriority` values) and tag `tag`. 201 * with priority `prio` (one of the `android_LogPriority` values) and tag `tag`. 227 int32_t priority; member 350 * Use the per-tag properties "log.tag.<tagname>" along with the minimum priority from 354 * If both a priority for a tag and a minimum priority are set by [all …]
|
| /system/extras/simpleperf/ |
| 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 …]
|
| D | IOEventLoop.h | 36 // Lower value means higher priority. 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);
|
| /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/media/audio_utils/ |
| D | threads.cpp | 32 * Sets the unified priority of the tid. 34 status_t set_thread_priority(pid_t tid, int priority) { in set_thread_priority() argument 35 if (is_realtime_priority(priority)) { in set_thread_priority() 38 const int rtprio = unified_priority_to_rtprio(priority); in set_thread_priority() 43 ALOGW("%s: Cannot set FIFO priority for tid %d to policy %d rtprio %d %s", in set_thread_priority() 48 } else if (is_cfs_priority(priority)) { in set_thread_priority() 50 const int nice = unified_priority_to_nice(priority); in set_thread_priority() 55 ALOGW("%s: Cannot set CFS priority for tid %d to policy %d nice %d %s", in set_thread_priority() 68 * Returns the unified priority of the tid.
|
| /system/security/keystore2/src/ |
| D | async_task.rs | 16 //! The worker thread has a high priority and a low priority queue. Adding a job to either 20 //! Note that low priority tasks are processed only when the high priority queue is empty. 105 /// a low and a high priority work queue. The queues are processed FIFO, and low 106 /// priority queue is processed if the high priority queue is empty. 138 /// Adds a one-off job to the high priority queue. High priority jobs are 139 /// completed before low priority jobs and can also overtake low priority 148 /// Adds a one-off job to the low priority queue. Low priority jobs are 149 /// completed after high priority. And they are not executed as long as high 150 /// priority jobs are present. Jobs always run to completion and are never 151 /// preempted by high priority jobs. [all …]
|
| /system/update_engine/aosp/ |
| D | logging_android.cc | 101 const char* LogPriorityToCString(int priority) { in LogPriorityToCString() argument 102 switch (priority) { in LogPriorityToCString() 184 // priority is acceptable. in GetPrefix() 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() [all …]
|
| /system/libartpalette/ |
| D | palette_fake.cc | 29 // Cached thread priority for testing. No thread priorities are ever affected. 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/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()
|
| /system/logging/liblog/include/log/ |
| D | log_main.h | 91 * Log macro that allows you to specify a number for the priority. 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) 283 * verbose priority. 295 * debug priority. 303 * info priority. 311 * warn priority. 319 * error priority. 336 #define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) argument [all …]
|
| /system/logging/liblog/include_vndk/log/ |
| D | log_main.h | 91 * Log macro that allows you to specify a number for the priority. 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) 283 * verbose priority. 295 * debug priority. 303 * info priority. 311 * warn priority. 319 * error priority. 336 #define ALOG(priority, tag, ...) LOG_PRI(ANDROID_##priority, tag, __VA_ARGS__) argument [all …]
|
| /system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/ |
| D | CountryZoneTreeTest.java | 61 // same. The CountryZoneTree needs a priority on one to indicate which "merged into" the in testCountryRequiringPriority() 62 // other. In this test it is lacking that priority. in testCountryRequiringPriority() 87 // same. The CountryZoneTree needs a priority on one to indicate which "merged into" the in testCountryWithPriority() 88 // other. In this test one zone has the priority. in testCountryWithPriority() 94 + " priority: 10\n" in testCountryWithPriority() 124 + " priority: 10\n" in testCountryLongDstPeriod() 143 + " priority: 10\n" in testCountryLongDstPeriod()
|
| /system/unwinding/libunwindstack/offline_files/bluetooth_arm64/pc_2/ |
| D | output.txt | 4 …000000000081bec0 libbluetooth.so (bluetooth::os::Thread::run(bluetooth::os::Thread::Priority)+172) 5 …oth::os::Thread::*)(bluetooth::os::Thread::Priority), bluetooth::os::Thread*, bluetooth::os::Threa…
|
| /system/netd/server/ |
| D | RouteControllerTest.cpp | 85 "Did not see rule with priority " << *expectedPriorities.begin() << in TEST_F() 100 "192.0.2.2/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F() 102 "192.0.2.3/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F() 104 "192.0.2.4/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F() 109 "192.0.2.2/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F() 111 "192.0.2.3/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F() 113 "192.0.2.4/32", nullptr, 0 /* mtu */, 0 /* priority */)); in TEST_F()
|
| D | PhysicalNetwork.cpp | 91 // removing a low-priority route. in invalidateRouteCache() 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 …]
|
| 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()
|
| /system/core/libsystem/include/system/ |
| D | thread_defs.h | 33 * A thread priority should be chosen inverse-proportionally to 35 * a thread will do, the less favorable priority it should get so that 46 /* most threads run at normal priority */ 52 /* the main UI thread has a slightly more favorable priority */
|
| /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/media/audio_utils/tests/ |
| D | audio_thread_tests.cpp | 46 TEST(audio_thread_tests, priority) { in TEST() argument 48 const int priority = get_thread_priority(tid); in TEST() local 49 ASSERT_GE(priority, 0); in TEST() 64 EXPECT_EQ(NO_ERROR, set_thread_priority(tid, priority)); in TEST()
|
| /system/security/keystore2/src/async_task/ |
| D | tests.rs | 86 // Queue up some high-priority and low-priority jobs. in test_async_task() 100 // Finally queue up a low priority job that emits the trace. in test_async_task() 153 // Queue up some high-priority and low-priority jobs that take time. in test_async_task_idle() 162 // Final low-priority job. in test_async_task_idle() 174 // Now that the last low-priority job has completed, the idle task should in test_async_task_idle() 190 // Idle callback not immediately executed, because the high priority in test_async_task_idle() 204 // Queue a high priority job to start things off in test_async_task_multiple_idle() 237 // Add an idle callback that queues a low-priority job. in test_async_task_idle_queues_job()
|