Home
last modified time | relevance | path

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

/external/cronet/base/task/thread_pool/
Dpriority_queue.cc24 const TaskSourceSortKey& sort_key) in TaskSourceAndSortKey() argument
25 : task_source_(std::move(task_source)), sort_key_(sort_key) { in TaskSourceAndSortKey()
78 const TaskSourceSortKey& sort_key() const { return sort_key_; } in sort_key() function in base::internal::PriorityQueue::TaskSourceAndSortKey
109 return container_.top().sort_key(); in PeekSortKey()
131 task_source_and_sort_key.sort_key().priority()); in PopTaskSource()
155 task_source_and_sort_key.sort_key().priority()); in RemoveTaskSource()
161 TaskSourceSortKey sort_key) { in UpdateSortKey() argument
169 auto old_sort_key = container_.at(heap_handle).sort_key(); in UpdateSortKey()
176 IncrementNumTaskSourcesForPriority(sort_key.priority()); in UpdateSortKey()
180 TaskSourceAndSortKey(std::move(registered_task_source), sort_key)); in UpdateSortKey()
Dthread_group.cc172 auto sort_key = transaction_with_task_source.task_source->GetSortKey(); in ReEnqueueTaskSourceLockRequired() local
179 std::move(transaction_with_task_source.task_source), sort_key); in ReEnqueueTaskSourceLockRequired()
251 auto sort_key = transaction_with_task_source.task_source->GetSortKey(); in PushTaskSourceAndWakeUpWorkersImpl() local
258 sort_key); in PushTaskSourceAndWakeUpWorkersImpl()
292 bool ThreadGroup::ShouldYield(TaskSourceSortKey sort_key) { in ShouldYield() argument
295 if (!task_tracker_->CanRunPriority(sort_key.priority())) in ShouldYield()
305 if (sort_key.priority() > max_allowed_sort_key.priority || in ShouldYield()
312 if (sort_key.priority() == max_allowed_sort_key.priority && in ShouldYield()
313 sort_key.worker_count() <= max_allowed_sort_key.worker_count + 1) { in ShouldYield()
Dpriority_queue_unittest.cc54 auto sort_key = task_source->GetSortKey(); in Push() local
56 sort_key); in Push()
Dpriority_queue.h60 void UpdateSortKey(const TaskSource& task_source, TaskSourceSortKey sort_key);
Dthread_group.h109 bool ShouldYield(TaskSourceSortKey sort_key);
Dpooled_single_thread_task_runner_manager.cc230 auto sort_key = transaction_with_task_source.task_source->GetSortKey(); in EnqueueTaskSource() local
237 sort_key); in EnqueueTaskSource()
/external/libtracefs/src/
Dtracefs-hist.c499 add_sort_key(struct tracefs_hist *hist, const char *sort_key, char **list) in add_sort_key() argument
505 if (strcmp(sort_key, TRACEFS_HIST_HITCOUNT) == 0) in add_sort_key()
509 if (strcmp(key_list[i], sort_key) == 0) in add_sort_key()
515 if (strcmp(val_list[i], sort_key) == 0) in add_sort_key()
524 return tracefs_list_add(list, sort_key); in add_sort_key()
538 const char *sort_key) in tracefs_hist_add_sort_key() argument
542 if (!hist || !sort_key) in tracefs_hist_add_sort_key()
545 list = add_sort_key(hist, sort_key, hist->sort); in tracefs_hist_add_sort_key()
566 const char *sort_key, ...) in tracefs_hist_set_sort_key() argument
572 if (!hist || !sort_key) in tracefs_hist_set_sort_key()
[all …]
/external/toybox/toys/posix/
Dsort.c76 struct sort_key { struct
77 struct sort_key *next_key; // linked list argument
84 static char *get_key_data(char *str, struct sort_key *key, int flags) in get_key_data() argument
162 static struct sort_key *add_key(void) in add_key()
165 struct sort_key **pkey = (struct sort_key **)stupid_compiler; in add_key()
168 return *pkey = xzalloc(sizeof(struct sort_key)); in add_key()
245 struct sort_key *key; in compare_keys()
320 struct sort_key *key = add_key(); in sort_main()
/external/libchrome/base/task_scheduler/
Dpriority_queue.cc22 const SequenceSortKey& sort_key) in SequenceAndSortKey() argument
23 : sequence_(std::move(sequence)), sort_key_(sort_key) { in SequenceAndSortKey()
52 const SequenceSortKey& sort_key() const { return sort_key_; } in sort_key() function in base::internal::PriorityQueue::SequenceAndSortKey
75 return outer_queue_->container_.top().sort_key(); in PeekSortKey()
Dtask_tracker.cc365 const SequenceSortKey sort_key = sequence->GetSortKey(); in WillScheduleSequence() local
368 if (sort_key.priority() != TaskPriority::BACKGROUND) in WillScheduleSequence()
384 std::move(sequence), sort_key.next_task_sequenced_time(), observer); in WillScheduleSequence()
/external/rust/cxx/gen/build/src/
Ddeps.rs84 let sort_key = k[k.len() - counter_len..] in direct_dependencies() localVariable
91 .push((sort_key, PathBuf::from(v))); in direct_dependencies()
95 dirs.sort_by_key(|(sort_key, _dir)| *sort_key); in direct_dependencies()
/external/mbedtls/scripts/
Dassemble_changelog.py386 def sort_key(self): member in EntryFileSortKey
394 return self.sort_key() == other.sort_key()
397 return self.sort_key() < other.sort_key()
/external/openthread/third_party/mbedtls/repo/scripts/
Dassemble_changelog.py386 def sort_key(self): member in EntryFileSortKey
394 return self.sort_key() == other.sort_key()
397 return self.sort_key() < other.sort_key()
/external/python/cpython3/Tools/scripts/
Dstable_abi.py219 def sort_key(item): function
225 key=sort_key):
233 key=sort_key):
/external/tensorflow/tensorflow/python/training/
Dcheckpoint_utils.py363 sort_key = lambda pair: pair[0] function
366 assignment_map, key=sort_key):
/external/libtracefs/include/
Dtracefs.h422 const char *sort_key);
424 const char *sort_key, ...);
426 const char *sort_key,
/external/pigweed/pw_presubmit/py/pw_presubmit/
Dkeep_sorted.py204 def sort_key(line): function
211 _LOG.debug('For sorting: %r => %r', val, sort_key(val))
213 sorted_lines = sorted(lines, key=sort_key)
/external/cronet/build/android/
Ddump_apk_resource_strings.py314 def ManagedPythonProfiling(enable_profiling, sort_key='tottime'): argument
334 pr.print_stats(sort=sort_key)
/external/angle/build/android/
Ddump_apk_resource_strings.py314 def ManagedPythonProfiling(enable_profiling, sort_key='tottime'): argument
334 pr.print_stats(sort=sort_key)
/external/cronet/build/android/gyp/
Dproguard.py474 def sort_key(path): function
493 for config in sorted(configs, key=sort_key):
/external/angle/build/android/gyp/
Dproguard.py539 def sort_key(path): function
558 for config in sorted(configs, key=sort_key):
/external/fonttools/Lib/fontTools/varLib/
DvarStore.py365 def sort_key(self): member in _Encoding
544 encodings.sort(key=_Encoding.sort_key)
/external/tensorflow/tensorflow/python/ops/
Dspecial_math_ops.py980 def sort_key(input_index, a): function
991 sorted(sym_list, key=lambda a: sort_key(i, a))
/external/rust/crates/clap/src/output/
Dhelp_template.rs420 fn write_args(&mut self, args: &[&Arg], _category: &str, sort_key: ArgSortKey) { in write_args()
442 let key = (sort_key)(arg); in write_args()
/external/bazelbuild-rules_android/rules/
Dresources.bzl231 sort_key = manifest.short_path + "#"
232 return sort_key + "--mergee=" + manifest.path